/* Selbst gehostete Schriften (DSGVO-konform, kein Google-CDN) – OFL, siehe /fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-variable.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/outfit-variable.woff2') format('woff2');
}

/* Global Design System & Variables */
:root {
    /* Color Palette - Light Mode (Default) */
    --c-primary: #0284c7;
    /* Ocean Blue */
    --c-primary-hover: #0369a1;
    --c-secondary: #0f172a;
    /* Deep Slate */
    --c-accent: #38bdf8;
    /* Sky Blue */

    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-surface-alt: #f1f5f9;
    --c-border: #e2e8f0;

    --c-text: #334155;
    --c-text-muted: #64748b;
    --c-text-light: #f8fafc;
    /* For dark backgrounds */

    /* Status Colors */
    --c-success: #10b981;
    --c-danger: #ef4444;
    --c-warning: #f59e0b;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --c-primary: #38bdf8;
    /* Brighter blue for dark mode */
    --c-primary-hover: #7dd3fc;
    --c-secondary: #f8fafc;
    /* White text for secondary */

    --c-bg: #0f172a;
    /* Dark Slate Background */
    --c-surface: #1e293b;
    /* Lighter Slate Surface */
    --c-surface-alt: #334155;
    --c-border: #334155;

    --c-text: #e2e8f0;
    /* Light Grey Text */
    --c-text-muted: #94a3b8;
    --c-text-light: #f8fafc;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: var(--c-bg);
    color: var(--c-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--c-secondary);
    line-height: 1.2;
    margin-top: 0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: var(--c-text-light);
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--c-primary-hover);
}

/* Layout Containers */
.container,
header,
nav,
main,
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
header {
    padding: 0.5rem 0;
    background: transparent;
    color: var(--c-text);
    margin-bottom: 0;
    border-radius: var(--radius-lg);
    box-shadow: none;
    position: relative;
    /* overflow: hidden; Removed to prevent clipping of weather widget */
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb a {
    color: var(--c-text-muted);
    text-decoration: none;
    transition: var(--c-primary);
}

.breadcrumb a:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--c-text-muted);
    opacity: 0.7;
}

.breadcrumb .current {
    font-weight: 600;
    color: var(--c-text);
}



header h1 {
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.25rem;
    color: var(--c-secondary);
    text-shadow: none;
}

[data-theme="dark"] header h1 {
    color: var(--c-text-light);
}

header p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 900px;
    margin: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#weather-widget {
    margin-top: 1.2rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    /* Swap: Was 5.5rem */
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--c-primary);
    border: none;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    font-size: 1.5rem;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 1.5rem;
        /* Swap: Was 5rem */
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0;
    padding-right: 0;
}

/* Glassy Nav Bar */
.nav-wrapper {
    background: var(--c-surface);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    position: relative;
    list-style: none;
}

nav a {
    color: var(--c-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

[data-theme="dark"] nav a:hover {
    color: #0f172a;
    /* Dark text on bright blue button */
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 260px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: var(--c-text);
    font-weight: 400;
    font-size: 0.95rem;
    border-radius: 0;
    text-align: left;
}

.dropdown-menu a:hover {
    background: var(--c-primary);
    color: #fff !important;
    box-shadow: none;
}

[data-theme="dark"] .dropdown-menu a:hover {
    color: #0f172a !important;
}

.arrow {
    display: inline-block;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    pointer-events: none;
}

/* Hover-Effekt für Desktop */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
        animation: navFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .has-dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

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

/* Main Content */
main {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
}

main>* {
    padding-left: 0;
    padding-right: 0;
}

main>.hero {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Restore border radius for wider screens if desired, but for alignment with header (which has rounded bottom), hero usually looks best full width or matching. 
   Actually, previous hero had radius. If we want it full width 1200px matching header:
   Header has: border-radius: 0 0 var(--radius-lg) var(--radius-lg);
   Hero is below it.
   If Hero is 1200px, it fits perfectly under header.
   So keeping radius is fine?
   NO, if padding is gone, it touches edges.
   Let's keep radius but ensure width is max.
*/
/* Hero padding is handled in the main declaration below */

main>section {
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    /* margin-bottom handled by general section rule */
    border: 1px solid var(--c-border);
    padding-left: 0;
    padding-right: 0;
}

.hero-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    /* Fade out if desired, or keep solid */
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--c-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    max-width: 100%;
    margin-bottom: 1.5rem;
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.card p {
    color: var(--c-text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Shop Logos */
.shop-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--c-primary-hover);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn,
[data-theme="dark"] .btn:hover {
    color: #0f172a;
    /* Ensure readable text on bright buttons in dark mode */
}

/* Footer */
footer {
    border-top: none;
    padding: 3rem 0;
    background: transparent;
    color: var(--c-text-muted);
    text-align: center;
    margin-top: 1rem;
}

footer a {
    color: var(--c-text);
    font-weight: 500;
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    box-shadow: var(--shadow-sm);
}

/* Utilities */
.tag-hinweis {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--c-warning);
    color: var(--c-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.tag-hinweis p {
    margin: 0.25rem 0;
}

.tag-hinweis p:first-child {
    margin-top: 0;
}

.tag-hinweis p:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .tag-hinweis {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--c-surface-alt);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 0.75rem;
    box-shadow: var(--shadow-sm);
}

/* Content Sections */
.content-section {
    background: var(--c-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

article {
    padding: 0;
}

.content-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.img-left {
    float: left;
    margin: 0.5rem 2rem 1rem 0;
    max-width: 45%;
    clear: left;
}

.img-right {
    float: right;
    margin: 0.5rem 0 1rem 2rem;
    max-width: 45%;
    clear: right;
}

@media (max-width: 768px) {

    .img-left,
    .img-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 2rem 0;
        clear: both;
    }
}

/* Fish Grid & Detail Specifics */
.fisch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.fisch-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: var(--transition);
}

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

.fisch-card img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.fisch-card-content {
    padding: 1rem;
    display: block;
}

/* Recipe Cards - Similar to Fish Cards */
.rezepte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0 0 0;
    padding: 0 1.5rem;
}

.rezept-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    display: block;
    height: auto;
    align-self: start;
    position: relative;
}

.rezept-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.rezept-card img.rezept-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

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

.rezept-card-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Collapsed recipe content */
.rezept-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.rezept-details.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.rezept-preview {
    display: block;
}

.rezept-preview.hidden {
    display: none;
}

.toggle-recipe {
    margin-top: 1rem;
    cursor: pointer;
    color: var(--c-primary);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    transition: var(--transition);
}

.toggle-recipe:hover {
    color: var(--c-primary-hover);
}

.rezept-card h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--c-primary);
}

.rezept-card h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--c-secondary);
}

[data-theme="dark"] .rezept-card h3 {
    color: var(--c-text-light);
}

.rezept-card p {
    color: var(--c-text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.rezept-card ul,
.rezept-card ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.rezept-card li {
    margin-bottom: 0.5rem;
    color: var(--c-text);
}

.rezept-card .btn {
    margin-top: auto;
}

.rezept-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

.rezept-actions .btn {
    flex: 1;
    min-width: 140px;
    font-size: 0.9rem;
}

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

    .rezept-actions {
        flex-direction: column;
    }

    .rezept-actions .btn {
        width: 100%;
    }
}

/* Season Calendar */
.season-calendar {
    background: var(--c-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}

.month-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-text-muted);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table thead {
    background: var(--c-primary);
    color: #fff;
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--c-border);
}

table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

table tbody tr:nth-child(even) {
    background: var(--c-surface-alt);
}

table tbody tr:hover {
    background: rgba(2, 132, 199, 0.05);
}

[data-theme="dark"] table thead {
    background: var(--c-surface-alt);
    color: var(--c-primary);
}

[data-theme="dark"] table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


.month-box {
    height: 8px;
    /* Slimmer bars */
    border-radius: 4px;
    margin-top: 4px;
}

.status-open {
    background: var(--c-success);
}

.status-closed {
    background: var(--c-danger);
    opacity: 0.3;
}

/* Less intrusive red */
.status-partial {
    background: linear-gradient(to right, var(--c-danger) 50%, var(--c-success) 50%);
}

/* Responsive */
/* Navigation */
.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    margin-left: auto;
}

.burger-menu:focus {
    outline: none;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--c-text);
    border-radius: 2px;
}

/* Burger Animation */
.burger-menu.toggle .burger-bar:nth-child(2) {
    opacity: 0;
}

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

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

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-wrapper {
        flex-wrap: wrap;
        position: relative;
    }

    .search-container {
        width: 100%;
        margin-top: 1rem;
        order: 3;
    }

    .burger-menu {
        order: 2;
        /* Ensure burger is to the right if we had a logo, or just aligned right */
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        order: 4;
        margin-top: 1rem;
        background: var(--c-surface);
        border-top: 1px solid var(--c-border);
    }

    .nav-links.nav-active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    nav a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.9rem 1.2rem;
        border-bottom: 1px solid var(--c-border);
        border-radius: 0;
        width: 100%;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Mobile Dropdown (Accordion) */
    .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        background: var(--c-surface-alt);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .has-dropdown.open .arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 0.8rem 1.2rem 0.8rem 2.2rem; /* Eingerückt */
        font-weight: 400;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--c-border);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* Adjust Header layout */
    header h1 {
        font-size: 1.8rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Interactive Map */
.map-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.austria-map {
    flex: 2;
    min-width: 300px;
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

.interactive-map {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.state-path {
    fill: var(--c-surface-alt);
    stroke: var(--c-border);
    stroke-width: 2;
    transition: all 0.2s ease;
    cursor: pointer;
}

.state-path:hover {
    fill: var(--c-primary);
    stroke: var(--c-primary-hover);
    transform: translateY(-2px);
}

.state-path.active {
    fill: var(--c-warning);
    stroke: var(--c-warning);
}

[data-theme='dark'] .state-path {
    fill: var(--c-surface);
    stroke: var(--c-border);
}

[data-theme='dark'] .state-path:hover {
    fill: var(--c-primary);
}

.state-wien {
    stroke-width: 3;
}

.map-info-panel {
    flex: 1;
    min-width: 250px;
    background: var(--c-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 1rem;
}

.map-info-panel h3 {
    margin-top: 0;
    color: var(--c-primary);
}

@media (max-width: 700px) {
    .map-wrapper {
        flex-direction: column;
    }

    .map-info-panel {
        width: 100%;
        position: static;
    }
}

/* Search Component */
.search-container {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
}

#site-search {
    padding: 0.5rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    outline: none;
    transition: var(--transition);
    background: var(--c-surface-alt);
    color: var(--c-text);
    width: 200px;
    font-size: 0.9rem;
}

#site-search:focus {
    width: 250px;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-results {
    position: absolute;
    top: 120%;
    right: 0;
    width: 300px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.hidden {
    display: none;
}

.search-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-border);
    transition: var(--transition);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--c-surface-alt);
}

.search-item a {
    text-decoration: none;
    display: block;
}

.search-item-title {
    font-weight: 600;
    color: var(--c-primary);
    font-size: 0.95rem;
}

.search-item-snippet {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-no-result {
    padding: 1rem;
    color: var(--c-text-muted);
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-container {
        width: 100%;
        margin: 1rem 0 0;
    }

    #site-search {
        width: 100%;
    }

    #site-search:focus {
        width: 100%;
    }

    .search-results {
        width: 100%;
        left: 0;
        right: auto;
    }
}

/* Weather Widget */
.weather-widget-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* In-Header Overrides */
.weather-widget-container.header-widget {
    margin-top: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.weather-card {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-hover) 100%);
    color: #fff;
    padding: 1rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    display: flex;
    flex-direction: row;
    /* Horizontal layout: Temp/Icon Left | Details Right */
    align-items: center;
    gap: 1rem;
}

/* Responsive adjustment for header widget */
@media (max-width: 768px) {
    .weather-widget-container.header-widget {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
}

.weather-header {
    display: flex;
    flex-direction: row;
    /* Icon and Temp side-by-side */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    font-size: 1.5rem;
    font-weight: 800;
}

.weather-details {
    display: flex;
    flex-direction: column;
    /* Reverted to vertical stack */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    /* Smaller font size */
}

.bite-index {
    margin-top: 0;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    text-align: center;
}

.bite-index.high {
    border-left: 4px solid #fff;
}

.bite-index.medium {
    border-left: 4px solid #fde047;
}

.bite-index.low {
    border-left: 4px solid #fca5a5;
}

/* Footer Links */
footer .footer-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

footer .footer-links a {
    margin: 0 0.3rem;
    color: var(--c-primary);
}

/* Affiliate Small Links */
.affiliate-link-small {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #ff9900;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ff9900;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    transition: all 0.2s;
}

.affiliate-link-small:hover {
    background: #ff9900;
    color: #fff;
    transform: translateY(-1px);
}

/* Recipe Images Fix */
.rezept-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .rezept-img {
        float: right;
        margin-left: 2rem;
        margin-bottom: 1rem;
        max-width: 350px;
    }
}

/* Filter Buttons Premium Design */
.filter-btn {
    background-color: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    padding: 0.6rem 1.2rem;
    margin: 0.25rem;
    border-radius: 9999px;
    /* Pill shape */
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
}

.filter-btn:hover {
    background-color: var(--c-surface-alt);
    border-color: var(--c-primary);
    color: var(--c-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background-color: var(--c-primary);
    color: #ffffff;
    border-color: var(--c-primary);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    /* Swap: Was 2rem */
    right: 2rem;
    background: var(--c-primary);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 5rem;
        /* Swap: Was 1.5rem */
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

/* Update for Messe Logos */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.messe-logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin: 0;
    /* Remove default margin to align with logo */
    flex-grow: 1;
}

@media (max-width: 600px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .messe-logo {
        max-width: 120px;
    }
}

/* Fisch-Sektionen in koeder-fanggebiete.html */
.fisch-section {
    margin-bottom: 5rem;
    /* Mehr Abstand zum nächsten Fisch */
    padding: 2rem;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row-reverse;
    /* Bild rechts, Text links */
    gap: 2rem;
    align-items: flex-start;
}

.fisch-section-content {
    flex: 1;
}

.fisch-section-img {
    width: 200px;
    /* Kleines Bild */
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fisch-section {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .fisch-section-img {
        width: 100%;
        max-width: 300px;
    }
}


/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    display: flex;
}

.info-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: var(--c-surface);
    text-align: left;
}

.info-table th,
.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--c-border);
}

.info-table th {
    background: var(--c-surface-alt);
    font-weight: 600;
    color: var(--c-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: var(--c-surface-alt);
}

[data-theme="dark"] .info-table th {
    color: var(--c-text-light);
}

/* Messe Banner */
.messe-banner-section {
    margin: 2rem 0 3rem 0;
    padding-left: 0;
    padding-right: 0;
}

.messe-banner-link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--c-border);
}

.messe-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.2);
    border-color: var(--c-primary);
}

.messe-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Panorama Image */
.panorama-image {
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    object-position: center 40%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    display: block;
}

/* Mobile Layout Padding Fix */
/* Ensure content isn't flush with screen edges on mobile */
@media (max-width: 768px) {

    header,
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Content containers - Universal catch-all for consistency */
    main>* {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Exclude full-width visual elements by class override */
    main>.hero,
    main>.messe-banner-section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================================================
   HOMEPAGE WIDGETS & SEARCH STYLING (PROPOSALS A, B, C)
   ========================================================================== */

/* Homepage Zentrale Suche (Proposal C) */
.homepage-search-container {
    margin-top: 1.5rem;
    width: 100%;
    position: relative;
}

.homepage-search-box {
    position: relative;
    width: 100%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.homepage-search-box:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.homepage-search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--c-text);
    outline: none;
}

.homepage-search-box .search-icon {
    font-size: 1.25rem;
    padding-left: 1rem;
    color: var(--c-text-muted);
}

.homepage-search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
    text-align: left;
}

.search-category-title {
    background: var(--c-surface-alt);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--c-border);
}

.search-category-title:first-child {
    border-top: none;
}

/* Proposal A: Zielfinder Sektion (Kacheln) */
.zielfinder-section {
    margin: 4rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--c-text-muted);
    margin-top: -0.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.zielfinder-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.zielfinder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.zielfinder-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    overflow: hidden;
}

.zielfinder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.zielfinder-img-wrap {
    overflow: hidden;
    width: 100%;
    height: 180px;
    flex-shrink: 0;
}

.zielfinder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.zielfinder-card:hover .zielfinder-img {
    transform: scale(1.06);
}

.zielfinder-card-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.zielfinder-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--c-secondary);
}

[data-theme="dark"] .zielfinder-card h3 {
    color: var(--c-text-light);
}

.zielfinder-card p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.zielfinder-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
}

.zielfinder-links a {
    background: var(--c-surface-alt);
    color: var(--c-text);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--c-border);
    transition: var(--transition);
    text-align: center;
}

.zielfinder-links a:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

[data-theme="dark"] .zielfinder-links a:hover {
    color: #0f172a;
}

.zielfinder-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Proposal B: Schonzeiten-Widget */
.schonzeiten-widget-section {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 4rem 0;
}

.widget-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.widget-header-row h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.widget-header-row p {
    color: var(--c-text-muted);
    margin: 0;
}

.state-select-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.state-select-container label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text-muted);
}

.widget-select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-surface-alt);
    color: var(--c-text);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.widget-select:focus {
    border-color: var(--c-primary);
}

.widget-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    background: var(--c-surface-alt);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 500;
}

.homepage-regulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

.homepage-reg-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c-surface);
    transition: var(--transition);
}

.homepage-reg-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--c-primary);
}

.homepage-reg-card.status-closed {
    border-left: 4px solid var(--c-danger);
}

.homepage-reg-card.status-open {
    border-left: 4px solid var(--c-success);
}

.homepage-reg-card.status-none {
    border-left: 4px solid var(--c-warning);
}

.homepage-reg-card.status-always-closed {
    border-left: 4px solid var(--c-text-muted);
}

.homepage-reg-card-content {
    display: flex;
    padding: 0.75rem;
    gap: 0.75rem;
    align-items: center;
}

.homepage-reg-card img {
    width: 70px;
    height: 47px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    flex-shrink: 0;
}

.homepage-reg-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
    min-width: 0;
}

.homepage-reg-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.homepage-reg-info h4 a {
    color: var(--c-text);
}

.homepage-reg-info h4 a:hover {
    color: var(--c-primary);
}

.homepage-reg-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.homepage-reg-meta {
    font-size: 0.75rem;
    color: var(--c-text-muted);
}

.meta-value {
    font-weight: 600;
    color: var(--c-text);
}

[data-theme="dark"] .meta-value {
    color: var(--c-text-light);
}

.widget-disclaimer {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    margin-top: 2rem;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .widget-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .state-select-container {
        width: 100%;
    }
    
    .widget-select {
        width: 100%;
    }
}

/* ========================================
   BLOG SYSTEM
   ======================================== */

/* Blog Header */
/* Blog-Header: gleiche Optik wie die normalen Seiten-Header */
.blog-header {
    background: transparent;
    color: var(--c-text);
    padding: 0.5rem 0;
    text-align: left;
}

.blog-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 0.35rem;
}

.blog-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--c-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

[data-theme="dark"] .blog-header h1 {
    color: var(--c-text-light);
}

.blog-header p {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--c-text);
    max-width: 900px;
    margin: 0;
}

/* Blog Section */
.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* Category Filter */
.blog-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 2px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* Blog Card Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card */
.blog-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.blog-card-img-wrap {
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #1e3a5f, #0284c7);
    position: relative;
}

.blog-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-img-fallback::after {
    content: "🎣";
    font-size: 3rem;
}

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

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-date {
    font-size: 0.82rem;
    color: var(--c-text-muted);
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--c-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

[data-theme="dark"] .blog-card-title a {
    color: var(--c-text-light);
}

.blog-card-title a:hover {
    color: var(--c-primary);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.blog-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-link:hover {
    gap: 0.5rem;
}

/* Badges */
.blog-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-technik  { background: #dbeafe; color: #1d4ed8; }
.badge-gewaesser { background: #d1fae5; color: #065f46; }
.badge-recht    { background: #fef3c7; color: #92400e; }
.badge-saison   { background: #f3e8ff; color: #6b21a8; }

[data-theme="dark"] .badge-technik  { background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .badge-gewaesser { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .badge-recht    { background: #78350f; color: #fde68a; }
[data-theme="dark"] .badge-saison   { background: #4c1d95; color: #d8b4fe; }

/* ========================================
   ARTICLE LAYOUT
   ======================================== */

.article-header {
    background: linear-gradient(135deg, var(--c-secondary) 0%, #1e3a5f 100%);
    color: #fff;
    padding: 3.5rem 2rem 3rem;
}

.article-header-content {
    max-width: 780px;
    margin: 0 auto;
}

.article-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0.75rem 0 1rem;
    line-height: 1.25;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.meta-sep { opacity: 0.5; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span:last-child { color: rgba(255,255,255,0.85); }

/* Article Main */
.article-main {
    background: var(--c-bg);
    padding: 3rem 1.5rem 5rem;
}

.article-content {
    max-width: 780px;
    margin: 0 auto;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--c-text);
    font-weight: 500;
    border-left: 4px solid var(--c-primary);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-secondary);
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
}

[data-theme="dark"] .article-content h2 { color: var(--c-text-light); }

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 1.75rem 0 0.6rem;
}

.article-content p {
    line-height: 1.75;
    color: var(--c-text);
    margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
    margin: 0 0 1.25rem 1.5rem;
    line-height: 1.75;
}

.article-content li { margin-bottom: 0.4rem; }

/* Table of Contents */
.toc {
    background: var(--c-surface-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.toc h2 {
    font-size: 1rem !important;
    font-weight: 700;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    color: var(--c-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li { margin-bottom: 0.35rem; font-size: 0.95rem; }

.toc a {
    color: var(--c-primary);
    text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* Tip Box */
.article-tip-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--c-surface-alt);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--tip-color, var(--c-primary));
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tip-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
}

.article-nav-back, .article-nav-next {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.article-nav-back:hover, .article-nav-next:hover {
    color: var(--c-primary-hover);
}

/* Related Links */
.article-related {
    background: var(--c-surface-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
}

.article-related h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.related-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.related-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
    transition: var(--transition);
}

.related-links a:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* Schonzeiten Table */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
}

.schonzeiten-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.schonzeiten-table thead {
    background: var(--c-secondary);
    color: #fff;
}

.schonzeiten-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.schonzeiten-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text);
}

.schonzeiten-table tbody tr:nth-child(even) {
    background: var(--c-surface-alt);
}

.schonzeiten-table tbody tr:hover {
    background: rgba(2, 132, 199, 0.06);
}

/* ========================================
   HOMEPAGE BLOG TEASER
   ======================================== */

.blog-teaser-section {
    padding: 4rem 2rem;
    background: var(--c-bg);
}

.blog-teaser-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: var(--c-secondary);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .blog-teaser-section h2 { color: var(--c-text-light); }

.blog-teaser-grid {
    max-width: 1100px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-teaser-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-teaser-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.blog-teaser-img-wrap {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #0284c7);
}

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

.blog-teaser-card:hover .blog-teaser-img { transform: scale(1.06); }

.blog-teaser-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-teaser-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.blog-teaser-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.blog-teaser-title a {
    color: var(--c-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

[data-theme="dark"] .blog-teaser-title a { color: var(--c-text-light); }

.blog-teaser-title a:hover { color: var(--c-primary); }

.blog-teaser-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.75rem;
}

.blog-teaser-link:hover { text-decoration: underline; }

.blog-teaser-cta {
    text-align: center;
    margin-top: 2.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ============ Site-Footer (einheitlich wie andere Domains) ============ */
.site-footer {
  max-width: none;
  margin: 3rem 0 0;
  padding: 0;
  background: #0f172a;
  color: #fff;
  text-align: left;
  border-top: none;
}
.site-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer .footer-heading { font-weight: 600; margin: 0 0 .5rem; color: #fff; }
.site-footer .footer-claim { font-size: .875rem; color: #d1d5db; margin: 0; }
.site-footer .footer-list { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-list li { margin-bottom: .35rem; }
.site-footer .footer-link { font-size: .875rem; color: #d1d5db; text-decoration: underline; text-underline-offset: 2px; font-weight: 400; }
.site-footer .footer-link:hover { color: #fff; }
.site-footer .footer-contact { font-size: .875rem; color: #d1d5db; margin: 0 0 .35rem; }
.site-footer .cookie-settings-btn {
  background: none; border: 0; color: #d1d5db; text-decoration: underline;
  cursor: pointer; padding: 0; margin-top: .5rem; display: block; font-size: .875rem; font-family: inherit;
}
.site-footer .cookie-settings-btn:hover { color: #fff; }
.site-footer .footer-copy { text-align: center; font-size: .75rem; color: #9ca3af; padding: 1.25rem 1rem 1.5rem; margin: 0; border-top: 1px solid rgba(255,255,255,.08); }

/* ============ Master-Style Header/Navigation ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="dark"] .site-header { background: rgba(15, 23, 42, 0.85); }

.site-header .nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header .logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--c-secondary);
  text-decoration: none;
  padding: 0;
  margin-right: auto;
  border-radius: 0;
}
.site-header .logo:hover { background: none; box-shadow: none; color: var(--c-primary); }
[data-theme="dark"] .site-header .logo { color: var(--c-text-light); }

/* Such-Icon (immer sichtbar, ganz rechts) */
.site-header .search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--c-text);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.site-header .search-toggle:hover { color: var(--c-primary); background: var(--c-surface-alt); }

/* Suchfeld als aufklappbares Panel */
.site-header .search-container {
  display: none;
  position: absolute;
  top: 100%;
  right: 1rem;
  width: min(340px, calc(100vw - 2rem));
  margin-top: 0.4rem;
  padding: 0.6rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.site-header .search-container.is-open { display: block; }
.site-header .search-container input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-text);
}
.site-header .search-results { position: static; margin-top: 0.4rem; box-shadow: none; width: 100%; }

/* Desktop: horizontale, dezente Nav-Links (kein Pill mehr) */
@media (min-width: 769px) {
  .site-header .nav-links { gap: 0.1rem; }
  .site-header .nav-links > li > a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: none;
    box-shadow: none;
    white-space: nowrap;
  }
  .site-header .nav-links > li > a:hover,
  .site-header .nav-links > li > a.active {
    background: none;
    box-shadow: none;
    color: var(--c-primary);
  }
  [data-theme="dark"] .site-header .nav-links > li > a:hover,
  [data-theme="dark"] .site-header .nav-links > li > a.active { color: var(--c-primary); }
}
