/* 
   Achim Weidner Homepage Stylesheet
   Vanilla CSS - Modern Slate & Turquoise Theme
*/

/* Lokal gehostete Schriftarten (DSGVO-konform) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300-normal.woff2') format('woff2');
}

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-normal.woff2') format('woff2');
}

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

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

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

:root {
    /* Default: Hell-Modus (Light) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #396699;       /* User's steel blue */
    --accent-hover: #254b73;       /* Darker hover blue */
    --accent-light: #5282b5;       /* Lighter accent */
    --btn-primary-text: #ffffff;   /* High contrast text color for primary buttons */
    --border-color: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1380px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-footer: #f8fafc;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;        /* Deep slate background */
    --bg-secondary: #1e293b;      /* Slate card background */
    --bg-tertiary: #334155;       /* Slate border/hover background */
    --text-primary: #f8fafc;      /* White text */
    --text-secondary: #94a3b8;    /* Muted grey-blue text */
    --accent-color: #60a5fa;      /* A lighter blue for readability on dark */
    --accent-hover: #3b82f6;      
    --accent-light: #93c5fd;
    --btn-primary-text: #0f172a;   /* Dark text on light blue background for readability */
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    
    --bg-header: rgba(15, 23, 42, 0.85);
    --bg-footer: #0b0f19;
}

[data-theme="contrast"] {
    --bg-primary: #000000;        /* Pure black background */
    --bg-secondary: #000000;      /* Pure black */
    --bg-tertiary: #ffffff;       /* White for contrast borders */
    --text-primary: #ffffff;      /* Pure white text */
    --text-secondary: #ffffff;    /* Pure white text */
    --accent-color: #ffff00;      /* High contrast yellow links */
    --accent-hover: #ffffaa;      
    --accent-light: #ffff00;
    --btn-primary-text: #000000;   /* Black text on yellow background for high contrast */
    --border-color: #ffffff;       /* Solid white borders */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    
    --bg-header: #000000;
    --bg-footer: #000000;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.content-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 2.5rem auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Layout Reset für Links (keine Unterstreichung standardmäßig) */
.logo-link,
.nav-link,
.btn,
.footer-links a,
.footer-meta-links a,
.blog-teaser h2 a,
.read-more,
.close-search-btn,
.search-result-title {
    text-decoration: none;
}

.logo-link:hover,
.nav-link:hover,
.btn:hover,
.footer-links a:hover,
.footer-meta-links a:hover,
.blog-teaser h2 a:hover,
.read-more:hover,
.search-result-title:hover {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
}

ul, ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    background-color: rgba(13, 148, 136, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

blockquote p {
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    max-width: var(--max-width);
    width: 92%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-light);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Search Box */
.search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

.search-container input[type="search"] {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    width: 150px;
    transition: var(--transition);
}

.search-container input[type="search"]::placeholder {
    color: var(--text-secondary);
}

.search-container button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-container button:hover {
    color: var(--accent-light);
}

/* Main Layout */
.site-main {
    padding: 4rem 0;
    min-height: 70vh;
}

.main-container {
    max-width: var(--max-width);
    width: 92%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Content Styles */
.content-article {
    max-width: 800px;
    margin: 0 auto;
}

.content-article p code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--accent-light);
}

/* Blog Styles */
.blog-posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-teaser {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-teaser:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: var(--shadow-lg);
}

.blog-teaser h2 {
    margin-top: 0;
    font-size: 1.6rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.blog-teaser h2 a {
    color: var(--text-primary);
}

.blog-teaser h2 a:hover {
    color: var(--accent-light);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    color: var(--accent-light);
}

.read-more:hover {
    color: var(--text-primary);
}

/* Search Results Layout */
.search-results-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.search-results-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.close-search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-search-btn:hover {
    color: var(--text-primary);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-light);
}

.search-result-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.search-result-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.search-result-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.search-result-badge.page {
    background-color: var(--bg-tertiary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-container {
    max-width: var(--max-width);
    width: 92%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.footer-brand p {
    font-size: 0.85rem;
    max-width: 400px;
}

.footer-links h4, .footer-meta-links h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links ul, .footer-meta-links ul {
    list-style: none;
    margin: 0;
}

.footer-links li, .footer-meta-links li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-meta-links a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1.5rem;
        display: none;
    }
    
    .site-nav.is-open {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-container input[type="search"] {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Hamburger Animation */
    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   Hero Section & Buttons
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: var(--text-primary);
    overflow: hidden;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section:hover .hero-bg {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Entfernt die Abdunklung/den Verlauf, damit das Foto unverfälscht dargestellt wird */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 9999px;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffa801; /* Warm amber-orange text for high complementary contrast */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
        padding: 3rem 1.25rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 0;
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: scale(1.05) rotate(15deg);
}

/* Hero text adjustments for light mode (must stay white/light on dark overlay) */
.hero-title {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ffffff !important;
}

.hero-subtitle {
    color: #cbd5e1 !important; /* Ensure it stays light slate gray */
}

/* Contrast Mode Overrides */
[data-theme="contrast"] .hero-bg {
    display: none !important;
}

[data-theme="contrast"] .hero-overlay {
    background: #000000 !important;
}

[data-theme="contrast"] .hero-title {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #ffffff !important;
}

[data-theme="contrast"] .hero-subtitle {
    color: #ffffff !important;
}

[data-theme="contrast"] .theme-toggle-btn {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

[data-theme="contrast"] blockquote {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

[data-theme="contrast"] .blog-teaser {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="contrast"] .search-container {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
}

/* Embedded post/page images */
.post-image-wrapper {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.post-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.post-image:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

[data-theme="contrast"] .post-image {
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

/* Hero Image Caption */
.hero-image-caption {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(15, 23, 42, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    z-index: 5;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="contrast"] .hero-image-caption {
    border: 1px solid #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Post/Page Figure Captions */
.post-image-figure {
    display: block;
    margin: 0;
    width: 100%;
    text-align: center;
}

.post-image-caption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-style: italic;
    font-family: var(--font-body);
    text-align: left;
}

[data-theme="contrast"] .post-image-caption {
    color: #ffffff !important;
}

/* Hero Split Grid Layout */
.hero-container-grid {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    width: 92%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-content-left {
    max-width: 750px;
}

.hero-content-left .hero-subtitle {
    margin: 0 0 2.5rem 0;
}

.hero-content-left .hero-actions {
    justify-content: flex-start;
}

/* Glassmorphism Badge Card */
.hero-badge-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: float-badge 6s ease-in-out infinite;
}

.hero-badge-box h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge-box h3 svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.hero-badge-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-badge-box li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badge-box li:last-child {
    margin-bottom: 0;
}

.hero-badge-box li svg {
    color: #2dd4bf; /* Teal checkmark */
    flex-shrink: 0;
}

@keyframes float-badge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive Overrides for Split Hero */
@media (max-width: 992px) {
    .hero-container-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }
    .hero-content-left {
        margin: 0;
    }
    .hero-content-left .hero-actions {
        justify-content: flex-start;
    }
    .hero-badge-box {
        max-width: 450px;
        margin: 0;
        text-align: left;
    }
}

/* High Contrast theme overrides */
[data-theme="contrast"] .hero-badge-box {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
    backdrop-filter: none !important;
}
[data-theme="contrast"] .hero-badge-box h3 svg,
[data-theme="contrast"] .hero-badge-box li svg {
    color: #ffffff !important;
}

/* Responsive Video Container & 2-Klick Datenschutz-Lösung */
.video-privacy-wrapper {
    position: relative;
    width: 100%;
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.video-privacy-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
}

.video-privacy-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.05) 100%);
    z-index: 1;
}

[data-theme="dark"] .video-privacy-placeholder::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.video-privacy-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.video-privacy-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-privacy-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.video-privacy-btn {
    text-decoration: none;
}

[data-theme="contrast"] .video-privacy-wrapper {
    border: 2px solid #ffffff !important;
}

[data-theme="contrast"] .video-privacy-btn {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

.video-privacy-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-privacy-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Layout-Elemente für Musterseite (Kooperation, Ablauf, FAQ, Kontakt)
   ========================================================================== */

/* Grid Utility */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 768px) {
    .grid-2col, .grid-3col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Section Wrapper */
.custom-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.custom-section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.custom-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.75rem 0 0;
    border-radius: 2px;
}

/* Cards & Hover Effects */
.info-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

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

.info-card h4 {
    margin-top: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Warning Box */
.warning-box {
    background-color: rgba(234, 179, 8, 0.1);
    border-left: 4px solid #eab308;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #eab308;
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Kooperations-Bereich */
.coop-section {
    background-color: var(--bg-secondary);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

.coop-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.coop-card h4 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Ablauf/Timeline Steps */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.timeline-step {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
}

.step-badge {
    background-color: var(--accent-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    margin-bottom: 0;
}

/* Accordion FAQs */
.accordion {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.accordion-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-trigger:hover {
    background-color: var(--bg-tertiary);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--bg-primary);
}

.accordion-content-inner {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.accordion-content-inner p:last-child {
    margin-bottom: 0;
}

/* Active accordion classes (managed via JS script) */
.accordion-item.active .accordion-trigger {
    background-color: var(--bg-tertiary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Large enough height */
    transition: max-height 0.5s ease-in-out;
}

/* Form Styles */
.contact-form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(82, 130, 181, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
}

.form-checkbox span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Badges */
.custom-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(82, 130, 181, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(82, 130, 181, 0.2);
    margin-bottom: 1rem;
}

/* High Contrast adjustments */
[data-theme="contrast"] .info-card,
[data-theme="contrast"] .coop-section,
[data-theme="contrast"] .coop-card,
[data-theme="contrast"] .timeline-step,
[data-theme="contrast"] .accordion-item,
[data-theme="contrast"] .contact-form-card {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="contrast"] .warning-box {
    border: 2px solid #ffff00 !important;
    background-color: #000000 !important;
}

[data-theme="contrast"] .warning-box h4 {
    color: #ffff00 !important;
}

[data-theme="contrast"] .step-badge {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

[data-theme="contrast"] .form-control {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="contrast"] .accordion-trigger:hover,
[data-theme="contrast"] .accordion-item.active .accordion-trigger {
    background-color: var(--bg-tertiary) !important;
    color: #000000 !important;
}

/* Key Takeaways - Liquid Content Box */
.key-takeaways-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0.5rem 0 2rem 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.key-takeaways-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.key-takeaways-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.key-takeaways-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

.key-takeaways-icon {
    color: var(--accent-light);
    flex-shrink: 0;
}

.key-takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.key-takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.takeaway-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(82, 130, 181, 0.1);
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.takeaway-bullet svg {
    width: 14px;
    height: 14px;
}

.takeaway-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Contrast theme accessibility overrides */
[data-theme="contrast"] .key-takeaways-container {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="contrast"] .key-takeaways-header h3 {
    color: #ffffff !important;
}

[data-theme="contrast"] .key-takeaways-icon,
[data-theme="contrast"] .takeaway-bullet {
    color: #ffff00 !important;
    background-color: #000000 !important;
    border: 1px solid #ffff00 !important;
}

/* ==========================================================================
   Erweiterungen für „Mit Daten sprechen“ Relaunch
   ========================================================================== */

/* Überleitungs-Text nach den Risikokarten */
.uebergang {
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 3.5rem 0 1rem 0;
    max-width: 750px;
    color: var(--text-primary);
}

.uebergang strong {
    color: var(--accent-light);
}

/* Workshop-Callout-Box */
.workshop-hinweis {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    max-width: 750px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
}

.workshop-hinweis p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.workshop-hinweis p strong {
    color: var(--text-primary);
}

/* High Contrast theme accessibility overrides */
[data-theme="contrast"] .workshop-hinweis {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="contrast"] .workshop-hinweis a {
    border: 2px solid #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}




