/* =========================================
   GRUNDLAGEN & VARIABLEN
   ========================================= */
:root {
    --primary: #2c3e50;    /* Dunkelblau / Dunkelgrau */
    --accent: #003da5;     /* Akzent-Blau */
    --light: #f4f7f6;
    --text: #333;
    --white: #ffffff;
    --mmzz: #703da0;
    --BackHell: #f9f9f9;
    --nacht: #000033;
    --gold: #FFD700;
    --lightgold: #FDDC5C;
    --accent-gold: #f1c40f; /* Gold-Gelb für Highlights */
    --vanilla: #fdf5e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    color: var(--text); 
}

.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }

/* =========================================
   NAVIGATION
   ========================================= */
.custom-nav { 
    position: sticky; 
    top: 0; 
    background: white; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    z-index: 1000; 
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 10px 20px; 
}
.nav-logo { display: flex; align-items: center; text-decoration: none; gap: 12px; }
.nav-icon { height: 60px; width: auto; border-radius: 5px; }
.nav-brand-name { color: var(--primary); font-weight: bold; font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-weight: 700 !important; }

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none; /* Versteckt auf Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* =========================================
   HERO-BEREICH (START)
   ========================================= */
.hero { 
    background: var(--nacht); 
    min-height: calc(100vh - 0px); 
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; width: 100%; }
.hero-text h1 { font-size: 2.0rem; color: var(--gold); text-align: center; margin-bottom: 20px; line-height: 1.6; }

.motto { 
    font-size: 1.3rem; 
    font-style: italic; 
    border-left: 4px solid var(--accent); 
    padding: 10px 20px; 
    margin: 0; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

.intro-bio { margin-top: 30px; font-size: 1.2rem; line-height: 1.2; color: var(--gold); text-align: center; }
.isbn { font-family: monospace; font-size: 1rem; margin-bottom: 25px; color: var(--accent-gold); }
.mission-statement { font-weight: 500; color: var(--gold); }
.motto-small { 
    font-size: 1.2rem; 
    font-style: italic; 
    border-left: 4px solid var(--gold); 
    padding-left: 15px; 
    margin: 20px 0; 
}

.hero-cover { 
    width: 100%; 
    max-width: 600px; 
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* Buch-Grid mit Hintergrundbild */
.section-book { 
    /* Hier wird das Bild und die Fallback-Farbe definiert */
    background: url('images/section-buch.jpg') center center / cover no-repeat, var(--nacht);
    min-height: calc(100vh - 0px); 
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

@media (min-width: 1000px) {
    .book-grid { grid-template-columns: repeat(4, 1fr); }
}

.book-tile {
    background: var(--vanilla);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textfarbe innerhalb der Buch-Kacheln */
.book-tile p {
    color: var(--accent);
    font-weight: 600; /* Optional: Macht den Text etwas dicker */
    margin: 0;
}

.book-tile:hover { transform: translateY(-5px); border-bottom: 4px solid var(--accent); }

/* Overlay */
.text-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-overlay { position: absolute; top: 10px; right: 20px; font-size: 35px; cursor: pointer; }

/* =======================================
   Abschnitt Über Uns
   ======================================= */
/* ÜberUns-Grid mit Hintergrundbild */
.section-wir { 
    /* Hier wird das Bild und die Fallback-Farbe definiert */
    background: url('images/wir.jpg') center center / cover no-repeat, var(--nacht);
    min-height: calc(100vh - 0px); 
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.wir-title { 
	text-align: center; 
	margin-bottom: 30px; 
	font-size: 2rem; 
	color: var(--vanilla); 
}
.wir-subtitle { 
	text-align: center; 
	margin-bottom: 40px; 
	font-size: 1.6rem; 
	color: var(--vanilla); 
}

.wir-grid { 
	display: grid; 
	grid-template-columns: 0.4fr 1.2fr; 
	gap: 30px; 
	align-items: center; 
	width: 100%; 
}

.wir-image { 
    width: 100%; 
    max-width: 300px; 
	  margin: 0 auto;   
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.wir-txt { 
	margin-top: 10px; 
	font-size: 1.3rem; 
	line-height: 1.35; 
	color: var(--vanilla); 
	text-align: left;
}
.txt-juergen { 
	font-weight: 500; 
	color: var(--vanilla); 
}
.txt-andrea { 
	font-weight: 500; 
	color: var(--vanilla); 
}

/* =========================================
	Leseprobe mit Hintergrundbild und Slider
	========================================== */
/* Buch-Grid mit Hintergrundbild */
.section-insight { 
    /* Hier wird das Bild und die Fallback-Farbe definiert */
    background: url('images/section-insight.jpg') center center / cover no-repeat, var(--nacht);
    min-height: calc(100vh - 0px); 
    display: flex;
    align-items: center;
    padding: 20px 0;
}

/* Layout: Überschrift links, Slider rechts */
/* Den gesamten Inhaltsbereich unter die Navigation schieben */
.section-insight .container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    padding-top: 80px; /* Erhöht den Abstand nach oben zur Navigationsleiste */
    max-width: 1200px;
}

.pdf-wrapper {
    flex: 1;
    width: 100%;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 850px) {
    .pdf-wrapper iframe {
        height: 500px; /* Auf dem Handy etwas kürzer für bessere Scrollbarkeit */
    }
}

/* Die Text-Spalte (Überschriften) */
.section-insight .title-column {
    flex: 0 0 200px; /* Feste Breite für die Titel, wächst nicht */
    text-align: left; /* Text linksbündig */
}

.section-insight .section-title, 
.section-insight .section-subtitle {
    text-align: left; /* Überschreibt die globale Zentrierung */
    margin-bottom: 10px;
}

/* Die Slider-Spalte */
.section-insight .slider-wrapper {
    flex: 1; /* Nimmt den restlichen Platz ein */
    margin: 0; /* Entfernt die automatische Zentrierung */
    max-width: none; /* Erlaubt volle Breite innerhalb des Flex-Items */
}

.section-insight .pdf-hint {
    color: var(--gold);      /* Nutzt deine definierte Gold-Farbe */
    font-style: italic;      /* Macht den Text kursiv */
    margin-top: 15px;
    line-height: 1.4;
    font-weight: 500;        /* Optional: etwas kräftiger, damit Gold gut lesbar ist */
}

/* Responsive: Auf dem Handy wieder untereinander */
@media (max-width: 850px) {
    .section-insight .container {
        flex-direction: column;
        align-items: center;
    }
    .section-insight .title-column {
        flex: none;
        text-align: center;
    }
    .section-insight .section-title, 
    .section-insight .section-subtitle {
        text-align: center;
    }
}

/* Container für das Vorschaubild */
.preview-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pdf-link {
    position: relative;
    display: inline-block;
    max-width: 100%; /* Wichtig für die Skalierung */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.preview-image {
    display: block;
    max-width: 100%;  /* Bild wird automatisch kleiner bei kleinen Bildschirmen */
    height: auto;
    max-height: 70vh; /* Verhindert, dass das Bild zu hoch wird */
    object-fit: contain;
}

/* Der Smooth-Hover Effekt */
.pdf-link:hover {
    transform: scale(1.03); /* Sanftes Vergrößern beim Drüberfahren */
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* Optional: Ein Text, der beim Hover erscheint */
.hover-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 51, 0.2); /* Ganz leichter blauer Schimmer */
    display: flex;
    justify-content: center;
    align-items: flex-start;
	padding-top:20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-link:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay span {
    /* Wir mischen dein Gold mit "transparent". 80% bleibt Gold. */
    background: color-mix(in srgb, var(--gold), transparent 20%);
    color: var(--nacht);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Mobile Anpassung */
@media (max-width: 850px) {
    .preview-container {
        padding: 10px;
    }
}
/* =========================================
	Footer
	========================================== */
footer { background: var(--primary); color: white; text-align: center; padding: 40px 20px; }
footer a { color: var(--gold); text-decoration: none; }


/* =========================================
   GEMEINSAME SEKTIONEN
   ========================================= */
.section-light, .section-alt { 
    min-height: auto; 
    display: block;
    padding: 80px 0;
}
.section-light { background: var(--white); }
.section-alt { background: var(--light); }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--gold); }
.section-subtitle { text-align: center; margin-bottom: 40px; font-size: 1.5rem; color: var(--gold); }

.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.offer-card { 
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    border-bottom: 4px solid transparent;
}
.offer-card:hover { transform: translateY(-8px); border-bottom: 4px solid var(--accent); }
.offer-card h3 { color: var(--accent); margin-top: 0; }
.offer-card ul { list-style: none; padding: 0; }
.offer-card li::before { content: "→ "; color: var(--accent); font-weight: bold; }
.download-indicator { font-size: 0.7rem; color: var(--accent); font-weight: bold; margin-bottom: 10px; opacity: 0.6; }

.process-flow { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 15px; margin-top: 60px; }
.flow-step { 
    flex: 1; 
    background: var(--white); 
    padding: 20px 15px; 
    border-radius: 8px; 
    text-align: center; 
    border-bottom: 4px solid var(--accent); 
    transition: 0.3s; 
    cursor: pointer;
}
.flow-step span { display: block; font-size: 2rem; color: var(--accent); font-weight: bold; }
.flow-step:hover { transform: translateY(-5px); }

/* =========================================
   KOOPERATIONSPARTNER
   ========================================= */
#mit-mas { padding: 100px 0; text-align: center; }
.partner-content { display: flex; justify-content: center; margin-top: 20px; }
.partner-block-link {
    text-decoration: none;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    max-width: 450px;
}
.partner-block-link:hover { transform: scale(1.03); }
.partner-logo { max-width: 300px; height: auto; display: block; }
.partner-name { font-size: 1.2rem; font-weight: bold; margin: 0; }
.partner-info-text { font-style: italic; color: var(--mmzz); font-weight: 600; }

/* =========================================
   FOOTER
   ========================================= */
footer { background: var(--primary); color: white; text-align: center; padding: 60px 20px; margin-top: 0; }
footer a { color: white; text-decoration: none; }
.footer-legal-links { margin: 20px 0; }
.footer-legal-links a { margin: 0 10px; cursor: pointer; }
.footer-impressum { margin-top: 40px; font-size: 0.8rem; opacity: 0.7; }
.footer-impressum hr { width: 50px; margin: 20px auto; border: 1px solid var(--accent); }

/* =========================================
   RESPONSIVE DESIGN (MOBIL & TABLET)
   ========================================= */
@media (max-width: 850px) {
    /* Hamburger Menu Sichtbarkeit */
    .menu-toggle { display: flex; }

    .nav-container { padding: 15px 20px; }

    /* Navigation Overlay */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%; /* Startet links außerhalb */
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 30px;
        padding-top: 40px;
        z-index: 999;
    }

    .nav-links.active { left: 0; } /* Reinschieben */

    /* Animation Hamburger zu X */
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Hero & Layout Anpassungen */
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-portrait { max-width: 280px; margin: 0 auto; }
    .process-flow { flex-wrap: wrap; justify-content: center; }
    .flow-step { flex: 0 1 250px; }
    
    .motto-small { border-left: none; border-top: 2px solid var(--gold); padding-top: 10px; padding-left: 0; }
    .hero-motto-link:hover { transform: none; }
    .partner-logo { max-width: 80%; }
}

/* Suche diesen Block ganz unten in deiner style.css */
@media (max-width: 850px) {
    
    /* ... (hier steht schon dein Code für menu-toggle, nav-links etc.) ... */

    /* FÜGE DIESEN TEIL HINZU: */
    .wir-grid {
        grid-template-columns: 1fr; /* Wechselt von zwei Spalten auf eine */
        text-align: center;         /* Zentriert den Text mobil */
        gap: 20px;                  /* Verringert den Abstand zwischen Bild und Text */
    }
    
}

/* Spezielle Anpassung für mobile Endgeräte */
@media (max-width: 850px) {
    
    /* Pfeile verkleinern */
    .slider-nav {
        padding: 10px 14px; /* Kleinerer Klickbereich */
        font-size: 1.1rem;   /* Kleinere Pfeilsymbole */
        background: rgba(0, 61, 165, 0.5); /* Etwas transparenter, damit sie weniger stören */
    }

    /* Pfeile etwas weiter nach innen rücken, falls sie am Rand "kleben" */
    .slider-nav.prev {
        left: 5px;
    }
    .slider-nav.next {
        right: 5px;
    }

    /* Falls der Text oben immer noch zu nah am Slider ist: */
    .section-insight .container {
        padding-top: 40px; /* Reduzierter Abstand oben für Mobilgeräte */
        gap: 15px;
    }
}