/* ── Ruf des Waldes · Termine & Buchung ──
   Farben als Variablen – ein Theme kann sie überschreiben. */
:root {
    --rdw-moos: #1F3328;
    --rdw-moos-2: #2A4234;
    --rdw-salbei: #6E9A7E;
    --rdw-salbei-hell: #9EC0A8;
    --rdw-farn: #DDE7DF;
    --rdw-leinen: #F4F1EA;
    --rdw-sand: #E9E4D8;
    --rdw-linie: #D8D1C2;
    --rdw-rinde: #6B5B4B;
    --rdw-glut: #A4502A;
    --rdw-glut-hell: #F6E3D8;
    --rdw-glut-text: #7A3A1D;
    --rdw-text: #1F3328;
    --rdw-text-2: #3A4A3F;
    --rdw-grau: #5A5A50;
    --rdw-weiss: #FFFFFF;
    --rdw-radius: 20px;
    --rdw-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rdw-kalender, .rdw-tour-termine, .rdw-kompakt, .rdw-karten { color: var(--rdw-text); }
.rdw-kalender *, .rdw-tour-termine *, .rdw-fab * { box-sizing: border-box; }

/* Buttons */
.rdw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 999px;
    font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; border: 0;
    transition: background-color .15s, color .15s;
}
.rdw-btn--glut, .rdw-form button.rdw-btn--glut { background: var(--rdw-glut) !important; color: var(--rdw-weiss) !important; border: 0 !important; }
.rdw-btn--glut:hover, .rdw-btn--glut:focus-visible, .rdw-form button.rdw-btn--glut:hover { background: #8A4022 !important; }
.rdw-btn--rand, .rdw-storno button.rdw-btn--rand { background: transparent !important; border: 0 !important; color: var(--rdw-moos) !important; box-shadow: inset 0 0 0 1.5px var(--rdw-moos); }
.rdw-btn--rand:hover, .rdw-storno button.rdw-btn--rand:hover { background: var(--rdw-moos) !important; color: var(--rdw-leinen) !important; }
.rdw-btn--breit { width: 100%; }
.rdw-btn:focus-visible, .rdw-chip:focus-visible, .rdw-ev:focus-visible, .rdw-fab:focus-visible { outline: 3px solid var(--rdw-salbei); outline-offset: 2px; }

/* Chips, Badges, Tags */
.rdw-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px;
    background: var(--rdw-weiss); color: var(--rdw-text) !important; text-decoration: none !important;
    box-shadow: inset 0 0 0 1px #CFC7B6; font-size: 15px;
}
.rdw-chip.is-aktiv { background: var(--rdw-moos); color: var(--rdw-leinen) !important; box-shadow: none; }
.rdw-chip--klein { min-height: 0; padding: 5px 12px; font-family: var(--rdw-mono); font-size: 12px; background: var(--rdw-farn); box-shadow: none; }
.rdw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rdw-badge {
    display: inline-block; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
    font-family: var(--rdw-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
    background: var(--rdw-farn); color: var(--rdw-moos);
}
.rdw-badge--knapp { background: var(--rdw-glut-hell); color: var(--rdw-glut-text); }
.rdw-badge--voll, .rdw-badge--aus { background: #ECE7DC; color: var(--rdw-grau); }
.rdw-tag, .rdw-kicker {
    font-family: var(--rdw-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rdw-rinde);
}
.rdw-klein { font-size: 13px; line-height: 1.5; color: var(--rdw-grau); }
.rdw-leer { color: var(--rdw-grau); font-style: italic; }

/* Datumsblock */
.rdw-datum {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
    width: 64px; height: 72px; border-radius: 14px; background: var(--rdw-moos); color: var(--rdw-leinen); line-height: 1.1;
}
.rdw-datum__wt, .rdw-datum__mon { font-family: var(--rdw-mono); font-size: 10px; letter-spacing: .08em; color: var(--rdw-salbei-hell); }
.rdw-datum__tag { font-size: 26px; font-weight: 300; }
.rdw-datum--glut { background: var(--rdw-glut); }
.rdw-datum--glut .rdw-datum__wt, .rdw-datum--glut .rdw-datum__mon { color: #FBE3D6; }
.rdw-datum--aus { background: #ECE7DC; color: var(--rdw-text); }
.rdw-datum--aus .rdw-datum__wt, .rdw-datum--aus .rdw-datum__mon { color: var(--rdw-rinde); }

/* Meldungen */
.rdw-meldung { padding: 14px 18px; border-radius: 14px; margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.rdw-meldung--ok { background: var(--rdw-farn); color: var(--rdw-moos); }
.rdw-meldung--fehler { background: var(--rdw-glut-hell); color: var(--rdw-glut-text); }
.rdw-hinweis { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--rdw-farn); color: var(--rdw-moos); margin: 0 0 14px; }
.rdw-hinweis--aus { background: #ECE7DC; color: var(--rdw-grau); }

/* ── Kalender ── */
.rdw-kalender { display: flex; flex-direction: column; gap: 32px; }
.rdw-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.rdw-kalender__oben { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.rdw-monat {
    flex: 7 1 520px; min-width: 0; background: var(--rdw-weiss); border-radius: 24px; padding: clamp(16px, 3vw, 32px);
    display: flex; flex-direction: column; gap: 16px;
}
.rdw-monat__kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rdw-monat__titel { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 400; }
.rdw-monat__nav { display: flex; gap: 8px; }
.rdw-rund {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
    box-shadow: inset 0 0 0 1px #CFC7B6; color: var(--rdw-moos) !important; text-decoration: none !important; font-size: 18px;
}
.rdw-rund:hover { background: var(--rdw-leinen); }
.rdw-rund.is-aus { opacity: .35; }

.rdw-raster { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; margin: 0 -6px; }
.rdw-raster th { font-family: var(--rdw-mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--rdw-rinde); text-align: left; padding: 0 8px; border: 0; background: none; }
.rdw-raster td {
    height: 84px; vertical-align: top; padding: 8px; border-radius: 12px; border: 0; background: none;
    font-size: 15px; display: table-cell;
}
.rdw-raster td.has-termin { background: var(--rdw-leinen); }
.rdw-raster td.is-heute .rdw-raster__tag { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rdw-moos); }
.rdw-raster__tag { display: block; margin-bottom: 4px; }
.rdw-ev {
    display: block; margin-top: 3px; padding: 4px 7px; border-radius: 8px; font-size: 12px; line-height: 1.25;
    background: var(--rdw-farn); color: var(--rdw-moos) !important; text-decoration: none !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rdw-ev--kat-jahreskreisfeste { background: var(--rdw-glut-hell); color: var(--rdw-glut-text) !important; }
.rdw-ev--voll { background: #ECE7DC; color: var(--rdw-grau) !important; }
.rdw-ev--abgesagt, .rdw-ev--geschlossen, .rdw-ev--vorbei { background: transparent; color: var(--rdw-grau) !important; text-decoration: line-through !important; }
.rdw-ev.is-auswahl { background: var(--rdw-moos); color: var(--rdw-leinen) !important; }
.rdw-legende { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; font-size: 13px; color: var(--rdw-grau); }
.rdw-legende span { display: inline-flex; align-items: center; gap: 8px; }
.rdw-legende__p { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.rdw-legende__p--frei { background: var(--rdw-farn); }
.rdw-legende__p--fest { background: var(--rdw-glut-hell); }
.rdw-legende__p--voll { background: #ECE7DC; }

/* Auswahl / Buchung */
.rdw-auswahl {
    flex: 5 1 360px; min-width: 0; scroll-margin-top: 24px;
    background: var(--rdw-moos); color: var(--rdw-leinen); border-radius: 24px; padding: clamp(20px, 3vw, 36px);
}
.rdw-auswahl .rdw-kicker { color: var(--rdw-salbei-hell); margin: 0 0 10px; }
.rdw-detail__titel { margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1.1; }
.rdw-detail__titel a { color: inherit !important; text-decoration: none !important; }
.rdw-detail__text { margin: 0 0 18px; color: #E3E8E2; font-size: 16px; line-height: 1.55; }
.rdw-detail__hinweis { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--rdw-moos-2); font-size: 14px; }
.rdw-auswahl .rdw-klein { color: #C9D3CB; margin: 14px 0 0; }
.rdw-auswahl__leer { margin: 0; font-size: 16px; line-height: 1.55; }
.rdw-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.rdw-fakten > div { background: var(--rdw-moos-2); border-radius: 12px; padding: 10px 14px; }
.rdw-fakten dt { font-family: var(--rdw-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rdw-salbei-hell); }
.rdw-fakten > div > dd { margin: 2px 0 0 !important; padding: 0; font-size: 15px; }
.rdw-fakten > div > dt { margin: 0; padding: 0; }
.rdw-fakten--hell > div { background: var(--rdw-weiss); }
.rdw-fakten--hell dt { color: var(--rdw-rinde); }
.rdw-fakten--hell { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rdw-auswahl .rdw-meldung--ok { background: var(--rdw-farn); }

/* Formular */
.rdw-form { display: flex; flex-direction: column; gap: 12px; background: var(--rdw-leinen); color: var(--rdw-text); border-radius: 16px; padding: 20px; }
.rdw-form__reihe { display: flex; gap: 12px; }
.rdw-form__feld { display: flex; flex-direction: column; gap: 5px; margin: 0; flex: 1 1 auto; min-width: 0; }
.rdw-form__feld--klein { flex: 0 0 110px; }
.rdw-form label { font-size: 14px; font-weight: 600; }
.rdw-optional { font-weight: 400; color: var(--rdw-grau); }
.rdw-form .rdw-form__feld input, .rdw-form .rdw-form__feld select, .rdw-form .rdw-form__feld textarea {
    width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #CFC7B6 !important; border-radius: 10px !important;
    background: var(--rdw-weiss); color: var(--rdw-text); min-height: 44px; box-shadow: none;
}
.rdw-form input:focus, .rdw-form select:focus, .rdw-form textarea:focus { outline: 2px solid var(--rdw-salbei); outline-offset: 1px; border-color: var(--rdw-salbei); }
.rdw-form__check { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.rdw-form__check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--rdw-moos); }
.rdw-form__check label { font-weight: 400; font-size: 13px; line-height: 1.45; }
.rdw-form__check a { color: var(--rdw-moos); text-decoration: underline; }
.rdw-form__preis { margin: 0; font-size: 14px; color: var(--rdw-text-2); }
.rdw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Liste */
.rdw-liste, .rdw-tour-termine, .rdw-kompakt-wrap { container-type: inline-size; }
.rdw-liste__titel { margin: 0 0 8px; font-size: clamp(28px, 3vw, 44px); font-weight: 300; }
.rdw-liste__monat { margin: 28px 0 6px; font-family: var(--rdw-mono); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--rdw-rinde); }
.rdw-zeilen { list-style: none; margin: 0; padding: 0; }
.rdw-zeile {
    display: grid; grid-template-columns: 64px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 80px auto 150px;
    gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rdw-linie); margin: 0;
}
.rdw-zeilen .rdw-zeile:last-child { border-bottom: 1px solid var(--rdw-linie); }
.rdw-zeile__titel { display: flex; flex-direction: column; gap: 3px; }
.rdw-zeile__titel a { font-weight: 600; font-size: 18px; color: var(--rdw-text) !important; text-decoration: none !important; }
.rdw-zeile__titel a:hover { text-decoration: underline !important; }
.rdw-zeile__hinweis { font-weight: 400; font-size: 14px; color: var(--rdw-grau); }
.rdw-zeile__zeit, .rdw-zeile__ort { font-size: 15px; color: var(--rdw-text-2); }
.rdw-zeile__preis { font-weight: 600; font-size: 15px; }
.rdw-zeile__aktion { text-align: right; }
.rdw-zeile--abgesagt .rdw-zeile__titel a { text-decoration: line-through !important; color: var(--rdw-grau) !important; }

/* ── Tour-Termine (auf der Tour-Seite) ── */
.rdw-tour-termine { margin: 48px 0; scroll-margin-top: 24px; }
.rdw-tour-termine__titel { margin: 32px 0 16px; font-weight: 300; }
.rdw-tt-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rdw-tt { margin: 0; background: var(--rdw-weiss); border-radius: 18px; scroll-margin-top: 24px; }
.rdw-tt summary { display: flex; align-items: center; gap: 16px; padding: 14px; cursor: pointer; list-style: none; }
.rdw-tt summary::-webkit-details-marker { display: none; }
.rdw-tt summary:focus-visible { outline: 3px solid var(--rdw-salbei); outline-offset: 2px; border-radius: 18px; }
.rdw-tt__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.rdw-tt__text span { font-size: 14px; color: var(--rdw-grau); }
.rdw-tt__form { padding: 0 14px 14px; }
.rdw-tt details[open] .rdw-tt__btn { display: none; }
.rdw-tt--abgesagt summary, .rdw-tt--geschlossen summary { cursor: default; }

/* ── Kompakte Liste ── */
.rdw-kompakt { list-style: none; margin: 0; padding: 0; }
.rdw-kompakt__item { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 180px) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rdw-linie); margin: 0; }
.rdw-kompakt__item:last-child { border-bottom: 1px solid var(--rdw-linie); }
.rdw-kompakt__datum { font-family: var(--rdw-mono); font-size: 13px; white-space: nowrap; }
.rdw-kompakt__titel { font-weight: 600; color: var(--rdw-text) !important; text-decoration: none !important; }
.rdw-kompakt__titel:hover { text-decoration: underline !important; }
.rdw-kompakt__ort { color: var(--rdw-grau); font-size: 14px; }

/* ── Tour-Karten ── */
.rdw-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.rdw-karte { background: var(--rdw-weiss); border-radius: var(--rdw-radius); overflow: hidden; display: flex; flex-direction: column; }
.rdw-karte__bild img { display: block; width: 100%; height: 230px; object-fit: cover; }
.rdw-karte__inhalt { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rdw-karte__titel { margin: 0; font-size: 26px; font-weight: 400; }
.rdw-karte__titel a { color: var(--rdw-text) !important; text-decoration: none !important; }
.rdw-karte__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--rdw-text-2); flex: 1; }
.rdw-karte__termine { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #ECE7DC; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rdw-karte__termine li { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 0; }
.rdw-karte__termine a { color: var(--rdw-text) !important; font-weight: 600; }
.rdw-karte__mehr { font-weight: 600; color: var(--rdw-moos) !important; text-decoration: none !important; }

/* ── Storno ── */
.rdw-storno { background: var(--rdw-leinen); color: var(--rdw-text); border-radius: 16px; padding: 20px; margin: 0 0 18px; }
.rdw-storno__titel { margin: 0 0 8px; font-size: 22px; font-weight: 400; }
.rdw-storno form { margin: 12px 0 0; }

/* ── Schwebender Button ── */
.rdw-fab {
    position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 9990;
    display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 999px;
    background: var(--rdw-glut); color: var(--rdw-weiss) !important; text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(31, 51, 40, .28); font-family: inherit; line-height: 1.2;
    transition: transform .15s, background-color .15s;
}
.rdw-fab:hover { background: #8A4022; transform: translateY(-2px); }
.rdw-fab__icon { flex-shrink: 0; }
.rdw-fab__text { display: flex; flex-direction: column; }
.rdw-fab__titel { font-weight: 600; font-size: 16px; }
.rdw-fab__unter { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .rdw-fab, .rdw-btn { transition: none; } .rdw-fab:hover { transform: none; } }

/* ── Mobil ── */
@container (max-width: 860px) {
    .rdw-zeile { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "d t b" "d z z" "d o p" "a a a"; row-gap: 6px; }
    .rdw-zeile > .rdw-datum { grid-area: d; align-self: start; }
    .rdw-zeile__titel { grid-area: t; }
    .rdw-zeile__zeit { grid-area: z; }
    .rdw-zeile__ort { grid-area: o; }
    .rdw-zeile__preis { grid-area: p; text-align: right; }
    .rdw-zeile > div:nth-child(6) { grid-area: b; }
    .rdw-zeile__aktion { grid-area: a; text-align: left; }
    .rdw-zeile__aktion .rdw-btn { width: 100%; }
}
@media (max-width: 700px) {
    .rdw-kompakt__item { grid-template-columns: 1fr auto; }
    .rdw-kompakt__ort { display: none; }
}
@media (max-width: 600px) {
    .rdw-raster { border-spacing: 2px; margin: 0 -2px; }
    .rdw-raster td { height: 52px; padding: 4px; font-size: 13px; }
    .rdw-ev { font-size: 0; height: 8px; padding: 0; margin-top: 4px; border-radius: 4px; }
    .rdw-raster th { padding: 0 4px; font-size: 10px; }
    .rdw-fakten { grid-template-columns: 1fr 1fr; }
    .rdw-form__reihe { flex-direction: column; }
    .rdw-form__feld--klein { flex: 1 1 auto; }
    .rdw-tt summary { flex-wrap: wrap; }
    .rdw-tt__btn { display: none; }
    .rdw-fab { padding: 0; width: 60px; height: 60px; justify-content: center; }
    .rdw-fab__text { display: none; }
}

@media print {
    .rdw-fab, .rdw-form, .rdw-filter, .rdw-monat__nav { display: none !important; }
}
