@font-face {
  font-family: 'Sansation';
  src: url('fonts/Sansation-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Kalam';
  src: url('fonts/Kalam-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ======================================================================= */
/* 1. GLOBALE EINSTELLUNGEN (für alle Seiten)                              */
/* ======================================================================= */
:root {
    /* Farben index.html */
    --color-white: #FFFFFF;
    --color-dark: #444444; 
    --color-dark-grey: #5E5E5E;
    --color-light-grey: #CDC9C6;
    --color-brown: #7F756C;
    --color-midbrown: #968D84;
    --color-cta-orange: #FF9800;
    
    /* Farben ueber.html */
    --color-dark-blue: #0E1319;
    --color-light-blue: #CBD2DD;
    --color-orange-alt: #FF9800;
    --color-link-blue: #252d3a;

    /* Schriftarten */
    --font-heading: 'Exo', sans-serif;
    --font-heading-alt: 'Kalam', sans-serif;
    --font-body: 'Sansation', sans-serif;
    --font-links: 'Open Sans', sans-serif;

    /* Abstände */
    --spacing-mobile: 20px;
    --spacing-desktop: 60px;
    --v-spacing: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark); /* Korrigiert von 'font-dark' auf '--color-dark' */
    background-color: #e9e8e7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Globale Layout-Elemente */
.site-wrapper {
  max-width: 1080px; 
  margin: 40px auto;
  background-color: var(--color-white);
  box-shadow: 0 0 30px rgba(0,0,0,0.50);
  overflow: hidden;
}
/* Korrektur-Klasse für doppeltes Padding am Ende der index.html */
.section-wrapper.no-padding-bottom {
    padding-bottom: 0 !important;
}

.container {
    width: 100%;
    padding-left: var(--spacing-mobile);
    padding-right: var(--spacing-mobile);
}
img { max-width: 100%; height: auto; display: block; }
.hero-image-desktop, .content-image-desktop { display: none; }
.hero-image-mobile, .content-image-mobile { display: block; }

/* Header & Footer (Global) */
.site-header .container, .site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logos & Navigation */
.logo img { width: 160px; height: auto; }

/* Desktop Navigation (standardmäßig versteckt, wird auf Desktop sichtbar) */
.main-nav {
    display: none; 
}
.main-nav a {
    font-family: var(--font-links);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    text-decoration: none;
    margin-left: 1em;
}
/* Fix: Stellt sicher, dass die Navigation im Footer immer sichtbar ist (Mobile & Desktop) */
.site-footer .main-nav {
    display: flex; /* Stellt die Sichtbarkeit her */
    flex-direction: column; /* Sorgt für die Zentrierung und Untereinander-Anordnung auf Mobile */
    text-align: center; /* Zentriert die Texte */
}
/* Fix: Verhindert Farbwechsel bei besuchten Links (Optik) */
.main-nav a:visited,
.mobile-hidden a:visited,
.cta-box .cta-heading a:visited /* <--- NEU: Zielt auf Links in h3.cta-heading in den CTA-Boxen */
{ 
    color: inherit !important; /* Hinzufügen von !important zur Sicherheit, da die Vererbung sonst fehlschlägt */
}

/* Hamburger-Menü (standardmäßig versteckt, wird auf Mobile sichtbar) */
.hamburger {
  display: none; 
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}
.hamburger span {
  display: block;
  height: 4px;
  background-color: var(--color-dark);
  border-radius: 2px;
}

/* ==== Mobile Navigation verstecken (Mit Smoothie-Animation) ==== */
.mobile-hidden {
  display: flex; 
  flex-direction: column;
  align-items: center;
  background-color: var(--color-white);
  position: absolute;
  top: 90px;
  right: 0;
  left: 0;
  padding: 0 0; /* Wichtig: Padding für geschlossene Ansicht auf 0 setzen */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 2;
  
  /* NEUE ANIMATIONS-EIGENSCHAFTEN */
  max-height: 0; /* Menü ist geschlossen */
  visibility: hidden; /* Menü ist unsichtbar */
  opacity: 0; /* Menü ist transparent */
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out, visibility 0.3s;
}

.mobile-hidden a {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

/* ==== Aktivierung (Zeigt das Menü sanft an) ==== */
.mobile-nav-active .mobile-hidden {
  max-height: 500px; /* Menühöhe öffnen */
  visibility: visible;
  opacity: 1;
  padding: 1rem 0; /* Das ursprüngliche Padding wiederherstellen */
}

/* Fix: Verhindert Farbwechsel bei besuchten Links (Optik) */
.main-nav a:visited,
.mobile-hidden a:visited { 
    color: inherit; 
}
/* Fix: Stellt sicher, dass die Links im mobilen Menü IMMER die vererbte Farbe haben
        und ignoriert die Browser-Standardfarben (blau, rot, lila/grau). */
.mobile-hidden a,
.mobile-hidden a:link,     /* Unbesuchter Link (Standard: Blau) */
.mobile-hidden a:visited,  /* Besuchter Link (Standard: Lila/Grau) */
.mobile-hidden a:hover,
.mobile-hidden a:active    /* Während des Klicks (Standard: Rot) */
{
    color: inherit !important; 
    /* color: var(--color-dark) !important; <--- Alternative, falls 'inherit' nicht klappt */
    /* text-decoration: none;  <--- Optional, falls du die Unterstreichung entfernen möchtest */
}
/* Footer Global */
/* Footer (Global/Mobile) */
.site-footer .container {
    flex-direction: column; /* Stapelung auf Mobile */
    height: auto;
    padding-top: 30px;
    padding-bottom: 30px;
}
.site-footer .logo { margin-bottom: 20px; }

/* Wichtig: Fügt display:flex hinzu und setzt auf Mobile column. */
.site-footer .main-nav { 
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Links untereinander */
    text-align: center; 
}
.site-footer .main-nav a { 
    display: block;
    margin: 5px 0; /* Vertikaler Abstand auf Mobile */
}
/* Am Ende von Abschnitt 1. GLOBALE EINSTELLUNGEN - oder dort lassen, wo es war */
@media (max-width: 991px) {
  .hamburger {
    display: flex; /* Hamburger auf Mobile anzeigen */
  }
  /* Die Hauptnavigation (.main-nav) ist bereits global auf display: none gesetzt und bleibt es hier. */
}

/* ======================================================================= */
/* 2. STILE NUR FÜR INDEX.HTML                                             */
/* ======================================================================= */

.page-index { text-align: center; }
.page-index .main-nav a { color: var(--color-brown); }
.page-index h1, .page-index h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    line-height: 1.2;
    padding-bottom: var(--v-spacing);
}
.page-index p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.7;
    max-width: 70ch;
    margin: 0 auto; /* Wichtig für Zentrierung */
}
.page-index .cta-heading {
    font-family: var(--font-body);
    color: var(--color-cta-orange);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-align: left;
}
/* NEU: Setzt die Standardfarbe (unbesucht) der CTA-Links auf Orange und überschreibt das Browser-Blau. */
.cta-box .cta-heading a {
    color: var(--color-cta-orange) !important; 
}
.page-index .cta-box p { font-size: clamp(1rem, 1.8vw, 1.2rem); text-align: justify; }
.hero-image-container { line-height: 0; }
.section-wrapper { padding-top: var(--v-spacing); padding-bottom: var(--v-spacing); }
.section-wrapper.no-padding-top { padding-top: 0; }
.text-container { padding-top: var(--v-spacing); }
.bg-color-1 { background-color: var(--color-brown); color: var(--color-white); }
.bg-color-2 { background-color: var(--color-light-grey); color: var(--color-dark); }
.bg-color-3 { background-color: var(--color-midbrown); color: var(--color-white); }
.cta-box { padding-top: var(--v-spacing); padding-bottom: var(--v-spacing); }
.bg-color-4 { background-color: var(--color-dark); color: var(--color-white); }
.bg-color-5 { background-color: var(--color-dark-grey); color: var(--color-white); }
.page-index .highlight { text-decoration: underline; }
.cover-image { margin: 2em auto; width: 60%; max-width: 284px; }
.feature-list { list-style: none; text-align: center; font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
.feature-list li { margin-bottom: 1.5em; }

/* Anpassung der Hamburger-Farbe für die Index-Seite (Braun) */
.page-index .hamburger span {
    background-color: var(--color-brown);
}

/* ======================================================================= */
/* 3. STILE NUR FÜR UEBER.HTML                                             */
/* ======================================================================= */
.page-about .main-nav a { color: var(--color-link-blue); }
.page-about p { margin: 0 auto; }
.page-about .blocksatz { text-align: justify; hyphens: auto; }
.page-about .text-dark-blue { color: var(--color-dark-blue); }

/* ============================= */
/* 1. Basis-Reset & Grundlayout */
/* ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Sansation', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #e9e8e7;
  color: #444444;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
  max-width: 1080px;
  margin: 40px auto;
  background-color: #FFFFFF;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* ============================= */
/* 2. Hero-Bereich für ueber.html */
/* ============================= */
.hero-ueber {
  position: relative;
  width: 100%;
  z-index: 0;
}

/* Nur das passende Bild anzeigen */
.hero-image-desktop {
  display: none;
}
.hero-image-mobile {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* Overlay über dem Bild */
.hero-ueber::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* halbtransparentes Schwarz */
  z-index: 1;
}

/* Textblöcke über dem Overlay */
.hero-text-top,
.hero-text-bottom {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  padding: 0.5rem;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 33ch;
}

/* Headline oben */
.hero-text-top {
  top: 3%;
  color: #FFFFFF;
  font-family: 'Kalam', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  line-height: 1.3;
}

/* Subtitel unten */
.hero-text-bottom {
  bottom: 0%;
  color: #FF9800;
  font-family: 'Sansation', sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  line-height: 1.35;
}

/* Headline-Tag direkt ansprechbar */
.hero-text-top h2 {
  font-size: inherit;
  font-family: inherit;
  margin: 0;
}

/* ============================= */
/* 3. Desktop-Anpassungen ab 992px */
/* ============================= */
@media (min-width: 992px) {
  .hero-image-desktop {
    display: block;
  }
  .hero-image-mobile {
    display: none;
  }

  .hero-text-top {
    top: 15%;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    max-width: 36ch;
  }

  .hero-text-bottom {
    bottom: 10%;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    max-width: 40ch;
  }
}

.headline-kalam {
    font-family: var(--font-heading-alt);
    font-size: clamp(2rem, 7vw, 3rem);
    text-align: left;
    margin-bottom: 30px;
    padding: 0 var(--spacing-mobile);
}

.page-about .bg-color-dark-blue { background-color: var(--color-dark-blue); color: var(--color-white); }
.page-about .bg-color-light-blue { background-color: var(--color-light-blue); }
.flex-container { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 40px; }
.flex-item-image { flex-basis: 50%; }
.flex-item-text { flex-basis: 50%; text-align: left; }
.cta-orange { color: #0E1319; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.5; }
.amazon-button { display: inline-block; background-color: #FF9800; color: var(--color-white); padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; margin-top: 20px; }


/* ======================================================================= */
/* 4. STILE FÜR IMPRESSUM & DATENSCHUTZ                                    */
/* ======================================================================= */
.page-legal .main-nav a { color: var(--color-link-blue); }
.content-page { padding: 40px var(--spacing-mobile) 60px; text-align: left; }
.content-page h1 {
    font-family: var(--font-heading-alt);
    color: var(--color-dark-blue);
    padding-bottom: 40px;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
}
.content-page p { text-align: justify; hyphens: auto; margin: 0 0 1.5em 0; }

/* ======================================================================= */
/* Danke-Seite                                                             */
/* ======================================================================= */
.danke figure {
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
}

.danke img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.danke figcaption {
  margin-top: 8px;
  font-size: 0.95em;
  color: #555;
}

.danke {
  text-align: center;
}
.danke p {
  text-align: center;
}

.danke figure a {
  position: relative;
  display: inline-block;
}

.danke figure a::after {
  content: "🔍";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.danke figure a:hover::after {
  opacity: 1;
}

/* ======================================================================= */
/* Download-Seite                                                             */
/* ======================================================================= */
/* Füge dies in deine Style-Definitionen ein */
figure a {
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure a:hover {
    /* Orange-Effekt (#FF9800) um die Klickbarkeit zu betonen */
    box-shadow: 0 0 0 4px #FF9800, 0 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

figure img {
    /* Wichtig: Entferne den Border-Radius, falls er in deinem Original-CSS fehlt */
    border-radius: 8px; 
}

/* ======================================================================= */
/* 5. DESKTOP-ANPASSUNGEN (ab 992px) - ZUSAMMENGEFASST                     */
/* ======================================================================= */
@media (min-width: 992px) {
    /* Layout & Sichtbarkeit */
    .container {
        padding-left: var(--spacing-desktop);
        padding-right: var(--spacing-desktop);
    }
    .hero-image-desktop, .content-image-desktop { display: block; }
    .hero-image-mobile, .content-image-mobile { display: none; }
    
    /* Navigation: Hamburger ausblenden, Haupt-Navi einblenden */
    .hamburger { 
        display: none !important; 
    }
    .main-nav { 
        display: flex !important; /* WICHTIG: Haupt-Navi anzeigen (anstelle von block, da es sich um eine Liste von Links handelt) */
    }
    .site-footer .main-nav a { 
        display: inline; /* Footer-Links wieder nebeneinander */
    }
    
    /* Hero-Text-Anpassungen (Zusammengeführt aus den doppelten Blöcken) */
    .hero-text-top {
        top: 8%; /* Final wirksamer Wert */
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        max-width: 36ch;
    }

    .hero-text-bottom {
        bottom: 0%; /* Final wirksamer Wert */
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        max-width: 40ch;
    }
	
/* Header & Footer Desktop */
    .site-header .container { height: 150px; }

    .site-footer .container {
        flex-direction: row; /* Wichtig: Logo links, Navi rechts */
        height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .logo img { width: auto; height: 80px; }
    .site-footer .logo { margin-bottom: 0; }

    /* Fix: Setzt die Footer-Navi auf Desktop nebeneinander */
    .site-footer .main-nav {
        flex-direction: row; /* ZWINGT DIE LINKS NEBENEINANDER (überschreibt column) */
    }
    
    /* Abstände für alle Nav-Links auf Desktop (Header und Footer) */
    .main-nav a { 
        font-size: 1.4rem; 
        margin-left: 2em; /* Abstände zwischen den Links */
    }
    
    .site-footer .main-nav a { 
        /* Überschreibt die mobile display:block; */
        display: inline;
        /* margin-left: 2em; wird vom main-nav a Block übernommen */
		margin-left: 2em; /* Oder 1em, je nachdem wie groß der Abstand im Header ist */
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* Index-Seite Desktop */
    .page-index .cover-image { max-width: 400px; }

    /* Ueber-Seite Desktop */
    .headline-kalam { padding: 0 var(--spacing-desktop); }
    .flex-container { flex-direction: row; }
    
    /* Impressum/Datenschutz Desktop */
    .content-page { padding: 40px var(--spacing-desktop) 60px; }
}