/* --- 1. LOKALE SCHRIFTEN (@font-face) --- */

/* Hauptschrift: Outfit */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Headline-Schrift: Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Variable.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* Tech-Schrift: Space Grotesk (für technik.html) */
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Variable.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

/* Garten-Schrift: Unbounded (für waldgruen.html) */
@font-face {
    font-family: 'Unbounded';
    src: url('fonts/Unbounded-Variable.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
}

/* --- ZUWEISUNG --- */

/* --- 2. ZUWEISUNG --- */

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.script-font,
em {
    font-family: 'Playfair Display', serif;
}

:root {
    --bg-warm: #fcfaf7;
    --accent: #4a49d1;
    --accent-soft: #eeefff;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --white: #ffffff;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
blockquote,
em {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(252, 250, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
}

.logo span {
    color: var(--accent);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 400;
}

.btn-warm {
    border: 1.5px solid var(--accent);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    color: var(--accent) !important;
}

/* Hero */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    margin: 1.5rem 0;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline {
    border: 1.5px solid #ddd;
    color: var(--text-dark);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
}

/* Intro Section */
.intro {
    padding: 10rem 0;
    background: white;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Stacking Cards */
.stacking-section {
    padding: 5rem 0;
}

.stack-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stack-card {
    position: sticky;
    top: 10vh;
    width: 90%;
    max-width: 1100px;
    height: 80vh;
    margin-bottom: 10vh;
    border-radius: 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    width: 100%;
}

.card-text {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-num {
    font-size: 5rem;
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 40px;
}

.card-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-list {
    list-style: none;
    margin-top: 2rem;
}

.benefit-list li::before {
    content: "●";
    color: var(--accent);
    margin-right: 10px;
}

.card-visual {
    background-size: cover;
    background-position: center;
}

.v-1 {
    background-image: url('bilder/strategy3.jpg');
}

.v-2 {
    background-image: url('bilder/design8.jpg');
}

.v-3 {
    background-image: url('bilder/launch.JPG');
}

/* Quote Section */
.quote-area {
    padding: 10rem 0;
    text-align: center;
}

blockquote {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
    line-height: 1.4;
}

cite {
    display: block;
    margin-top: 2rem;
    font-family: 'Outfit';
    font-style: normal;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

/* Final CTA */
.final-cta {
    padding: 8rem 0;
    text-align: center;
    background: var(--accent-soft);
}

.final-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-hero {
    padding: 12rem 0 8rem;
    min-height: 100vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h1 {
    font-size: 3.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Success Message Styling */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message h3 {
    color: #27ae60;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Fix */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info h1 {
        font-size: 2.5rem;
    }
}

/* Fix für den Button Overlap & Footer Styling */
.final-cta {
    padding: 10rem 0;
    /* Mehr Platz nach oben/unten */
    background: var(--accent-soft);
}

.cta-wrapper {
    margin-top: 3rem;
    display: block;
    /* Stellt sicher, dass der Button Platz einnimmt */
}

.main-footer {
    background: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}

/* Styling für Pflichtfelder-Stern */
.required {
    color: #e74c3c;
    /* Ein kräftiges, professionelles Rot */
    margin-left: 2px;
}

/* Styling für die Dropdown-Menüs (Select) */
select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    /* Entfernt Standard-Pfeil für eigenes Styling */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a49d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    transition: border-color 0.3s;
}

select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Kleiner Fix für mobile Ansicht der Formular-Zeilen */
@media (max-width: 600px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Moderne Radio-Kacheln */
.radio-tile-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.input-container {
    position: relative;
    height: 100%;
}

.input-container input {
    position: absolute;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    /* Versteckt den Standard-Button */
}

.radio-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.radio-tile label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
}

/* Hover-Effekt */
.input-container:hover .radio-tile {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Auswahl-Effekt (Checked) */
.input-container input:checked+.radio-tile {
    background-color: var(--accent);
    border-color: var(--accent);
}

.input-container input:checked+.radio-tile label {
    color: white;
}

/* Styling für die Erfolgsmeldung */
.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.success-message {
    padding: 3rem 1rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styling für Kacheln mit Checkbox/Radio */
.checkbox-tile-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.input-container {
    position: relative;
}

.input-container input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 16px;
    background: var(--white);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
}

/* Das Kästchen / Der Kreis */
.check-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    /* Quadratisch für Checkbox */
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.check-mark.is-radio {
    border-radius: 50%;
    /* Rund für Radio */
}

/* Hover Effekt */
.input-container:hover .tile {
    border-color: var(--accent);
}

/* Ausgewählter Zustand */
.input-container input:checked+.tile {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.input-container input:checked+.tile .check-mark {
    background: var(--accent);
    border-color: var(--accent);
}

/* Der weiße Haken im Kästchen */
.input-container input:checked+.tile .check-mark::after {
    content: "L";
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg) scaleX(-1);
    /* Simuliert einen Haken */
    left: 5px;
    top: 1px;
}

.input-container input:checked+.tile label {
    color: var(--accent);
    font-weight: 700;
}

.tile label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Listen-Auswahl Design */
.list-selection {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.selection-item {
    position: relative;
    display: flex;
    align-items: center;
}

.selection-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.selection-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-dark);
    transition: color 0.3s;
}

/* Das Kästchen Design */
.custom-check {
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

/* Runder Stil für Radios */
.custom-check.is-radio {
    border-radius: 50%;
}

/* Hover Effekt */
.selection-item:hover .custom-check {
    border-color: var(--accent);
}

/* Aktivierter Zustand */
.selection-item input:checked+label .custom-check {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Der weiße Haken/Punkt im Kästchen */
.custom-check::after {
    content: "";
    position: absolute;
    display: none;
}

.selection-item input:checked+label .custom-check::after {
    display: block;
}

/* Weißer Haken für Checkbox */
.selection-item input[type="checkbox"]:checked+label .custom-check::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Weißer Punkt für Radio */
.selection-item input[type="radio"]:checked+label .custom-check::after {
    left: 6px;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.selection-item input:checked+label {
    color: var(--accent);
    font-weight: 600;
}

/* About Clean (Ohne Bild) */
.about-clean {
    padding: 8rem 0;
    background-color: #fafafa;
    /* Ganz leichter Hintergrund-Kontrast */
    border-top: 1px solid #eee;
}

.about-header {
    text-align: center;
    margin-bottom: 5rem;
}

.about-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

/* Der grafische Part für die "07" */
.story-stats {
    display: flex;
    justify-content: center;
}

.stat-circle {
    border-left: 4px solid var(--accent);
    padding: 2rem;
    background: white;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 0 20px 20px 0;
}

.stat-number {
    display: block;
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Der Text-Part */
.story-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.lead-text {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.story-text p {
    margin-bottom: 1.5rem;
}

.personal-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.my-name {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Clicker Script', cursive;
    font-size: 2rem;
    color: var(--accent);
}

/* Mobile Optimierung */
@media (max-width: 992px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stat-circle {
        border-left: none;
        border-top: 4px solid var(--accent);
        border-radius: 0 0 20px 20px;
        text-align: center;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 8rem 0;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 2rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

/* Der "Hover-Effekt" zum Öffnen */
.faq-item:hover .faq-answer {
    max-height: 200px;
    /* Höhe der Antwort */
    padding-bottom: 2rem;
    opacity: 1;
}

.faq-item:hover .faq-question {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
    padding-right: 2rem;
}

/* Kleiner Pfeil oder Plus-Zeichen */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-question::after {
    transform: rotate(45deg);
}

/* Branding: MyWEB STUDIO - Exakte Ausrichtung unter WEB */
.logo-studio {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 0.9;
    /* Hält die Zeilen eng zusammen für den Block-Look */
}

.logo-main {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #000000;
    /* My in Schwarz */
    text-transform: none;
    letter-spacing: -0.5px;
}

/* WEB in deinem Blau-Ton */
.web-accent {
    color: var(--accent);
    /* Dein Blau-Ton */
}

.logo-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    color: #000000;
    /* STUDIO in Schwarz */
    text-transform: uppercase;
    display: block;

    /* 1. START: Springt exakt unter das W */
    /* Dieser Wert entspricht der Breite des Wortes "My" */
    margin-left: 2.75rem;

    /* 2. BREITE: Füllt exakt den Raum bis zum Ende des B aus */
    /* Wir erhöhen das Spacing, damit 6 Buchstaben (STUDIO) 
       so breit sind wie die 3 großen Buchstaben (WEB) */
    letter-spacing: 4.5px;

    /* 3. OPTIK: Verhindert, dass das letzte Zeichen (O) 
       durch das Spacing zu weit nach rechts ragt */
    width: fit-content;

    margin-top: 1px;
}

/* Hover-Effekt */
.logo-studio:hover {
    opacity: 0.8;
    transition: 0.3s;
}

/* --- Portfolio Sektion --- */
.portfolio-section {
    padding: 8rem 0;
    background-color: var(--white);
    /* Hebt sich schön vom warmen Hintergrund ab */
}

.portfolio-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.portfolio-item {
    flex: 1;
    /* Alle Bilder nehmen den gleichen Platz ein */
    overflow: hidden;
    /* Wichtig, damit das Bild beim Vergrößern nicht über den Rand lappt */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    line-height: 0;
    /* Verhindert kleine Lücken unter dem Bild */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover Effekt */
.portfolio-item:hover {
    transform: scale(1.05);
    /* Das gesamte Element wird 5% größer */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    z-index: 10;
    /* Damit das vergrößerte Bild über den anderen liegt */
}

/* Responsivität: Auf dem Handy untereinander stapeln */
@media (max-width: 768px) {
    .portfolio-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .portfolio-item {
        width: 100%;
    }
}

/* --- Portfolio Ergänzungen --- */

.portfolio-item {
    display: block;
    /* Wichtig, da <a> standardmäßig inline ist */
    text-decoration: none;
    /* Entfernt eventuelle Unterstreichungen */
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Styling für den Hinweistext unter dem Grid */
.portfolio-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: #888;
    /* Leichte, graue Schrift */
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    opacity: 0.7;
    /* Macht es noch dezenter */
}

/* Cursor-Anpassung, damit man sieht, dass es klickbar ist */
.portfolio-item:hover {
    cursor: pointer;
}

/* --- Hover-Effekt für Nav-Links (ohne Button) --- */

/* 1. Grundzustand der Text-Links definieren */
.nav-links a:not(.btn-warm) {
    position: relative;
    text-decoration: none;
    color: #333;
    /* Deine Textfarbe */
    transition: color 0.3s ease;
}

/* 2. Farbänderung beim Drüberfahren */
.nav-links a:not(.btn-warm):hover {
    color: #007bff;
    /* Deine Akzentfarbe */
}

/* 3. Die animierte Unterlinie (unsichtbarer Startzustand) */
.nav-links a:not(.btn-warm)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #007bff;
    /* Farbe der Linie */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* 4. Linie dehnt sich beim Hover von der Mitte aus aus */
.nav-links a:not(.btn-warm):hover::after {
    width: 100%;
}

/* Spezifisches Styling für die Datenschutz-Checkbox */
.privacy-item label {
    display: flex;
    align-items: flex-start;
    /* Richtet das Kästchen oben beim Text aus */
    gap: 15px;
    /* Abstand zwischen Kästchen und Text */
    cursor: pointer;
}

.privacy-item .custom-check {
    width: 28px;
    /* Deutlich größer */
    height: 28px;
    min-width: 28px;
    /* Verhindert, dass das Kästchen gequetscht wird */
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: white;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 2px;
    /* Feinjustierung zur Textzeile */
}

/* Der Haken, wenn ausgewählt */
.privacy-item input:checked+label .custom-check {
    background-color: var(--accent);
}

.privacy-item input:checked+label .custom-check::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Text daneben etwas kleiner und grauer, damit es dezent wirkt */
.privacy-item p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
}

.privacy-item a {
    color: var(--accent);
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE OPTIMIERUNG – Handy & Tablet
   Ergänzt für saubere Darstellung auf mobilen Geräten
   ========================================================= */

html {
    overflow-x: hidden;
    scroll-padding-top: 95px;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.menu-toggle .bar {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 99px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section-header h2 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1.08;
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .hero {
        padding: 9rem 0 5rem;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 8vw, 4.8rem);
    }

    .hero p {
        font-size: 1.12rem;
    }

    .intro {
        padding: 6rem 0;
    }

    .intro-grid,
    .card-inner,
    .contact-grid,
    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid,
    .contact-grid,
    .about-story-grid {
        gap: 3rem;
    }

    .intro h2,
    .contact-info h1 {
        font-size: clamp(2.3rem, 6vw, 3.2rem);
    }

    .intro-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item {
        background: var(--accent-soft);
        border-radius: 22px;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .stacking-section {
        padding: 3rem 0;
    }

    .stack-card {
        position: relative;
        top: auto;
        width: calc(100% - 3rem);
        height: auto;
        min-height: 0;
        margin-bottom: 2rem;
        border-radius: 28px;
    }

    .card-text {
        padding: 4rem 3rem 3rem;
    }

    .card-text h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .card-visual {
        min-height: 320px;
        order: -1;
    }

    .about-clean,
    .portfolio-section,
    .faq-section,
    .final-cta {
        padding: 6rem 0;
    }

    .contact-hero {
        padding: 9rem 0 5rem;
    }
}

/* Mobile Navigation + allgemeine Smartphone-Ansicht */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .flex-nav {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        z-index: 1101;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        margin-left: 0;
        padding: 0.9rem 1rem;
        border-radius: 14px;
        font-weight: 600;
    }

    .nav-links a:not(.btn-warm)::after {
        display: none;
    }

    .nav-links .btn-warm,
    .btn-warm {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0.4rem;
        text-align: center;
    }

    .logo-main {
        font-size: 1.55rem;
    }

    .logo-sub {
        margin-left: 2.35rem;
        font-size: 0.47rem;
        letter-spacing: 3.8px;
    }

    .hero {
        padding: 8.2rem 0 4.5rem;
        text-align: left;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
        line-height: 1.02;
        margin: 1rem 0 1.25rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .btn-primary,
    .btn-outline {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 1rem 1.3rem;
        text-align: center;
    }

    .intro {
        padding: 4.5rem 0;
    }

    .intro h2 {
        font-size: 2.35rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stack-card {
        width: calc(100% - 2rem);
        border-radius: 24px;
        margin-bottom: 1.5rem;
    }

    .card-text {
        padding: 3.4rem 1.4rem 1.8rem;
    }

    .card-num {
        font-size: 3.5rem;
        top: 8px;
        left: 22px;
    }

    .card-text h2 {
        font-size: 2.15rem;
        line-height: 1.08;
    }

    .card-visual {
        min-height: 230px;
    }

    .about-clean,
    .portfolio-section,
    .faq-section,
    .final-cta {
        padding: 4.5rem 0;
    }

    .about-header {
        text-align: left;
        margin-bottom: 3rem;
    }

    .about-header h2,
    .final-cta h2 {
        font-size: 2.35rem;
        line-height: 1.08;
    }

    .lead-text {
        font-size: 1.15rem;
    }

    .stat-circle {
        padding: 2rem 1.4rem;
    }

    .portfolio-section .section-header,
    .faq-section .section-header {
        text-align: left;
        margin-bottom: 2.5rem;
    }

    .portfolio-grid {
        flex-direction: column;
        gap: 1.2rem;
    }

    .portfolio-item {
        width: 100%;
        max-height: 280px;
    }

    .portfolio-item img {
        height: 280px;
        object-fit: cover;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 1.15rem 0;
    }

    .faq-answer p {
        font-size: 1rem;
        padding-right: 0;
    }

    .contact-hero {
        padding: 8.2rem 0 4rem;
    }

    .contact-grid {
        text-align: left;
        gap: 2rem;
    }

    .contact-info h1 {
        font-size: 2.45rem;
        line-height: 1.08;
    }

    .contact-card {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    input, select, textarea {
        font-size: 16px;
    }

    .selection-item label {
        align-items: flex-start;
        line-height: 1.35;
    }

    .custom-check {
        min-width: 22px;
        margin-top: 1px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .footer-links a {
        margin-left: 0;
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .hero p,
    .intro-text p,
    .story-text p,
    .final-cta p,
    .contact-info p {
        font-size: 1rem;
    }

    .card-text {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .contact-card {
        padding: 1.1rem;
    }

    .btn-primary,
    .btn-outline,
    .btn-warm {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .flex-nav > .btn-warm {
        width: auto;
        margin-top: 0;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .legal-content,
    section[style*="padding: 12rem"],
    section[style*="padding: 10rem"] {
        padding-top: 7rem !important;
        padding-bottom: 4rem !important;
    }

    h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.08;
    }

    h2 {
        font-size: clamp(1.7rem, 7vw, 2.35rem);
        line-height: 1.15;
    }

    p, li, a {
        overflow-wrap: anywhere;
    }
}
