/* Konto-Seite: Legungs-Verlauf (DataTable), PDF neu erzeugen,
 * Konto loeschen mit zwei Bestaetigungen. Saso 30.10.2026.
 *
 * Eigenes Praefix "konto-", damit nichts mit den Styles der Spiele
 * kollidiert. */
.konto-page {
    background: #0c1512;
}

/* ---------- Grundgeruest ---------- */
.konto-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.1rem 4rem;
    color: #e6dcc8;
}
.konto-main h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.06em;
    color: #d4a944;
    margin: 0 0 1.4rem;
}
.konto-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 169, 68, 0.22);
    border-radius: 14px;
    padding: 1.4rem;
}
.konto-mail {
    font-size: 1rem;
    color: #9fd8c6;
    margin: 0 0 1.4rem;
    word-break: break-all;
}
.konto-hint {
    color: #b6ac93;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* ---------- Anmeldestatus wird geprueft (Saso 03.11.2026) ----------
   Der Besucher soll sehen, dass die Seite den Status prueft — und
   nicht, dass er "nicht angemeldet" ist, obwohl er es ist. */
.konto-loading-text {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}
.konto-spinner {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(212, 169, 68, 0.28);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: konto-spin 0.9s linear infinite;
}
@keyframes konto-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .konto-spinner { animation-duration: 2.4s; }
}

/* Nur fuer Screenreader — die Aktions-Spalte der Legungstabelle
   braucht eine Kopfzelle, hat aber keinen sichtbaren Text. */
.konto-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Profil: Name + Human Design (Saso 03.11.2026) ---------- */
.konto-profil {
    border: 1px solid rgba(212, 169, 68, 0.18);
    border-radius: 12px;
    padding: 1.2rem 1.3rem 1.4rem;
    margin-bottom: 1.6rem;
    background: rgba(212, 169, 68, 0.04);
}
.konto-profil h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: #d4a944;
    margin: 0 0 1.1rem;
    text-transform: uppercase;
}
.konto-profil-name {
    margin-bottom: 1.4rem;
}
.konto-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin: 0.4rem 0 0.5rem;
}
.konto-name-row input[type="text"] {
    flex: 1 1 220px;
    min-width: 0;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 169, 68, 0.3);
    border-radius: 8px;
    color: #f2ead6;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
}
.konto-name-row input[type="text"]:focus {
    outline: none;
    border-color: #d4a944;
}
.konto-profil-hd {
    border-top: 1px solid rgba(212, 169, 68, 0.16);
    padding-top: 1.2rem;
}
.konto-profil-hd h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #d4a944;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
}
.konto-hd-dl {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 0.9rem;
}
.konto-hd-dl dt {
    color: #b6ac93;
    font-size: 0.88rem;
}
.konto-hd-dl dd {
    margin: 0;
    color: #f2ead6;
    font-size: 0.95rem;
}
.konto-hd-deutung {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-left: 2px solid rgba(212, 169, 68, 0.45);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
}
.konto-hd-deutung h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: #d4a944;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
}
.konto-hd-deutung h5 {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #9fd8c6;
    margin: 0.9rem 0 0.3rem;
    text-transform: uppercase;
}
.konto-hd-deutung p {
    margin: 0 0 0.4rem;
    line-height: 1.65;
    color: #e8e0cc;
    font-size: 0.95rem;
}
.konto-hd-headline {
    font-style: italic;
    color: #f2ead6 !important;
}
@media (max-width: 560px) {
    .konto-hd-dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
    .konto-hd-dl dd { margin-bottom: 0.55rem; }
}
.konto-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.konto-head-row h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    color: #e6c98d;
    margin: 0;
}
.konto-limit {
    margin: 0;
    font-size: 0.85rem;
    color: #b6ac93;
}

/* ---------- Streak-Karte (M3 Habit-Layer, reine Anzeige) ----------
   Dezente Belohnungs-Karte ueber der Legungsliste: Gold-Akzent wie
   die Ueberschriften, bewusst KEINE Alarm-Optik — die Serie soll
   motivieren, nicht druecken (kein Reset-Zwang, keine Paywall). */
.konto-streak {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(212, 169, 68, 0.35);
    border-radius: 6px;
    background: rgba(212, 169, 68, 0.07);
    font-size: 0.95rem;
    color: #e6c98d;
}
.konto-streak[hidden] {
    display: none;
}
.konto-streak-glyph {
    color: #d4a944;
    font-size: 1rem;
    line-height: 1;
}
.konto-streak #konto-streak-text {
    color: #d8cbae;
}

/* ---------- Premium-Nudge (M4): dezenter Hinweis unter der Streak-Karte ----------
   Bewusst LEISER als die Streak-Karte (kein Gold-Block, kein Rahmen):
   duennere Schrift, schmale Akzentlinie. Copy ist Interim (maya+Livia). */
.konto-nudge {
    margin: 0 0 1rem;
    padding: 0.35rem 0 0.35rem 0.75rem;
    border-left: 2px solid rgba(212, 169, 68, 0.28);
    font-size: 0.88rem;
    line-height: 1.5;
    color: #b3a88f;
}
.konto-nudge[hidden] {
    display: none;
}

/* Livia-Endfassung 12.11.: ganze Nudge-Zeile verlinkt auf die Premium-
   Landing /premium/ — dezent (Farbe erben, Unterstreichung im Gold-Ton). */
.konto-nudge a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(212, 169, 68, 0.45);
    text-underline-offset: 3px;
}

.konto-nudge a:hover {
    text-decoration-color: rgba(212, 169, 68, 0.8);
}

/* ---------- Legungs-Gedaechtnis (M4, Premium): Rueckblick + Bewertung ---------- */
.konto-memory {
    margin: 0 0 1rem;
    padding: 0.65rem 0.9rem 0.75rem;
    border: 1px solid rgba(212, 169, 68, 0.35);
    border-radius: 6px;
    background: rgba(212, 169, 68, 0.07);
    font-size: 0.95rem;
}
.konto-memory[hidden] {
    display: none;
}
.konto-memory h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #e6c98d;
}
.konto-memory-row {
    color: #d8cbae;
    padding: 0.18rem 0;
}
.konto-memory-row + .konto-memory-row {
    border-top: 1px solid rgba(212, 169, 68, 0.18);
}
/* Bewertung «Ist es eingetreten?»: kleine runde Ja/Nein-Buttons, der
   aktive Zustand traegt den Gold-Akzent (dezent, kein Leuchtrot). */
.konto-outcome {
    white-space: nowrap;
}
.konto-oc {
    display: inline-block;
    width: 1.65rem;
    height: 1.65rem;
    line-height: 1.45;
    margin-right: 0.25rem;
    padding: 0;
    border: 1px solid rgba(212, 169, 68, 0.45);
    border-radius: 50%;
    background: transparent;
    color: #b9ab8f;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
}
.konto-oc:hover:not(:disabled) {
    border-color: #d4a944;
    color: #e6c98d;
}
.konto-oc.on {
    background: rgba(212, 169, 68, 0.18);
    border-color: #d4a944;
    color: #e6c98d;
}
.konto-oc:disabled {
    opacity: 0.55;
    cursor: default;
}
.konto-card-outcome {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: #b9ab8f;
}

/* ---------- Buttons ---------- */
.konto-btn {
    display: inline-block;
    border: 1px solid #d4a944;
    background: #d4a944;
    color: #14211d;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease, background 0.2s ease;
}
.konto-btn:hover { filter: brightness(1.08); }
.konto-btn--ghost {
    background: none;
    color: #d4a944;
}
.konto-btn--danger {
    background: #8c2f2f;
    border-color: #c0574f;
    color: #f6e7e2;
}
.konto-btn--danger:hover { background: #a03a38; }
.konto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

/* ---------- DataTable ---------- */
#konto-table.dataTable {
    border-collapse: collapse;
    width: 100%;
    color: #e6dcc8;
    font-size: 0.92rem;
}
#konto-table.dataTable thead th {
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: #9fd8c6;
    border-bottom: 1px solid rgba(212, 169, 68, 0.35);
    padding: 0.55rem 0.6rem;
}
#konto-table.dataTable tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.55rem 0.6rem;
    vertical-align: top;
}
#konto-table.dataTable tbody tr:hover { background: rgba(159, 216, 198, 0.05); }
.konto-cell-typ {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d4a944;
    margin-right: 0.5rem;
}
.konto-cell-frage {
    max-width: 320px;
    color: #b6ac93;
    font-style: italic;
}
.konto-cell-legacy {
    color: #7c6f58;
    font-style: italic;
    font-size: 0.85rem;
}
/* Support-Referenz (Saso 31.10.2026): monospaced, damit die Zeichen
   beim Vorlesen am Telefon eindeutig bleiben (LV- statt Iv-). */
.konto-cell-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #9fd8c6;
    white-space: nowrap;
}
.konto-pdf-btn {
    border: 1px solid rgba(159, 216, 198, 0.5);
    background: none;
    color: #9fd8c6;
    font-family: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
}
.konto-pdf-btn:hover { background: rgba(159, 216, 198, 0.12); }
.konto-pdf-btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Loesch-Button der Legung (Saso 03.11.2026) ----------
   Bewusst zurueckhaltend: der Text "Loeschen" in einer ruhigen Farbe,
   die erst beim Hover nach Warn-Rot kippt. Kein grelles Rot im
   Normalzustand — die Liste soll nicht wie eine Bedrohung wirken. */
.konto-loesch-btn {
    border: 1px solid rgba(200, 160, 150, 0.28);
    background: none;
    color: rgba(230, 220, 200, 0.55);
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.konto-loesch-btn:hover {
    color: #e09a8a;
    border-color: rgba(224, 154, 138, 0.65);
    background: rgba(224, 154, 138, 0.1);
}
.konto-col-loeschen { width: 1%; white-space: nowrap; }

/* ---------- Dialog "Legung loeschen?" ---------- */
.konto-loesch-dialog { max-width: 420px; }
.konto-loesch-warn {
    color: #e09a8a;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0.6rem 0 1rem;
}
.konto-loessel-meta {
    color: rgba(230, 220, 200, 0.78);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(212, 169, 68, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}
.konto-loesch-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(230, 220, 200, 0.85);
    margin-bottom: 0.45rem;
}
.konto-loesch-label input {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 169, 68, 0.3);
    color: #e6dcc8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}
.konto-loesch-err {
    color: #e09a8a;
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}
.konto-loesch-dialog-actions .konto-loesch-ok {
    border-color: rgba(224, 154, 138, 0.55);
    color: #e09a8a;
}
.konto-loesch-dialog-actions .konto-loesch-ok:hover:not(:disabled) {
    background: rgba(224, 154, 138, 0.12);
}
.konto-loesch-dialog-actions .konto-loesch-ok:disabled { opacity: 0.4; cursor: default; }

/* DataTables-Eigene Bedienelemente an das dunkle Schema anpassen */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 169, 68, 0.3);
    color: #e6dcc8;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-family: inherit;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: #b6ac93;
    font-size: 0.85rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #9fd8c6 !important;
    border: 1px solid rgba(159, 216, 198, 0.3) !important;
    border-radius: 6px;
    margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(159, 216, 198, 0.16) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.35;
}

/* ---------- Konto loeschen ---------- */
.konto-danger {
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(140, 47, 47, 0.45);
}
.konto-danger h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: #c0574f;
    margin: 0 0 0.6rem;
}
/* M4 DSGVO: Verlaufsdaten-Loeschung — leichtere Gefahrenzone (weniger
   destruktiv als Konto-Loeschen, steht bewusst davor). */
.konto-danger--soft {
    border-top-color: rgba(140, 47, 47, 0.25);
}
.konto-label {
    display: block;
    font-size: 0.88rem;
    color: #b6ac93;
    margin: 0.9rem 0 0.3rem;
}
.konto-danger input[type="text"],
.konto-danger input[type="password"],
.konto-danger input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 169, 68, 0.3);
    color: #e6dcc8;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    max-width: 340px;
}
.konto-err {
    color: #e08a80;
    font-size: 0.9rem;
    margin: 0.9rem 0 0;
}

/* ---------- Passwort aendern (Saso 01.11.2026) ---------- */
.konto-passwort {
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(212, 169, 68, 0.28);
}
.konto-passwort h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin: 0 0 0.6rem;
}
.konto-passwort input[type="password"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 169, 68, 0.3);
    color: #e6dcc8;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    max-width: 340px;
}
.konto-passwort input[type="password"]:focus {
    outline: none;
    border-color: rgba(212, 169, 68, 0.65);
}
/* Erfolgsmeldung nach dem Wechsel (statt Fehler). */
.konto-ok {
    color: #9fd8c6;
    font-size: 0.9rem;
    margin: 0.9rem 0 0;
}
/* Google-Konto: Hinweis statt Formular. */
.konto-passwort .konto-hint {
    margin-bottom: 0.4rem;
}

/* ---------- Druck: nur das Sheet ---------- */
@media print {
    .konto-page > *:not(#konto-print-sheet) { display: none !important; }
    #konto-print-sheet { display: block !important; }
}

/* ---------- Deutungs-Button einer Ziehung (Saso 02.11.2026) ----------
   Eine Ziehung aus dem Kartenziehen-Studio hat noch keine Deutung.
   Statt des PDF-Buttons steht "Deutung anfragen" — das ist das
   Upgrade (2.90 CHF / 3 Credits). Deshalb sieht der Button anders
   aus als der neutrale PDF-Button. */
.konto-deutung-btn {
    background: linear-gradient(180deg, rgba(212, 169, 68, 0.92), rgba(184, 140, 46, 0.92));
    border-color: rgba(212, 169, 68, 0.9);
    color: #1a1024;
    font-weight: 600;
    white-space: nowrap;
}

.konto-deutung-btn:hover:not(:disabled),
.konto-deutung-btn:focus-visible {
    background: linear-gradient(180deg, #f2d98c, #d4a944);
    border-color: #f2d98c;
    color: #1a1024;
}

.konto-deutung-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- Dialog: Deutung anfragen (Saso 02.11.2026) ----------
   Das Konto fragt die Praezisionsfrage und die Zahlungsart in einem
   eigenen Dialog — kein window.prompt (blockiert die Seite). Gleiches
   Schema wie das Konto-Modal (account.css), aber in Jade/Gold. */

.konto-deutung-dialog {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 12, 10, 0.82);
    backdrop-filter: blur(3px);
    padding: 1rem;
}

/* Das hidden-Attribut verliert gegen die display-Regel oben — ohne
   diese Zeile waere der Dialog sofort sichtbar. */
.konto-deutung-dialog[hidden] {
    display: none;
}

.konto-deutung-dialog-box {
    position: relative;
    width: min(32rem, 100%);
    max-height: 86vh;
    overflow: auto;
    padding: 1.5rem 1.4rem 1.3rem;
    border: 1px solid rgba(212, 169, 68, 0.35);
    border-radius: 12px;
    background: linear-gradient(160deg, #16211d 0%, #0e1613 100%);
    color: #e6dcc8;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.konto-deutung-dialog-box h3 {
    margin: 0 0 0.5rem;
    font: 600 1.1rem/1.25 Georgia, 'Times New Roman', serif;
    color: #d4a944;
    letter-spacing: 0.04em;
}

.konto-deutung-dialog-text {
    margin: 0 0 0.9rem;
    color: #b6ac93;
    font-size: 0.92rem;
    line-height: 1.6;
}

.konto-deutung-frage {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 169, 68, 0.3);
    color: #e6dcc8;
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.konto-deutung-frage:focus {
    outline: 2px solid rgba(159, 216, 198, 0.45);
    outline-offset: 1px;
}

.konto-deutung-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.konto-deutung-dialog-actions .konto-pdf-btn {
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
}

/* Der Haupt-Button traegt dasselbe Gold wie "Deutung anfragen" in der
   Liste — die Deutung ist die bezahlte (bzw. aktuell kostenfreie) Aktion. */
.konto-deutung-dialog-actions .konto-deutung-start {
    border: 1px solid rgba(212, 169, 68, 0.9);
    background: linear-gradient(180deg, rgba(212, 169, 68, 0.92), rgba(184, 140, 46, 0.92));
    color: #1a1024;
    font-weight: 600;
}

.konto-deutung-dialog-actions .konto-deutung-start:hover:not(:disabled) {
    background: linear-gradient(180deg, #f2d98c, #d4a944);
    border-color: #f2d98c;
    color: #1a1024;
}

.konto-deutung-cancel {
    border: 1px solid rgba(182, 172, 147, 0.35);
    background: none;
    color: #b6ac93;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.konto-deutung-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e6dcc8;
}

.konto-deutung-dialog-error {
    color: #e08a80;
    font-size: 0.9rem;
    margin: 0.9rem 0 0;
}

/* =========================================
   Konto-Tabs + PDF-Karte (Saso 04.11.2026):
   „mach es mit tabs und teile die legungen
   in einen tab auf … pdf button … vlt lieber
   als karte machen" — Tabs im Gold-Look der
   Site, PDF-Karte als grosser Einstieg über
   der Legungs-Tabelle (mobile-tauglich).
   ========================================= */
.konto-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
    border-bottom: 1px solid rgba(212, 169, 68, 0.25);
    flex-wrap: wrap;
}
.konto-tab {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: none;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 0.55rem 1rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.konto-tab:hover { color: var(--color-text); background: rgba(212, 169, 68, 0.06); }
.konto-tab.is-active {
    color: var(--color-gold-light);
    background: rgba(212, 169, 68, 0.1);
    border-color: rgba(212, 169, 68, 0.25);
}
.konto-tab:focus-visible { outline: 2px solid var(--color-gold); outline-offset: -2px; }
.konto-tabpanel { padding-top: 0.4rem; }

@media (max-width: 560px) {
    /* Mobile: Tabs gleichbreit nebeneinander, PDF-Button ueber die
       volle Kartenbreite — genau das Problem "button nicht so gut
       zu sehen" behoben. */
    .konto-tab { flex: 1 1 0; padding: 0.55rem 0.3rem; text-align: center; }
}


/* =========================================
   Mobile-Card-Liste der Legungen (Saso
   04.11.): „die tabellen reihen sollte als
   cards angezeigt werden, da die spalten-
   anzahl zu viel ist, fuer mobile view".
   Unter 720px versteckt CSS die Tabelle
   (inkl. DataTables-Wrapper) und zeigt die
   Karten aus renderKontoCards().
   ========================================= */
.konto-cards { display: none; }
.konto-card {
    border: 1px solid rgba(212, 169, 68, 0.25);
    border-radius: 14px;
    background: var(--color-bg-card);
    padding: 0.9rem 1rem;
    margin: 0 0 0.8rem;
}
.konto-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.konto-card-typ {
    color: var(--color-gold-light);
    font-size: 0.92rem;
    font-weight: 600;
}
.konto-card-datum {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}
.konto-card-frage,
.konto-card-ref {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0.4rem 0 0;
    line-height: 1.4;
}
.konto-card-frage span,
.konto-card-ref span { color: var(--color-text); }
.konto-card-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.konto-card-actions .konto-pdf-btn {
    flex: 1 1 0;
    min-height: 44px;
    font-size: 0.9rem;
    background: rgba(159, 216, 198, 0.16);
    color: #b9e8d8;
    font-weight: 600;
    border-radius: 10px;
}
.konto-card-actions .konto-pdf-btn:hover { background: rgba(159, 216, 198, 0.26); }
.konto-card-actions .konto-loesch-btn {
    flex: 0 0 auto;
    min-height: 44px;
    border-radius: 10px;
}
@media (max-width: 720px) {
    /* Tabelle inkl. DataTables-Wrapper (Sortierung, Suche, Pagination)
       weg — die Karten uebernehmen. konto-empty bleibt (steht ausser-
       halb des Wrappers). */
    #konto-table,
    #konto-table_wrapper { display: none !important; }
    .konto-cards { display: block; }
}

/* Taegliche Mail - Modul-Checkboxen (Saso 19.11.) */
.konto-check { display: flex; gap: .6rem; align-items: flex-start; margin: .55rem 0; cursor: pointer; }
.konto-check input { margin-top: .3rem; }
.konto-check em { display: block; font-style: normal; font-size: .85rem; opacity: .75; }
.konto-check input:disabled { cursor: not-allowed; }
.konto-daily .konto-actions { margin-top: .9rem; }
