/* Klarhalt – Web-Rechner */
.calc { position: relative; z-index: 3; margin-top: -22px; padding-bottom: 20px; }
.calc-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: 32px; background: var(--white); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); overflow: hidden; }
.calc-form { padding: 34px 36px 30px; display: grid; gap: 26px; align-content: start; }
.calc-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.calc-step[hidden] { display: none; }
.calc-year { display: grid; gap: 8px; }
.calc-year-label { font-weight: 700; color: var(--navy); }
.calc-year .seg { grid-template-columns: repeat(2, 1fr); }
.step-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--blue); background: #EAF0FF; margin-top: 1px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field legend { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--navy); padding: 0; }
.field-hint { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.field-hint a { color: var(--blue); font-weight: 700; }

.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue); transform: rotate(45deg); pointer-events: none; }
.select select { width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); padding: 14px 44px 14px 16px; border-radius: 16px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s; }
.select select:hover { background: #F1F4FB; }
.select select:focus-visible, .money input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(47, 91, 211, .14); background: var(--white); }

.money { position: relative; display: flex; align-items: center; }
.money input { width: 100%; font: inherit; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); padding: 13px 120px 13px 16px; border-radius: 16px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-variant-numeric: tabular-nums; transition: box-shadow .2s, background .2s; }
.money input::placeholder { color: #A9B1C7; font-weight: 600; }
.money > span { position: absolute; right: 16px; font-size: 14px; font-weight: 700; color: var(--muted); pointer-events: none; }
.more .money input, .kid-adult .money input { font-size: 17px; padding: 11px 92px 11px 14px; }
.kid-adult .money input { padding-right: 40px; }

/* Checkboxen */
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); position: relative; flex-wrap: wrap; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 2px #C7D0E6; display: grid; place-items: center; transition: background .15s, box-shadow .15s; }
.check .box::after { content: ""; width: 11px; height: 6px; border-left: 2.6px solid var(--white); border-bottom: 2.6px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + .box { background: var(--blue); box-shadow: none; }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(47, 91, 211, .2), inset 0 0 0 2px var(--blue); }
.check input:disabled + .box { opacity: .55; }
.check.locked { cursor: default; }
.check.locked .check-text { color: var(--muted); }
.check-text { flex: 0 1 auto; min-width: 0; }
.check-text b { color: var(--apricot-dark); font-weight: 800; white-space: nowrap; }
.muted-row .check-text { color: var(--muted); }

/* Erklär-Knopf */
.info { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #EAF0FF; color: var(--blue); font: italic 800 13px/22px Georgia, serif; transition: background .2s, color .2s; }
.info:hover, .info[aria-expanded="true"] { background: var(--blue); color: var(--white); }
.info:focus-visible { outline: 3px solid rgba(47, 91, 211, .35); outline-offset: 2px; }
.info-pop { flex-basis: 100%; margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: #F3F6FE; box-shadow: inset 0 0 0 1px #D7E1FA; font-size: 14px; line-height: 1.55; color: #3A4566; font-weight: 500; animation: popin .25s ease-out; }
.info-pop b { display: block; color: var(--navy); font-size: 14.5px; margin-bottom: 4px; }
.info-pop small { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }

/* Kinder */
.kid-list { display: grid; gap: 10px; }
.kid { padding: 14px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.kid-head { display: flex; align-items: center; gap: 10px; }
.kid-head b { color: var(--navy); font-size: 15px; }
.kid-badge { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--white); background: linear-gradient(150deg, var(--apricot), var(--apricot-dark)); }
.kid-remove { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.kid-remove:hover { background: #FFE9E2; color: #C2410C; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-opt span { display: block; text-align: center; padding: 9px 4px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.seg-opt input:hover + span { color: var(--navy); background: var(--paper); }
.seg-opt input:checked + span { background: var(--blue); color: var(--white); box-shadow: 0 8px 16px -10px rgba(47, 91, 211, .9); }
.seg-opt input:focus-visible + span { outline: 3px solid rgba(47, 91, 211, .35); outline-offset: 1px; }
.kid-adult { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.mini { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mini .select select { font-size: 14.5px; padding: 11px 38px 11px 12px; background: var(--white); }
.mini .money input { background: var(--white); }
.add-kid { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; color: var(--blue); background: #EAF0FF; transition: background .2s; }
.add-kid:hover { background: #DCE6FF; }
.add-kid[hidden] { display: none; }

/* Weitere Angaben */
.more { border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.more summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { font-weight: 800; color: var(--navy); }
.more summary small { color: var(--muted); font-size: 13.5px; }
.more summary::after { content: ""; position: absolute; right: 22px; top: 22px; width: 8px; height: 8px; border-right: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue); transform: rotate(45deg); transition: transform .25s; }
.more[open] summary::after { transform: rotate(-135deg); top: 26px; }
.more-grid { padding: 4px 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.more-grid .field > label { font-size: 15px; }
.more-grid .toggles { grid-column: 1 / -1; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; }

/* Ergebnis */
.calc-result { position: relative; padding: 34px 32px 30px; color: var(--white); background: radial-gradient(420px 260px at 100% 0, rgba(255, 194, 61, .22), transparent 65%), radial-gradient(380px 300px at 0 100%, rgba(255, 133, 88, .16), transparent 65%), linear-gradient(165deg, #284CBE 0%, var(--blue-2) 60%, #16296B 100%); display: flex; flex-direction: column; gap: 18px; }
.res-empty { margin: auto 0; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 30px 6px; }
.res-empty b { font-size: 21px; letter-spacing: -.02em; }
.res-empty p { color: rgba(255, 255, 255, .78); max-width: 320px; font-size: 15px; }
.res-scale { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); margin-bottom: 6px; animation: float 6s ease-in-out infinite; }
.res-scale img { border-radius: 18px; }
.res-top { display: grid; gap: 6px; }
.res-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--apricot-soft); }
.res-amount { font-size: clamp(44px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; animation: amount .35s ease-out; }
@keyframes amount { from { opacity: .4; transform: translateY(4px); } }
.res-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.res-tags .tag { background: rgba(255, 255, 255, .14); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.res-tags .tag.ok { background: rgba(127, 224, 168, .18); color: #A8F0C6; }
.res-tags .tag.warn { background: rgba(255, 194, 61, .2); color: var(--sun); }
.res-ll { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.res-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-kids li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.res-kids li div { display: grid; min-width: 0; }
.res-kids li b { font-size: 15px; }
.res-kids li span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.res-kids li strong { font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-alert, .res-note-line { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.res-alert { background: rgba(255, 194, 61, .16); box-shadow: inset 0 0 0 1px rgba(255, 194, 61, .35); color: #FFE7B3; }
.res-alert b { color: var(--sun); }
.res-note-line { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); }
.calc-result .info { background: rgba(255, 255, 255, .16); color: var(--white); }
.calc-result .info-pop { background: rgba(255, 255, 255, .96); }
.res-steps { border-radius: 16px; background: rgba(8, 16, 48, .28); }
.res-steps summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 800; font-size: 15px; position: relative; }
.res-steps summary::-webkit-details-marker { display: none; }
.res-steps summary::after { content: ""; position: absolute; right: 18px; top: 19px; width: 7px; height: 7px; border-right: 2.2px solid var(--sun); border-bottom: 2.2px solid var(--sun); transform: rotate(45deg); transition: transform .25s; }
.res-steps[open] summary::after { transform: rotate(-135deg); top: 22px; }
.res-steps ol { list-style: none; margin: 0; padding: 0 16px 6px; }
/* Rows wrap instead of widening the page: a long value (e.g. "Gruppe 2 (2.101 bis 2.500 €)") drops below its label,
   still right-aligned. */
.res-steps li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 9px 0; border-top: 1px dashed rgba(255, 255, 255, .14); font-size: 14px; }
.res-steps li span { min-width: 0; color: rgba(255, 255, 255, .78); }
.res-steps li b { margin-left: auto; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-steps li.sum span, .res-steps li.sum b { color: var(--white); font-weight: 800; }
.res-src { padding: 4px 16px 14px; font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.res-src a { color: var(--apricot-soft); }
.res-disclaimer { font-size: 12.5px; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.res-app { margin-top: auto; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--white); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background .2s; }
.res-app:hover { background: rgba(255, 255, 255, .16); }
.res-app img { border-radius: 12px; flex: none; }
.res-app > span { display: grid; gap: 2px; }
.res-app b { font-size: 15px; }
.res-app small { font-size: 13px; color: rgba(255, 255, 255, .75); }
.calc-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
.calc-privacy svg { color: var(--green); flex: none; }

@media (max-width: 980px) {
  .calc-shell { grid-template-columns: minmax(0, 1fr); }
  .calc-result { min-height: 0; }
}
@media (max-width: 720px) {
  .calc { margin-top: -18px; }
  .calc .wrap { padding: 0 10px; }
  .calc-shell { border-radius: 26px; }
  .calc-form { padding: 24px 16px 20px; gap: 22px; }
  .calc-step { grid-template-columns: 1fr; gap: 10px; }
  .step-no { display: none; }
  .calc-result { padding: 26px 18px 22px; }
  .more-grid { grid-template-columns: 1fr; padding: 4px 14px 18px; }
  .kid-adult { grid-template-columns: 1fr; }
  .seg-opt span { font-size: 14px; padding: 9px 2px; }
  .money input { font-size: 20px; }
}

.has-calc .page-hero { padding-bottom: 120px; }
.has-calc .page-body { padding-top: 64px; }
