/* ==========================================================================
   Donau Krake – Stylesheet
   Farben: Blau & Weiß, Rot als Auszeichnungsfarbe für Links/CTAs
   Schrift: Baloo 2 (Headlines, verspielt/rund – passt zum Logo-Schriftzug)
            Mulish (Fließtext, ruhig & gut lesbar)
   ========================================================================== */

/* baloo-2-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/baloo-2-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* baloo-2-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/baloo-2-v23-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* baloo-2-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/baloo-2-v23-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* baloo-2-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/baloo-2-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* baloo-2-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/baloo-2-v23-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* mulish-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/mulish-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* mulish-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/mulish-v18-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* mulish-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/mulish-v18-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* mulish-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/mulish-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* mulish-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/mulish-v18-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
  /* Farben */
  --blue-900: #22578f;   /* dunkles Navy – Headlines */
  --blue-700: #1f3a5c;   /* Footer-Hintergrund*/
  --blue-600: #4a77ac;   /* Markenblau – Logo-Ton, Buttons sekundär, Rahmen */
  --blue-200: #cfe1f3;   /* helles Blau – Rahmen, Trenner */
  --blue-100: #d6eaf8;   /* Blau-Tint – Hero-/Abschnittshintergrund */
  --white: #ffffff;
  --red-600: #d63b32;    /* Auszeichnungsfarbe – Links, CTAs */
  --red-700: #c23a32;    /* Hover-Zustand */
  --gray-700: #41505d;   /* Fließtext */
  --gray-500: #6f7f8c;   /* sekundärer Text */

  /* Typografie */
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1080px;
  --content-width: 700px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-height: 64px;
}

/* ----- Reset & Basics ------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red-600);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--red-700);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }

ul { margin-bottom: 1rem; padding-left: 1.2rem; }

.visually-hidden {
  position: absolute;
  left: -9999px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-900);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* ----- Wrapper ---------------------------------------------------------- */

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ----- Header / Navigation ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--blue-200);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-900);
}

.brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

/* Hamburger-Button (mobil) */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--blue-900);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 90;
}

.main-nav[data-open="true"] {
  transform: translateX(0);
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue-200);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--red-600);
}

/* Desktop-Navigation */

@media (min-width: 700px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    inset: auto;
    background: none;
    flex-direction: row;
    padding: 0;
    transform: none;
    transition: none;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 1.75rem;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    color: var(--blue-900);
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: var(--red-600);
    border-bottom-color: var(--red-600);
    text-decoration: none;
  }

  .main-nav a[aria-current="page"] {
    color: var(--red-600);
    border-bottom-color: var(--red-600);
  }
}

/* ----- Hero --------------------------------------------------------------*/

.hero {
  background: var(--blue-100);
  padding: 2.5rem 0 0;
  text-align: center;
}

.hero .wrapper {
  padding-bottom: 0.5rem;
}

.hero-icon {
  width: 220px;
  height: 220px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(31, 58, 92, 0.18);
}

.hero p {
  margin-bottom: 0.6rem;
}

.hero h1 {
  max-width: 38ch;
  margin: 0 auto;
  color: #22578f;
  font-weight: bold;
  font-size: 1.5rem;
  font-family: var(--font-display);
  line-height: 2rem;
}

.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px; /* Rundungsfehler/Subpixel-Lücke vermeiden */
}

/* ----- Sections allgemein ------------------------------------------------*/

.section {
  padding: 0.75rem 0;
}

.section--alt {
  background: var(--blue-100);
}

.section-lead {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ----- Buttons / Links als Buttons ---------------------------------------*/

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--red-600);
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--red-600);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red-700);
  border-color: var(--red-700);
  color: var(--white);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--blue-600);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* ----- Über uns: Bild-Galerie --------------------------------------------*/

.media-figure {
  margin: 0 auto 1.5rem;
  max-width: 420px;
  text-align: center;
}

.media-figure img {
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-200);
}

.media-figure figcaption {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Aktuelles / News-Box -----------------------------------------------*/

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

@media (min-width: 600px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.0rem 1.4rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-card h3 {
  margin-bottom: 0.5rem;
}

.news-card p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.news-card:hover {
  box-shadow: 0 6px 18px rgba(31, 58, 92, 0.12);
}

.news-card--presse {
  border-left-color: var(--red-600);
}

.news-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.news-card--presse .news-eyebrow {
  color: var(--red-600);
}

.news-meta-dot {
  color: var(--blue-200);
  font-size: 0.7rem;
}

.news-card--presse .news-meta-dot {
  color: #f0c2be;
}


.news-date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.news-link {
  font-weight: 700;
  font-size: 0.9rem;
}

.news-link::after {
  content: " →";
}

/* ----- Mach mit: Kalender ------------------------------------------------*/

.calendar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--blue-200);
  background: var(--blue-100);
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .calendar-frame {
    aspect-ratio: 16 / 10;
  }
}

.calendar-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.steps-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.step-mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ----- Gut zu wissen: FAQ -------------------------------------------------*/

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  color: var(--blue-900);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--red-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 1.1rem 1.1rem;
  color: var(--gray-700);
}

/* ----- Kontakt / Impressum ------------------------------------------------*/

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.contact-card {
  background: var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.channel-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.channel-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--blue-900);
  font-weight: 600;
}

.channel-list a:hover,
.channel-list a:focus-visible {
  border-color: var(--red-600);
  color: var(--red-600);
  text-decoration: none;
}

.channel-list .channel-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--red-600);
}

.impressum dt {
  font-weight: 600;
  color: var(--blue-900);
  margin-top: 0.9rem;
}

.impressum dd {
  margin: 0 0 0.2rem 0;
}

/* ----- Footer --------------------------------------------------------------*/

.site-footer {
  background: var(--blue-700);
  color: var(--blue-200);
  padding-top: 0;
}

.site-footer .wave-divider {
  margin-bottom: 0;
}

.footer-inner {
  padding: 2rem 0 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.3rem 0 0 -1.2rem;
}

.footer-links a {
  color: var(--blue-200);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-meta {
  font-size: 0.85rem;
  color: rgba(207, 225, 243, 0.7);
  margin-top: 1.5rem;
}

/* ----- Sprachauswahl (Google Translate) ----------------------------------- */

/* Googles eigenes Widget komplett verstecken */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important; /* Google verschiebt den Body – rückgängig machen */
}

/* Eigenes Dropdown */
.lang-picker {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid var(--blue-200);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-900);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: var(--red-600);
  color: var(--red-600);
}

.lang-btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.lang-btn .lang-label {
  line-height: 1;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1.5px solid var(--blue-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(31, 58, 92, 0.14);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}

.lang-dropdown[data-open="true"] {
  display: block;
}

.lang-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.lang-dropdown li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-dropdown li button:hover {
  background: var(--blue-100);
  color: var(--red-600);
}

.lang-dropdown li button[data-active="true"] {
  color: var(--red-600);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Im Mobil-Menü: Sprachauswahl als horizontale Leiste am unteren Rand */
@media (max-width: 699px) {
  .lang-picker {
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .lang-btn {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
  }

  .lang-btn:hover,
  .lang-btn:focus-visible {
    border-color: var(--white);
    color: var(--white);
  }

  .lang-dropdown {
    bottom: calc(100% + 8px);
    top: auto;
    right: 0;
  }
}

/* ----- Ticker (Nächster Clean-up) -----------------------------------------*/

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--blue-900);
  padding: 0.55rem 0;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Jedes Segment */
.ticker-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2.5rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ticker-segment svg {
  flex: none;
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.ticker-dot {
  opacity: 0.4;
  font-weight: 400;
  padding: 0 0.15rem;
}

.ticker-date {
  color: #ffd6d4; /* zartes Rot-Weiß für das Datum */
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    /* Statisch zentriert darstellen */
    justify-content: center;
    width: 100%;
  }
}

/* ----- Bewegung reduzieren ------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
