/* Fuhrmeister Kostenkalkulator – CI: Nachtblau + Gold, Schrift Saira (lokal, keine Google-Verbindung) */
@font-face { font-family: 'FKK Saira'; src: url('fonts/saira-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'FKK Saira'; src: url('fonts/saira-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'FKK Saira'; src: url('fonts/saira-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'FKK Saira'; src: url('fonts/saira-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'FKK Saira'; src: url('fonts/saira-latin-800-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }

.fkk {
  --nacht: #111a2b;
  --tiefe: #0a101c;
  --flaeche: #18233a;
  --linie: #2b3854;
  --gold: #e9ac26;
  --gold-hell: #ffd56b;
  --text: #eef1f6;
  --leise: #a3acbd;
  --warn: #ff5a4f;
  --radius-gross: 18px;
  --radius-klein: 10px;
  font-family: 'FKK Saira', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: radial-gradient(120% 80% at 0% 0%, #1c2a46 0%, var(--nacht) 45%, var(--tiefe) 100%);
  border-radius: var(--radius-gross);
  padding: clamp(18px, 4vw, 44px);
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.fkk *, .fkk *::before, .fkk *::after { box-sizing: inherit; }
.fkk [hidden] { display: none !important; }
.fkk button, .fkk input { font: inherit; }

.fkk-head { max-width: 46rem; margin-bottom: clamp(20px, 3vw, 36px); }
.fkk-title {
  font-weight: 800; font-style: italic; letter-spacing: -0.01em;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; margin: 0 0 0.4em;
  color: var(--tiefe);
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-hell) 55%, var(--gold) 100%);
  display: inline-block; padding: 0.18em 0.5em 0.22em; border-radius: 12px;
  box-shadow: 0 10px 30px -12px rgba(233, 172, 38, 0.55);
}
.fkk-lede { color: var(--leise); margin: 0; font-size: 1.05rem; max-width: 40rem; }

.fkk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(18px, 3vw, 36px); align-items: start; }

.fkk-step { border-top: 1px solid var(--linie); padding: 22px 0 26px; }
.fkk-step:first-child { border-top: 0; padding-top: 0; }
.fkk-step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.fkk-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-style: italic;
  background: var(--gold); color: var(--tiefe); font-size: 1rem;
}
.fkk-sub { margin-top: 18px; }
.fkk-sub h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--gold-hell); }
.fkk-hint { color: var(--leise); font-size: 0.92rem; margin: 0 0 10px; max-width: 44rem; }
.fkk-note { font-size: 0.92rem; color: var(--text); background: rgba(233,172,38,0.08); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; margin: 12px 0 0; max-width: 44rem; }

.fkk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fkk-tab {
  border: 1px solid var(--linie); background: transparent; color: var(--text);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.fkk-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--tiefe); }
.fkk-tab:hover { border-color: var(--gold); }

.fkk-classes, .fkk-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fkk-tariffs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: start; }
.fkk-classes { align-items: start; }
.fkk-addons { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }

.fkk-choice {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 12px 14px 12px 42px; cursor: pointer; min-height: 56px;
}
.fkk-choice input { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.fkk-choice.is-on { border-color: var(--gold); background: linear-gradient(180deg, rgba(233,172,38,0.14), rgba(233,172,38,0.04)); }
.fkk-choice.is-off { cursor: default; opacity: 0.85; }
.fkk-choice:hover:not(.fkk-fixed):not(.is-off) { border-color: rgba(233,172,38,0.6); }
.fkk-choice-main { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 10px; font-weight: 600; }
.fkk-choice-main > .fkk-choice-price { margin-left: auto; }
.fkk-choice-price { color: var(--gold-hell); white-space: nowrap; font-weight: 700; }
.fkk-choice-sub { color: var(--leise); font-size: 0.86rem; line-height: 1.4; }
.fkk-tile {
  position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  display: flex; flex-direction: column;
}
.fkk-tile.is-on { border-color: var(--gold); background: linear-gradient(180deg, rgba(233,172,38,0.14), rgba(233,172,38,0.04)); }
.fkk-tile:hover:not(.is-off) { border-color: rgba(233,172,38,0.6); }
.fkk-tile-main { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 52px 12px 42px; cursor: pointer; min-height: 56px; }
.fkk-tile.is-off .fkk-tile-main { cursor: default; }
.fkk-tile-main input { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.fkk-info {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--gold); background: transparent; color: var(--gold-hell);
  font-weight: 700; font-style: italic; font-size: 0.95rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.fkk-info[aria-expanded="true"], .fkk-info:hover { background: var(--gold); color: var(--tiefe); }
.fkk-tile-info { margin: 0 14px 12px; padding: 10px 12px; border-radius: 8px; background: var(--tiefe); color: var(--text); font-size: 0.88rem; line-height: 1.5; }
.fkk-tile-info p { margin: 0 0 8px; }
.fkk-tile-info p:last-child, .fkk-tile-info ul:last-child { margin-bottom: 0; }
.fkk-tile-info ul { margin: 0 0 8px; padding-left: 18px; }
.fkk-tile-info li { margin-bottom: 4px; }
.fkk-tile-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px 12px; }
.fkk-tile-sub .fkk-choice { background: var(--tiefe); min-height: 0; }
.fkk-fixed { padding-left: 14px; cursor: default; background: transparent; border-style: dashed; }
.fkk-fixed.is-included .fkk-choice-price { color: #8fd18a; }

.fkk-counter {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 14px 16px; margin-bottom: 10px;
}
.fkk-counter.is-warn { border-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.fkk-counter-text { display: flex; flex-direction: column; gap: 2px; }
.fkk-counter-label { font-weight: 700; }
.fkk-counter-rate, .fkk-avg { color: var(--leise); font-size: 0.88rem; }
.fkk-avg strong { color: var(--gold-hell); }
.fkk-stepper { display: flex; align-items: center; gap: 6px; position: relative; }
.fkk-stepper input {
  width: 64px; text-align: center; font-weight: 800; font-size: 1.3rem;
  background: var(--tiefe); color: var(--text); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 4px;
  -moz-appearance: textfield;
}
.fkk-stepper input::-webkit-outer-spin-button, .fkk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fkk-btn-step {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: transparent;
  color: var(--gold-hell); font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.fkk-btn-step:hover { background: var(--gold); color: var(--tiefe); }
.fkk-alert {
  width: 28px; height: 28px; border-radius: 50%; background: var(--warn); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1.05rem; margin-left: 4px;
  animation: fkk-pulse 1.6s ease-out 2;
}
@keyframes fkk-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,79,0.7); } 100% { box-shadow: 0 0 0 12px rgba(255,90,79,0); } }
.fkk-warn-text { grid-column: 1 / -1; margin: 0; color: #ffb3ad; font-size: 0.9rem; font-weight: 600; }

/* Preisblatt – angelehnt an die gedruckte Preisübersicht */
.fkk-sheet {
  position: sticky; top: 24px;
  background: #fbf8f1; color: #151c2b; border-radius: var(--radius-gross);
  padding: 22px 22px 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  border-top: 8px solid var(--gold);
}
.fkk-sheet-head { display: flex; flex-direction: column; gap: 2px; }
.fkk-sheet-kicker { font-size: 0.85rem; color: #6a6250; font-weight: 600; }
.fkk-sheet-class { font-size: 1.35rem; font-weight: 800; font-style: italic; line-height: 1.15; }
.fkk-sheet-meta { font-size: 0.82rem; color: #6a6250; }
.fkk-total {
  margin: 16px -22px 0; padding: 14px 22px;
  background: linear-gradient(100deg, var(--gold), var(--gold-hell) 60%, var(--gold));
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.fkk-total span { font-weight: 700; font-style: italic; }
.fkk-total strong { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; font-style: italic; letter-spacing: -0.01em; }
.fkk-split { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; margin: 12px 0 6px; }
.fkk-split span { display: flex; justify-content: space-between; }
.fkk-details { margin: 8px 0 4px; border-top: 1px solid #e3dccb; padding-top: 8px; }
.fkk-details summary { cursor: pointer; font-weight: 700; color: #151c2b; padding: 4px 0; }
.fkk-details h5 { margin: 12px 0 6px; font-size: 0.9rem; font-style: italic; color: #8a6510; }
.fkk-list { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.fkk-list li { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.fkk-li-label { flex: 0 1 auto; }
.fkk-li-label small { display: block; color: #7a7363; font-size: 0.78rem; }
.fkk-li-dots { flex: 1 1 20px; border-bottom: 2px dotted #c9c0aa; transform: translateY(-4px); min-width: 16px; }
.fkk-li-amt { white-space: nowrap; font-weight: 700; }
.fkk-fine { font-size: 0.78rem; color: #6a6250; margin: 10px 0 12px; }
.fkk-actions { display: flex; flex-direction: column; gap: 10px; }
.fkk-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #4d4738; }
.fkk-field input { border: 1px solid #d7cfbb; border-radius: 8px; padding: 9px 10px; background: #fff; color: #151c2b; }
.fkk-btn { border-radius: 999px; padding: 11px 18px; font-weight: 700; cursor: pointer; border: 2px solid transparent; }
.fkk-btn-gold { background: var(--nacht); color: var(--gold-hell); border-color: var(--nacht); }
.fkk-btn-gold:hover { background: #000; }
.fkk-btn-line { background: transparent; color: var(--nacht); border-color: var(--nacht); }
.fkk-btn-line:hover { background: var(--nacht); color: var(--gold-hell); }
.fkk-mail { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #e3dccb; padding-top: 10px; }
.fkk-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: #4d4738; }
.fkk-consent input { margin-top: 3px; accent-color: var(--nacht); }
.fkk-consent a { color: #8a6510; }
.fkk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fkk-status { margin: 0; font-size: 0.85rem; font-weight: 600; min-height: 1.2em; }
.fkk-call { text-align: center; color: #151c2b; font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

/* Mobile Leiste */
.fkk-bar { display: none; }

/* Pop-up */
.fkk-modal { position: fixed; inset: 0; background: rgba(5, 8, 15, 0.72); display: grid; place-items: center; z-index: 99999; padding: 18px; }
.fkk-modal-card {
  background: #fbf8f1; color: #151c2b; border-radius: var(--radius-gross); max-width: 460px; width: 100%;
  padding: 26px 24px 22px; border-top: 8px solid var(--warn); text-align: left;
  animation: fkk-in 180ms ease-out;
}
@keyframes fkk-in { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.fkk-modal-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--warn); color: #fff; font-weight: 800; font-size: 1.6rem; display: grid; place-items: center; margin-bottom: 10px; }
.fkk-modal-card h4 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; font-style: italic; }
.fkk-modal-card p { margin: 0 0 16px; font-size: 0.98rem; }
.fkk-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Fokus sichtbar */
.fkk :focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 2px; }
.fkk-sheet :focus-visible, .fkk-modal-card :focus-visible { outline-color: #8a6510; }
.fkk-choice:has(input:focus-visible), .fkk-tile-main:has(input:focus-visible) { outline: 3px solid var(--gold-hell); outline-offset: 2px; }

@media (max-width: 920px) {
  .fkk-grid { grid-template-columns: 1fr; }
  .fkk-sheet { position: static; }
  .fkk { padding-bottom: 86px; }
  .fkk-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 9999;
    background: var(--tiefe); border: 1px solid var(--gold); border-radius: 14px; padding: 10px 12px 10px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  }
  .fkk-bar span { flex: 1; font-size: 0.85rem; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fkk-bar strong { font-size: 1.2rem; font-style: italic; color: var(--gold-hell); }
  .fkk-bar .fkk-btn-gold { background: var(--gold); color: var(--tiefe); border-color: var(--gold); padding: 8px 14px; }
}
@media (max-width: 520px) {
  .fkk-counter { grid-template-columns: 1fr; }
  .fkk-classes, .fkk-row, .fkk-addons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fkk-alert, .fkk-modal-card { animation: none; }
}

.fkk-info-head { margin: 18px 0 6px; font-size: 1rem; font-weight: 600; color: var(--gold-hell); }
.fkk-bullets { margin: 8px 0 0; padding-left: 20px; max-width: 44rem; color: var(--text); font-size: 0.93rem; }
.fkk-bullets li { margin-bottom: 5px; }
.fkk-bullets li::marker { color: var(--gold); }
.fkk-btn-step:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; color: var(--gold-hell); }
.fkk-tile-info ol { margin: 0 0 8px; padding-left: 20px; }
.fkk-tile-info ol li { margin-bottom: 4px; }
.fkk-tile-info a { color: var(--gold-hell); }
.fkk-fixed.is-included .fkk-choice-price { color: #8fd18a; }
/* Geöffnete Info: Kachel über die ganze Zeilenbreite, damit der Text lesbar bleibt */
.fkk-tile.is-open { grid-column: 1 / -1; }
.fkk-tile.is-open .fkk-tile-info { columns: 2 22rem; column-gap: 28px; }
.fkk-tile.is-open .fkk-tile-info > * { break-inside: avoid; }

.fkk-tile-sub-1 { grid-template-columns: 1fr; }
.fkk-sub-hint { margin: 0; font-size: 0.84rem; color: var(--leise); }

.fkk-contact { display: flex; flex-direction: column; align-items: center; gap: 6px; border-top: 1px solid #e3dccb; padding-top: 12px; }
.fkk-contact-label { font-weight: 700; font-size: 0.92rem; color: #151c2b; }
.fkk-contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fkk-contact-btn { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--nacht); color: var(--nacht); font-weight: 700; font-size: 0.86rem; text-decoration: none; }
.fkk-contact-btn:hover { background: var(--nacht); color: var(--gold-hell); }
.fkk-contact-num { font-size: 0.82rem; color: #6a6250; }

/* Theme-Pfeile (a::after) im Kalkulator unterdrücken */
.fkk a::after, .fkk a::before { content: none !important; display: none !important; }

/* Theme-Typografie für Beschriftungen (Elementor-Kit) im Kalkulator neutralisieren */
.fkk label.fkk-choice, .fkk label.fkk-tile-main, .fkk div.fkk-choice { font-family: inherit; font-size: 16px; line-height: 1.45; letter-spacing: normal; text-transform: none; font-weight: 400; }
.fkk label.fkk-field { font-family: inherit; font-size: 13.5px; line-height: 1.4; letter-spacing: normal; text-transform: none; font-weight: 400; }
.fkk label.fkk-consent { font-family: inherit; font-size: 13px; line-height: 1.45; letter-spacing: normal; text-transform: none; font-weight: 400; }
.fkk .fkk-choice-main { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
/* Preisblatt und Sprungziel unterhalb der festen Menüleiste der Website halten */
.fkk-sheet { scroll-margin-top: 120px; }
@media (min-width: 921px) {
  .fkk-sheet { top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; }
}
/* Mobile Leiste: rechts Platz für das runde Cookie-Symbol der Website lassen */
@media (max-width: 920px) {
  .fkk-bar { right: 78px; }
}
@media (max-width: 380px) {
  .fkk-bar span { display: none; }
}
