@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.25; }
a { color: var(--taupe-dark); }
img { max-width: 100%; height: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; background: var(--sand); }
.logo img { display: block; height: 64px; width: auto; }
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.container { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.site-footer { background: var(--sand-light); padding: 1.5rem 1rem; text-align: center; font-size: .9rem; }
.site-footer nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

.hero { text-align: center; padding: 2rem 0; }
.btn { display: inline-block; background: var(--taupe-dark); color: var(--white); border: 1px solid var(--taupe-dark); border-radius: var(--radius); padding: .7rem 1.4rem; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn-small { padding: .35rem .9rem; color: var(--white) !important; }
.btn-outline { background: transparent; color: var(--taupe-dark); }
.btn-outline:hover { color: var(--white); }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { border: 1px solid var(--sand); border-radius: var(--radius); padding: 1rem 1.25rem; }
.card h3 { margin-top: 0; }
.meta { color: var(--taupe-dark); font-size: .9rem; }
.price { font-size: 1.3rem; font-family: var(--font-head); }
.notice { background: var(--rose); padding: .6rem 1rem; border-radius: var(--radius); }
.error { background: #f6e3e0; color: var(--danger); padding: .6rem 1rem; border-radius: var(--radius); }
.small { font-size: .85rem; }

/* Buchungsstrecke */
.step { border-top: 1px solid var(--sand); padding: 1rem 0; }
.step-no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sand); font-family: var(--font-body); font-size: 1rem; margin-right: .4rem; }
.choice-list { display: grid; gap: .6rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--sand); border-radius: var(--radius); padding: .75rem 1rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--taupe-dark); background: var(--sand-light); }
.choice input { margin-top: .35rem; accent-color: var(--taupe-dark); }
.choice .choice-price { margin-left: auto; white-space: nowrap; font-weight: 600; }
.choice small { display: block; color: var(--taupe-dark); }

.calendar { max-width: 380px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cal-nav { background: none; border: 1px solid var(--sand); border-radius: var(--radius); width: 2.4rem; height: 2.4rem; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .75rem; color: var(--taupe-dark); }
.cal-day { aspect-ratio: 1; border: 0; border-radius: var(--radius); background: transparent; font: inherit; color: #b9b2ab; }
.cal-day.free { background: var(--sand-light); color: var(--ink); cursor: pointer; }
.cal-day.free:hover, .cal-day.selected { background: var(--taupe-dark); color: var(--white); }
.slot-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot { border: 1px solid var(--taupe); background: var(--white); border-radius: var(--radius); padding: .45rem .8rem; font: inherit; cursor: pointer; color: var(--ink); }
.slot.selected, .slot:hover { background: var(--taupe-dark); color: var(--white); }

.field { margin-bottom: .9rem; display: grid; gap: .25rem; max-width: 480px; }
.field input, .field textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--taupe); border-radius: var(--radius); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--taupe-dark); outline-offset: 1px; }
.field .field-error { color: var(--danger); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 .5rem; }
.check input { margin-top: .35rem; accent-color: var(--taupe-dark); }

.summary { background: var(--sand-light); border-radius: var(--radius); padding: 1rem 1.25rem; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .25rem 0; }
.summary td { vertical-align: top; }
.summary td:last-child { text-align: right; padding-left: 1rem; }
.summary .total td { border-top: 1px solid var(--taupe); font-weight: 700; padding-top: .5rem; }
dl.summary { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
dl.summary dt { font-weight: 600; }
dl.summary dd { margin: 0; }

@media (max-width: 560px) {
    .logo img { height: 40px; }
    .site-header { padding: .5rem .75rem; }
    .site-nav { gap: .75rem; font-size: .95rem; }
    .site-nav .nav-start { display: none; }
}
.nowrap { white-space: nowrap; }

.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #7f3a33; border-color: #7f3a33; }

.test-banner { background: var(--warn); color: var(--white); text-align: center; font-size: .85rem; padding: .35rem 1rem; }

/* Startzeiten und Dauer als Kacheln mit Zusatzzeile */
.slot { display: inline-grid; gap: 0; text-align: center; min-width: 6.5rem; }
.slot small { font-size: .75rem; opacity: .8; }
.slot-unavailable { border-style: dashed; color: #9a928b; background: var(--sand-light); }
.slot-unavailable:hover { background: var(--sand-light); color: #9a928b; }
.choice small.rule { color: var(--ok); }
