﻿/* ============================================================
   HOCHZEIT-PREPPER.DE – Design System
   "Elegant-Prepper" – Premium, strukturiert, vertrauenswürdig
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
    /* Primärfarben – Warmer Gold/Champagner-Ton */
    --color-primary: #D4A574;
    --color-primary-dark: #C4956A;
    --color-primary-light: #E8C9A8;

    /* Akzentfarbe – Roségold */
    --color-accent: #B76E79;
    --color-accent-light: #D4949C;

    /* Hintergrund & Oberflächen */
    --color-bg: #FAF7F2;
    --color-bg-alt: #F3EDE4;
    --color-surface: #FFFFFF;
    --color-surface-hover: #FFF9F3;

    /* Text */
    --color-text: #333333;
    --color-text-light: #6B6B6B;
    --color-text-inverse: #FFFFFF;
    --color-heading: #2C2C2C;

    /* Borders & Dividers */
    --color-border: #E5DDD3;
    --color-border-light: #F0EAE1;

    /* Feedback */
    --color-success: #6B9E6B;
    --color-warning: #D4A054;
    --color-error: #C75050;

    /* Schatten */
    --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 12px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 30px rgba(44, 44, 44, 0.12);
    --shadow-card-hover: 0 12px 36px rgba(44, 44, 44, 0.15);

    /* Typografie – System Fonts (No Google Fonts!) */
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Schriftgrößen (Fluid Typography) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
    --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.065rem);
    --fs-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.25rem);
    --fs-xl: clamp(1.35rem, 1.2rem + 0.75vw, 1.6rem);
    --fs-2xl: clamp(1.6rem, 1.35rem + 1.25vw, 2.1rem);
    --fs-3xl: clamp(2rem, 1.6rem + 2vw, 2.8rem);
    --fs-hero: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);

    /* Abstände */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-section: clamp(3rem, 4vw, 6rem);

    /* Radien */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 50px;

    /* Animationen */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;

    /* Layout */
    --max-width: 1200px;
    --sidebar-width: 320px;
    --header-height: 72px;
    --header-height-mobile: 60px;
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
        transform var(--duration-slow) var(--ease-smooth);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: var(--fs-hero);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

h5 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
    max-width: 72ch;
    /* Optimale Lesbarkeit */
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
    transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.logo:hover {
    opacity: 0.8;
}

.site-logo {
    height: 44px;
    /* Optimale Höhe für den Header */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-pill);
    transition: background var(--duration-fast) var(--ease-smooth),
        color var(--duration-fast) var(--ease-smooth);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

/* Hamburger Button (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast) var(--ease-smooth);
}

.hamburger:hover {
    background: var(--color-bg-alt);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-heading);
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-smooth),
        opacity var(--duration-normal) var(--ease-smooth);
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-section) 0;
    background: linear-gradient(165deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(183, 110, 121, 0.1);
    color: var(--color-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: var(--fs-hero);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 48ch;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image-decoration {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-xl);
    top: -10%;
    left: -10%;
    opacity: 0.3;
    pointer-events: none;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all var(--duration-normal) var(--ease-smooth);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-text-inverse);
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
    color: var(--color-text-inverse);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
    color: var(--color-primary-dark);
}


/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.section {
    padding: var(--space-section) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header p {
    margin-inline: auto;
    color: var(--color-text-light);
    font-size: var(--fs-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.category-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: transform var(--duration-normal) var(--ease-smooth),
        box-shadow var(--duration-normal) var(--ease-smooth),
        border-color var(--duration-normal) var(--ease-smooth);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-light);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(183, 110, 121, 0.1));
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
}

.category-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

.category-card p {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    margin-bottom: 0;
}


/* ============================================================
   FEATURED ARTICLES
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.article-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: transform var(--duration-normal) var(--ease-smooth),
        box-shadow var(--duration-normal) var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-tag {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-accent);
    border-radius: var(--radius-sm);
}

.article-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.article-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

.article-card h3 a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.article-card h3 a:hover {
    color: var(--color-accent);
}

.article-card-excerpt {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    flex: 1;
    margin-bottom: var(--space-md);
}

.article-card-link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--duration-fast) var(--ease-smooth);
}

.article-card-link:hover {
    gap: var(--space-sm);
}


/* ============================================================
   NEWSLETTER / CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-text-inverse);
    text-align: center;
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section h2 {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.cta-section p {
    margin-inline: auto;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin-inline: auto;
}

.cta-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-inverse);
    font-size: var(--fs-sm);
    font-family: var(--font-body);
    transition: border-color var(--duration-fast) var(--ease-smooth),
        background var(--duration-fast) var(--ease-smooth);
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.25);
}

.cta-submit {
    padding: 0.85rem 1.75rem;
    background: var(--color-surface);
    color: var(--color-accent);
    font-weight: 700;
    font-size: var(--fs-sm);
    border-radius: var(--radius-pill);
    border: none;
    white-space: nowrap;
    transition: transform var(--duration-fast) var(--ease-smooth),
        box-shadow var(--duration-fast) var(--ease-smooth);
}

.cta-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   SIDEBAR (for Blog/Artikel pages)
   ============================================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-3xl);
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-widget {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-xl);
}

.sidebar-widget h4 {
    font-size: var(--fs-base);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary-light);
    margin-bottom: var(--space-md);
}

/* AdSense Container (feste Min-Heights gegen CLS) */
.ad-container {
    min-height: 100px;
    background: var(--color-bg-alt);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-container-sidebar {
    min-height: 250px;
}

.ad-container-in-content {
    min-height: 90px;
    margin: var(--space-xl) 0;
}

.ad-container-header {
    min-height: 90px;
    margin-bottom: var(--space-lg);
}

.ad-label {
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    text-align: center;
    opacity: 0.6;
}


/* ============================================================
   BLOG GRID (blog.html)
   ============================================================ */
.blog-header {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
}

.blog-filter {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text-light);
    background: var(--color-surface);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(183, 110, 121, 0.06);
}


/* ============================================================
   ARTICLE PAGE (artikel.html)
   ============================================================ */
.article-header {
    padding: var(--space-3xl) 0 var(--space-xl);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    color: var(--color-border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    margin-top: var(--space-md);
}

.article-content {
    font-size: var(--fs-base);
    line-height: 1.8;
}

.article-content h2 {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

.article-content h3 {
    margin-top: var(--space-2xl);
}

.article-content ul,
.article-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-content li {
    margin-bottom: var(--space-sm);
}

.article-content ul li {
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

/* Affiliate Produkt-Box */
.affiliate-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.affiliate-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.affiliate-box-info {
    flex: 1;
}

.affiliate-box-info h4 {
    margin-bottom: var(--space-xs);
}

.affiliate-box-info p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.affiliate-disclosure {
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: var(--space-sm);
    opacity: 0.75;
}

/* Related Articles */
.related-articles {
    margin-top: var(--space-section);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border-light);
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
}

.sidebar-widget h4 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-widget .footer-links a,
.sidebar-links a {
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.sidebar-widget .footer-links a:hover,
.sidebar-links a:hover {
    color: var(--color-accent);
}

.sidebar-widget .footer-links li,
.sidebar-links li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
    border-left: 2px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-smooth);
}

.sidebar-widget .footer-links li:hover,
.sidebar-links li:hover {
    border-left-color: var(--color-primary);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-heading);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: var(--fs-sm);
    line-height: 1.6;
    opacity: 0.7;
}

.footer-heading {
    color: var(--color-text-inverse);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--fs-xs);
}


/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-page {
    padding: var(--space-3xl) 0 var(--space-section);
}

.legal-content {
    max-width: 780px;
}

.legal-content h2 {
    margin-top: var(--space-2xl);
    font-size: var(--fs-xl);
}

.legal-content h3 {
    margin-top: var(--space-xl);
    font-size: var(--fs-lg);
}

.legal-content p,
.legal-content li {
    color: var(--color-text-light);
}

.legal-content ul {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content ul li {
    list-style: disc;
    margin-bottom: var(--space-sm);
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image {
        max-width: 360px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-xs);
        transform: translateX(100%);
        transition: transform var(--duration-normal) var(--ease-smooth);
        z-index: 99;
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-link {
        padding: var(--space-md);
        font-size: var(--fs-base);
        border-radius: var(--radius-md);
    }

    /* Stack elements */
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .consent-btn {
        width: 100%;
        text-align: center;
    }

    .affiliate-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding-inline: var(--space-md);
    }

    .hero-image {
        max-width: 280px;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

    .site-header,
    .site-footer,
    .consent-banner,
    .ad-container,
    .hamburger,
    .cta-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}


/* ---------- Reduced Motion Preference ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --color-bg: #1a1a2e;
    --color-bg-alt: #16213e;
    --color-surface: #0f3460;
    --color-surface-hover: #1a4a7a;
    --color-text: #e0e0e0;
    --color-text-light: #a0a0b0;
    --color-text-inverse: #1a1a2e;
    --color-heading: #f0f0f0;
    --color-border: #2a2a4a;
    --color-border-light: #232348;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .site-header {
    background: rgba(26, 26, 46, 0.95);
}

[data-theme="dark"] .article-card {
    background: var(--color-surface);
}

[data-theme="dark"] img {
    opacity: 0.9;
}

[data-theme="dark"] .site-footer {
    background: #11111d;
}

[data-theme="dark"] .footer-brand .logo,
[data-theme="dark"] .footer-heading {
    color: #ffffff;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-smooth);
    z-index: 999;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}


/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.faq-question {
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    font-size: var(--fs-lg);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    transition: background var(--duration-fast) ease;
    color: var(--color-heading);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: "";
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform var(--duration-normal) var(--ease-smooth);
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--color-text);
    line-height: 1.7;
}

.faq-answer ul {
    margin: var(--space-sm) 0 var(--space-md) var(--space-xl);
}

.faq-answer li {
    margin-bottom: var(--space-xs);
}


/* ============================================================
   SOCIAL SHARE BUTTONS
   ============================================================ */
.social-share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding: var(--space-lg) 0;
    margin: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.social-share-label {
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-pinterest {
    background: #E60023;
}

.share-facebook {
    background: #1877F2;
}

.share-whatsapp {
    background: #25D366;
}

.share-twitter {
    background: #1DA1F2;
}

.share-email {
    background: var(--color-text-light);
}

.share-pinterest:hover {
    background: #c8001f;
}

.share-facebook:hover {
    background: #1565c0;
}

.share-whatsapp:hover {
    background: #1fa855;
}

.share-twitter:hover {
    background: #1a8cd8;
}

.share-email:hover {
    background: var(--color-text);
}


/* ============================================================
   BREADCRUMB (Global)
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    padding: var(--space-md) 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.breadcrumb a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--color-border);
    font-size: var(--fs-xs);
}
