/* Schnackphone-Konfigurator – helles Theme (nutzt die Tokens aus styles.css).
   Klassen mit Prefix kfc-, damit nichts mit dem nativen Formular (.kf-*) kollidiert.
   Das Kontakt-Formular im letzten Schritt nutzt bewusst die bestehenden .kf-* Stile. */

#kf-app { max-width: var(--container); margin: 0 auto; color: var(--text); font-family: var(--font-sans); text-align: left; }
#kf-app .shell { }

/* Kopf + Schritt-Leiste */
#kf-app .top { text-align: center; margin-bottom: 26px; }
#kf-app .konftitle h1 { font-family: var(--font-head); color: var(--heading); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 4px; }
#kf-app .konftitle h1 span { color: var(--gold-deep); }
#kf-app .konftitle p { color: var(--muted); margin: 0 0 20px; }
#kf-app .steps { display: flex; justify-content: center; gap: 0; flex-wrap: nowrap; max-width: 620px; margin: 0 auto; }
#kf-app .steps button { flex: 1 1 0; background: none; border: 0; cursor: pointer; font-family: inherit; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; position: relative; font-size: 12.5px; font-weight: 700; }
#kf-app .steps button .n { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; position: relative; z-index: 2; transition: .15s; }
#kf-app .steps button::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 1; }
#kf-app .steps button:first-child::before { display: none; }
#kf-app .steps button.active .n { background: var(--gold); border-color: var(--gold); color: #fff; }
#kf-app .steps button.active { color: var(--gold-deep); }
#kf-app .steps button.done .n { background: var(--gold); border-color: var(--gold); color: #fff; }
#kf-app .steps button.done::before { background: var(--gold); }
#kf-app .steps button[disabled] { cursor: default; opacity: .75; }
#kf-app .steps button .lbl { white-space: nowrap; }

/* Layout: Formular + Seitenpanel */
#kf-app .grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
#kf-app .kfc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow); }
#kf-app .kfc-eyebrow { color: var(--gold-deep); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.3px; margin: 0 0 4px; }
#kf-app .kfc-q { font-family: var(--font-head); color: var(--heading); font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 16px; }
#kf-app .kfc-hint { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }

/* Telefon-Karten */
#kf-app .kfc-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#kf-app .kfc-prod { background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; color: var(--text); padding: 0; font-family: inherit; transition: .15s; display: flex; flex-direction: column; }
#kf-app .kfc-prod:hover { border-color: var(--gold); box-shadow: var(--shadow); }
#kf-app .kfc-prod.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
#kf-app .kfc-ph { position: relative; aspect-ratio: 4/3; background: var(--cream-2) center/cover no-repeat; }
#kf-app .kfc-pb { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
#kf-app .kfc-pn { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--heading); }
#kf-app .kfc-pp { color: var(--gold-deep); font-weight: 800; font-size: 1.05rem; margin: 2px 0; }
#kf-app .kfc-pp .kfc-pu { color: var(--muted); font-weight: 600; font-size: 12px; }
#kf-app .kfc-px { color: var(--text); font-size: 13.5px; margin-bottom: 8px; }
#kf-app .kfc-feat { list-style: none; margin: 6px 0 0; padding: 0; }
#kf-app .kfc-feat li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--text); }
#kf-app .kfc-feat li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* Lieferung */
#kf-app .kfc-lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#kf-app .kfc-lcard { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 22px 18px; cursor: pointer; text-align: center; transition: .15s; }
#kf-app .kfc-lcard:hover { border-color: var(--gold); box-shadow: var(--shadow); }
#kf-app .kfc-lcard.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
#kf-app .kfc-licon { font-size: 30px; }
#kf-app .kfc-ln { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--heading); margin-top: 6px; white-space: nowrap; }
#kf-app .kfc-lp { color: var(--gold-deep); font-weight: 800; margin: 3px 0 6px; }
#kf-app .kfc-lx { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* Zubehör */
#kf-app .kfc-xgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#kf-app .kfc-xt { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 20px 18px; cursor: pointer; text-align: center; transition: .15s; display: flex; flex-direction: column; }
#kf-app .kfc-tagwrap { margin-top: auto; padding-top: 10px; }
#kf-app .kfc-xt:hover { border-color: var(--gold); box-shadow: var(--shadow); }
#kf-app .kfc-xt.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
#kf-app .kfc-xt.locked { cursor: default; opacity: .9; }
#kf-app .kfc-box { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
#kf-app .kfc-xt.on .kfc-box { background: var(--gold); border-color: var(--gold); color: #fff; }
#kf-app .kfc-t { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
#kf-app .kfc-s { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 4px 0 8px; }
#kf-app .kfc-tag { display: inline-block; font-weight: 800; font-size: 14px; }
#kf-app .kfc-tag.plus { color: var(--gold-deep); }
#kf-app .kfc-tag.inkl { color: #2e8b57; }
#kf-app .kfc-inklnote { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* Navigation unten */
#kf-app .kfc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
#kf-app .kfc-nav .next { margin-left: auto; }
#kf-app .kfc-btn { font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 999px; padding: 11px 22px; border: 2px solid var(--gold); background: #fff; color: var(--gold-deep); transition: .15s; }
#kf-app .kfc-btn.next { background: var(--gold); color: #fff; }
#kf-app .kfc-btn:hover { filter: brightness(1.03); box-shadow: var(--shadow); }

/* Angebots-Box im Kontaktschritt + Seitenpanel */
#kf-app .side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
#kf-app .side h3 { font-family: var(--font-head); color: var(--heading); font-size: 1.1rem; margin: 0 0 12px; }
#kf-app .kfc-empty { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
#kf-app .kfc-prow { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
#kf-app .kfc-prow .v { font-weight: 700; white-space: nowrap; color: var(--heading); }
#kf-app .kfc-prow.muted, #kf-app .kfc-prow.muted .v { color: var(--muted); font-weight: 600; }
#kf-app .kfc-ptotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
#kf-app .kfc-ptotal .l { font-weight: 700; color: var(--heading); }
#kf-app .kfc-ptotal .v { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--gold-deep); }
#kf-app .kfc-fine { color: var(--muted); font-size: 11.5px; line-height: 1.4; margin: 8px 0 0; }

#kf-app .kfc-sumbox { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
#kf-app .kfc-sumtop { display: flex; justify-content: space-between; align-items: baseline; }
#kf-app .kfc-sumtop b { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-deep); }
#kf-app .kfc-sumrows { margin-top: 8px; }
#kf-app .kfc-sumfine { color: var(--muted); font-size: 11.5px; line-height: 1.4; margin-top: 8px; }

/* Kontaktschritt-Formular: etwas Abstand der Fieldsets */
#kf-app .kfc-form .kf-group { margin-bottom: 18px; }
#kf-app .kfc-submit { width: 100%; margin-top: 4px; }
#kf-app .kfc-ctahint { color: var(--muted); font-size: 12.5px; text-align: center; margin: 8px 0 0; }

/* Danke-Ansicht */
#kf-app .kfc-done { text-align: center; }
#kf-app .kfc-done-ico { font-size: 48px; }
#kf-app .kfc-done p { color: var(--text); max-width: 460px; margin: 10px auto 20px; line-height: 1.6; }

/* Mobile-Leiste (unten fixiert) */
#kf-app .mbar { display: none; }

@media (max-width: 860px) {
  #kf-app .grid { grid-template-columns: 1fr; }
  #kf-app .side { display: none; }
  #kf-app .kfc-prods { grid-template-columns: 1fr; }
  #kf-app .mbar { display: flex; position: sticky; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(66,43,26,.1); padding: 10px 16px; margin: 14px -16px 0; }
  #kf-app .mbar .l { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
  #kf-app .mbar .v { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--gold-deep); }
  #kf-app .mbar .btn { margin: 0; }
}
@media (max-width: 520px) {
  #kf-app .kfc-lgrid, #kf-app .kfc-xgrid { grid-template-columns: 1fr; }
  #kf-app .kfc-panel { padding: 20px 16px 18px; }
  #kf-app .steps button .lbl { font-size: 11px; }
}

/* Farb-Auswahl (Basic: Weiß/Schwarz/Azurblau) – tauscht nur das Foto */
#kf-app .kfc-swatches { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(43, 28, 16, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 2; }
#kf-app .kfc-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); cursor: pointer; box-sizing: border-box; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
#kf-app .kfc-sw:hover { transform: scale(1.12); border-color: var(--gold); }
#kf-app .kfc-sw.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
#kf-app .kfc-sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
