/* ===================================
   Volkmar Ender – Die Küche | Stylesheet
   =================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --color-primary: #1a1a2e;
    --color-primary-light: #16213e;
    --color-accent: #d42020;
    --color-accent-light: #e84040;
    --color-accent-dark: #b01a1a;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999;
    --color-white: #ffffff;
    --color-off-white: #f8f7f4;
    --color-light-gray: #f0ede8;
    --color-border: #e5e0d8;
    --color-dark: #0a0a0a;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1280px;
    --container-padding: 0 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

em {
    font-style: italic;
    color: var(--color-accent);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.35);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: height var(--transition-normal);
}

.navbar.scrolled .nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: var(--color-text-light);
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-primary);
    background: var(--color-light-gray);
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-white) !important;
    font-weight: 500;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--color-accent-dark) !important;
}

.navbar.scrolled .nav-cta {
    color: var(--color-white) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Logo über dem Hero-Bild (oben links) */
.hero-logo {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: block;
    background: var(--color-white);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    line-height: 0;
    transition: opacity 0.08s linear;
}

.hero-logo img {
    height: 104px;
    width: auto;
    display: block;
}

/* Logo wandert beim Runterscrollen in die Navigation */
.nav-logo-hero {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.navbar.scrolled .nav-logo-hero {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(10, 10, 10, 0.75) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 32, 32, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease forwards;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(212, 32, 32, 0.2);
    border: 1px solid rgba(212, 32, 32, 0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--color-white);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-title em {
    color: var(--color-accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--color-white);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* --- About Section --- */
.about {
    padding: var(--section-padding);
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.03);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--color-white);
}

.about-img-secondary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(201, 169, 110, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.feature h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* --- Styles Section --- */
.styles {
    padding: var(--section-padding);
    background: var(--color-white);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.style-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.style-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.style-card-image {
    overflow: hidden;
    height: 280px;
}

.style-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.style-card:hover .style-card-image img {
    transform: scale(1.05);
}

.style-card-content {
    padding: 32px;
}

.style-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.style-card-content > p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.style-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-features li {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-left: 20px;
    position: relative;
}

.style-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--color-accent);
    transform: translateY(-50%);
}

/* --- Process Section --- */
.process {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
}

.process .section-tag {
    color: var(--color-accent);
}

.process .section-tag::before {
    background: var(--color-accent);
}

.process .section-title {
    color: var(--color-primary);
}

.process .section-title em {
    color: var(--color-accent);
}

.process .section-subtitle {
    color: var(--color-text-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.3), transparent);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding);
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    text-align: left;
    width: 100%;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info .contact-item {
    display: grid;
    grid-template-columns: 48px auto;
    gap: 16px;
    align-items: start;
    width: 100%;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin: 0 0 4px 0;
}

.contact-item p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: var(--color-accent-dark);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-form-wrapper {
    background: var(--color-white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Zeichenzähler (Issue #21) */
.char-counter {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: right;
}

.char-counter--max {
    color: var(--color-accent);
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 60px;
    }
    
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .styles-grid .style-card:last-child {
        grid-column: span 2;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .nav-link:hover {
        color: var(--color-white) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 16px;
    }
    
    /* Platz für Navbar + Logo oben reservieren, damit der Hero-Text
       darunter beginnt und das Logo nicht über den Schriftzügen liegt */
    .hero {
        padding-top: 190px;
    }
    
    .hero-logo {
        top: 84px;
        left: 50%;
        padding: 8px 12px;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
    
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-img-secondary {
        right: 20px;
        bottom: -30px;
        width: 180px;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .styles-grid .style-card:last-child {
        grid-column: span 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        top: 84px;
        left: 50%;
        padding: 6px 10px;
    }
    
    .hero-logo img {
        height: 68px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Kontaktformular - Backend-Integration
   =================================== */

/* Honeypot-Feld gegen Spam (für Menschen unsichtbar) */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Formular-Ladezustand */
.contact-form .btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Formular-Erfolgsmeldung */
.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

/* Formular-Fehlermeldung */
.form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

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

/* ===================================
   Partner-Grid
   =================================== */

.partners {
    padding: var(--section-padding);
    background: var(--color-white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition-normal);
    text-decoration: none;
    color: var(--color-text);
}

.partner-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.partner-card img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-normal);
}

.partner-card:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .partner-card {
        padding: 20px 15px;
    }
    
    .partner-card img {
        max-height: 60px;
    }
}

/* ===================================
   Angebote Section
   =================================== */
.angebote {
    padding: var(--section-padding);
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.angebote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 32, 32, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.angebote .section-tag {
    color: var(--color-accent-light);
}

.angebote .section-tag::before {
    background: var(--color-accent);
}

.angebote .section-title {
    color: var(--color-white);
}

.angebote .section-title em {
    color: var(--color-accent-light);
}

.angebote .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.angebote-cta {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.angebote .btn-primary {
    box-shadow: 0 8px 25px rgba(212, 32, 32, 0.4);
}

/* ===================================
   Handwerker-Grid
   =================================== */

.handwerker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.handwerker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.handwerker-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.handwerker-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    background: rgba(212, 32, 32, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.handwerker-card h3 {
    font-family: var(--font-heading), Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.35;
}

.handwerker-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
}

.handwerker-contact .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.5;
    word-break: break-word;
}

.handwerker-contact .contact-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.handwerker-contact .contact-item a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(212, 32, 32, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition-fast);
}

.handwerker-contact .contact-item a:hover {
    text-decoration-color: var(--color-accent);
}

/* Tablet */
@media (max-width: 1024px) {
    .handwerker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .handwerker-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .handwerker-card {
        padding: 24px 20px;
    }
    
    .handwerker-contact {
        margin-bottom: 10px;
    }
    
    .handwerker-contact .contact-item {
        font-size: 0.8rem;
    }

    .handwerker-category {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

/* ============ Cookie-Hinweis-Banner ============ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--color-primary);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-accent-light);
}

.cookie-banner-text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.cookie-banner-text strong {
    color: var(--color-white);
}

.cookie-banner-text a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--color-white);
}

.cookie-banner-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    transition: all var(--transition-normal);
}

.cookie-banner-close:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        padding: 16px;
        gap: 12px;
    }

    .cookie-banner-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-banner-icon svg {
        width: 22px;
        height: 22px;
    }

    .cookie-banner-text {
        flex-basis: 100%;
        font-size: 0.85rem;
    }

    .cookie-banner-close {
        width: 100%;
    }
}

/* ============ Externe Links ============ */

/* Kleiner Pfeil hinter externen Links (Partner-Karten bleiben sauber) */
a.external-link::after {
    content: "\2197";
    margin-left: 5px;
    font-size: 0.85em;
    font-style: normal;
    color: var(--color-accent);
}

a.external-link.partner-card::after {
    display: none;
}

/* ============ Externe-Link-Dialog ============ */
.ext-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 10, 10, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ext-dialog-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.ext-dialog {
    background: var(--color-white);
    max-width: 460px;
    width: 100%;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(14px);
    transition: transform 0.25s ease;
    text-align: center;
}

.ext-dialog-overlay.open .ext-dialog {
    transform: translateY(0);
}

.ext-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-light-gray);
    color: var(--color-accent);
    margin-bottom: 16px;
}

.ext-dialog-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 0 12px;
}

.ext-dialog-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0 0 24px;
}

.ext-dialog-domain {
    color: var(--color-accent);
    word-break: break-all;
}

.ext-dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ext-dialog-btn {
    width: 100%;
    padding: 13px 24px;
}

.ext-dialog-cancel {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.ext-dialog-cancel:hover {
    background: var(--color-light-gray);
    border-color: var(--color-text-muted);
    color: var(--color-primary);
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    .ext-dialog {
        padding: 24px 20px;
    }
}
