/* ==========================================================================
   Tourismus Ihringen – Übergangsseite
   CI: Open Sans / Open Sans Condensed, Weinrot #860207, Grau #e8e8e8
   ========================================================================== */

/* ---------- Fonts (lokal) ---------- */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-300.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-300.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-regular.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-regular.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-600.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-600.woff') format('woff'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-700.woff2') format('woff2'), url('../fonts/open-sans-v34-latin-ext_latin_cyrillic-700.woff') format('woff'); }
@font-face { font-family: 'Open Sans Condensed'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/OpenSansCondensed-Light.woff2') format('woff2'), url('../fonts/OpenSansCondensed-Light.woff') format('woff'); }
@font-face { font-family: 'Open Sans Condensed'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/OpenSansCondensed-LightItalic.woff2') format('woff2'), url('../fonts/OpenSansCondensed-LightItalic.woff') format('woff'); }
@font-face { font-family: 'Open Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/OpenSansCondensed-Bold.woff2') format('woff2'), url('../fonts/OpenSansCondensed-Bold.woff') format('woff'); }

/* ---------- Tokens ---------- */
:root {
  --red: #860207;
  --red-dark: #5f0105;
  --red-tint: #f6ecec;
  --grey: #e8e8e8;
  --grey-dark: #41413f;
  --bg: #f3f5f4;
  --white: #fff;
  --text: #333;
  --muted: #6b6c6e;
  --line: #dcdedd;
  --cond: 'Open Sans Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Open Sans', Arial, sans-serif;
  --wrap: 1170px;
  --gutter: 16px;
  --nav-h: 52px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }

/* ---------- Übergangshinweis ---------- */
.notice { background: var(--grey-dark); color: #fff; font-size: 13px; line-height: 1.4; }
.notice .wrap { display: flex; gap: 8px; align-items: center; justify-content: center; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.notice .icon { font-size: 15px; color: #f1c3c4; }
.notice strong { font-weight: 600; }
.notice .short { display: none; }
@media (max-width: 599px) { .notice { font-size: 12px; } .notice .long { display: none; } .notice .short { display: inline; } }

/* ---------- Header ---------- */
.site-header { background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo img { width: 230px; }
.quick { display: flex; gap: 10px; align-items: center; }
.quick a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.quick a .circle { width: 36px; height: 36px; border-radius: 50%; background: var(--grey); display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.quick a:hover .circle { background: var(--red); color: #fff; }
.quick .label { display: none; }
@media (min-width: 900px) { .quick .label { display: inline; } .quick { gap: 22px; } }

/* ---------- Navigation ---------- */
.site-nav { background: var(--red); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.site-nav .wrap { display: flex; align-items: center; min-height: var(--nav-h); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; font-family: var(--cond); font-weight: 300; font-size: 20px; color: #fff; text-decoration: none; padding: 13px 12px 11px; line-height: 1.3; transition: background .15s, color .15s; }
.site-nav a:hover, .site-nav a.active { background: var(--grey); color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-family: var(--cond); font-size: 20px; padding: 12px 0; cursor: pointer; align-items: center; gap: 10px; }
.nav-toggle .bars { width: 22px; height: 2px; background: #fff; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-nav .wrap { flex-direction: column; align-items: stretch; }
  .site-nav ul { display: none; flex-direction: column; padding-bottom: 10px; }
  .site-nav.open ul { display: flex; }
  .site-nav a { padding: 10px 6px; border-top: 1px solid rgba(255,255,255,.15); }
}

/* ---------- Hero ---------- */
.hero { background: var(--bg) url('../img/background.jpg') center top / cover no-repeat; min-height: 420px; position: relative; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(rgba(243,245,244,0), var(--bg)); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; padding-top: 48px; padding-bottom: 120px; }
.hero h1, .hero .sub { font-family: var(--cond); font-size: clamp(34px, 6vw, 60px); line-height: 1.1; background: rgba(255,255,255,.89); color: var(--text); padding: 2px 15px 4px; margin: 0; }
.hero h1 { font-weight: 700; }
.hero .sub { font-weight: 300; margin-top: 6px; }
@media (max-width: 599px) { .hero { min-height: 300px; } .hero .wrap { align-items: flex-start; padding-top: 28px; padding-bottom: 80px; } }

/* ---------- Teaser-Kacheln ---------- */
.tiles { margin-top: -70px; position: relative; z-index: 2; padding-bottom: 40px; }
.tile-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { background: var(--white); display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.tile .img { aspect-ratio: 360 / 190; overflow: hidden; background: var(--grey); }
.tile .img img { width: 100%; height: 100%; object-fit: cover; }
.tile .body { padding: 14px 15px 18px; display: flex; flex-direction: column; flex: 1; }
.tile h3 { color: var(--red); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.tile .date { color: var(--red); font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.tile p { margin: 0 0 14px; }
.tile .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-transform: uppercase; text-decoration: none; font-size: 15px; padding: 6px 18px; border: 0; transition: background .15s; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }

/* ---------- Sektionen ---------- */
.section { padding: 56px 0; }
.section.white { background: var(--white); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-family: var(--cond); font-weight: 700; font-size: clamp(32px, 4.5vw, 46px); color: var(--text); margin: 0; }
.section-head .kicker { font-family: var(--cond); font-weight: 300; font-size: clamp(20px, 2.6vw, 26px); color: var(--red); margin: 2px 0 0; }
.section-head p.lead { max-width: 820px; margin-top: 12px; font-size: 16px; }
h3.sub { font-family: var(--cond); font-weight: 700; font-size: 28px; color: var(--red); margin: 44px 0 14px; }
h3.sub:first-child { margin-top: 0; }
h4 { font-size: 17px; color: var(--red); margin: 0 0 6px; }

/* Zweispalter Bild/Text */
.split { display: grid; gap: 28px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-text { grid-template-columns: 5fr 4fr; } }
.split img { width: 100%; }
.figure { background: var(--grey); }
.figure img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Info-Karten */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--white); border-top: 3px solid var(--red); padding: 18px 18px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.07); display: flex; flex-direction: column; }
.section.white .card { background: var(--bg); box-shadow: none; }
.card .img { margin: -18px -18px 14px; aspect-ratio: 16/9; overflow: hidden; background: var(--grey); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card h4 { font-size: 18px; }
.card .meta { color: var(--muted); font-size: 13.5px; margin: -2px 0 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .btn-row { margin-top: auto; padding-top: 10px; }

/* Faktenzeile */
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.facts li { background: var(--red-tint); color: var(--red-dark); font-size: 13.5px; padding: 3px 10px; }

/* Kontaktzeilen */
.contact { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.contact li { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; overflow-wrap: anywhere; }
.contact .icon { color: var(--red); position: relative; top: 2px; }
.contact a { color: var(--text); }
.contact a:hover { color: var(--red); }
.details { font-size: 13.5px; color: #444; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.details p { margin: 0 0 4px; }
.details b { color: var(--text); font-weight: 600; }

/* Aufklappbare Verzeichnisse */
details.dir { background: var(--white); margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.section.white details.dir { background: var(--bg); box-shadow: none; }
details.dir > summary { list-style: none; cursor: pointer; padding: 15px 50px 15px 18px; position: relative; font-weight: 700; font-size: 17px; color: var(--red); }
details.dir > summary::-webkit-details-marker { display: none; }
details.dir > summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; line-height: 1; }
details.dir[open] > summary::after { content: '–'; }
details.dir > summary .count { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
details.dir > .inner { padding: 4px 18px 20px; }
details.dir .cards .card { background: var(--bg); box-shadow: none; }
.section.white details.dir .cards .card { background: var(--white); }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--white); }
.section.white table { background: var(--bg); }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--red); color: #fff; font-weight: 600; }
td.num { white-space: nowrap; text-align: right; }

/* Wochenprogramm */
.week { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.day { background: var(--white); padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.section.white .day { background: var(--bg); box-shadow: none; }
.day h4 { font-family: var(--cond); font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.day p { font-size: 14px; margin-bottom: 8px; }
.day p:last-child { margin-bottom: 0; }
.day .time { font-weight: 700; color: var(--text); }

/* Hinweis-Box */
.callout { background: var(--red-tint); border-left: 4px solid var(--red); padding: 14px 18px; margin: 0 0 18px; }
.callout p:last-child { margin: 0; }

/* Hinweis Veranstaltungskalender – auffällig */
.event-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; background: var(--red); color: #fff; padding: 22px 28px; margin: 0 0 10px; box-shadow: 0 6px 18px rgba(134,2,7,.25); }
.event-banner p { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; flex: 1 1 420px; }
.event-banner strong { font-family: var(--cond); font-weight: 700; font-size: 1.25em; display: block; letter-spacing: .01em; }
.event-banner .btn { background: #fff; color: var(--red); font-size: 17px; padding: 10px 22px; font-weight: 700; }
.event-banner .btn:hover { background: var(--grey); color: var(--red-dark); }

/* Downloads */
.downloads { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 0; }
.downloads a { display: flex; gap: 10px; align-items: center; background: var(--white); padding: 11px 14px; text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.07); height: 100%; }
.section.white .downloads a { background: var(--bg); box-shadow: none; }
.downloads a:hover { color: var(--red); }
.downloads .icon { color: var(--red); font-size: 20px; }
.downloads small { display: block; color: var(--muted); font-size: 12px; }

/* Liste zweispaltig */
.cols { columns: 2 260px; column-gap: 28px; }
.cols li { break-inside: avoid; margin-bottom: 4px; }

a.ext::after { content: '\2197'; font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }
.btn.ext::after { margin-left: 0; }

/* ---------- Footer ---------- */
/* welle.png: 1800 × 210 px – Abstand oben entspricht der skalierten Wellenhöhe */
.site-footer { background: var(--bg) url('../img/welle.png') center top / 100% auto no-repeat; padding-top: calc(11.7vw + 12px); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-bottom: 30px; font-size: 14px; line-height: 1.75; }
.footer-grid h4 { color: var(--text); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--red); text-decoration: underline; }
.partners { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.partners a { display: block; }
.partners img { height: 64px; width: auto; }
.partners img.wide { height: auto; width: 200px; }
.copyright { background: var(--red); color: #fff; font-size: 14px; }
.copyright .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.copyright a { color: #fff; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--red-dark); }

/* ---------- Rechtstexte ---------- */
.legal { background: var(--white); padding: 40px 0 56px; }
.legal .cm_elem { margin-bottom: 30px; }
.legal h2 { font-family: var(--cond); font-weight: 700; font-size: 34px; color: var(--text); margin: 0 0 12px; }
.legal h3 { color: var(--red); font-size: 18px; margin: 18px 0 8px; }
.legal p, .legal li { max-width: 860px; overflow-wrap: anywhere; }
.legal .row, .legal .col-xs-12 { all: unset; display: block; }
.page-title { background: var(--bg) url('../img/background.jpg') center 35% / cover no-repeat; }
.page-title .wrap { padding-top: 60px; padding-bottom: 60px; }
.page-title h1 { display: inline-block; font-family: var(--cond); font-weight: 700; font-size: clamp(34px, 6vw, 56px); background: rgba(255,255,255,.89); padding: 2px 15px 4px; margin: 0; }
.back { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-nav, .to-top, .notice { display: none; } details.dir > .inner { display: block; } }
