
:root {
  --primary: #1b2e75;
  --secondary: #4882d8;
  --black: #0A0A0A;
  --gray: #6B7280;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; color: var(--black);}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

body { background: var(--secondary); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #FFFFFF; border-bottom: 1px solid #E5E7EB;
  backdrop-filter: saturate(140%) blur(6px);
  display: flex; align-items: center; justify-content: space-between; padding: 6px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: transparent; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 22px; color: #4882d8; }

.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 12px; font-size: 14px;
}
.nav a:hover { background: rgba(0,0,0,0.05); }

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #3a8fff 100%);
  color: white; padding: 64px 0;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.hero h1 { font-size: 40px; margin: 0 0 6px 0; }
.hero p { opacity: 0.95; line-height: 1.6; }
.hero-actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-block; background: var(--white); color: var(--black); padding: 6px 16px; border-radius: 16px; font-weight: 600; border: none;
}
.text-link { color: white; text-decoration: underline; opacity: 0.95; }

.section { padding: 48px 0; }
.subtitle { color: var(--black); opacity: 0.7; margin-top: 4px; margin-bottom: 20px; }
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: white; border-radius: 16px; padding: 16px; box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.link-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.link-card { transition: transform 0.15s ease, box-shadow 0.15s ease; display: block; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

ul { margin: 8px 0 0 18px; }
.media-card img { width: 100%; border-radius: 12px; }
.caption { font-size: 12px; color: #0A0A0A; opacity: 0.7; margin-top: 6px; }
.legal-note { font-size: 12px; color: #0A0A0A; opacity: 0.8; margin-top: 10px; }

/* ==========================================
   Medienabschnitte – Design beibehalten,
   altes Grid-Layout deaktiviert (Flexbox aktiv)
   ========================================== */
.media-split { 
  /* display: grid;  <-- deaktiviert, um Konflikte mit Flex zu vermeiden */
  grid-template-columns: 1fr; 
  gap: 16px; 
}

.media-split .media img { 
  width: 100%; 
  border-radius: 12px; 
}

.media-split .copy { 
  background: white; 
  border-radius: 16px; 
  padding: 16px; 
  box-shadow: 0 8px 28px rgba(0,0,0,0.08); 
}

/* Desktop-Layout: Grid-Spalten deaktiviert, Flex übernimmt */
@media (min-width: 900px) {
  /* .media-split { grid-template-columns: 1.1fr 1fr; } */
  /* .media-split.reverse { grid-template-columns: 1fr 1.1fr; } */
}

.reverse .media { order: 2; }
.reverse .copy { order: 1; }


.about-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-media img { width: 100%; border-radius: 12px; }
.about-copy { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2-compact { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 2fr 1fr; }
  .grid-2-compact { grid-template-columns: 1fr 1fr; }
}
.contact-info div { margin-bottom: 8px; }
.contact-visual { width: 100%; border-radius: 12px; margin-top: 8px; }

.tiny { font-size: 12px; color: #0A0A0A; opacity: 0.7; }

.site-footer { border-top: 1px solid #E5E7EB; margin-top: 40px; background: rgba(255,255,255,0.85); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-title { font-weight: 600; margin-bottom: 6px; }
.copyright { text-align: center; font-size: 12px; color: #111827; padding-bottom: 20px; opacity: 0.7; }


.brand-name { color: #1b2e75; }
.brand-text { color: #1b2e75; }
.nav a { color: #1b2e75; }
.nav a:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #27408f 100%);
}
/* Kontaktbereich Styling */
#kontakt .card form input,
#kontakt .card form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  padding: 10px 12px;
  margin-top: 8px;
  font: inherit;
}
#kontakt .grid-2-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 900px) {
  #kontakt .grid-2-compact {
    grid-template-columns: 1fr 1fr;
  }
}
#kontakt .card {
  background: #FFFFFF;
}
#kontakt .card.contact-info {
  background: var(--primary);
  color: #FFFFFF;
}
#kontakt .card.contact-info a {
  color: #FFFFFF;
  text-decoration: underline;
}
#kontakt .contact-visual {
  margin-top: 12px;
  border-radius: 12px;
}
#kontakt .btn {
  background: var(--primary);
  color: #FFFFFF;
}
.site-footer {
  border-top: 1px solid #E5E7EB;
  margin-top: 40px;
  background: #FFFFFF;
}
.footer-title { color: #4882d8; font-size: 22px; }
.copyright { color: #4882d8; opacity: 0.8; font-size: 14px; }

/* Navigation font enlargement */
nav ul li a {
    font-size: 20px !important;
}

/* Brand title enlargement */
.brand-name {
    font-size: 28px !important;
}

/* Navigation font enlarged to match footer titles */
nav ul li a {
    font-size: 22px !important;
}


/* Navigation Schriftgröße angleichen an Fußzeilentitel */
.nav a {
    font-size: 22px !important;
}

/* Fußzeilen-Titel in Dunkelblau (#1b2e75) */
.footer h3 {
    color: #1b2e75 !important;
}


/* Fußzeilen-Titel-Farbe korrigiert auf Dunkelblau */
.footer-title {
    color: #1b2e75 !important;
}


/* Kopfzeile Hintergrund dunkelblau + weiße Schrift */
.header, header, nav, .nav {
    background-color: #1b2e75 !important;
}
.nav a {
    color: #ffffff !important;
}

/* Fußzeile Hintergrund dunkelblau + weiße Schrift */
.footer, footer {
    background-color: #1b2e75 !important;
    color: #ffffff !important;
}
.footer a { color: #ffffff !important; }
.footer-title { color: #ffffff !important; }




/* Vollständige Weiß-Färbung für Fußzeile */
.footer, .footer *, footer, footer * {
    color: #ffffff !important;
}


/* v3_6 - Reduced nav & footer title font sizes + brand name white */

/* Navigation font size to 20px */
.nav a {
    font-size: 20px !important;
    color: #ffffff !important;
}

/* Brand name white, size unchanged */
.brand-name {
    color: #ffffff !important;
    font-size: 28px !important;
}

/* Footer titles now 20px */
.footer-title {
    font-size: 20px !important;
    color: #ffffff !important;
}

/* Abschnitt mit Bild und Text */
.two-column {
  display: flex;
  align-items: stretch;   /* beide Spalten gleich hoch */
  gap: 2rem;              /* Abstand zwischen Text und Bild */
  margin-bottom: 4rem;    /* Abstand zu nächsten Abschnitten */
}

/* Bildseite */
.image-container {
  flex: 1;                /* nimmt 50% Platz */
  display: flex;
}

.section-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Textseite */
.text-container {
  flex: 1;                /* auch 50% Platz */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Text mittig ausrichten */
  max-height: 400px;
  overflow-y: auto;
}

/* ===========================================================
   Einheitliches, konfliktfreies Layout für alle Bild/Text-Abschnitte
   =========================================================== */
.media-split {
  display: flex;
  align-items: flex-start;          /* keine Dehnung, natürliche Höhe */
  justify-content: space-between;
  gap: 2rem;                        /* Abstand zwischen Bild und Text */
  margin-bottom: 4rem;
  flex-wrap: nowrap;
}

/* Jedes zweite Element umkehren → Bild/Text abwechselnd */
.media-split:nth-of-type(even) {
  flex-direction: row-reverse;
}

/* ===========================
   BILDSEITE
   =========================== */
.media {
  flex: 1;
  display: flex;
  flex-direction: column;           /* Bild + Quelltext untereinander */
  align-items: stretch;
}

.media img {
  width: 100%;
  height: auto !important;          /* proportional, keine Überdehnung */
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Quellennachweis */
.media .credit {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  margin-top: 0.3rem;
}

/* ===========================
   TEXTSEITE
   =========================== */
.copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;          /* Text vertikal zentriert */
  background: white;                /* Beibehaltung ursprünglicher Boxoptik */
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.copy h2 {
  margin-bottom: 1rem;
}

.copy p {
  line-height: 1.6;
}

/* ===========================
   RESPONSIVE (Tablets & Smartphones)
   =========================== */
@media (max-width: 900px) {
  .media-split {
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
  }

  .media-split:nth-of-type(even) {
    flex-direction: column;         /* auch umgekehrte Abschnitte untereinander */
  }

  .media,
  .copy {
    width: 100%;
  }

  .media img {
    width: 100%;
    height: auto;
  }

  .media .credit {
    text-align: center;
  }
}


  .media-split:nth-of-type(even) {
    flex-direction: column; /* auch umgekehrte Abschnitte untereinander anordnen */
  }

  .media,
  .copy {
    width: 100%;
  }

  .media img {
    width: 100%;
    height: auto;               /* natürliche Bildhöhe */
  }

  .media .credit {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .media-split {
    flex-direction: column;
    align-items: center;
  }

  .media,
  .copy {
    width: 100%;
  }

  .media img {
    width: 100%;
    height: auto;               /* natürliche Bildhöhe */
  }
}
