/* ============================================================
   Kundenkonten korrektur.de: Karten-/Formular-/Dashboard-Styles.
   Chrome (Topbar/Nav/Footer/Partner-Strip) kommt aus der Site.
   Nur .kd-*-Klassen + feste Farben -> keine Kollision mit Site-CSS.
   ============================================================ */

.kd-main{max-width:1120px;margin:0 auto;padding:44px 1.5rem;min-height:56vh;
  display:flex;justify-content:center;align-items:flex-start}
/* Frueher .kd-card: umbenannt, weil das im Konto eingebettete Shop-Widget
   (Tab "Shop", 1:1-Kopie von /shop) .kd-card fuer seine Produktkacheln benutzt
   -- inklusive !important-Regeln unter 420px, die die Kontokarte zerlegt haben. */
.kd-konto-card{background:#fff;width:100%;max-width:440px;border:1px solid #e5e7eb;
  border-radius:12px;padding:32px;box-shadow:0 6px 24px rgba(0,0,0,.05)}
/* Dark-Mode kam vorher aus der :where(.kd-card)-Liste in site-shell.css. */
html[data-theme="dark"] .kd-konto-card{background:var(--bg,#1d1d1d);color:var(--text,#f3f3f3);
  border-color:var(--border,#666);border-width:1px;box-shadow:var(--shadow-md,0 4px 14px rgba(255,255,255,.08))}
.kd-konto-card.wide{max-width:1040px}
.kd-konto-card h1{font-size:1.5rem;font-weight:800;line-height:1.2;letter-spacing:-.01em;margin:0 0 .35rem}
.kd-account-titlebar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .35rem}
.kd-account-titlebar h1{margin:0}
.kd-account-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:.3rem}
.kd-account-title-action{display:inline-flex;align-items:center;gap:.42rem;flex:0 0 auto;padding:.45rem .62rem;
  border:0;border-radius:8px;background:transparent;color:#374151;font:inherit;font-size:.9rem;font-weight:700;
  text-decoration:none;cursor:pointer;transition:background .15s,color .15s}
.kd-account-action-icon{width:20px;height:20px;stroke:#007c48;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.kd-account-title-action:hover,.kd-account-title-action.active{background:#ecf7f1;color:#006b3e}
.kd-account-title-action:focus-visible{outline:2px solid #00a85a;outline-offset:2px}
html[data-theme="dark"] .kd-account-title-action{color:var(--text,#f3f3f3)}
html[data-theme="dark"] .kd-account-title-action:hover,
html[data-theme="dark"] .kd-account-title-action.active{background:#123628;color:var(--green,#4ade80)}
html[data-theme="dark"] .kd-account-action-icon{stroke:var(--green,#4ade80)}
.kd-grad{background:linear-gradient(to right,#00c06a,#005430);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.kd-lead{color:#4b5563;font-size:.95rem;margin:0 0 1.4rem}

/* Formfelder */
.kd-field{margin-bottom:1rem}
.kd-field label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.35rem;color:#1a1a2e}
.kd-input{width:100%;padding:.7rem .85rem;border:1px solid #cfd6e0;border-radius:8px;
  font-size:.95rem;font-family:inherit;background:#fff;color:#1a1a2e}
.kd-input:focus{outline:2px solid #006b3e;border-color:#006b3e}
.kd-row{display:flex;gap:.75rem;flex-wrap:wrap}
.kd-row .kd-field{flex:1 1 160px}
.kd-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* Buttons */
.kd-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;
  padding:.8rem 1.2rem;border:none;border-radius:8px;font:inherit;font-weight:700;font-size:.98rem;
  cursor:pointer;transition:transform .15s,box-shadow .15s,filter .15s}
.kd-btn-primary{background:linear-gradient(to right,#00c06a,#005430);color:#fff}
.kd-btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,135,78,.28)}
.kd-btn-primary:disabled{opacity:.6;cursor:default;transform:none;box-shadow:none}
.kd-btn-ghost{background:#fff;color:#1a1a2e;border:1.5px solid #cfd6e0}
.kd-btn-ghost:hover{border-color:#006b3e;color:#006b3e}
.kd-btn-danger{background:#b91c1c;color:#fff;border:1.5px solid #b91c1c}
.kd-btn-danger:hover{background:#991b1b;color:#fff;border-color:#991b1b}
.kd-btn-google{background:#fff;color:#1f2937;border:1.5px solid #cfd6e0}
.kd-btn-google:hover{background:#f8fafc;border-color:#9ca3af}
.kd-btn-google svg{width:18px;height:18px}
.kd-or{display:flex;align-items:center;gap:.75rem;margin:1.1rem 0;color:#9ca3af;font-size:.8rem}
.kd-or::before,.kd-or::after{content:"";flex:1;height:1px;background:#e5e7eb}
/* Trenner + Links */
.kd-links{margin-top:1.2rem;font-size:.9rem;text-align:center;color:#4b5563}
.kd-links a{color:#006b3e;font-weight:600;text-decoration:none}
.kd-links a:hover{text-decoration:underline}
.kd-sep{margin:1rem 0;border:none;border-top:1px solid #e5e7eb}

/* Status-Meldungen */
.kd-msg{font-size:.9rem;margin:0 0 1rem;padding:.7rem .85rem;border-radius:8px;display:none;line-height:1.5}
.kd-msg.show{display:block}
.kd-msg.err{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.kd-msg.ok{background:#ecf7f1;color:#005430;border:1px solid #bfe6d2}

/* Business-Umschalter (Registrierung) */
.kd-toggle{display:flex;gap:.5rem;background:#f1f5f9;border-radius:10px;padding:.3rem;margin-bottom:1.3rem}
.kd-toggle button{flex:1;padding:.55rem;border:none;border-radius:7px;background:transparent;
  font:inherit;font-weight:600;font-size:.9rem;color:#4b5563;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:.42rem}
.kd-toggle button svg{flex:0 0 auto}
.kd-toggle button.active{background:#fff;color:#006b3e;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.kd-biz{display:none}
.kd-biz.show{display:block}
.kd-fine{font-size:.78rem;color:#6b7280;line-height:1.5}
.kd-fine a{color:#006b3e}
.kd-check{display:flex;gap:.5rem;align-items:flex-start;margin:.4rem 0 1.1rem}
.kd-check input{margin-top:.2rem;flex:0 0 auto;accent-color:#00c06a}
.kd-check input:focus-visible{outline:2px solid #00c06a;outline-offset:2px}

/* Konto-Komponenten muessen auf jeder Konto-Seite im Desktop-Dark-Mode
   eigenstaendig funktionieren, unabhaengig von der URL-Klassifizierung. */
html[data-theme="dark"] .kd-lead,
html[data-theme="dark"] .kd-fine,
html[data-theme="dark"] .kd-links{color:var(--muted,#c6c6c6)}
html[data-theme="dark"] .kd-field label{color:var(--text,#f3f3f3)}
html[data-theme="dark"] .kd-fine a,
html[data-theme="dark"] .kd-links a{color:var(--green,#4ade80)}
html[data-theme="dark"] .kd-toggle{background:#111;border:1px solid var(--border,#666)}
html[data-theme="dark"] .kd-toggle button{color:var(--muted,#c6c6c6)}
html[data-theme="dark"] .kd-toggle button.active{background:var(--bg,#1d1d1d);color:var(--green,#4ade80);box-shadow:0 1px 3px rgba(255,255,255,.08)}

/* Konto-Dashboard */
.kd-account-tabs{display:flex;gap:.35rem;margin:1.35rem 0;padding:.35rem;border:1px solid #e3e8ee;
  border-radius:11px;background:#f4f7f9;overflow-x:auto;scrollbar-width:thin}
.kd-account-tab{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;flex:1 0 auto;
  min-width:max-content;padding:.62rem .8rem;border-radius:8px;color:#4b5563;font-size:1rem;font-weight:700;
  text-align:center;text-decoration:none;transition:background .15s,color .15s,box-shadow .15s}
.kd-account-tab-icon{width:21px;height:21px;flex:0 0 21px;overflow:visible;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.kd-account-tab-icon .kd-tab-icon-accent{stroke:#13a35c}
.kd-account-tab:hover{color:#006b3e;background:#fff}
.kd-account-tab:focus-visible{outline:2px solid #00a85a;outline-offset:1px}
.kd-account-tab.active{background:#fff;color:#006b3e;box-shadow:0 1px 4px rgba(15,23,42,.1)}
.kd-account-panel{min-height:310px}
.kd-account-welcome{display:flex;align-items:center;justify-content:space-between;gap:2rem;
  padding:1.5rem 1.6rem;margin-bottom:1rem;border:1px solid #b7dfca;border-radius:12px;
  background:linear-gradient(135deg,#ecf7f1 0,#fff 72%)}
.kd-account-welcome h2,.kd-shop-head h2{margin:.1rem 0 .45rem;font-size:1.3rem}
.kd-account-welcome p:not(.kd-account-eyebrow),.kd-shop-head p:not(.kd-account-eyebrow){
  margin:0;color:#4b5563;font-size:.92rem;line-height:1.55}
.kd-account-eyebrow{margin:0;color:#007c48;font-size:clamp(1.02rem,1.5vw,1.18rem);
  line-height:1.2;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.kd-account-primary{width:auto;flex:0 0 auto;white-space:nowrap;text-decoration:none}
/* Uebersicht: primaerer CTA "Neue Bestellung", darunter sekundaer "Angebot einholen" */
.kd-account-cta{display:flex;flex-direction:column;gap:.5rem;flex:0 0 auto}
.kd-account-cta .kd-btn{width:100%;white-space:nowrap;text-decoration:none}
.kd-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.kd-overview-tile{display:flex;min-height:126px;flex-direction:column;justify-content:center;gap:.26rem;
  padding:1.15rem;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#1a1a2e;
  text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s}
.kd-overview-tile:hover{transform:translateY(-1px);border-color:#9fd1b7;box-shadow:0 5px 15px rgba(15,23,42,.06)}
.kd-overview-tile strong{font-size:1.12rem;line-height:1.25}
.kd-overview-tile>span:not(.kd-overview-label){color:#6b7280;font-size:.82rem}
.kd-overview-label{color:#006b3e;font-size:clamp(1.02rem,1.5vw,1.18rem);line-height:1.2;
  font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.kd-news{margin-top:3.5rem;padding:1.3rem 1.5rem;border:0;border-left:4px solid #006b3e;
  border-radius:0 12px 12px 0;background:#f1f8f4}
.kd-news-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.kd-news-head h2{margin:.12rem 0 0;font-size:1.35rem}
.kd-news-head>a,.kd-news-status a{color:#006b3e;font-weight:700;text-decoration:none}
.kd-news-head>a:hover,.kd-news-status a:hover{text-decoration:underline}
.kd-news-grid{display:block;border-top:1px solid #cbded4}
.kd-news-card{display:grid;grid-template-columns:8.75rem minmax(0,1fr) auto;align-items:center;gap:1.1rem;
  min-height:0;padding:1rem 0;border:0;border-bottom:1px solid #cbded4;border-radius:0;
  background:transparent;color:#1a1a2e;text-decoration:none}
.kd-news-card time{margin:0;color:#66736c;font-size:.76rem}
.kd-news-card strong{font-size:1rem;line-height:1.38;transition:color .15s}
.kd-news-card span{margin:0;padding:0;color:#006b3e;font-size:.82rem;font-weight:700;white-space:nowrap}
.kd-news-card span::after{content:' ›';font-size:1.05rem}
.kd-news-card:hover strong{color:#006b3e}
.kd-news-status{margin:0;color:#4b5563;font-size:.92rem}
.kd-notifications-panel{max-width:860px;margin:0 auto}
.kd-notifications-head{margin-bottom:1.35rem}
.kd-notifications-head h2{margin:.15rem 0 .45rem;font-size:1.45rem}
.kd-notifications-head>p:last-child{margin:0;color:#4b5563;line-height:1.55}
.kd-notification-list{border:1px solid #dfe7e3;border-radius:12px;background:#fff;overflow:hidden}
.kd-notification-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.25rem 1.35rem;border-bottom:1px solid #e8eeeb}
.kd-notification-row:last-child{border-bottom:0}
.kd-notification-copy{min-width:0}
.kd-notification-copy h3{margin:0 0 .3rem;font-size:1rem}
.kd-notification-copy p{margin:0;color:#4b5563;font-size:.88rem;line-height:1.5}
.kd-notification-status{display:inline-block;margin-top:.55rem;color:#6b7280;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.kd-notification-status.on{color:#006b3e}
.kd-notification-status.pending{color:#9a5b00}
.kd-switch{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;cursor:pointer}
.kd-switch input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.kd-switch-track{position:relative;width:48px;height:27px;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);transition:background .18s}
.kd-switch-track::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.24);transition:transform .18s}
.kd-switch input:checked+.kd-switch-track{background:#00874e}
.kd-switch input:checked+.kd-switch-track::after{transform:translateX(21px)}
.kd-switch input:focus-visible+.kd-switch-track{outline:3px solid rgba(0,168,90,.28);outline-offset:2px}
.kd-switch input:disabled+.kd-switch-track{cursor:not-allowed;opacity:.72}
.kd-notifications-note{margin:1rem 0 0;color:#6b7280;font-size:.82rem}
.kd-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.kd-shop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.15rem}
.kd-shop-head>div{max-width:680px}
.kd-account-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:.5rem}
.kd-account-actions .kd-btn{width:auto;padding:.6rem 1.2rem}
.kd-panel{border:1px solid #e5e7eb;border-radius:10px;padding:1.1rem 1.25rem;margin-bottom:1.25rem;background:#fff}
.kd-panel h2{font-size:1.05rem;font-weight:700;margin:0 0 .85rem}
.kd-bonus-panel{background:linear-gradient(135deg,#ecf7f1,#fff);border-color:#b7dfca}
.kd-bonus-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1.25rem}
.kd-bonus-head h2{margin-bottom:.3rem}
.kd-bonus-head p,.kd-bonus-note,.kd-bonus-negative{margin:0;color:#4b5563;font-size:.92rem}
.kd-bonus-balance{font-size:1.85rem;font-weight:800;color:#006b3e;white-space:nowrap}
.kd-bonus-note{margin-top:1rem;padding-top:.85rem;border-top:1px solid #cfe8db}
.kd-bonus-negative{margin-top:.75rem;padding:.7rem .85rem;border-radius:8px;background:#fff7ed;color:#9a3412}
.kd-bonus-history{margin-top:1rem}
.kd-bonus-history summary{cursor:pointer;color:#006b3e;font-weight:700}
.kd-bonus-history .kd-orders-wrap{margin-top:.75rem}
.kd-bonus-plus{color:#006b3e;font-weight:700}
.kd-bonus-minus{color:#9a3412;font-weight:700}
.kd-referral-panel{background:linear-gradient(135deg,#ecf7f1,#fff);border-color:#b7dfca}
.kd-referral-code{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin:.9rem 0 1rem;
  padding:.9rem 1rem;border:1px solid #b7dfca;border-radius:10px;background:#fff}
.kd-referral-code .kd-overview-label{width:100%}
.kd-referral-code strong{font-size:1.45rem;font-weight:800;color:#006b3e;letter-spacing:.04em}
.kd-referral-code .kd-btn{width:auto}
.kd-referral-copied{color:#006b3e;font-size:.85rem;font-weight:700}
.kd-referral-facts{display:grid;gap:.45rem;margin:0;padding-left:1.1rem;color:#4b5563;font-size:.92rem}
.kd-referral-facts strong{color:#006b3e}
.kd-referral-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.kd-referral-summary>div{padding:.85rem 1rem;border:1px solid #dfe7e3;border-radius:9px;background:#fbfdfc}
.kd-referral-summary strong{display:block;font-size:1.25rem;color:#006b3e}
.kd-referral-hint a{color:#006b3e;font-weight:700}
@media(max-width:640px){.kd-referral-summary{grid-template-columns:1fr}
  .kd-referral-code strong{width:100%}}
.kd-api-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.1rem}
.kd-api-head h2{margin:.1rem 0 .45rem;font-size:1.3rem}.kd-api-head p:not(.kd-account-eyebrow){margin:0;color:#4b5563;line-height:1.55}
.kd-api-balance{min-width:150px;padding:.9rem 1rem;border:1px solid #b7dfca;border-radius:10px;background:#ecf7f1;text-align:right}
.kd-api-balance span{display:block;color:#4b5563;font-size:.8rem}.kd-api-balance strong{display:block;color:#006b3e;font-size:1.25rem}
.kd-api-notice{margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #f0c36d;border-radius:8px;background:#fff8e6;color:#7a4a00}
.kd-api-packages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.kd-api-package{display:flex;flex-direction:column;gap:.35rem;padding:1rem;border:1px solid #dfe7e3;border-radius:9px;background:#fbfdfc}
.kd-api-package strong{font-size:1.05rem;color:#006b3e}.kd-api-package span{color:#4b5563;font-size:.86rem}.kd-api-package b{font-size:.92rem}
.kd-api-package .kd-btn{width:100%;margin-top:.45rem}.kd-api-fine{margin:.8rem 0 0}
.kd-api-key-create{display:flex;gap:.65rem;margin-bottom:1rem}.kd-api-key-create .kd-input{flex:1}.kd-api-key-create .kd-btn{width:auto;white-space:nowrap}
.kd-api-key{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;border-top:1px solid #edf0ef}
.kd-api-key>div{display:grid;gap:.15rem}.kd-api-key code{font-size:.84rem}.kd-api-key span{color:#6b7280;font-size:.78rem}.kd-api-key .kd-btn{width:auto}
.kd-api-secret{display:grid;gap:.45rem;margin:0 0 1rem;padding:1rem;border:1px solid #9fd1b7;border-radius:8px;background:#f0faf5}
.kd-api-secret code{display:block;overflow-wrap:anywhere;padding:.5rem;border-radius:5px;background:#10231b;color:#d5f5e5}.kd-api-secret label{font-size:.78rem;color:#4b5563}
.kd-api-code{overflow:auto;padding:1rem;border-radius:8px;background:#10231b;color:#d5f5e5;font-size:.83rem;line-height:1.6}
.kd-api-terms .kd-api-action{width:auto;margin-top:.75rem}
@media(max-width:850px){.kd-api-packages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.kd-api-head{display:block}.kd-api-balance{margin-top:1rem;text-align:left}.kd-api-packages{grid-template-columns:1fr}.kd-api-key-create{display:block}.kd-api-key-create .kd-btn{width:100%;margin-top:.6rem}.kd-api-key{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.kd-bonus-head{display:block}.kd-bonus-balance{margin-top:.6rem}}
.kd-kv{display:grid;grid-template-columns:180px 1fr;gap:.4rem 1rem;font-size:.92rem;margin:0}
.kd-kv dt{color:#4b5563}
.kd-kv dd{font-weight:600;margin:0}
@media(max-width:520px){.kd-kv{grid-template-columns:1fr}.kd-kv dt{margin-top:.4rem}}

/* Bestelltabelle */
.kd-orders-wrap{overflow-x:auto}
table.kd-orders{width:100%;border-collapse:collapse;font-size:.9rem;min-width:520px}
table.kd-orders th,table.kd-orders td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid #e5e7eb}
table.kd-orders th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#4b5563;font-weight:700}
table.kd-orders tr:last-child td{border-bottom:none}
.kd-inv{color:#006b3e;font-weight:600;text-decoration:none;white-space:nowrap}
.kd-inv:hover{text-decoration:underline}
.kd-repeat-order{display:inline-block;padding:.42rem .68rem;background:#006b3e;color:#fff;border-radius:7px;font-size:.78rem;font-weight:700;text-decoration:none;white-space:nowrap}
.kd-repeat-order:hover{background:#005430;color:#fff}
.kd-empty{color:#4b5563;font-size:.92rem;padding:.5rem 0;margin:0}

/* Kunden-Support */
.kd-support-lead{color:#4b5563;font-size:.92rem;margin:0 0 .85rem}
.kd-support{display:flex;flex-wrap:wrap;gap:.6rem}
.kd-support-item{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem .9rem;border:1px solid #e5e7eb;border-radius:8px;text-decoration:none;color:#1a1a2e;font-weight:600;font-size:.92rem;transition:border-color .15s,background .15s}
.kd-support-item:hover{border-color:#006b3e;background:#ecf7f1}
.kd-support-item svg{width:18px;height:18px;flex:0 0 auto;color:#006b3e}
.kd-support-coming{color:#6b7280;cursor:default}
.kd-support-coming:hover{border-color:#e5e7eb;background:transparent}
.kd-support-coming small{font-size:.78rem;font-weight:500}

/* Panel-Kopf mit Bearbeiten-Button + Pending-Hinweis */
.kd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.85rem}
.kd-panel-head h2{margin:0}
.kd-btn-inline{width:auto;padding:.42rem .95rem;font-size:.85rem}
.kd-pending{font-size:.8rem;color:#b45309;font-weight:600}

/* Beratungstermin */
.kd-termin-head{display:flex;gap:.9rem;align-items:center}
.kd-termin-ava{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid #ecf7f1}
.kd-slots{display:flex;flex-direction:column;gap:.55rem;max-height:340px;overflow-y:auto;border:1px solid #e5e7eb;border-radius:8px;padding:.7rem}
.kd-slotday-l{font-size:.8rem;font-weight:700;color:#4b5563;margin-bottom:.35rem}
.kd-slotrow{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.35rem}
.kd-slot{padding:.4rem .7rem;border:1px solid #cfd6e0;border-radius:6px;background:#fff;font:inherit;font-size:.85rem;font-weight:600;color:#1a1a2e;cursor:pointer;transition:border-color .1s,background .1s}
.kd-slot:hover{border-color:#006b3e}
.kd-slot.sel{background:#006b3e;color:#fff;border-color:#006b3e}

html[data-theme="dark"] .kd-account-tabs{background:#111;border-color:var(--border,#666)}
html[data-theme="dark"] .kd-account-tab{color:var(--muted,#c6c6c6)}
html[data-theme="dark"] .kd-account-tab:hover,
html[data-theme="dark"] .kd-account-tab.active{background:var(--bg,#1d1d1d);color:var(--green,#4ade80)}
html[data-theme="dark"] .kd-account-welcome{background:linear-gradient(135deg,#123628,#1d1d1d 72%);border-color:#2c684d}
html[data-theme="dark"] .kd-account-welcome h2,
html[data-theme="dark"] .kd-shop-head h2{color:var(--text,#f3f3f3)}
html[data-theme="dark"] .kd-account-welcome p:not(.kd-account-eyebrow),
html[data-theme="dark"] .kd-shop-head p:not(.kd-account-eyebrow),
html[data-theme="dark"] .kd-overview-tile>span:not(.kd-overview-label){color:var(--muted,#c6c6c6)}
html[data-theme="dark"] .kd-account-eyebrow,
html[data-theme="dark"] .kd-overview-label{color:var(--green,#4ade80)}
html[data-theme="dark"] .kd-overview-tile,
html[data-theme="dark"] .kd-panel,
html[data-theme="dark"] .kd-news{background:#17241d;border-color:var(--green,#4ade80);color:var(--text,#f3f3f3)}
html[data-theme="dark"] .kd-news-grid,
html[data-theme="dark"] .kd-news-card{border-color:#3f5448}
html[data-theme="dark"] .kd-news-card{background:transparent;color:var(--text,#f3f3f3)}
html[data-theme="dark"] .kd-news-card time,
html[data-theme="dark"] .kd-news-status{color:var(--muted,#c6c6c6)}
html[data-theme="dark"] .kd-news-card span,
html[data-theme="dark"] .kd-news-head>a,
html[data-theme="dark"] .kd-news-status a{color:var(--green,#4ade80)}
html[data-theme="dark"] .kd-notification-list{background:#17241d;border-color:#3f5448}
html[data-theme="dark"] .kd-notification-row{border-color:#3f5448}
html[data-theme="dark"] .kd-notifications-head>p:last-child,
html[data-theme="dark"] .kd-notification-copy p,
html[data-theme="dark"] .kd-notifications-note{color:var(--muted,#c6c6c6)}
html[data-theme="dark"] .kd-notification-status.on{color:var(--green,#4ade80)}

@media(max-width:800px){
  .kd-overview-grid{grid-template-columns:1fr 1fr}
  .kd-overview-last{grid-column:1/-1}
  .kd-news-card{grid-template-columns:1fr;gap:.35rem}
}
@media(max-width:640px){
  .kd-main{padding:28px .8rem}
  .kd-konto-card{padding:22px 16px}
  .kd-account-titlebar{align-items:flex-start;flex-wrap:wrap}
  .kd-account-title-actions{width:100%;justify-content:flex-end}
  .kd-account-tabs{margin:1.1rem 0}
  .kd-account-tab{padding:.58rem .72rem}
  .kd-account-welcome{display:block;padding:1.2rem}
  .kd-account-primary{margin-top:1rem}
  .kd-account-cta{margin-top:1rem}
  .kd-account-cta .kd-account-primary{margin-top:0}
  .kd-shop-head{display:block}
  .kd-notification-row{padding:1.1rem;gap:1rem}
}
@media(max-width:480px){
  .kd-overview-grid{grid-template-columns:1fr}
  .kd-overview-last{grid-column:auto}
  .kd-news{margin-top:2.5rem;padding:1rem}
  .kd-news-head{align-items:flex-start;flex-direction:column}
}

/* ============================================================
   Konto-Dashboard und eingebettetes Shop-Widget. Die Kopfkarte nutzt in
   jedem Tab dieselbe Shop-Breite. Der wechselnde Inhalt liegt ausserhalb
   der Kopfkarte, damit deren Hintergrund und Geometrie stabil bleiben.
   ============================================================ */
#kd-konto-shop{display:none}
#kd-konto-shop.kd-on{display:block}
.kd-main.kd-account-main{max-width:1280px;padding:44px 0 0;min-height:0;display:block}
.kd-konto-card.wide.kd-account-shell{max-width:100%;padding:28px 24px;box-sizing:border-box}
.kd-account-shell .kd-account-tabs{margin:1.25rem 0 0}
#kd-account-content{width:100%;padding:0 24px;margin-top:32px;box-sizing:border-box}
#kd-account-panel{min-height:0;padding:0}
/* Nicht-Shop-Panels beginnen kompakt und schaffen den grossen Freiraum erst
   nach der letzten Karte. Der Shop bleibt davon vollstaendig ausgenommen. */
html[data-kd-theme-page="typ-konto"] #kd-account-panel{padding-bottom:96px}
html[data-kd-theme-page="typ-konto"] #kd-account-panel>:last-child{margin-bottom:0}
html[data-kd-theme-page="typ-shop"] #kd-account-content{margin-top:48px}
html[data-kd-theme-page="typ-shop"] .kd-shop-head{margin-bottom:.6rem}
html[data-kd-theme-page="typ-shop"] #kd-konto-shop>section{padding-top:0!important}
html[data-kd-theme-page="typ-shop"] #kd-shop-body{margin-top:-8px}
@media(max-width:640px){
  .kd-main.kd-account-main{padding:28px 0 0}
  .kd-konto-card.wide.kd-account-shell{padding:22px 24px 28px}
  #kd-account-content{padding:0 24px;margin-top:32px}
}
