/* =====================================================================
 *  daasdorf.de – AUSSEHEN
 *  1:1 übernommen von der bisherigen Website (AI Builder).
 *
 *  Die wichtigsten Stellschrauben stehen ganz oben bei :root –
 *  z. B. die Farben. Eine Farbe dort ändern = überall geändert.
 *
 *  Inhalt:
 *    1. Schrift
 *    2. Farben & Grundwerte
 *    3. Grundregeln (Abstände zurücksetzen, Überschriften …)
 *    4. Kopf & Menü
 *    5. Startseite
 *    6. Unterseiten (Chronik, Saal, Kontakt, Rechtliches)
 *    7. Fußzeile
 *    8. Kalender (Veranstaltungen & Saalbelegung)
 *    9. Anpassungen für Tablet (≤ 850 px) und Handy (≤ 640 px)
 * ===================================================================== */


/* ---------- 1. Schrift: Inter Tight (liegt im Ordner fonts/) ---------- */
@font-face {
  font-family: "Inter Tight Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2-variations"),
       url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2-variations"),
       url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ---------- 2. Farben & Grundwerte ---------- */
:root {
  --ink:   #1f2a24;   /* Textfarbe (fast schwarz, leicht grün)  */
  --green: #2f5d46;   /* Akzent: Links, Menü, Knöpfe            */
  --pale:  #e3efe7;   /* helles Grün: Flächen, Kacheln          */
  --line:  #dde6df;   /* feine Trennlinien                      */
  --muted: #6b756f;   /* graue Kleinschrift (Bildunterschrift)  */
  --red:   #a4493d;   /* Saalkalender "belegt"                  */
  --red-pale: #f6e1dd;
}


/* ---------- 3. Grundregeln ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter Tight Variable", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: clip;
}
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-size: inherit; letter-spacing: -0.035em; font-weight: 600; line-height: 1.14; }
h1 { font-size: clamp(36px, 5.2vw, 64px); }
h2 { font-size: clamp(27px, 3vw, 36px); }
h3 { font-size: 25px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; margin: 0; padding: 0; cursor: pointer; background: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; border-radius: 4px; }
::selection { background: var(--pale); }

.skip-link { background: var(--green); color: #fff; z-index: 30; padding: 10px 18px; position: fixed; top: 12px; left: 12px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }


/* ---------- 4. Kopf & Menü ---------- */
.site-header { border-bottom: 1px solid var(--line); z-index: 10; background: #fff; position: relative; }
.header-inner { justify-content: space-between; align-items: center; gap: 24px; max-width: 1200px; height: 100px; margin: auto; padding: 0 40px; display: flex; }
.wordmark { letter-spacing: -1.3px; align-items: baseline; gap: 5px; font-size: 30px; font-weight: 650; display: flex; }
.wordmark-dot { background: var(--green); border-radius: 50%; width: 6px; height: 6px; }
.desktop-nav { align-items: center; gap: 32px; font-size: 16px; font-weight: 500; display: flex; }
.desktop-nav a { padding: 10px 0; position: relative; }
.desktop-nav a.active { color: var(--green); }
.desktop-nav a.active::after { content: ""; background: var(--green); height: 2px; position: absolute; bottom: 3px; left: 0; right: 0; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--green); }
.menu-button { color: var(--ink); background: none; border: 0; justify-content: center; align-items: center; width: 48px; height: 48px; display: none; }
.mobile-nav { display: none; }


/* ---------- 5. Startseite ---------- */
.home-shell { max-width: 1200px; margin: auto; padding: 76px 40px 88px; }
.hero-copy { max-width: 820px; }
.hero-copy h1 { margin-bottom: 22px; }
.lead { letter-spacing: -0.015em; font-size: 21px; line-height: 1.55; }
.hero-copy .lead { max-width: 750px; }
.hero-figure { margin: 38px 0 32px; }
.hero-photo { object-fit: cover; border-radius: 16px; width: 100%; height: auto; max-height: 520px; margin: 0; display: block; }
.map-caption { color: var(--muted); text-align: left; font-size: 10px; line-height: normal; }
.map-caption a { text-underline-offset: 2px; text-decoration: underline; }
.home-introduction { grid-template-columns: 1.35fr 1fr; gap: 72px; display: grid; }
.home-introduction p { max-width: 620px; }
.quick-links { grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 76px; display: grid; }
.quick-link { border: 1px solid var(--line); border-radius: 15px; padding: 25px 26px 27px; transition: background .18s, border-color .18s; }
.quick-link:hover { background: var(--pale); border-color: var(--pale); }
.quick-link:active { transform: scale(.99); }
.tile-top { color: var(--green); justify-content: space-between; margin-bottom: 27px; display: flex; }
.quick-link h2 { margin-bottom: 10px; font-size: 26px; }
.quick-link p { max-width: 265px; font-size: 16px; line-height: 1.6; }
.section-heading { justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; display: flex; }
.text-link { color: var(--green); align-items: center; gap: 10px; font-size: 16px; font-weight: 550; display: inline-flex; }
.text-link:hover { text-underline-offset: 5px; text-decoration: underline; }
.photo-placeholder { background: var(--pale); color: var(--green); border-radius: 16px; flex-direction: column; justify-content: center; align-items: center; gap: 10px; font-size: 14px; display: flex; }


/* ---------- 6. Unterseiten ---------- */
.page-shell { max-width: 1040px; min-height: calc(100dvh - 209px); margin: auto; padding: 76px 40px 90px; }
.page-intro { margin-bottom: 46px; }
.page-intro h1 { max-width: 880px; margin-bottom: 26px; font-size: clamp(35px, 4.8vw, 56px); }
.page-intro .lead { max-width: 850px; }

/* Chronik (Zeitleiste) */
.history h2, .legends h2 { margin-bottom: 30px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { grid-template-columns: 155px 1fr; gap: 28px; padding: 20px 0; display: grid; }
.timeline-year { color: var(--green); font-size: 19px; font-weight: 600; }
.timeline li p { border-left: 2px solid var(--pale); padding-left: 30px; position: relative; }
.timeline li p::before { content: ""; background: var(--green); border-radius: 50%; width: 8px; height: 8px; position: absolute; top: 11px; left: -5px; }

/* Sagen */
.legends { margin-top: 64px; }
.legend-grid { grid-template-columns: 1fr 1fr; gap: 22px; display: grid; }
.legend-grid article { background: var(--pale); border-radius: 16px; padding: 30px; }
.legend-grid h3 { margin-bottom: 18px; }
.source { margin-top: 26px; font-size: 13px; }

/* Saal: Fakten, Fotos, freie Termine */
.facts { grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0 0 36px; display: grid; }
.facts > div { border-top: 1px solid var(--line); padding: 20px 0; }
.facts dt { color: var(--green); margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.facts dd { margin: 0; }
.facts a, .contact-details a, .legal-copy a { color: var(--green); text-underline-offset: 4px; text-decoration: underline; }
.hall-photos { grid-template-columns: 1.35fr 1fr; gap: 22px; display: grid; }
.hall-photos .photo-placeholder { height: 260px; }
.hall-photos img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }
.availability { margin-top: 64px; }
.availability h2 { margin-bottom: 18px; }
.availability > p { max-width: 780px; margin-bottom: 28px; }
.primary-link { background: var(--green); color: #fff; border-radius: 9px; align-items: center; gap: 22px; margin-top: 28px; padding: 13px 23px; font-weight: 550; display: inline-flex; }
.primary-link:hover { opacity: .9; }
.primary-link:active { transform: scale(.98); }

/* Kontakt */
.contact-details { max-width: 760px; }
.contact-details dl { margin: 0 0 36px; }
.contact-details dl > div { border-top: 1px solid var(--line); grid-template-columns: 95px 1fr; padding: 20px 0; display: grid; }
.contact-details dt { font-weight: 600; }
.contact-details dd { margin: 0; }

/* Impressum & Datenschutz */
.legal-page { max-width: 880px; }
.legal-copy p { margin-bottom: 24px; }


/* ---------- 7. Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; align-items: center; gap: 30px; max-width: 1200px; margin: auto; padding: 32px 40px 38px; font-size: 14px; display: flex; }
.footer-links { flex-wrap: wrap; gap: 24px; display: flex; }


/* ---------- 8. Kalender ----------
 * Sieht genauso aus wie vorher der eingebettete Kalender
 * (kalender.daasdorf.de): eigene, etwas kleinere Schrift und
 * mittig mit max. 860 px Breite.                                    */
.kal { max-width: 860px; margin: 0 auto; padding: 8px 4px 16px; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.kal a { color: var(--green); }
.kal .leer { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.kal .fehler { padding: 16px; background: var(--red-pale); border-radius: 10px; color: var(--red); }
.kal-embed-start { min-height: 420px; }
.kal-embed-seite { min-height: 700px; }
.kal-embed-saal { min-height: 640px; }

/* Veranstaltungsliste */
.kal .monat { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.kal .monat:first-child { margin-top: 4px; }
.kal .termin { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.kal .datum { text-align: center; background: var(--pale); border-radius: 12px; padding: 8px 0 7px; align-self: start; }
.kal .datum .tag { display: block; font-size: 26px; font-weight: 700; line-height: 1; color: var(--green); }
.kal .datum .wt { display: block; font-size: 12px; font-weight: 600; color: var(--green); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.kal .termin h3 { margin: 0 0 3px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.45; }
.kal .meta { color: var(--muted); font-size: 14.5px; }
.kal .beschr { margin: 6px 0 0; font-size: 15px; white-space: pre-line; }
.kal .abo { margin-top: 18px; font-size: 14px; color: var(--muted); }
.kal .abo a { text-decoration: underline; }

/* Saalbelegung (Monatsansicht) */
.kal .kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kal .kopf h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.45; }
.kal .nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 20px; color: var(--ink); background: #fff; }
.kal .nav:hover { background: var(--pale); }
.kal .nav.aus { opacity: .3; pointer-events: none; }
.kal .raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kal .wtkopf { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
.kal .zelle { aspect-ratio: 1 / .82; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.kal .zelle small { font-size: 10.5px; font-weight: 500; margin-top: 1px; }
.kal .frei { background: var(--pale); color: var(--green); }
.kal a.frei:hover { background: #b9d6c4; }
.kal .belegt { background: var(--red-pale); color: var(--red); }
.kal .vorbei { background: #f4f5f4; color: #b3b9b5; }
.kal .heute { outline: 2px solid var(--ink); outline-offset: -2px; }
.kal .legende { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.kal .legende span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; }
.kal .l-frei::before { background: var(--pale); border: 1px solid #b9d6c4; }
.kal .l-belegt::before { background: var(--red-pale); border: 1px solid #e8bdb6; }
.kal .hinweis { margin-top: 12px; font-size: 14.5px; }


/* ---------- 9a. Tablet (bis 850 px Breite) ---------- */
@media (max-width: 850px) {
  .header-inner { height: 80px; padding: 0 24px; }
  .desktop-nav { gap: 20px; font-size: 15px; }
  .home-shell, .page-shell { padding: 52px 24px 64px; }
  .home-introduction { gap: 28px; }
  .quick-links { gap: 14px; }
  .quick-link { padding: 23px 20px; }
  .quick-link h2 { font-size: 23px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 24px; }
}

/* ---------- 9b. Handy (bis 640 px Breite) ---------- */
@media (max-width: 640px) {
  .header-inner { height: 76px; padding: 0 20px; }
  .wordmark { font-size: 27px; }
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .mobile-nav { flex-direction: column; padding: 8px 20px 20px; display: flex; }
  .mobile-nav a { border-radius: 8px; padding: 11px 12px; }
  .mobile-nav a.active { background: var(--pale); color: var(--green); }
  .home-shell, .page-shell { padding: 42px 20px 56px; }
  .lead { font-size: 19px; }
  .hero-photo { height: auto; max-height: 360px; margin: 28px 0; }
  .home-introduction { grid-template-columns: 1fr; gap: 16px; }
  .quick-links { grid-template-columns: 1fr; margin: 32px 0 48px; }
  .quick-link { padding: 22px; }
  .tile-top { margin-bottom: 18px; }
  .quick-link p { max-width: none; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .text-link { min-height: 44px; }
  .footer-inner { padding: 25px 20px; }
  .footer-links { gap: 18px; }
  .footer-links a { align-items: center; min-height: 44px; display: inline-flex; }
  .timeline li { grid-template-columns: 90px 1fr; gap: 10px; padding: 17px 0; }
  .timeline-year { font-size: 16px; }
  .timeline li p { padding-left: 20px; }
  .legend-grid, .facts, .hall-photos { grid-template-columns: 1fr; }
  .legend-grid article { padding: 24px; }
  .hall-photos .photo-placeholder, .hall-photos img { height: 210px; }
  .contact-details dl > div { grid-template-columns: 1fr; gap: 8px; }
  .legends, .availability { margin-top: 45px; }
  .page-intro { margin-bottom: 32px; }
}
@media (max-width: 480px) {
  .kal .raster { gap: 4px; }
  .kal .zelle { font-size: 14px; border-radius: 8px; }
  .kal .zelle small { display: none; }
  .kal .termin { grid-template-columns: 54px 1fr; gap: 12px; }
  .kal .datum .tag { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; }
}
