/* Kundenkonto: Anmelden/Registrieren (zwei Karten wie celinasuchy.com) und Kontobereich.
   Kasse: Hinweis „Angemeldet als …“ und steuerfreie Lieferung. */

.konto { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.konto__title { margin: 0 0 clamp(20px, 2.4vw, 32px); font-family: var(--disp); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); letter-spacing: -.01em; }
.konto__hello { margin: -12px 0 24px; color: #555; font-size: .95rem; }

/* Anmeldung: links schmale Karte, rechts breite Karte */
.konto-login { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.konto-card { min-width: 0; padding: clamp(20px, 2.2vw, 28px); border: 1px solid #e1e3e6; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.konto-card__title { margin: 0 0 6px; font-family: var(--sans); font-size: 1.12rem; font-weight: 600; }
.konto-card__lead { margin: 0 0 18px; color: #666; font-size: .98rem; }
.konto-benefits { margin-top: 24px; }
.konto-benefits h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.konto-benefits ul { margin: 0; padding-left: 20px; color: #555; line-height: 1.7; }
.konto-code { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Formulare */
.konto-form { display: grid; gap: 14px; }
.konto-form[hidden] { display: none; }
.konto-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.konto-row--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.konto-field { display: grid; gap: 6px; min-width: 0; font-size: .86rem; font-weight: 600; color: #333; }
.konto-field input, .konto-field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #ccced1; border-radius: 6px; background: #fff;
  font: 400 1rem var(--sans); color: var(--ink);
}
.konto-field input:focus, .konto-field select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.konto-field input[aria-invalid="true"] { border-color: #c0392b; }
.konto-field--short { max-width: 240px; }
.konto-field--code input { max-width: 200px; font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.konto-password { position: relative; display: block; }
.konto-password input { padding-right: 48px; }
.konto-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: #444; cursor: pointer; }
.konto-kind { display: flex; gap: 10px; margin: 0; padding: 0; border: 0; }
.konto-kind legend { margin-bottom: 8px; font-size: .86rem; font-weight: 600; }
.konto-kind label { position: relative; }
.konto-kind input { position: absolute; opacity: 0; }
.konto-kind span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border: 1px solid #ccced1; border-radius: 6px; font-weight: 600; cursor: pointer; }
.konto-kind input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.konto-kind input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.konto-hint, .konto-legal { margin: 0; color: #666; font-size: .86rem; line-height: 1.5; }
.konto-legal a { text-decoration: underline; text-underline-offset: 3px; }
.konto-btn { justify-self: start; min-width: 160px; border-radius: 6px; padding: 14px 26px; }
.konto-btn--wide { justify-self: stretch; }
.konto-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font: 500 .95rem var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.konto-form .form-status { margin: 0; min-height: 1.2em; font-size: .92rem; }
.konto-form .form-status.is-error, .konto-delete .form-status.is-error { color: #b42318; }
.konto-check { display: flex; gap: 10px; align-items: center; font-size: .98rem; }
.konto-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.konto-address { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.konto-address[hidden] { display: none; }

/* Kontobereich: Navigation links, Inhalt rechts */
.konto-area { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.konto-nav { display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.konto-nav a, .konto-nav__logout { display: block; padding: 11px 14px; border: 0; border-radius: 8px; background: none; color: #444; font: 500 1rem var(--sans); text-align: left; cursor: pointer; }
.konto-nav a:hover, .konto-nav__logout:hover { background: #f0f2f5; color: var(--ink); }
.konto-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.konto-nav__logout { margin-top: 10px; color: #777; }
.konto-area__main { display: grid; gap: clamp(20px, 2.4vw, 28px); min-width: 0; }
.konto-area__main[hidden] { display: none; }
.konto-area__loading { margin: 0; color: #666; }
.konto-panel { padding: clamp(20px, 2.2vw, 28px); border: 1px solid #e1e3e6; border-radius: 12px; background: #fff; }
.konto-panel__title { margin: 0 0 4px; padding: 0; font-family: var(--sans); font-size: 1.1rem; font-weight: 600; }
.konto-vat { margin: 0; padding: 10px 14px; border-radius: 6px; background: #fff5e6; font-size: .9rem; }
.konto-vat.is-ok { background: #e9f6ee; }
.konto-delete p { margin: 0 0 12px; color: #555; line-height: 1.55; }
.konto-delete__confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 8px; background: #fdf0ef; }
.konto-delete__confirm p { flex-basis: 100%; margin: 0; color: var(--ink); }
.konto-delete__confirm[hidden] { display: none; }

/* Bestellungen */
.konto-orders { display: grid; gap: 14px; }
.konto-order { padding: 18px 20px; border: 1px solid #e1e3e6; border-radius: 12px; background: #fff; }
.konto-order__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.konto-order__title { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.konto-order__meta { color: #666; font-size: .92rem; }
.konto-order__total { margin-left: auto; font-size: 1rem; }
.konto-order__items { margin: 10px 0 0; padding-left: 18px; color: #444; line-height: 1.6; }
.konto-order__invoice { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.konto-empty { padding: 28px; border: 1px dashed #d3d5d8; border-radius: 12px; text-align: center; }
.konto-empty p { margin: 0 0 14px; color: #555; }

/* Kasse */
.checkout-account { margin: 0 0 6px; padding: 12px 14px; border-radius: 8px; background: #f1f3f6; font-size: .95rem; }
.checkout-account a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .konto-login, .konto-area { grid-template-columns: 1fr; }
  .konto-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .konto-nav a, .konto-nav__logout { padding: 9px 14px; border: 1px solid #e1e3e6; }
  .konto-nav__logout { margin-top: 0; }
}
@media (max-width: 560px) {
  .konto-row, .konto-row--zip { grid-template-columns: 1fr; }
  .konto-btn { justify-self: stretch; }
}

/* Felder und Knöpfe wie auf der Produktseite, Privat/Firma als Umschalter, Vorteile als kurze Häkchenliste */
[data-account-page] .konto-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.konto-card__title { margin-bottom: 10px; font-family: var(--disp); font-size: clamp(1.2rem, 1.1rem + .3vw, 1.4rem); font-weight: 600; }
.konto-card__lead { color: #4a4a4a; }
ul.konto-benefits { display: grid; gap: 8px; margin: 4px 0 22px; padding: 0; list-style: none; }
ul.konto-benefits li { position: relative; padding-left: 28px; font-size: .98rem; line-height: 1.45; color: var(--ink); }
ul.konto-benefits li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.konto-field { color: var(--ink); font-weight: 500; font-size: .9rem; }
.konto-field input, .konto-field select { border: 1px solid var(--feld-rand, #ccced1); border-radius: 10px; }
.konto-field input:focus, .konto-field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 20, .08); }
.konto-btn, .konto-btn--wide { justify-self: stretch; min-height: 54px; border-radius: 10px; font-weight: 600; }
.konto-kind { display: inline-flex; gap: 0; padding: 4px; border: 1px solid var(--feld-rand, #ccced1); border-radius: 999px; justify-self: start; }
.konto-kind legend { float: left; width: 100%; margin: 0 0 8px; }
.konto-kind span { min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 500; }
.konto-kind input:checked + span { background: var(--ink); color: #fff; }
.konto-field--short { max-width: 220px; }
.konto-kind legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Anmelden / Registrieren (Celina 25.10.2026): eine Karte mit zwei Reitern, nur der gewählte ist zu sehen; die Garnrolle
   mit Laptop schaut oben über den Kartenrand. Vor dem Skript entscheidet #registrieren (:target), danach data-tab (konto.js). */
.konto-auth { position: relative; max-width: 500px; margin: 92px auto 0; padding: 88px clamp(18px, 4vw, 36px) clamp(22px, 4vw, 36px);
  border: 1px solid #e3e6ea; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px -34px rgba(20, 40, 80, .35); }
.konto-auth__maskottchen { position: absolute; left: 50%; top: 0; width: 170px; transform: translate(-50%, -56%); }
.konto-auth__maskottchen::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 112%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: radial-gradient(circle, #eaf3fd 56%, transparent 57%), radial-gradient(circle, #9cc3f3 1.6px, transparent 2px) 0 0 / 9px 9px; }
.konto-auth__maskottchen img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(20, 40, 80, .16)); }
.konto-auth { isolation: isolate; }
.konto-auth .konto__title { margin: 0 0 18px; text-align: center; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); }
.konto-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.konto-tab { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-weight: 500; font-size: 1.06rem; color: #6a6e75; }
.konto-tab[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.konto-tab:not([aria-selected="true"]):hover { color: var(--ink); }
[data-account-page] .konto-auth .konto-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
/* Ohne Skript: Anmelden, bei #registrieren die Registrierung; mit Skript bestimmt data-tab */
.konto-auth:not([data-tab]) #registrieren, .konto-auth:not([data-tab]):has(#registrieren:target) #anmelden { display: none; }
.konto-auth:not([data-tab]):has(#registrieren:target) #registrieren { display: block; }
.konto-auth:not([data-tab]):has(#registrieren:target) #konto-tab-anmelden { border-bottom-color: transparent; color: #6a6e75; font-weight: 500; }
.konto-auth:not([data-tab]):has(#registrieren:target) #konto-tab-registrieren { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.konto-auth[data-tab="anmelden"] #registrieren, .konto-auth[data-tab="registrieren"] #anmelden { display: none; }
.konto-panel-tab { scroll-margin-top: 200px; }
/* Code-Schritt: Reiter ausblenden, nur noch der Code */
.konto-auth:has([data-account-code]:not([hidden])) .konto-tabs { display: none; }
ul.konto-benefits { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: #f6f3ee; }
@media (max-width: 560px) {
  .konto { padding-top: 12px; }
  .konto-auth { margin-top: 74px; padding-top: 80px; border-radius: 18px; }
  .konto-auth__maskottchen { width: 136px; }
}

/* Reiterwechsel (Celina 25.10.2026): der gewählte Teil blendet Zeile für Zeile von rechts nach links ein, ruhig und weich.
   Nur der Formularbereich schneidet seitlich ab (Safari schneidet bei overflow-x: clip auch oben ab: Maskottchen und Reiter
   bleiben deshalb außerhalb); der Innenabstand lässt Fokusringe sichtbar. */
@keyframes konto-auf { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
[data-account-page] .konto-auth .konto-panel-tab { overflow: hidden; margin: -4px -6px; padding: 4px 6px; }
.konto-auth[data-tab] .konto-panel-tab > :not(form), .konto-auth[data-tab] .konto-panel-tab > .konto-form > :not([hidden]) {
  animation: konto-auf .8s cubic-bezier(.16, 1, .3, 1) both; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(2) { animation-delay: .07s; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(3) { animation-delay: .14s; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(4) { animation-delay: .21s; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(5) { animation-delay: .28s; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(6) { animation-delay: .35s; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(7) { animation-delay: .42s; }
.konto-auth[data-tab] .konto-panel-tab > .konto-form > :nth-child(n+8) { animation-delay: .49s; }
@media (prefers-reduced-motion: reduce) { .konto-auth[data-tab] .konto-panel-tab * { animation: none !important; } }

/* Breite Karte am Computer (Celina 26.10.2026: „ein bisschen sehr schmal“, man musste scrollen): links auf warmem Grund
   Garnrolle, Begrüßung und die Vorteile, rechts Reiter und Formular. Privat/Firma und Anrede teilen sich eine Zeile, damit
   beide Reiter samt Knopf ohne Scrollen passen. Handy und Tablet hochkant behalten die schmale Karte. */
ul.konto-auth__vorteile { display: none; }
@media (min-width: 960px) {
  .konto { padding-top: 36px; }
  .konto-auth { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr;
    column-gap: clamp(36px, 4vw, 56px); align-items: start; max-width: 980px; margin-top: 88px; padding: 0 clamp(32px, 3.6vw, 52px) 0 0; }
  .konto-auth__seite { position: relative; isolation: isolate; grid-column: 1; grid-row: 1 / -1; align-self: stretch;
    padding: 104px 32px 36px; border-radius: 19px 0 0 19px; background: #f6f3ee; }
  .konto-auth__maskottchen { width: 172px; transform: translate(-50%, -48%); }
  .konto-auth .konto__title { margin-bottom: 20px; }
  ul.konto-auth__vorteile { display: grid; margin: 0; padding: 0; border-radius: 0; background: none; }
  [data-account-page] .konto-auth .konto-panel-tab > .konto-benefits { display: none; }
  .konto-tabs { grid-column: 2; grid-row: 1; margin-top: 30px; }
  [data-account-page] .konto-auth .konto-panel-tab { grid-column: 2; grid-row: 2; margin-bottom: 30px; }
  .konto-auth [data-account-register] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: 16px; }
  .konto-auth [data-account-register] > * { grid-column: 1 / -1; }
  .konto-auth [data-account-register] > .konto-kind { grid-column: 1; align-self: end; }
  .konto-auth [data-account-register] > .konto-field--short { grid-column: 2; max-width: none; }
  .konto-auth:has([data-account-code]:not([hidden])) .konto-panel-tab { margin-top: 30px; }
  .konto-auth .konto-code { margin-top: 0; padding-top: 0; border-top: 0; }
}
/* Am Computer und Tablet passt die Karte auf den Bildschirm: #registrieren öffnet ohne Sprung nach unten */
@media (min-width: 700px) { .konto-panel-tab { scroll-margin-top: 100vh; } }

/* Meine Logos (Bestellungen-Seite): Bild links, daneben Name, Stand und die Links zum Nachbestellen */
.konto-logos { margin-top: 28px; }
.konto-logos__liste { display: grid; gap: 14px; margin-top: 14px; }
.konto-logo { display: flex; gap: 16px; align-items: flex-start; }
.konto-logo img { flex: none; width: 96px; height: 96px; object-fit: contain; border: 1px solid #e3e6ea; border-radius: 12px; background: #fff; }
.konto-logo__info { display: grid; gap: 4px; min-width: 0; font-size: .95rem; }
.konto-logo__links { margin: 4px 0 0; line-height: 1.6; }
.konto-logo__links a { text-decoration: underline; text-underline-offset: 3px; }
