/* --- LOKALE SCHRIFTEN --- */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #273655;
    --accent: #880012;
    --secondary: #114b9a;
    --dark: #1c1c28;
    --light: #f4f7f9;
    --white: #ffffff;
}

/* Grundsetup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Fügt links und rechts 20px Abstand hinzu */
}

.grid-wrapper {
    display: grid;
    gap: 40px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* --- HAMBURGER MENÜ STYLING --- */
.menu-toggle {
    display: none; /* Auf Desktop versteckt */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

.logo img { height: 80px; }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 2rem; }
nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Sektionen */
main section {
    padding: 100px 2rem;
    background-color: var(--white);
    scroll-margin-top: 100px;
}

#fokus, #themen, #ueber-mich {
    background-color: var(--light) !important;
}

/* Hero Section */
/* Hero Section */
.hero {
    /* display: flex;  <-- Entfernen, da das jetzt der Grid-Wrapper im Container übernimmt */
    padding: 160px 0 100px !important; /* Padding links/rechts auf 0, da der Container das macht */
    background: linear-gradient(135deg, #fff 60%, var(--light) 100%) !important;
}

/* Das neue Grid-System innerhalb der Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text etwas breiter als Bild */
    align-items: center;
    gap: 40px;
}

.hero-content { 
    /* flex: 1.2; <-- Entfernen */
}

.hero-image { 
    /* flex: 0.8; <-- Entfernen */
    text-align: right; 
}

.hero-image img {
    max-width: 90%;
    border-radius: 4px;
    box-shadow: 15px 15px 0 var(--secondary);
}

h1 {
    color: var(--primary);
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.pitch {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
}

/* Pain Items */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pain-item {
    background: var(--white);
    padding: 2.5rem;
    border-bottom: 4px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pain-item i { margin-bottom: 1.5rem; color: var(--accent) !important; }
.pain-item h3 { color: var(--accent); margin-bottom: 1rem; font-weight: 700; }

/* Vorgehensmodell: Horizontal ausgerichtete Quotes */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    align-items: stretch; /* Alle Karten werden gleich hoch */
}

.step-item {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    background: var(--white);
    border: 1px solid #eef2f5;
    text-align: center;
    display: flex;
    flex-direction: column; /* Erlaubt vertikale Verteilung des Inhalts */
	align-items: center; /* Zentriert Icons und Text horizontal */
}

.step-num {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    background: var(--white);
    padding: 0 10px;
    line-height: 1;
}

.step-item i {
    color: var(--secondary);
    margin-bottom: 1rem;
	line-height: 1.2;
    height: auto;
    overflow: visible;
}

.step-item h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Puffer-Logik: Drückt das Zitat nach unten */
.step-item p:not(.quote) {
    flex-grow: 1; 
    margin-bottom: 1.5rem;
}

.quote {
    margin-top: auto; /* Klebt am unteren Rand der Karte */
    padding-top: 1.5rem;
    border-top: 1px dotted #ccc;
    font-style: italic;
    font-weight: 700;
    color: var(--secondary);
    display: block;
}

/* --- Schwerpunkte (wieder zweispaltig) --- */
.themen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Erzwingt zwei Spalten */
    gap: 2.5rem;
    margin-top: 3rem;
}

.themen-item {
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
}

.themen-item i { color: var(--secondary) !important; margin-bottom: 0.5rem; display: block; }
.themen-item h5 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; }

/* Erfolge / Counter */
.success-section {
    text-align: center;
	padding-bottom: 0 !important;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.success-card {
    background: var(--white);
    padding: 2.5rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #eef2f5;
}

.success-card strong { font-size: 3.5rem; color: var(--secondary); }
.success-card .unit { font-size: 1.5rem; color: var(--secondary); font-weight: bold; }
.success-card p { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-top: 0.5rem; }


/* Referenzen / Testimonials */
#referenzen {
    background-color: var(--white); /* Weißer Hintergrund als Kontrast zum grauen Bereich darunter */
    padding: 0px 2rem 80px;
	margin-top: 0;
}

.referenz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Zwei Spalten nebeneinander */
    gap: 3rem;
    margin-top:1rem;
}

.referenz-card {
    background: var(--light);
    padding: 3rem 2rem;
    border-radius: 4px;
    position: relative;
    border-top: 4px solid var(--accent); /* Akzentfarbe oben */
}

.referenz-card i {
    color: var(--secondary);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.referenz-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.referenz-card cite {
    font-weight: 700;
    color: var(--secondary);
    font-style: normal;
    font-size: 0.85rem;
}


/* Über mich - Fest zweispaltig */
.about-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Erzwingt zwei gleiche Spalten */
    gap: 3rem;
    margin-top: 2rem;
}

/* --- CTA Box & Buttons --- */
.cta-box {
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover { background: #6b000e; transform: translateY(-2px); }

/* Footer */
footer { background: var(--dark); color: #aaa; padding: 60px 2rem; }
.footer-content { display: flex; justify-content: space-between; max-width: 1100px; margin: 0 auto; align-items: center; }
footer a { color: #aaa; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--white); }

/* Optimierung für Impressum & Datenschutz */
.legal-page {
    padding-top: 160px !important; /* Schiebt den Inhalt unter den fixierten Header */
    max-width: 800px;             /* Bessere Lesbarkeit durch schmalere Textbreite */
    margin: 0 auto;               /* Zentriert den Textblock */
    line-height: 1.8;             /* Entspannter Zeilenabstand für lange Rechtstexte */
}

.legal-page h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 900;
}

.legal-page h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.legal-page p {
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.legal-page hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid #eee;
}



/* --- Kontaktseite Spezifisch --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

/* Formular Styling */
.contact-form-container {
    background: var(--light);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* --- FINALE ANDROID & MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {

    /* 1. GLOBALE ANPASSUNGEN */
    * {
        max-width: 100vw;
        box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */
    }

    main section {
        padding: 60px 20px !important;
    }

    .logo img {
        height: 50px !important;
        width: auto;
        transition: 0.3s;
    }

    /* 2. NAVIGATION & HAMBURGER */
    .menu-toggle {
        display: flex !important; /* Hamburger sichtbar machen */
        z-index: 1002;
    }
	
	/* Animation für die Striche */
	.menu-toggle .bar {
		width: 30px;
		height: 3px;
		background-color: var(--primary);
		transition: all 0.3s ease-in-out;
	}

	/* Wenn das Menü offen ist (.is-active) */
	#mobile-menu.is-active .bar:nth-child(2) {
		opacity: 0; /* Mittlere Linie verschwindet */
	}

	#mobile-menu.is-active .bar:nth-child(1) {
		transform: translateY(9px) rotate(45deg); /* Obere Linie dreht sich */
	}

	#mobile-menu.is-active .bar:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg); /* Untere Linie dreht sich */
	}

    nav {
        padding: 0.5rem 20px !important;
    }

    /* Wir verstecken die Liste standardmäßig */
    .nav-list {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px; /* Je nach Header-Höhe anpassen */
        right: 0;
        width: 50%; 
        background-color: #ffffff; /* Nutze direkt Weiß oder var(--white) */
        box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
        z-index: 1001;
        border-bottom-left-radius: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Diese Klasse muss per JavaScript getoggled werden */
    .nav-list.active {
        display: flex !important;
    }

    .nav-list li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .nav-list li a {
        display: block;
        padding: 0.8rem !important;
        width: 100%;
        color: #333;
    }

    /* 3. HERO-BEREICH */
    .hero {
        padding-top: 120px !important;
        padding-left: 0 !important; /* Wichtig, damit der Container zentriert bleibt */
        padding-right: 0 !important;
    }

    .hero-grid {
        display: flex;
        flex-direction: column; /* Stapelt die Elemente vertikal */
        align-items: center;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
        text-align: center;
        padding: 0 10px; /* Zusätzlicher Puffer für die Schrift */
    }

    .hero-image {
        order: 2; /* Bild kommt danach */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        width: 70% !important; /* Bild auf 70% der Breite */
        max-width: 400px !important;
        height: auto;
        display: block;
        margin: 0 auto;
        box-shadow: 6px 6px 0 var(--secondary); /* Etwas kleinerer Schatten für Mobile */
        border-radius: 4px;
    }

    /* 4. GRIDS (Einfach-Spalten-Layout) */
    .themen-grid, .pain-grid, .step-grid, .success-grid, .referenz-grid, .contact-grid, .about-flex {
        display: block !important;
        width: 100%;
    }

    .themen-item, .pain-item, .step-item, .success-card, .referenz-card {
        width: 100% !important;
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }

    /* 5. LEGAL & KONTAKT */
    main.legal-page {
        padding: 100px 20px 60px !important;
    }

    .contact-form-container {
        padding: 20px !important;
        width: 100% !important;
    }
	
	/* Spezifischer Fix für das 3-Stufen-Modell mobil */
	.step-item {
		position: relative; /* Stellt sicher, dass die Nummer sich an der Box orientiert */
		padding-top: 3.5rem !important; /* Schafft oben Platz für die Nummer */
		display: flex !important;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.step-item .step-num {
		position: absolute;
		top: 10px;      /* Kleiner Abstand zum oberen Rand der Karte */
		left: 50%;
		transform: translateX(-50%); /* Zentriert die Nummer horizontal */
		margin: 0;
	}

	.step-item i {
		margin-top: 0.5rem; /* Abstand zwischen Nummer und Icon */
		margin-bottom: 1rem;
		display: block;
	}
}