/* ====================================
   JUROHAPA - Gemeinsame Styles
   ==================================== */

/* --- Schriften --- */
@font-face { 
    font-family: 'Montserrat'; 
    font-style: normal; 
    font-weight: 400; 
    font-display: swap; 
    src: url('assets/montserrat-v31-latin-regular.woff2') format('woff2'); 
}
@font-face { 
    font-family: 'Montserrat'; 
    font-style: italic; 
    font-weight: 400; 
    font-display: swap; 
    src: url('assets/montserrat-v31-latin-italic.woff2') format('woff2'); 
}
@font-face { 
    font-family: 'Montserrat'; 
    font-style: normal; 
    font-weight: 300; 
    font-display: swap; 
    src: url('assets/montserrat-v31-latin-300.woff2') format('woff2'); 
}
@font-face { 
    font-family: 'Montserrat'; 
    font-style: normal; 
    font-weight: 500; 
    font-display: swap; 
    src: url('assets/montserrat-v31-latin-500.woff2') format('woff2'); 
}
@font-face { 
    font-family: 'Montserrat'; 
    font-style: normal; 
    font-weight: 600; 
    font-display: swap; 
    src: url('assets/montserrat-v31-latin-600.woff2') format('woff2'); 
}

/* --- CSS Variablen --- */
:root {
    --juro-terracotta: #CD6E4E;
    --juro-terracotta-a11y: #A64D2E;
    --juro-terracotta-20: rgba(205, 110, 78, 0.1);
    --juro-anthrazit: #3D3D3D;
    --juro-anthrazit-10: rgba(61, 61, 61, 0.1);
    --juro-off-white: #F9F7F2;
    --white: #FFFFFF;
}

/* --- Basis-Setup --- */
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 185px; 
}

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

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--juro-off-white); 
    color: var(--juro-anthrazit); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

h1, h2, h3 { 
    font-weight: 600; 
    color: var(--juro-anthrazit); 
    line-height: 1.2; 
}

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

/* --- Header --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    height: 185px;
    display: flex;
    flex-direction: column;
}

header.header-scrolled {
    height: 100px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.logo-img {
    height: 90px;
    width: auto;
    transition: height 0.3s ease-in-out;
    will-change: height;
}

header.header-scrolled .logo-img { 
    height: 55px; 
}

.header-info-right { 
    text-align: right; 
    transition: all 0.3s ease; 
}

.header-claim { 
    display: block; 
    font-size: 0.85rem; 
    margin-bottom: 0.5rem; 
    color: var(--juro-anthrazit); 
}

.header-contact-social { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 1.2rem; 
}

.phone-link { 
    text-decoration: none; 
    color: var(--juro-anthrazit); 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: color 0.3s; 
}

.phone-link:hover { 
    color: var(--juro-terracotta-a11y); 
}

/* Social Icons */
.social-icons { 
    display: none; /* Temporär versteckt bis Social Media scharf ist */
    gap: 0.8rem; 
    align-items: center; 
}

.social-icons a { 
    color: var(--juro-anthrazit); 
    transition: color 0.3s; 
    line-height: 0; 
    display: inline-block;
}

.social-icons a:hover { 
    color: var(--juro-terracotta-a11y); 
}

.social-icons svg { 
    width: 18px; 
    height: 18px; 
    fill: currentColor; 
}

/* Burger-Menü (nur mobile) */
.menu-toggle,
.menu-toggle-new {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 35px;
    height: 30px;
    background: transparent;
    border: 2px solid #3D3D3D;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle-new:hover,
.menu-toggle-new:active,
.menu-toggle-new:focus {
    background-color: #FFFFFF;
    border-color: #3D3D3D;
}

.menu-toggle span,
.menu-toggle-new span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #3D3D3D;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span,
.menu-toggle:active span,
.menu-toggle:focus span,
.menu-toggle-new:hover span,
.menu-toggle-new:active span,
.menu-toggle-new:focus span {
    background-color: #3D3D3D;
}

/* --- Navigation --- */
.main-nav { 
    background-color: var(--juro-anthrazit); 
    transition: all 0.3s ease; 
}

.nav-wrapper { 
    display: flex; 
    justify-content: flex-start; 
    gap: 3rem; 
    padding: 1rem 0 1rem 40px; 
}

.main-nav a {
    text-decoration: none;
    color: var(--juro-off-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover { 
    color: var(--juro-terracotta-a11y); 
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--juro-terracotta);
    transition: width 0.3s ease;
}

.main-nav a:hover::after { 
    width: 100%; 
}

/* --- Main Content --- */
main { 
    flex: 1; 
}

section { 
    padding: 6rem 0; 
}

h2 { 
    text-align: center; 
    margin-bottom: 3rem; 
    position: relative; 
    padding-bottom: 1rem; 
}

h2::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 3px; 
    background: var(--juro-terracotta); 
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-box {
    background: var(--white);
    padding: 4rem;
    border-radius: 4px;
    border-top: 4px solid var(--juro-terracotta);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.legal-box h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--juro-anthrazit);
}

.legal-box h2 {
    font-size: 1.1rem;
    margin: 2.5rem 0 1rem;
    color: var(--juro-anthrazit);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--juro-anthrazit-10);
    padding-bottom: 0.5rem;
    text-align: left;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.legal-box h2::after {
    display: none;
}

.legal-box h3 {
    font-size: 1rem;
    margin: 1.8rem 0 0.8rem;
    color: var(--juro-anthrazit);
    font-weight: 600;
}

.legal-box p,
.legal-box ul {
    margin-bottom: 1.2rem;
    color: #555;
}

.legal-box ul {
    padding-left: 1.5rem;
}

.legal-box a {
    color: var(--juro-terracotta-a11y);
    text-decoration: none;
    font-weight: 600;
}

.legal-box a:hover {
    text-decoration: underline;
}

/* --- Footer (Kompaktes 2-Spalten Layout) --- */
footer {
    background-color: var(--juro-anthrazit);
    color: var(--white);
    padding: 3rem 1rem 5rem 1rem; /* Unten 5rem statt 2rem für externes Bewertungs-Widget */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Linke Spalte - JUROHAPA Logo */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: auto;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    opacity: 1.0; /* Volle Sichtbarkeit für bessere Lesbarkeit */
}

/* Rechte Spalte - Partner Logos */
.footer-right {
    display: flex;
    flex-direction: row; /* Horizontal statt vertikal */
    gap: 2rem;
    align-items: center; /* Zentriert */
    justify-content: flex-end;
}

/* Partner Logos (nur noch kleine Logos) */
.partners-row-top {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.partner-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 0;
}

.partner-logo-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.partner-logo-small {
    height: 90px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.partner-logo-link:hover .partner-logo-small {
    opacity: 1;
}

/* Footer Bottom - Copyright & Navigation */
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 1rem; /* Zusätzlicher Abstand nach unten */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap; /* Mehrzeilig erlauben */
    max-width: 800px; /* Breite begrenzen, erzwingt Umbruch */
    margin-left: auto;
    margin-right: auto;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--juro-terracotta-a11y);
}

.footer-nav span {
    opacity: 0.3;
}

.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px;
    }

    header {
        height: auto !important;
    }

    .header-top {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 1rem 0;
    }

    .header-info-right {
        text-align: center;
    }

    .header-contact-social {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-wrapper {
        justify-content: center;
        padding: 1rem;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    /* Scroll-Zustand Mobile */
    header.header-scrolled .header-top {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 1.5rem;
        height: 80px;
        text-align: left;
        align-items: center;
    }

    header.header-scrolled .header-info-right {
        display: none;
    }

    header.header-scrolled .menu-toggle,
    header.header-scrolled .menu-toggle-new {
        display: flex !important;
    }

    header.header-scrolled .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--juro-anthrazit);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
    }

    /* Burger Menü offen */
    header.nav-open .main-nav {
        max-height: 500px;
        visibility: visible;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    header.nav-open .nav-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    /* X-Animation */
    header.nav-open .menu-toggle span:nth-child(1),
    header.nav-open .menu-toggle-new span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #3D3D3D;
    }

    header.nav-open .menu-toggle span:nth-child(2),
    header.nav-open .menu-toggle-new span:nth-child(2) {
        opacity: 0;
    }

    header.nav-open .menu-toggle span:nth-child(3),
    header.nav-open .menu-toggle-new span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #3D3D3D;
    }

    section {
        padding: 4rem 0;
    }

    .legal-box {
        padding: 2.5rem 1.2rem;
    }

    .legal-box h1 {
        font-size: 1.8rem;
    }

    .legal-box h2 {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    /* Footer Mobile - Einspaltig */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        height: 80px;
    }

    .footer-right {
        align-items: center;
        justify-content: center; /* Zentriert auf Mobile */
        gap: 1.5rem;
    }

    .partners-row-top {
        flex-direction: row; /* Horizontal auch auf Mobile */
        gap: 1.5rem;
    }

    .partner-logo-small {
        height: 45px;
        max-width: 110px;
    }

    .footer-nav {
        font-size: 0.8rem; /* Etwas größer für bessere Lesbarkeit */
        gap: 10px;
        flex-wrap: wrap; /* Mehrzeilig erlauben */
        line-height: 2; /* Mehr Zeilenhöhe = bessere Klickbarkeit */
        padding: 0 1rem;
    }
    
    .footer-nav a {
        padding: 0.3rem 0.5rem; /* Touch-Target vergrößern */
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        font-size: 0.75rem;
        gap: 8px;
        line-height: 1.8; /* Auch hier bessere Klickbarkeit */
    }
    
    .footer-nav a {
        padding: 0.25rem 0.4rem;
    }
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 61, 61, 0.85) 0%,
        rgba(61, 61, 61, 0.6) 35%,
        rgba(205, 110, 78, 0.15) 65%,
        transparent 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 2rem;
    color: var(--juro-off-white);
    animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .highlight {
    color: var(--juro-terracotta-a11y);
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--juro-terracotta);
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    background-color: var(--juro-terracotta-a11y);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(205, 110, 78, 0.3);
}

.hero-cta:hover {
    background-color: #b85d42;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(205, 110, 78, 0.4);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 550px;
        align-items: flex-end;
    }
    
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(61, 61, 61, 0.3) 40%,
            rgba(61, 61, 61, 0.9) 75%
        );
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 1.5rem 3rem;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 1rem 2.2rem;
        font-size: 0.85rem;
    }
}

/* --- Datenschutz-Checkbox Styling --- */
.privacy-group {
    margin: 2rem 0 1.5rem;
    padding: 1.2rem;
    background: var(--juro-terracotta-20);
    border-left: 3px solid var(--juro-terracotta);
    border-radius: 4px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--juro-anthrazit);
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--juro-terracotta); /* Browser-Rendering, kein WCAG-Kontrast nötig */
}

.privacy-checkbox span {
    flex: 1;
}

.privacy-checkbox a {
    color: var(--juro-terracotta-a11y);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.privacy-checkbox a:hover {
    color: var(--juro-anthrazit);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .privacy-group {
        padding: 1rem;
        margin: 1.5rem 0 1.2rem;
    }
    
    .privacy-checkbox {
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .privacy-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* Turnstile Button (Spam-Schutz) */
#enableTurnstileBtn {
    background-color: var(--juro-terracotta-a11y);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#enableTurnstileBtn:hover {
    background-color: var(--juro-terracotta);
    transform: translateY(-2px);
}

/* Cookie-Banner Links */
#cookie-consent-banner a {
    color: var(--juro-terracotta-a11y);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

#cookie-consent-banner a:hover {
    color: var(--juro-anthrazit);
    text-decoration: underline;
}

/* Cookie-Banner Accept-All Button */
.btn-accept-all {
    background-color: var(--juro-terracotta-a11y);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept-all:hover {
    background-color: var(--juro-terracotta);
    transform: translateY(-2px);
}