/* ============================================================
   Tirolerbund in Wien · Stylesheet
   Farben: Rot #912324 · Weiß #ffffff · Grün #0d6004
   ============================================================ */

:root {
  --rot: #912324;
  --rot-dunkel: #6e1a1b;
  --gruen: #8C641F;   /* Gold (ehem. Grün) */
  --gruen-dunkel: #6e4e18; /* Gold dunkel */
  --weiss: #ffffff;
  --creme: #ffffff;   /* einheitlicher Hintergrund */
  --grau: #4a4a4a;
  --grau-hell: #e9e4de;
  --schrift: #2b2b2b;
  --max-breite: 1180px;
  --radius: 10px;
  --schatten: 0 4px 18px rgba(0, 0, 0, .09);
}

/* Handschrift-Font: Caveat (lokal eingebunden, offline-fähig) */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20AC;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20AC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--schrift);
  background: var(--weiss);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }

.wrap { max-width: var(--max-breite); margin: 0 auto; padding: 0 22px; }

/* ---------- Topbar ---------- */
.topbar { background: #4a4a4a; color: var(--weiss); font-size: 14px; }
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: var(--weiss); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .social { display: flex; align-items: center; gap: 14px; }
.topbar .social a { display: flex; align-items: center; gap: 6px; }
.topbar .social svg { width: 17px; height: 17px; fill: var(--weiss); }

/* ---------- Header / Navigation ---------- */
header.site-header {
  background: var(--rot);
  border-bottom: 3px solid var(--rot-dunkel);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img {
  height: 108px; width: auto;
  padding: 0 20px;                 /* rote Fläche seitlich verbreitern */
  background: var(--rot);
  box-sizing: content-box;
  margin-bottom: -27px;            /* 3/4 im Balken, 1/4 hängt darunter */
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
  position: relative; z-index: 5;
}

nav.main-nav > ul {
  list-style: none; display: flex; gap: 4px; align-items: center;
}
nav.main-nav a {
  text-decoration: none; color: var(--weiss); font-weight: 600; font-size: 15.5px;
  padding: 10px 13px; border-radius: 6px; display: block; white-space: nowrap;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.aktiv > a { background: var(--weiss); color: var(--rot); }

/* Dropdown */
nav.main-nav li.has-sub { position: relative; }
nav.main-nav li.has-sub > a::after { content: " ▾"; font-size: 11px; }
nav.main-nav .sub {
  list-style: none; position: absolute; top: 100%; left: 0;
  background: var(--weiss); min-width: 215px; border-radius: 0 0 8px 8px;
  box-shadow: var(--schatten); border-top: 3px solid var(--gruen);
  display: none; z-index: 950;
}
nav.main-nav li.has-sub:hover .sub,
nav.main-nav li.has-sub:focus-within .sub,
nav.main-nav li.has-sub.offen .sub { display: block; }
nav.main-nav .sub a { padding: 11px 16px; border-radius: 0; color: var(--schrift); }
nav.main-nav .sub a:hover { background: var(--gruen); color: var(--weiss); }

.nav-cta a {
  background: var(--gruen); color: var(--weiss) !important;
  border-radius: 6px;
}
.nav-cta a:hover { background: var(--gruen-dunkel) !important; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: 2px solid var(--weiss);
  border-radius: 6px; padding: 7px 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 3px; background: var(--weiss);
  margin: 4px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--weiss);
  min-height: 320px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero.hero-gross { min-height: 540px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.hero .wrap { position: relative; padding-bottom: 44px; padding-top: 90px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.5); margin-bottom: 8px;
}
.hero p.untertitel {
  font-size: clamp(17px, 2.2vw, 22px); max-width: 720px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6); font-weight: 500;
}
.hero .hero-buttons { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: 7px; font-size: 16px;
  border: none; cursor: pointer; transition: background .2s;
}
.btn-rot { background: var(--rot); color: var(--weiss); }
.btn-rot:hover { background: var(--rot-dunkel); color: var(--weiss); }
.btn-gruen { background: var(--gruen); color: var(--weiss); }
.btn-gruen:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.btn-hell,
section.rot-bg a.btn-hell, section.gruen-bg a.btn-hell { background: var(--weiss); color: var(--rot); }
.btn-hell:hover,
section.rot-bg a.btn-hell:hover, section.gruen-bg a.btn-hell:hover { background: var(--grau-hell); color: var(--rot-dunkel); }

/* ---------- Inhalt ---------- */
main section { padding: 56px 0; }
main section.eng { padding: 34px 0; }
section.hell { background: var(--creme); }
section.gruen-bg { background: var(--gruen); color: var(--weiss); }
section.rot-bg { background: var(--rot); color: var(--weiss); }
section.gruen-bg a, section.rot-bg a { color: var(--weiss); }

h2.abschnitt {
  font-size: clamp(26px, 3.5vw, 36px); color: var(--rot);
  margin-bottom: 18px; line-height: 1.2;
}
section.gruen-bg h2.abschnitt, section.rot-bg h2.abschnitt { color: var(--weiss); }
h2.abschnitt::after {
  content: ""; display: block; width: 70px; height: 4px;
  background: var(--gruen); margin-top: 10px; border-radius: 2px;
}
section.gruen-bg h2.abschnitt::after, section.rot-bg h2.abschnitt::after { background: var(--weiss); }
h3 { color: var(--gruen); font-size: 21px; margin: 26px 0 8px; }
section.gruen-bg h3, section.rot-bg h3 { color: var(--weiss); }
main p { margin-bottom: 14px; }
main ul, main ol { margin: 0 0 16px 24px; }
main li { margin-bottom: 6px; }

.text-breit { max-width: 820px; }
.zentriert { text-align: center; }
.zentriert h2.abschnitt::after { margin-left: auto; margin-right: auto; }

/* Karten-Raster */
.karten { display: grid; gap: 26px; margin-top: 30px; }
.karten.k2 { grid-template-columns: repeat(2, 1fr); }
.karten.k3 { grid-template-columns: repeat(3, 1fr); }
.karten.k4 { grid-template-columns: repeat(4, 1fr); }
.karte {
  background: var(--weiss); border-radius: var(--radius);
  box-shadow: var(--schatten); overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 4px solid var(--rot);
}
.karte img.karten-bild { height: 190px; object-fit: cover; width: 100%; }
.karte .karten-inhalt { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.karte h3 { margin-top: 0; }
.karte .karten-inhalt .btn { margin-top: auto; align-self: flex-start; }
.karte p { font-size: 15.5px; }

/* Vorstand */
.vorstand-karte { text-align: center; border-top-color: var(--gruen); }
.vorstand-karte img.portrait {
  width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
  margin: 24px auto 4px; border: 4px solid var(--grau-hell);
}
.vorstand-karte .funktion { color: var(--rot); font-weight: 700; font-size: 14.5px; }
.vorstand-karte.platzhalter img.portrait { filter: grayscale(1); opacity: .35; }

/* Zeitleiste */
.zeitleiste { list-style: none; margin: 30px 0 0; position: relative; padding-left: 34px; }
.zeitleiste::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 4px; background: var(--rot); border-radius: 2px;
}
.zeitleiste li { position: relative; margin-bottom: 22px; padding-left: 8px; }
.zeitleiste li::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 14px; height: 14px; background: var(--gruen);
  border: 3px solid var(--weiss); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gruen);
}
.zeitleiste .jahr { color: var(--rot); font-weight: 800; font-size: 18px; display: block; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.galerie img {
  height: 230px; width: 100%; object-fit: cover;
  border-radius: 8px; box-shadow: var(--schatten);
}
.galerie.hoch img { height: 340px; object-fit: cover; object-position: top; }

/* Verlinkte Galerie-Bilder (nur Zeitungsartikel auf der Geschichte-Seite) */
.galerie a {
  display: block; border-radius: 8px; overflow: hidden;
  box-shadow: var(--schatten); cursor: zoom-in;
}
.galerie a img { border-radius: 0; box-shadow: none; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 1200;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.offen { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; width: auto; height: auto; border-radius: 6px; }
.lightbox .schliessen {
  position: absolute; top: 18px; right: 26px; color: #fff; font-size: 40px;
  background: none; border: none; cursor: pointer; line-height: 1;
}

/* Handschrift-Zitat mit Tirol-Bild */
.zitat-bild {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
}
.zitat-bild::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, .45) 0%, rgba(20, 12, 8, .6) 100%);
}
.zitat-bild .wrap { position: relative; }
.zitat-bild blockquote {
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.35;
  color: var(--weiss);
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}
.zitat-bild blockquote strong {
  font-weight: 600;
  color: #ffe9c9;
}

/* Info-Boxen */
.infobox {
  background: #f6f4f0; border-left: 5px solid var(--gruen);
  padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 22px 0;
}
.infobox.rot { border-left-color: var(--rot); }

/* Rückblick-Bericht */
.bericht { max-width: 760px; }
.bericht figure { margin: 26px 0; }
.bericht figure img {
  width: 100%; border-radius: 8px; box-shadow: var(--schatten);
}
.bericht figcaption {
  font-size: 14px; color: var(--grau); text-align: center;
  margin-top: 8px; font-style: italic;
}
.bericht .foto-credit {
  font-size: 13.5px; color: var(--grau); margin-top: 30px;
  border-top: 1px solid var(--grau-hell); padding-top: 12px;
}

/* News */
.news-karte {
  background: var(--weiss); border-radius: var(--radius);
  box-shadow: var(--schatten); border-left: 6px solid var(--gruen);
  padding: 28px 32px; margin-top: 26px; max-width: 900px;
}
.news-karte .news-datum {
  display: inline-block; background: var(--gruen); color: var(--weiss);
  font-size: 13.5px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
  margin-bottom: 12px;
}
.news-karte h3 { margin-top: 0; color: var(--rot); font-size: 23px; }
.news-karte p:last-child { margin-bottom: 0; }

/* Termin-Karte */
.termin {
  display: flex; gap: 22px; background: var(--weiss); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 26px 28px; margin-top: 26px;
  border-left: 6px solid var(--rot); align-items: flex-start; flex-wrap: wrap;
}
.termin .datum {
  background: var(--rot); color: var(--weiss); border-radius: 8px;
  padding: 14px 18px; text-align: center; min-width: 110px; font-weight: 700;
}
.termin .datum .tag { font-size: 26px; display: block; line-height: 1.1; }
.termin .inhalt { flex: 1; min-width: 250px; }
.termin h3 { margin-top: 0; }

/* ---------- Formulare ---------- */
form.formular { max-width: 760px; }
.form-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-feld { margin-bottom: 18px; }
.form-feld label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-feld label .pflicht { color: var(--rot); }
.form-feld input, .form-feld select, .form-feld textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--grau-hell);
  border-radius: 7px; font-size: 16px; font-family: inherit; background: var(--weiss);
}
.form-feld input:focus, .form-feld select:focus, .form-feld textarea:focus {
  outline: none; border-color: var(--gruen);
}
.form-feld.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.form-feld.checkbox input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-feld.checkbox label { font-weight: 400; margin: 0; }
.form-hinweis { font-size: 14px; color: var(--grau); margin-top: 10px; }
.form-erfolg {
  display: none; background: var(--gruen); color: var(--weiss);
  padding: 16px 20px; border-radius: 8px; margin-top: 18px; font-weight: 600;
}

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.kontakt-info .zeile { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.kontakt-info .zeile svg { width: 24px; height: 24px; fill: var(--rot); flex: none; margin-top: 3px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--rot); color: var(--weiss); margin-top: 40px; }
footer .footer-haupt {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 48px 0 36px;
}
footer h4 {
  font-size: 16px; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 14px; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 8px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: var(--weiss); text-decoration: none; transition: color .15s; }
footer a:hover { color: #e2b457; text-decoration: underline; } /* helles Gold – #8C641F wäre auf Rot unlesbar */
footer .social-footer a:hover svg { fill: #e2b457; }
footer .footer-logo { margin-bottom: 14px; }
footer .footer-logo img { height: 62px; width: auto; }
footer .footer-unten {
  border-top: 1px solid rgba(255,255,255,.3); padding: 16px 0; font-size: 14px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
footer .social-footer { display: flex; gap: 14px; }
footer .social-footer svg { width: 20px; height: 20px; fill: var(--weiss); transition: fill .15s; }

/* ---------- Cookie-Banner ---------- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  background: var(--rot-dunkel); color: var(--weiss);
  padding: 18px 0; box-shadow: 0 -4px 18px rgba(0,0,0,.3); display: none;
}
#cookie-banner.sichtbar { display: block; }
#cookie-banner .wrap {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
#cookie-banner p { margin: 0; font-size: 14.5px; max-width: 720px; }
#cookie-banner a { color: var(--weiss); text-decoration: underline; }
#cookie-banner .cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner .btn { padding: 10px 20px; font-size: 14.5px; }
#cookie-banner .btn-ablehnen {
  background: transparent; color: var(--weiss); border: 2px solid var(--weiss);
}
#cookie-banner .btn-ablehnen:hover { background: rgba(255,255,255,.15); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .karten.k3, .karten.k4 { grid-template-columns: repeat(2, 1fr); }
  footer .footer-haupt { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--weiss); border-bottom: 3px solid var(--rot);
    box-shadow: var(--schatten); max-height: calc(100vh - 120px); overflow-y: auto;
  }
  nav.main-nav.offen { display: block; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  nav.main-nav > ul > li > a { color: var(--schrift); }
  nav.main-nav > ul > li > a:hover,
  nav.main-nav > ul > li.aktiv > a { background: var(--rot); color: var(--weiss); }
  nav.main-nav .sub {
    position: static; display: none; box-shadow: none; border-top: none;
    background: #f6f4f0; border-radius: 0;
  }
  nav.main-nav li.has-sub.offen .sub { display: block; }
  nav.main-nav li.has-sub:hover .sub { display: none; }
  nav.main-nav li.has-sub:focus-within .sub { display: none; }
  nav.main-nav li.has-sub.offen:hover .sub { display: block; }
  nav.main-nav li.has-sub.offen:focus-within .sub { display: block; }
  nav.main-nav a { padding: 13px 24px; }
}
@media (max-width: 640px) {
  .brand img { height: 76px; padding: 0 14px; margin-bottom: -19px; border-radius: 0 0 7px 7px; }

  .karten.k2, .karten.k3, .karten.k4 { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .form-zeile { grid-template-columns: 1fr; gap: 0; }
  .kontakt-raster { grid-template-columns: 1fr; }
  footer .footer-haupt { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .hero .wrap { padding-top: 60px; }
}
