
@charset "UTF-8";

/* === Reset/Grundlagen === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

body {
  margin: 0;
  line-height: 1.5;
  font-family: "Comic Sans MS", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15pt;
  color: rgb(50,50,50);
  padding: 0;
  background-color: rgb(235,247,255);
}

/* === Startseite SVG-Navigation === */

/* Bild exakt in die Fensterhöhe einpassen (ohne Scrollen) */
.svg-wrap {
  width: 100vw;
  height: 97svh;         /* statt 100vh – berücksichtigt Browserleisten */
  margin: 0;
  overflow: hidden;       /* keine Mini-Scrollbars */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;       /* optional: Hintergrundfarbe, falls seitlich Rand entsteht */
}
svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback-Navigation unsichtbar, aber für Screenreader */
.fallback-nav {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* Auf kleinen Screens: SVG ausblenden, Textmenü anzeigen */
@media (max-width: 768px) {
  .svg-wrap { display: none; }
  .fallback-nav {
    position: static;
    clip: auto;
    height: auto;
    width: auto;
    margin: 1rem;
    overflow: visible;
    white-space: normal;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .fallback-nav ul { list-style: none; padding: 0; margin: 0; }
  .fallback-nav li + li { margin-top: .4rem; }
  .fallback-nav a { font-size: 1.1rem; text-decoration: none; color: #0055aa; }
}
/* === Reset/Grundlagen für bessere Responsiveness === */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

img, video { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; }

/* Hintergrundbild von inline-Style nach CSS */
.bg {
  background-image: url("../buidln/Hintergrund_1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* optional */
  min-height: 100dvh;
}

/* Kopfbereich */
.site-header {
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
}
.site-logo {
  max-width: min(100%, 900px);
  height: auto;
}

/* Seitenlayout: Sidebar + Content */
.page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(12px, 2vw, 24px);
  background: rgba(255,255,255,0.88);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Navigation in der Sidebar */
.sidebar { position: sticky; top: 10px; align-self: start; }

.nav { display: grid; gap: 8px; }

.menu1 {
  display: block;             /* war div -> jetzt Link-Block */
  width: 100%;                /* statt fester 152px */
  padding: .5rem .6rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(29,117,176,.25);
  color: rgb(29,117,176);
  font-weight: bold;
}
.menu1:hover { background: rgba(29,117,176,.06); }

/* Hauptinhalt */
.content {
  background: #fff;
  border: 1px solid rgba(29,117,176,.25);
  border-radius: 12px;
  padding: clamp(16px, 2.5vw, 36px);
}

.content h2 { margin-top: 0; margin-bottom: .6rem; }
.content h3 { margin-top: 1.2rem; }

/* Medienblöcke rechts auf groß, gestapelt auf klein */
.media {
  margin: 0 0 1rem 0;
}
@media (min-width: 900px) {
  .media { float: right; margin: 0 0 1rem 1rem; max-width: min(48%, 560px); }
}

/* Responsive Video – moderne Variante */
.video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
}

/* Alternative: iframe im 16:9-Rahmen (nur falls du iframe nutzt) */
.ratio-16x9 { position: relative; width: 100%; padding-top: 56.25%; }
.ratio-16x9 > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 10px;
}

/* Links innerhalb Content */
.fb-link { font-weight: bold; color: rgb(220,80,20); }
.fb-link:hover { text-decoration: underline; }

/* Typografie leichte Anpassung mobil */
body { line-height: 1.5; }

/* Bestehende starre Container deaktivieren, falls auf dieser Seite gesetzt */
.auto, .auto1, .auto2 { width: auto; height: auto; max-width: 100%; overflow: visible; }

/* Bilder-Klassen flexibel machen */
.bild_r, .bild_r1, .bild_m, .bild_l {
  max-width: 100%;
}

/* Floats deiner alten rechts_*/links_* Klassen auf kleinen Screens neutralisieren */
@media (max-width: 899px) {
  .rechts_1, .rechts_2, .rechts_3, .rechts_4, .rechts_5, .rechts_6, .links_2 {
    float: none; margin: 0 0 1rem 0;
  }

/* Breakpoint: auf Handy Sidebar unter Inhalt? – hier: zuerst Inhalt, dann Menü */
@media (max-width: 800px) {
  .page {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;  /* Menü nach unten */
  }
  .content {
    order: 1;  /* Inhalt zuerst */
  }
/* Standard: Fallback-Menü ausblenden (Desktop) */
.fallback-nav{ display:none; }

/* Handy/Tablet: Buttons + hellblauer Hintergrund */
@media (max-width: 900px){
  /* SVG-Navi ausblenden, Fallback zeigen */
  .svg-wrap{ display:none !important; }
  .fallback-nav{ 
    display:block !important; 
    max-width: 680px; 
    margin: 0 auto; 
    padding: 12px;
  }

  /* hellblauer Seitenhintergrund */
  body{ background: rgb(235,247,255); } /* gern anpassen */

  /* Bild/Überschrift im Fallback-Nav ausblenden (nur Buttons zeigen) */
  .fallback-nav > img,
  .fallback-nav > :not(ul){ display:none; }

  /* Liste als Button-Stapel */
  .fallback-nav ul{ list-style:none; padding:0; margin:0; }
  .fallback-nav li + li{ margin-top:12px; }

  .fallback-nav a{
    display:block;
    padding:14px 16px;
    border-radius:14px;
    background:#eaf4ff;                      /* hellblau */
    border:1px solid rgba(29,117,176,.35);   /* blauer Rand */
    color: rgb(29,117,176);
    text-decoration:none;
    font-weight:700;
    font-size: clamp(18px, 4.5vw, 22px);
    line-height:1.2;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.8),
      0 1px 3px rgba(0,0,0,.08);
  }
  .fallback-nav a:hover{ background:#f2f8ff; }
  .fallback-nav a:active{ transform: translateY(1px); box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0.05); }
}

}}

/* === Mobile Buttons + hellblauer Hintergrund (final override) === */
@media (max-width: 900px){
  .svg-wrap{ display: none !important; }
  .fallback-nav{
    position: static !important;
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    margin: 12px auto !important;
    overflow: visible !important;
    white-space: normal !important;
    display: block !important;

    max-width: 680px;
    background: #eaf4ff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .fallback-nav > img,
  .fallback-nav > :not(ul){ display:none !important; }
  .fallback-nav ul{ list-style:none; padding:0; margin:0; }
  .fallback-nav li + li{ margin-top:12px; }
  .fallback-nav a{
    display:block;
    padding:14px 16px;
    border-radius:14px;
    background:#eaf4ff;
    border:1px solid rgba(29,117,176,.35);
    color: rgb(29,117,176);
    text-decoration:none;
    font-weight:700;
    font-size: clamp(18px, 4.5vw, 22px);
    line-height:1.2;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.8),
      0 1px 3px rgba(0,0,0,.08);
  }
  .fallback-nav a:hover{ background:#f2f8ff; }
  .fallback-nav a:active{ transform: translateY(1px); box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0.05); }
  body{ background: rgb(235,247,255) !important; }
}
