/* =====================================================================
   Corps Alemannia-Thuringia – Website
   Nachbau des bisherigen Jimdo-Layouts, ohne fremde Dienste.
   Aufbau: Schriften · Grundwerte · Kopf · Menü · Inhalt · Bausteine ·
           Kontaktleiste · Fußzeile · Lightbox · kleine Bildschirme
   ===================================================================== */

/* ---------- Schriften (liegen lokal in /assets/fonts, Lizenz: OFL) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }

/* ---------- Grundwerte ---------- */
:root {
  --gold: #f2c314;          /* Überschriften im Inhalt */
  --gold-hell: #ffda5b;     /* Seitentitel im Kopf, Überschrift Kontaktleiste */
  --blau: #6592a7;          /* Links, Knöpfe, aktiver Menüpunkt */
  --blau-dunkel: #4f778a;   /* Hover */
  --text: #666;
  --text-fliess: #444;
  --dunkel: #333;           /* Kontaktleiste unten */
  --breite: 1100px;
  --schrift: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --schrift-titel: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--blau); text-decoration: underline; transition: color .2s ease-in-out; }
a:hover, a:focus { color: var(--blau-dunkel); }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprungmarke { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 10px 15px; }
.sprungmarke:focus { left: 10px; top: 10px; }

/* ---------- Kopf mit Hintergrundbild ---------- */
/* Das Bild steht fest hinter der Seite; Kopf und Menü sind durchsichtig bzw. weiß. */
.hintergrund {
  position: fixed; inset: 0; z-index: -1;
  background: #3b2a2a url("../img/kopf-2000.jpg") center / cover no-repeat;
}
@media (max-width: 1200px) { .hintergrund { background-image: url("../img/kopf-1200.jpg"); } }

.kopf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 20px;
  min-height: 450px;
  text-align: center;
  position: relative;
}
.kopf-logo { display: inline-block; padding-top: 50px; }
.kopf-logo img { display: block; width: 390px; max-width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.kopf-titel { margin: 0; padding: 50px 0; }
.kopf-titel a {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  color: var(--gold-hell);
  text-decoration: none;
}

/* ---------- Menü ---------- */
.topbar { display: none; }

.navigation { background: #fff; text-align: center; }
.navigation ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--breite); }
.navigation li { display: inline-block; margin: 5px 0; letter-spacing: 2px; }
.navigation a {
  display: inline-block;
  padding: 10px 11px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.navigation a:hover, .navigation a:focus, .navigation a[aria-current="page"] { color: var(--blau); }

/* ---------- Inhalt ---------- */
.inhalt { background: #fff; }
.inhalt-innen { max-width: var(--breite); margin: 0 auto; padding: 80px 15px; }
.inhalt-innen::after { content: ""; display: table; clear: both; }

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 400; color: var(--gold); text-align: center; margin: 0; overflow-wrap: break-word; }
h1 { font-size: 64px; line-height: 1.05; }
h2 { font-size: 36px; line-height: 1.25; }
h3 { font-size: 24px; line-height: 1.25; }

.text { color: var(--text-fliess); font-size: 18px; line-height: 1.5; }
.text p { margin: 0 0 .75em; }
.text > :last-child { margin-bottom: 0; }
.inhalt-innen > .text + .text { margin-top: .75em; }
.text-mitte, .text p.mitte { text-align: center; }
.text-block, .text p.block { text-align: justify; }
.text p.links { text-align: left; }

/* Abstände (wie im alten Baukasten) */
.abstand-15 { height: 15px; } .abstand-20 { height: 20px; } .abstand-25 { height: 25px; }
.abstand-30 { height: 30px; } .abstand-45 { height: 45px; } .abstand-50 { height: 50px; }

/* Spalten: raster-2, raster-3, raster-5 … */
.raster { display: grid; column-gap: 2%; row-gap: 25px; align-items: start; }
.raster-1 { grid-template-columns: 1fr; }
.raster-2 { grid-template-columns: repeat(2, 1fr); }
.raster-3 { grid-template-columns: repeat(3, 1fr); }
.raster-4 { grid-template-columns: repeat(4, 1fr); }
.raster-5 { grid-template-columns: repeat(5, 1fr); }
.spalte { min-width: 0; }
.spalte > * + * { margin-top: 8px; }
.spalte > .text + .text { margin-top: 0; }
.text + .raster { margin-top: 15px; }
.spalte > .abstand-15, .spalte > .abstand-20, .spalte > .abstand-25,
.spalte > .abstand-30, .spalte > .abstand-45, .spalte > .abstand-50 { margin-top: 0; }

/* Bilder */
.bild { margin: 0 0 4px; }
.bild img { display: block; }
.bild-mitte { text-align: center; }
.bild-mitte img { margin: 0 auto; }
.bild-rechts img { margin-left: auto; }
.bild figcaption, .umfliessen figcaption { font-size: 14px; color: var(--text); padding-top: 4px; text-align: center; }
.zirkel img { width: 41px; height: 64px; }
.lupe { display: block; cursor: zoom-in; }

/* Text mit Bild daneben */
.umfliessen { margin: 4px 0 10px; max-width: 100%; }
.umfliessen img { display: block; width: 100%; }
.umfliessen-rechts { float: right; margin-left: 15px; }
.umfliessen-links { float: left; margin-right: 20px; }
.breite-466 { width: 466px; }
.breite-564 { width: 564px; }
.text-mit-bild::after { content: ""; display: table; clear: both; }

/* Knopf („mehr“, „Lern uns kennen!“) */
.knopf-zeile { text-align: center; margin: 16px 0; }
.knopf {
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  border: 2px solid var(--blau);
  border-radius: 50px;
  background: var(--blau);
  color: #fff;
  font: 400 16px/1.5 var(--schrift);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease-in-out, border-color .2s ease-in-out;
}
.knopf:hover, .knopf:focus { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }

.klein { font-size: 14px; }

/* ---------- Bildergalerie mit Wechselbildern (Slider) ---------- */
.slider { position: relative; }
.slider-band {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 14 / 9;
}
.slider-band::-webkit-scrollbar { display: none; }
.slider-bild { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.slider-bild a { display: block; width: 100%; height: 100%; }
.slider-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slider-pfeil {
  position: absolute; top: calc(50% - 40px); width: 44px; height: 60px;
  border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 36px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .2s;
}
.slider:hover .slider-pfeil, .slider-pfeil:focus-visible { opacity: 1; }
.slider-zurueck { left: 0; }
.slider-weiter { right: 0; }
.slider-daumen { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 8px 0 0; padding: 0; }
.slider-daumen button { display: block; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; }
.slider-daumen button[aria-current="true"], .slider-daumen button:hover { opacity: 1; border-color: var(--blau); }
.slider-daumen img { display: block; width: 28px; height: 28px; object-fit: cover; }

/* ---------- Bilderwand (Seite „Bilder“) ---------- */
/* Neue Bilder einfach als weiteren <a class="lupe wand-bild">…</a> einfügen. */
.bilderwand { display: flex; flex-wrap: wrap; gap: 4px; }
.bilderwand::after { content: ""; flex-grow: 10; }
.wand-bild { flex: 1 1 auto; height: 220px; overflow: hidden; }
.wand-bild img { display: block; height: 100%; width: auto; min-width: 100%; max-width: none; object-fit: cover; transition: transform .3s; }
.wand-bild:hover img { transform: scale(1.03); }

/* ---------- Video und Karte (erst nach Klick geladen) ---------- */
.einbettung { position: relative; margin: 0 auto; background: #717677; color: #fff; overflow: hidden; }
.einbettung.video { max-width: 635px; aspect-ratio: 16 / 9; }
.einbettung.karte { height: 250px; background: #8a9a8f; }
.einbettung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.einbettung-hinweis {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; text-align: center; font-size: 14px; line-height: 1.5;
}
.einbettung-hinweis p { margin: 0 0 8px; max-width: 520px; }
.einbettung-hinweis a { color: #fff; }
.einbettung .play { width: 68px; height: 48px; margin-bottom: 10px; }
.einbettung .play rect { fill: rgba(0, 0, 0, .55); }
.einbettung .play path { fill: #fff; }
.einbettung .knopf { font-size: 15px; padding: 6px 16px; }

/* ---------- Kontaktformular ---------- */
.formular { color: var(--text-fliess); }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.feld { margin: 0 0 12px; }
.feld label { display: block; margin-bottom: 4px; }
.feld input, .feld textarea {
  display: block; width: 100%;
  padding: 8px 10px;
  border: 1px solid #bbb; border-radius: 0;
  background: #fff; color: #333;
  font: inherit; font-size: 16px;
}
.feld input:focus, .feld textarea:focus { border-color: var(--blau); outline: 1px solid var(--blau); }
.feld textarea { resize: vertical; min-height: 140px; }
.feld-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .knopf { margin: 4px 0; }

/* vCard-Download */
.download { text-align: center; color: var(--text-fliess); }
.download p { margin: 0 0 8px; }
.download-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid #ddd; text-decoration: none; text-align: left; color: var(--text-fliess);
}
.download-link svg { width: 28px; height: 28px; fill: none; stroke: var(--blau); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-link:hover { border-color: var(--blau); }

/* Rechtstexte (Impressum, Datenschutz) */
.rechtstext h2 { font-size: 26px; text-align: left; margin: 1.4em 0 .5em; }
.rechtstext { font-size: 17px; }

/* ---------- Kontaktleiste (unten auf jeder Seite) ---------- */
.kontaktleiste { background: var(--dunkel); color: #fff; padding: 60px 10px 20px; }
.kontaktleiste-innen { max-width: var(--breite); margin: 0 auto; padding: 20px; }
.kontaktleiste h3 { font-family: "Lora", Georgia, serif; color: var(--gold-hell); font-size: 24px; }
.kontaktleiste .text { color: #fff; }
.kontaktleiste .text p { margin: 0; }
.kontaktleiste .text-block p { margin-bottom: .75em; }
.kontaktleiste a { color: var(--blau); }
.kontaktleiste a:hover { color: #8db3c4; }
.sozial { text-align: center; margin: 0; }
.sozial img { width: 30px; height: 30px; display: inline-block; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--dunkel); color: #fff; padding: 0 10px 30px; }
.fuss p { max-width: var(--breite); margin: 0 auto; padding: 0 20px; font-size: 12.8px; }
.fuss a { color: var(--blau); }

.nach-oben {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(51, 51, 51, .7); border-radius: 3px;
  opacity: 1; transition: opacity .3s;
}
.nach-oben svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nach-oben.versteckt { opacity: 0; pointer-events: none; }

/* ---------- Lightbox (Bilder groß ansehen) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-bild { margin: 0; text-align: center; }
.lightbox-bild img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; }
.lightbox-bild figcaption { color: #eee; padding: 10px 50px 0; font-size: 15px; min-height: 2em; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; font-size: 32px; line-height: 1; border-radius: 3px;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-zu { top: 12px; right: 12px; }
.lightbox-zurueck { left: 12px; top: calc(50% - 24px); }
.lightbox-weiter { right: 12px; top: calc(50% - 24px); }
html.lightbox-offen { overflow: hidden; }

/* =====================================================================
   Kleinere Bildschirme
   ===================================================================== */

/* Unter 1170 px: Menü hinter dem „Hamburger“ oben links (wie bisher) */
@media (max-width: 1169px) {
  .topbar {
    display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 1001;
    height: 50px; background: #fff; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .16);
  }
  .menue-knopf { position: absolute; left: 10px; top: 7px; display: block; width: 36px; height: 36px; padding: 6px 3px; }
  .menue-striche, .menue-striche::before, .menue-striche::after {
    display: block; width: 30px; height: 3px; background: #000; border-radius: 1000px; position: relative;
    transition: transform .3s, top .3s, opacity .3s;
  }
  .menue-striche { top: 10px; }
  .menue-striche::before, .menue-striche::after { content: ""; position: absolute; left: 0; }
  .menue-striche::before { top: -9px; }
  .menue-striche::after { top: 9px; }
  .menue-offen .menue-striche { background: transparent; }
  .menue-offen .menue-striche::before { top: 0; transform: rotate(45deg); }
  .menue-offen .menue-striche::after { top: 0; transform: rotate(-45deg); }

  .kopf { min-height: 0; padding-top: 50px; }
  .kopf-logo { padding-top: 70px; }
  .kopf-titel { padding: 15px 10px 40px; }

  .navigation {
    display: none;
    position: absolute; top: 50px; left: 20px; z-index: 1000;
    width: 300px; text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }
  .menue-offen .navigation, .navigation:target { display: block; }
  .navigation li { display: block; margin: 0; letter-spacing: 0; }
  .navigation a {
    display: block; padding: 13px 15px; text-transform: none; letter-spacing: 0;
    border-bottom: 1px solid rgba(33, 33, 33, .1);
  }
  .navigation li:last-child a { border-bottom: 0; }
  .menue-offen .kopf::after {
    content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); z-index: 90;
  }
  .inhalt-innen { padding: 40px 15px; }
}

@media (max-width: 767px) {
  h1, .kopf-titel a { font-size: 30px; }
  h2 { font-size: 26px; }
  h3, .kontaktleiste h3 { font-size: 22px; }
  .kopf-logo { padding-top: 40px; }
  .kopf-logo img { width: 260px; }
  .inhalt-innen { padding: 20px 15px 40px; }
  .text { font-size: 17px; }
  .text-block, .text p.block { hyphens: auto; -webkit-hyphens: auto; }
  .raster-2, .raster-3, .raster-4, .raster-5 { grid-template-columns: 1fr; row-gap: 30px; }
  .umfliessen-rechts, .umfliessen-links { float: none; width: auto; margin: 0 0 15px; }
  .abstand-45, .abstand-50 { height: 30px; }
  .feld-reihe { grid-template-columns: 1fr; }
  .wand-bild { height: 130px; }
  .kontaktleiste { padding: 20px 10px 10px; }
  .kontaktleiste .raster-3 { row-gap: 20px; }
  .kontaktleiste .bild img { width: 200px; }
  .lightbox-zurueck, .lightbox-weiter { top: auto; bottom: 12px; }
}

@media (max-width: 480px) {
  .navigation { left: 0; right: 0; width: auto; }
}

@media print {
  .topbar, .navigation, .nach-oben, .kontaktleiste, .hintergrund, .slider-pfeil, .slider-daumen { display: none !important; }
  .kopf { min-height: 0; color: #000; }
  .kopf-titel a { color: #000; }
}
