/* ============================================================
   Default-Theme – Hauptstylesheet
   Alle Farben, Schriften und Maße kommen aus theme.json
   und werden als CSS-Variablen injiziert.
   ============================================================ */

@font-face {
    font-family: 'Playfair Display';
    src: url('../../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}

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

body {
    display: flex; flex-direction: column; min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-page);
    line-height: 1.6;
}

main { flex: 1; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--brand-primary); }

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

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

/* ============================================================
   Globales Block-Spacing
   Jeder Block ist eine <section class="block-..."> — alle bekommen
   automatisch vertikales Padding und werden aufeinander aufbauend
   ============================================================ */
main > section[class*="block-"] {
    padding: var(--section-padding) 0;
}
main > section[class*="block-"]:first-child {
    padding-top: 0;
}
/* Text-blöcke bekommen ihren Inhalt zentriert */
.block-text .text-content,
.block-text > .container > h2 {
    margin-left: auto;
    margin-right: auto;
}
/* Section-Headings einheitlich */
section[class*="block-"] > .container > h2 {
    text-align: center;
    margin-bottom: 32px;
}
section[class*="block-"] > .container > .section-intro,
section[class*="block-"] > .container > p:first-of-type {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    main > section[class*="block-"] {
        padding: calc(var(--section-padding) * 0.6) 0;
    }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.top-bar {
    background: var(--brand-primary);
    color: white;
    padding: 12px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.top-bar .logo-link img { max-height: 60px; width: auto; }
.top-bar .site-name { font-family: var(--font-heading); font-size: 1.4rem; }
.top-bar .contact-info { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
.top-bar .contact-info a { color: white; }
.top-bar .contact-info a:hover { color: var(--brand-accent); }

.main-nav {
    background: white;
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
}
.nav-list li { position: relative; }
.menu-link-wrapper { display: flex; align-items: center; }
.nav-list a {
    padding: 18px 16px;
    display: block;
    font-weight: 500;
    color: var(--text-dark);
}
.nav-list a:hover, .nav-list a.active {
    color: var(--brand-primary);
    background: var(--bg-page-alt);
}
.nav-list .dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.nav-list .has-dropdown:hover > .dropdown,
.nav-list .dropdown.open { display: block; }
.dropdown-toggle {
    background: none; border: none; padding: 0 8px; cursor: pointer; color: inherit; font-size: 0.7rem;
}

.nav-blog-link {
    padding: 18px 16px;
    font-weight: 500;
}
.nav-blog-link.active { color: var(--brand-primary); }

.nav-kontakt { display: flex; gap: 8px; }
.nav-kontakt a {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: white; }
.btn-nav-kontakt { background: var(--brand-primary); color: white; }
.btn-nav-kontakt:hover { background: var(--brand-primary-dark); color: white; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger span {
    display: block;
    width: 24px; height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

/* ============================================================
   Generischer Block-Wrapper
   ============================================================ */
section[class*="block-"] {
    padding: 60px 0;
}
section[class*="block-"]:nth-of-type(even) {
    background: var(--bg-page-alt);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--brand-primary);
    transition: all 0.3s ease;
}
.btn:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary); color: white; }
.btn-large { padding: 16px 36px; font-size: 1.1rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--brand-primary-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer a { color: white; }
.footer a:hover { color: var(--brand-accent); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { max-height: 60px; margin-bottom: 16px; }
.footer h4 { color: var(--brand-accent); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================================
   Modal (Kontaktformular)
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 500px; width: 90%;
    position: relative;
    max-height: 90vh; overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 2rem; cursor: pointer;
    color: var(--text-medium);
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-primary);
    outline: 2px solid rgba(107,28,58,0.15);
}

/* Success/Error Popup */
.modal-success, .modal-error {
    text-align: center;
    padding: 50px 40px;
    max-width: 440px;
    animation: pop-in 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.modal-success .success-icon,
.modal-error .error-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    animation: bump 0.5s 0.15s both;
}
.modal-success h2 {
    color: var(--brand-primary, #6B1C3A);
    margin-bottom: 14px;
    font-size: 1.6rem;
}
.modal-error h2 {
    color: #b71c1c;
    margin-bottom: 14px;
    font-size: 1.6rem;
}
.modal-success p, .modal-error p {
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.55;
}
@keyframes pop-in {
    0%   { opacity: 0; transform: scale(0.85) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bump {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18) rotate(-7deg); }
}

/* ============================================================
   Animationen
   ============================================================ */
/* Animationen — sichtbar by default. JS aktiviert die Animation durch Setzen von 
   .js-animations-on auf <html>. Wenn JS fehlt/bricht, bleiben alle Inhalte sichtbar. */
.animate-on-scroll {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-animations-on .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}
.js-animations-on .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Blog — Card-Layout mit Sidebar (Inspiration: MySlimBody)
   ============================================================ */
.blog-wrapper { padding: 60px 0; background: var(--bg-page, #f8f6f2); }
.blog-header { margin-bottom: 32px; }
.blog-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--brand-primary-dark, var(--brand-primary));
    margin-bottom: 12px;
}
.blog-header .blog-intro {
    color: var(--text-medium);
    font-size: 1.05rem;
    max-width: 720px;
    line-height: 1.6;
}

.blog-back {
    display: inline-block;
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-decoration: none;
}
.blog-back:hover { color: var(--brand-primary); }

/* Grid: Posts links, Sidebar rechts */
.blog-wrapper .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
.blog-wrapper.has-sidebar .blog-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.blog-posts { display: flex; flex-direction: column; gap: 24px; }
.blog-empty { padding: 40px; text-align: center; color: var(--text-light); }

/* Post-Cards */
.blog-post-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background: var(--bg-card, #fff);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover, 0 8px 24px rgba(0,0,0,0.12));
}
.blog-post-card .post-image {
    display: block;
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 180px;       /* feste Höhe für gleichmäßiges Layout */
}
.blog-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-post-card .post-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
.blog-post-card .post-content {
    padding: 20px 24px 20px 0;
    display: flex;
    flex-direction: column;
    min-width: 0;        /* damit Text korrekt umbricht */
}
.blog-post-card .post-meta-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.blog-post-card .post-meta-row .post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}
.blog-post-card h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--brand-primary-dark, #333);
}
.blog-post-card h2 a {
    color: inherit;
    text-decoration: none;
}
.blog-post-card h2 a:hover { color: var(--brand-primary); }
.blog-post-card .blog-post-excerpt {
    color: var(--text-medium);
    line-height: 1.55;
    margin-bottom: 14px;
    /* Excerpt auf 3 Zeilen begrenzen für gleichmäßiges Layout */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Weiterlesen als Button */
.blog-post-card .post-readmore {
    display: inline-block;
    background: var(--brand-primary);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9rem;
    transition: background 0.15s, transform 0.15s;
}
.blog-post-card .post-readmore:hover {
    background: var(--brand-primary-dark, #4a1228);
    transform: translateX(2px);
    text-decoration: none;
}

/* Erste Card als "Featured" */
.blog-post-card.latest {
    grid-template-columns: 1fr;
    box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,0.08));
}
.blog-post-card.latest .post-image {
    width: 100%;
    height: 320px;
    aspect-ratio: auto;
}
.blog-post-card.latest .post-content { padding: 24px; }
.blog-post-card.latest h2 { font-size: 1.6rem; }
.blog-post-card.latest .blog-post-excerpt { -webkit-line-clamp: 4; }

/* Tags */
.blog-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    background: rgba(107, 28, 58, 0.08);
    border-radius: 12px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}
.blog-tag:hover { background: var(--brand-primary); color: white; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.sidebar-widget {
    background: var(--bg-card, white);
    padding: 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}
.sidebar-widget h3 {
    font-size: 1rem;
    margin: 0 0 14px;
    color: var(--brand-primary-dark, var(--brand-primary));
}
.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget li { padding: 4px 0; }
.sidebar-widget li ul { padding-left: 16px; margin-top: 4px; }
.sidebar-widget a { color: var(--text-medium); text-decoration: none; }
.sidebar-widget a:hover { color: var(--brand-primary); }

/* Suche */
.sidebar-search .blog-search-form {
    display: flex; gap: 6px; margin: 0;
}
.sidebar-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.sidebar-search button {
    padding: 0 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Werbebox */
.sidebar-promo {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark, #4A1228) 100%);
    color: white;
    overflow: hidden;
}
.sidebar-promo h3 { color: white; font-size: 1.15rem; margin-bottom: 8px; }
.sidebar-promo p { color: rgba(255,255,255,0.92); margin-bottom: 14px; font-size: 0.92rem; line-height: 1.5; }
.sidebar-promo .promo-image {
    margin: -22px -22px 14px;
}
.sidebar-promo .promo-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.sidebar-promo .promo-btn {
    display: inline-block;
    background: white;
    color: var(--brand-primary);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.15s;
}
.sidebar-promo .promo-btn:hover { transform: scale(1.04); color: var(--brand-primary); }

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    align-items: center;
}
.blog-pagination a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card, white);
    border: 1px solid var(--border, #e0e0e0);
    color: var(--text-medium);
    text-decoration: none;
}
.blog-pagination a:hover { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.blog-pagination .current { color: var(--text-medium); }

/* Single-Post */
.blog-single .blog-post-article {
    background: var(--bg-card, white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,0.08));
}
.blog-single .post-hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.blog-single .post-header {
    padding: 32px 40px 24px;
}
.blog-single .post-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    line-height: 1.25;
    color: var(--brand-primary-dark, var(--brand-primary));
    margin-bottom: 16px;
}
.blog-single .post-meta-top {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.blog-single .post-meta-top .post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}
.blog-single .post-excerpt {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.6;
}
.blog-single .post-body {
    padding: 0 40px;
    line-height: 1.75;
}
/* Wenn der Post-Body Block-Sections enthält, sollen diese die volle Breite des Articles nutzen */
.blog-single .post-body section[class*="block-"] {
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
}
/* Block-internes Container-Padding aufheben (Block-Container ist eh schon eingerückt) */
.blog-single .post-body section[class*="block-"] > .container {
    padding: 0;
}
.blog-single .post-body h2 { margin-top: 28px; margin-bottom: 12px; color: var(--brand-primary-dark, var(--brand-primary)); }
.blog-single .post-body p { margin-bottom: 16px; }
.blog-single .post-body img { border-radius: var(--radius-sm); margin: 20px 0; max-width: 100%; height: auto; }
.blog-single .post-body table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
}
.blog-single .post-body th, .blog-single .post-body td {
    padding: 10px; border: 1px solid var(--border);
    text-align: left;
}
.blog-single .post-body th {
    background: var(--cream, #f7f2ed);
    font-weight: 600;
}
.blog-single .blog-tags {
    padding: 0 40px;
    margin: 20px 0;
}

/* Author-Card */
.author-card {
    background: var(--cream, #f7f2ed);
    margin: 24px 40px 0;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-card .author-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-card .author-label {
    color: var(--text-light);
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.author-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.author-card p { margin: 0; color: var(--text-medium); font-size: 0.92rem; }

/* Comments */
.comments-section {
    padding: 32px 40px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}
.comments-section h2 { margin-bottom: 20px; }
.comment {
    background: var(--cream, #f7f2ed);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
}
.comment-author { font-weight: 600; color: var(--text-dark); }
.comment-form {
    margin-top: 28px;
    background: var(--cream, #f7f2ed);
    padding: 28px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-primary);
}
.comment-form h3 { margin-bottom: 18px; color: var(--brand-primary-dark, var(--brand-primary)); }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form .form-group { margin-bottom: 14px; }
.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark, #2c2c2c);
}
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d4cabe;
    background: white;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(107, 28, 58, 0.12);
}
.comment-form input:hover, .comment-form textarea:hover {
    border-color: #b8a99a;
}
.comment-form button {
    margin-top: 8px;
}
.honeypot { position: absolute; left: -9999px; top: -9999px; visibility: hidden; }

.alert { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-info    { background: #e3f2fd; color: #0d47a1; }
.alert-success { background: #e8f5e9; color: #1b5e20; }
.alert-error   { background: #ffebee; color: #b71c1c; }

/* Mobile */
@media (max-width: 900px) {
    .blog-wrapper.has-sidebar .blog-grid { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}
@media (max-width: 700px) {
    .blog-post-card {
        grid-template-columns: 1fr;
    }
    .blog-post-card .post-image { aspect-ratio: 16/9; }
    .blog-post-card .post-content { padding: 18px 20px 20px; }
    .blog-single .post-header { padding: 22px 20px 18px; }
    .blog-single .post-body { padding: 0 20px; }
    .blog-single .post-body section[class*="block-"] {
        margin-left: -20px; margin-right: -20px;
        padding-left: 20px; padding-right: 20px;
    }
    .blog-single .blog-tags { padding: 0 20px; }
    .author-card { margin: 20px 20px 0; padding: 18px; flex-direction: column; gap: 12px; }
    .comments-section { padding: 24px 20px; }
    .comment-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .main-nav .container { flex-wrap: wrap; gap: 8px; }
    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        flex-basis: 100%;
        margin: 0;
        padding: 8px 0;
        background: white;
        border-top: 1px solid var(--bg-page-alt);
    }
    .nav-list.open { display: flex; }
    .nav-list li { width: 100%; }
    .menu-link-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .nav-list a {
        padding: 14px 16px;
        width: 100%;
    }
    .nav-list .dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-page);
        border-radius: 0;
        width: 100%;
        margin: 0;
    }
    .nav-list .dropdown a { padding-left: 36px; }
    .nav-blog-link {
        order: 3;
        width: auto;
        padding: 10px 14px;
    }
    .nav-kontakt {
        order: 5;
        flex-basis: 100%;
        justify-content: center;
        padding: 8px 16px 12px;
        gap: 8px;
    }
    .nav-kontakt a { flex: 1; text-align: center; padding: 12px 16px; }
    .top-bar .container { flex-direction: column; text-align: center; }
}
