/* =============================================================================
   Microblog - Minimalist Black & White Design
   christian-engelke.de
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Local Fonts (DSGVO-konform)
   ----------------------------------------------------------------------------- */

/* VT323 - Retro Terminal Font */
@font-face {
    font-family: 'VT323';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/VT323-Regular.ttf') format('truetype');
}

/* Playfair Display */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/playfair-display-v40-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}

/* Source Sans 3 */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-v19-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

/* -----------------------------------------------------------------------------
   CSS Variables
   ----------------------------------------------------------------------------- */
:root {
    /* Colors - Pure Black & White */
    --color-bg: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-text: #000000;
    --color-text-muted: #555555;
    --color-text-light: #888888;
    --color-border: #000000;
    --color-border-light: #E5E5E5;
    --color-bg-lighter: #F5F5F5;
    
    /* Accent Color */
    --color-primary: #1a1a1a;
    --color-primary-hover: #333333;
    
    /* Typography - Google Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', Monaco, monospace;
    --font-retro: 'VT323', monospace; /* 80s Terminal Style */
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Sizing */
    --max-width: 1200px;
    --content-width: 800px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 999;
    --z-fixed: 1000;
    --z-modal: 9998;
    --z-overlay: 9999;
    --z-toast: 10000;
    
    /* Status Colors */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
}

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

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

a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Utility Classes (Flexbox & Common Patterns)
   ----------------------------------------------------------------------------- */

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }

/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* Align Items */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

/* Gap */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Border Radius */
.rounded-sm { border-radius: 4px; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 50%; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Spacing */
.m-0 { margin: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }

/* Display */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Transitions */
.transition-all { transition: all 0.2s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.3s ease; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* -----------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: var(--space-2xl) 0;
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
.header {
    display: flex;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
    gap: var(--space-md);
}

/* Super-Hero Mode */
.super-hero .header--super-hero {
    position: relative;
    border-bottom: none;
    padding: var(--space-xl) 0;
    margin: 0 calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + var(--space-md));
    padding-right: calc(50vw - 50% + var(--space-md));
    min-height: var(--hero-vh, 80vh);
    align-items: flex-start;
    flex-wrap: wrap;
}

.super-hero .header--super-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Hide image background when video is present */
.super-hero--video .header--super-hero::before {
    display: none;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.super-hero .header--super-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--hero-overlay-color, #000);
    opacity: var(--hero-opacity, 0.6);
    z-index: -1;
}

.super-hero .header--super-hero .logo__img {
    filter: invert(1) brightness(2);
}

.super-hero .header--super-hero .search__icon,
.super-hero .header--super-hero .contact-toggle__icon,
.super-hero .header--super-hero .menu-toggle__icon {
    filter: invert(1);
}

.super-hero .header--super-hero .search__toggle,
.super-hero .header--super-hero .contact-toggle,
.super-hero .header--super-hero .menu-toggle {
    border-color: rgba(255, 255, 255, 0.3);
}

.super-hero .header--super-hero .search__toggle:hover,
.super-hero .header--super-hero .contact-toggle:hover,
.super-hero .header--super-hero .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.super-hero .header--super-hero .super-nav__link {
    color: var(--hero-text-color, #fff);
}

.super-hero .header--super-hero .super-nav__link:hover {
    opacity: 0.8;
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: var(--max-width);
    padding: 80px var(--space-lg);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--hero-text-color, #fff);
}

.hero-content__headline {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 var(--space-md);
    color: inherit;
    max-width: 800px;
}

.hero-content__text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    margin: 0 0 var(--space-lg);
    max-width: 600px;
    opacity: 0.9;
}

.hero-content__button {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--hero-text-color, #fff);
    color: var(--hero-overlay-color, #000);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-content__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Post Hero Styling */
.hero-content--post {
    align-items: center;
    text-align: center;
}

.hero-content--post .hero-content__headline {
    max-width: 900px;
}

.hero-content__meta {
    font-size: 1rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-content__meta-sep {
    opacity: 0.6;
}

/* Hero Scroll Down Button */
.hero-scroll-down {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: var(--space-xs);
}

.hero-scroll-down__icon {
    width: 32px;
    height: 32px;
    filter: invert(1) brightness(2);
    animation: heroScrollSlow 3s ease-in-out infinite;
}

@keyframes heroScrollSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .hero-scroll-down__icon {
        width: 28px;
        height: 28px;
    }
}

.super-hero .homepage--super-hero {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Remove top padding from container in super-hero mode */
.super-hero .container {
    padding-top: 0;
}

@media (max-width: 768px) {
    .hero-content {
        padding-bottom: var(--space-lg);
    }
    
    .hero-content__headline {
        font-size: 2rem;
    }
    
    .hero-content__text {
        font-size: 1rem;
    }
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto; /* Push to right */
}

/* Super Navigation (Desktop only) */
.super-nav {
    display: none;
    align-items: center;
    gap: var(--space-lg);
    margin-left: var(--space-xl);
    height: 60px; /* Same as logo height */
}

@media (min-width: 900px) {
    .super-nav {
        display: flex;
    }
}

.super-nav__link {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.super-nav__link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo__img {
    height: 60px;
    width: auto;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
}

.category-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.category-dropdown__toggle:hover {
    border-color: var(--color-text);
}

.category-dropdown__icon {
    width: 16px;
    height: 16px;
}

.category-dropdown__arrow {
    transition: transform 0.2s ease;
}

.category-dropdown.open .category-dropdown__arrow {
    transform: rotate(180deg);
}

.category-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.category-dropdown.open .category-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease;
}

.category-dropdown__item:hover {
    background: var(--color-bg-light);
}

.category-dropdown__item--active {
    font-weight: 600;
    background: var(--color-bg-light);
}

.category-dropdown__item-icon {
    width: 18px;
    height: 18px;
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.icon--arrow {
    width: 14px;
    height: 14px;
    margin-left: 6px;
}

.icon--small {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.icon--tiny {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.icon--plus {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Search */
.search {
    position: relative;
}

.search__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search__toggle:hover {
    border-color: var(--color-text);
}

.search__icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.search__panel {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    width: 0;
    transition: all 0.25s ease;
    z-index: 100;
}

.search.open .search__toggle {
    opacity: 0;
    visibility: hidden;
}

.search.open .search__panel {
    opacity: 1;
    visibility: visible;
    width: 320px;
}

.search__input {
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: none;
    background: transparent;
    min-width: 0;
}

.search__input:focus {
    outline: none;
}

.search__input::placeholder {
    color: var(--color-text-light);
}

.search__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    flex-shrink: 0;
}

.search__close:hover {
    opacity: 1;
}

.search__results {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 1001;
}

.search__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.search__overlay.active {
    display: block;
}

.search__results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    background: var(--color-bg);
}

.search__results-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.search__results-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.search__results-close:hover {
    color: var(--color-text);
}

.search__item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
    text-decoration: none;
}

.search__item:last-child {
    border-bottom: none;
}

.search__item:hover {
    background: #f9f9f9;
}

.search__item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search__item-content {
    flex: 1;
    min-width: 0;
}

.search__item-title {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search__item-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.search__item-type {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--color-bg-lighter);
    border-radius: 3px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.search__item-snippet {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search__empty {
    padding: var(--space-md);
    color: var(--color-text-muted);
    text-align: center;
    font-size: 0.9rem;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tag:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.tag--active {
    color: #fff;
    background: var(--color-text);
    border-color: var(--color-text);
}

/* Categories Filter */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.category-pill:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.category-pill--active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

.category-pill__icon {
    width: 18px;
    height: 18px;
}

.category-pill--active .category-pill__icon {
    filter: invert(1);
}

.category-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.category-pill__name {
    font-weight: 500;
}

/* Post Card Category */
.post-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.post-card__category a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.post-card__category a:hover {
    color: var(--color-text);
}

/* Post Category */
.post__category {
    margin-bottom: var(--space-sm);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.category-badge:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

/* Site Intro */
.site-intro {
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.site-intro__text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

/* Category Header */
.category-header {
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.category-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.category-header__icon {
    width: 40px;
    height: 40px;
    vertical-align: -0.35em;
    margin-right: var(--space-sm);
}

.category-header__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.category-header__desc {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.category-header__keywords {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.category-header__back {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.category-header__back:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .category-header {
        padding: var(--space-md) 0;
        gap: var(--space-md);
    }
    
    .category-header__icon {
        width: 32px;
        height: 32px;
    }
    
    .category-header__title {
        font-size: 1.5rem;
    }
    
    .category-header__desc {
        font-size: 1rem;
    }
    
    .category-header__keywords {
        display: none;
    }
}

.filter-info {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-info__desc {
    margin-top: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.filter-info__clear {
    margin-left: var(--space-sm);
    color: var(--color-text-muted);
    text-decoration: underline;
}

.filter-info__clear:hover {
    color: var(--color-text);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.badge--draft {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.badge--scheduled {
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

/* Post card tags */
.post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

/* Post tags */
.post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    justify-content: flex-end;
}

/* Draft toggle */
.draft-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.draft-toggle input {
    width: 16px;
    height: 16px;
}

/* Page title */
.page-title {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.pagination__link {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    transition: all 0.15s ease;
}

.pagination__link:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}

.pagination__info {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.author-box__image-link {
    flex-shrink: 0;
}

.author-box__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.author-box__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.author-box__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.author-box__name:hover {
    color: var(--color-text-muted);
}

.author-box__bio {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }
    
    .author-box__image {
        width: 70px;
        height: 70px;
    }
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.related-posts__title {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.related-posts__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Compact layout in related posts */
.related-posts .post-card--compact {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.related-posts .post-card--compact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery__image:hover {
    transform: scale(1.03);
}

/* Gallery video thumbnail with play icon */
.gallery__item--video {
    position: relative;
}

.gallery__video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery__video-thumb .gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
    pointer-events: none;
}

.gallery__video-thumb:hover .gallery__play-icon {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery preview (editor) */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.gallery-preview__item {
    position: relative;
}

.gallery-preview__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-preview__actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.gallery-preview__seo {
    margin-top: 4px;
}

.gallery-preview__seo .seo-filename-input {
    width: 100%;
    font-size: 0.7rem;
    padding: 3px 6px;
    font-family: var(--font-mono);
}

.form-input--tiny {
    font-size: 0.75rem !important;
    padding: 4px 6px !important;
}

.gallery-preview__rotate {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--color-border-light);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.gallery-preview__rotate:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text-light);
}

.gallery-preview__rotate--delete {
    color: #c00;
    border-color: #fcc;
}

.gallery-preview__rotate--delete:hover {
    background: #fcc;
    border-color: #c00;
}

.gallery-preview__delete {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__video {
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.lightbox__nav--prev {
    left: 20px;
}

.lightbox__nav--next {
    right: 20px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .lightbox__nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox__nav--prev {
        left: 10px;
    }
    
    .lightbox__nav--next {
        right: 10px;
    }
    
    .lightbox__nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Pages Admin */
.pages-admin__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.pages-admin__header .page-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pages-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pages-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
}

.pages-list__item--inactive {
    opacity: 0.6;
    background: var(--color-bg-alt);
}

.pages-list__switch {
    flex-shrink: 0;
}

.pages-list__info {
    flex: 1;
    min-width: 0;
}

.pages-list__actions {
    flex-shrink: 0;
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.pages-list__info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.pages-list__type-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.6;
    margin-top: 2px;
}

.pages-list__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pages-list__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.pages-list__actions {
    display: flex;
    gap: var(--space-sm);
}

/* Settings Form */
.settings-form {
    max-width: 800px;
}

.settings-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.settings-section__subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: var(--space-md) 0 var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.settings-section__subtitle:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.team-member-selection {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #f8f9fa;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.team-member-selection .form-checkbox {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.team-member-selection .form-checkbox:hover {
    background: #f0f0f0;
}

.team-member-selection input[type="checkbox"] {
    margin-right: var(--space-sm);
}

.settings-preview {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-lighter);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.settings-preview__logo {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.settings-preview__favicon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.settings-preview__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.settings-preview__remove:hover {
    background: rgba(192, 57, 43, 1);
    transform: scale(1.1);
}

.settings-upload-options {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.settings-upload-or {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.badge--draft {
    background: #fef3c7;
    color: #92400e;
}

.badge--nav {
    margin-left: var(--space-sm);
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #059669;
    background: #d1fae5;
    border-radius: 4px;
}

.badge--super-nav {
    margin-left: var(--space-sm);
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #7c3aed;
    background: #ede9fe;
    border-radius: 4px;
}

.badge--homepage {
    margin-left: var(--space-sm);
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #b45309;
    background: #fef3c7;
    border-radius: 4px;
}

.badge--landingpage {
    margin-left: var(--space-sm);
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #7c3aed;
    background: #ede9fe;
    border-radius: 4px;
}

/* Page view */
.page {
    max-width: 1200px;
}

.page__header {
    margin-bottom: var(--space-xl);
}

.page__title {
    margin-bottom: var(--space-md);
}

.page__hero {
    margin-bottom: var(--space-xl);
}

.page__hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.page__content {
    line-height: 1.8;
}

.page__content p {
    margin-bottom: var(--space-md);
}

/* About page - first image as hero */
.page__content > p:first-child img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: var(--space-xl);
}

.page__content h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.page__content h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.page__content hr {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: var(--space-xl) 0;
}

.page__content strong {
    font-weight: 600;
}

/* Call-to-Action Box */
.cta-box {
    margin-top: var(--space-2xl);
    padding: var(--space-xl) var(--space-2xl);
    background: #fff;
    border: 2px solid var(--color-primary);
    text-align: center;
}

.cta-box__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.cta-box__text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-box__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.cta-box__button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

.cta-box__button--email,
.cta-box__button--phone {
    background: var(--color-primary);
}

.cta-box__icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
    .cta-box {
        padding: var(--space-lg);
    }
    
    .cta-box__title {
        font-size: 1.35rem;
    }
    
    .cta-box__text {
        font-size: 1rem;
    }
}

.page__admin {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

/* Homepage */
.homepage {
    margin-bottom: var(--space-xl);
}

.homepage__hero {
    margin-bottom: var(--space-xl);
}

.homepage__hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.homepage__content {
    line-height: 1.8;
}

.homepage__content h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.homepage__content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.homepage__content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.homepage__content p {
    margin-bottom: var(--space-md);
}

.homepage__admin {
    margin-top: var(--space-lg);
}

/* Homepage Blog Section */
.homepage-blog {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

.homepage-blog__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.homepage-blog__more {
    margin-top: var(--space-xl);
    text-align: center;
}

/* Form row */
.form-row {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm) 0;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

/* Tags Autocomplete */
.tags-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.tags-autocomplete__item {
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-size: 0.9rem;
}

.tags-autocomplete__item:hover,
.tags-autocomplete__item--active {
    background: #f5f5f5;
}

.tags-autocomplete__item--active {
    background: var(--color-text);
    color: #fff;
}

.nav {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Contact Toggle Button */
.contact-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.contact-toggle:hover {
    border-color: var(--color-text);
}

.contact-toggle__icon {
    width: 18px;
    height: 18px;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.menu-toggle:hover {
    border-color: var(--color-text);
}

.menu-toggle__icon {
    width: 18px;
    height: 18px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-overlay);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__header .logo {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu__header .logo {
        display: none;
    }
    
    .mobile-menu__header {
        justify-content: flex-end;
    }
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
}

.mobile-menu__close:hover {
    opacity: 1;
}

.mobile-menu__nav {
    padding: var(--space-md) 0;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s ease;
}

.mobile-menu__link:hover {
    background: var(--color-bg-light);
}

.mobile-menu__link--highlight {
    color: var(--color-text);
    font-weight: 500;
}

.mobile-menu__icon {
    width: 18px;
    height: 18px;
}

.mobile-menu__divider {
    margin: var(--space-md) var(--space-lg);
    border: none;
    border-top: 1px solid var(--color-border-light);
}

.mobile-menu__domain-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-light);
    margin-bottom: var(--space-sm);
}

.mobile-menu__label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.mobile-menu__domain-select {
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.9rem;
    background: var(--color-bg);
}

/* Pages list current domain */
.pages-list__item--current {
    border-left: 3px solid var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
}

.pages-list__item--maintenance {
    border-left: 3px solid #e67e22;
}

.badge--warning {
    background-color: #e67e22;
    color: #fff;
}

/* Icon Button */
.btn-icon {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.btn-icon:hover {
    opacity: 1;
    border-color: var(--color-text);
}

.btn-icon--active {
    opacity: 1;
    background-color: #e67e22;
    border-color: #e67e22;
}

.btn-icon--active img {
    filter: brightness(0) invert(1);
}

.btn-icon--danger {
    opacity: 0.7;
    border-color: var(--danger-color);
}

.btn-icon--danger:hover {
    opacity: 1;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-icon--danger:hover img {
    filter: brightness(0) invert(1);
}

.btn-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Mobile Menu Overlay/Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.contact-modal__content {
    position: relative;
    background: var(--color-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal__content {
    transform: translateY(0);
}

.contact-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.contact-modal__close:hover {
    color: var(--color-text);
}

.contact-modal__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.contact-modal__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-modal__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-light);
    border-radius: 6px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.contact-modal__item:hover {
    background: var(--color-bg-lighter);
    text-decoration: none;
}

.contact-modal__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.nav-link--new {
    border: 1px solid var(--color-border);
    padding: var(--space-xs) var(--space-md);
    color: var(--color-text);
    background: transparent;
}

.nav-link--new:hover {
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
}

.nav-link--logout {
    display: flex;
    align-items: center;
    padding: var(--space-xs);
}

.nav-link--logout .icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.nav-link--logout:hover .icon {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border-light);
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
}

.footer__label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-right: var(--space-sm);
}

.footer__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border: 1px solid var(--color-border-light);
    border-radius: 50px;
    transition: all 0.15s ease;
}

.footer__category:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.footer__category-icon {
    width: 14px;
    height: 14px;
}

.footer__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer__pages {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.footer__pages a {
    color: var(--color-text);
    text-decoration: none;
}

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

.footer__copy {
    margin: 0;
    color: var(--color-text-muted);
}

.footer__made {
    margin: var(--space-sm) 0 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer__love {
    display: inline;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin: 0 3px;
}

.footer a {
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------------------
   Toast Notifications
   ----------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0; /* Retro: Sharp corners */
    /* Retro 3D window style */
    border: 3px solid;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #606060;
    border-right-color: #606060;
    background: #d0d0d0;
    color: #000;
    font-family: var(--font-retro);
    font-size: 1rem;
    letter-spacing: 0.5px;
    /* Classic Windows 95 drop shadow */
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(100%);
    transition: none; /* Retro: No smooth transitions */
    max-width: 360px;
}

.toast--show {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.1s linear, transform 0.1s linear; /* Retro: Fast, no easing */
}

.toast--hide {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.1s linear, transform 0.1s linear; /* Retro: Fast, no easing */
}

.toast__icon {
    width: 20px;
    height: 20px;
    border-radius: 0; /* Retro: Square icons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-retro);
    font-size: 0.9rem;
    flex-shrink: 0;
    /* Retro inset effect for icon */
    border: 2px solid;
    border-top-color: #606060;
    border-left-color: #606060;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
}

.toast--success .toast__icon {
    background: #2ecc71;
    color: #fff;
}

.toast--error .toast__icon,
.toast--danger .toast__icon {
    background: #e74c3c;
    color: #fff;
}

.toast--warning .toast__icon {
    background: #f39c12;
    color: #000;
}

.toast--info .toast__icon {
    background: #3498db;
    color: #fff;
}

.toast__message {
    line-height: 1.4;
    font-family: var(--font-retro);
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .toast-container {
        top: var(--space-md);
        right: var(--space-md);
        left: var(--space-md);
    }
    
    .toast {
        max-width: none;
    }
}

/* -----------------------------------------------------------------------------
   Post Cards (Index)
   ----------------------------------------------------------------------------- */
.posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.post-card {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: var(--space-2xl);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card__image-link {
    display: block;
    margin-bottom: var(--space-lg);
}

.post-card__image {
    width: 100%;
    height: auto;
}

.post-card__content {
    /* No padding needed */
}

.post-card__title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.post-card__title a {
    color: var(--color-text);
}

.post-card__title a:hover {
    text-decoration: underline;
}

.post-card__text {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.post-card__text p {
    margin: 0;
}

.post-card__meta {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.meta-item .icon {
    opacity: 0.6;
}

.post-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.post-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-card__read-more:hover {
    text-decoration-thickness: 2px;
}

/* Compact Layout - kleines Bild links, Text rechts */
.post-card--compact {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.post-card--compact .post-card__image-link {
    margin-bottom: 0;
}

.post-card--compact .post-card__image {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.post-card--compact .post-card__title {
    font-size: 1.4rem;
}

.post-card--compact .post-card__text {
    font-size: 0.95rem;
}

/* Responsive: auf Mobile Bild oben, Content unten */
@media (max-width: 600px) {
    .post-card--compact {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .post-card--compact .post-card__image {
        aspect-ratio: 16/9;
        width: 100%;
    }
    
    .post-card--compact .post-card__title {
        font-size: 1.2rem;
    }
    
    .post-card--compact .post-card__text {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    /* Hide tags and meta on mobile listings */
    .post-card .post-card__tags,
    .post-card .post-card__meta {
        display: none;
    }
    
    /* Simple link instead of button on mobile */
    .post-card__read-more {
        font-size: 0.9rem;
    }
}

.post-card__edit {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-card__edit:hover {
    color: var(--color-text);
}

/* -----------------------------------------------------------------------------
   Single Post
   ----------------------------------------------------------------------------- */
.post {
    /* Clean, no box */
}

.post__header {
    margin-bottom: var(--space-xl);
}

.post__title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.post__meta {
    font-size: 1rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
}

.post__meta-separator {
    color: var(--color-text-light);
    margin: 0 var(--space-xs);
}

.post__category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

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

.post__category-link .category-icon {
    width: 1em;
    height: 1em;
}

.post__image-container {
    margin: var(--space-xl) 0;
}

.post__image {
    width: 100%;
}

/* Hero Video */
.post__video-container {
    margin: var(--space-xl) 0;
}

.post__video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    background: #000;
    border-radius: 4px;
}

/* Table of Contents */
.toc {
    background: #f9f9f9;
    border-left: 3px solid var(--color-text);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.toc__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc__item {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.toc__arrow {
    width: 10px;
    height: 10px;
    opacity: 0.4;
    flex-shrink: 0;
}

.toc__item a {
    color: var(--color-text-muted);
    text-decoration: underline;
    font-size: 0.95rem;
}

.toc__item a:hover {
    color: var(--color-text);
}

.toc__item--level-3 {
    padding-left: var(--space-md);
}

.toc__item--level-4 {
    padding-left: calc(var(--space-md) * 2);
}

.toc__item--level-5 {
    padding-left: calc(var(--space-md) * 3);
}

.post__content {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for anchor links (account for any fixed headers) */
.post__content h2[id],
.post__content h3[id],
.post__content h4[id] {
    scroll-margin-top: var(--space-xl);
}

.post__content p {
    margin-bottom: var(--space-lg);
}

.post__content h1, 
.post__content h2, 
.post__content h3 {
    font-family: var(--font-serif);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post__content h2 { font-size: 1.5rem; }
.post__content h3 { font-size: 1.25rem; }

.post__content ul, 
.post__content ol {
    margin-bottom: var(--space-lg);
}

.post__content ul {
    list-style: none;
    padding-left: var(--space-lg);
}

.post__content ol {
    padding-left: var(--space-lg);
}

.post__content ul li {
    position: relative;
    padding-left: 1.5rem;
}

.post__content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.post__content ol li {
    margin-bottom: var(--space-xs);
}

.post__content li {
    margin-bottom: var(--space-xs);
}

.post__content blockquote {
    border-left: 2px solid var(--color-text);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.post__content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: #f0f0f0;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    color: #1a1a1a;
}

.post__content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-xl) 0;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 6px;
    border: 1px solid #333;
}

.post__content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

/* Syntax Highlighting (highlight.js compatible) */
.post__content pre .hljs-keyword,
.post__content pre .hljs-selector-tag,
.post__content pre .hljs-built_in,
.post__content pre .hljs-name,
.post__content pre .hljs-tag {
    color: #569cd6;
}

.post__content pre .hljs-string,
.post__content pre .hljs-title,
.post__content pre .hljs-section,
.post__content pre .hljs-attribute,
.post__content pre .hljs-literal,
.post__content pre .hljs-template-tag,
.post__content pre .hljs-template-variable,
.post__content pre .hljs-type,
.post__content pre .hljs-addition {
    color: #ce9178;
}

.post__content pre .hljs-comment,
.post__content pre .hljs-quote,
.post__content pre .hljs-deletion,
.post__content pre .hljs-meta {
    color: #6a9955;
}

.post__content pre .hljs-number,
.post__content pre .hljs-symbol,
.post__content pre .hljs-bullet,
.post__content pre .hljs-link {
    color: #b5cea8;
}

.post__content pre .hljs-variable,
.post__content pre .hljs-class .hljs-title,
.post__content pre .hljs-title.class_ {
    color: #4ec9b0;
}

.post__content pre .hljs-function,
.post__content pre .hljs-title.function_ {
    color: #dcdcaa;
}

.post__content a {
    text-decoration: underline;
}

.post__content img {
    margin: var(--space-xl) 0;
}

.post__admin {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.delete-form {
    display: inline;
}

.post__footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.back-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    background: transparent;
    color: var(--color-text);
}

.btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
}

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

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

.btn--outline {
    background: transparent;
}

.btn--danger {
    border-color: var(--color-text);
}

.btn--danger:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn--success {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.btn--muted {
    background: transparent;
    border-color: var(--color-border-light);
    color: var(--color-text-light);
}

.btn--muted:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-light);
}

.btn-switch {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-switch:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-switch img {
    width: 36px;
    height: 36px;
    display: block;
}

.btn--small {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
}

.btn--full {
    width: 100%;
}

/* -----------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Form group mit Grid (wie Galerie) braucht mehr Abstand */
.form-group:has(.social-proof-images-grid),
.form-group:has(.logos-grid) {
    margin-bottom: 5rem; /* Increased from 3rem to ensure no overlap */
    clear: both;
    position: relative;
    z-index: 1;
}

.form-group--slug {
    margin-bottom: var(--space-lg);
}

.slug-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--color-border-light);
    border-radius: 3px;
    overflow: hidden;
}

.slug-input__prefix {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-family: monospace;
    white-space: nowrap;
    border-right: 1px solid var(--color-border-light);
}

.slug-input .form-input {
    border: none;
    border-radius: 0;
    font-family: monospace;
}

.slug-input .form-input:focus {
    box-shadow: none;
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: var(--space-xs);
}

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

.form-label .optional {
    font-weight: 400;
    color: var(--color-text-light);
}

.form-label .required {
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border-light);
    border-radius: 3px;
    background: var(--color-surface);
    transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
}

.form-textarea--small {
    min-height: 60px;
}

.form-textarea--code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 6px;
    padding: var(--space-md);
}

.form-textarea--code::placeholder {
    color: #6a6a6a;
}

/* Character Counter */
.char-counter {
    float: right;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-light);
    transition: color 0.15s ease;
}

.char-counter--warning {
    color: #c9a227;
}

.char-counter--danger {
    color: #c92727;
}

.form-hint {
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Auto-linked keywords */
.auto-link {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.auto-link:hover {
    text-decoration-style: solid;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: #FFFFFF;
    border-top: 3px solid #000000;
    border-radius: 0;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Form-Actions über Admin-Bar positionieren */
body.has-admin-bar .form-actions {
    bottom: 70px; /* Höhe der Admin-Bar */
}

.form-actions__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.form-actions__buttons {
    display: flex;
    gap: var(--space-sm);
}

/* Admin Bar (Fixed am Browser-Bottom - immer sichtbar) */
.admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-md) var(--space-lg) var(--space-md) 70px; /* Extra padding-left für Env Badge */
    /* 80s Computer Dithering Pattern - Retro halftone effect */
    background-color: #f5f5f5;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    border-top: 3px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    /* Retro Terminal Font */
    font-family: var(--font-retro);
    font-size: 1rem; /* VT323 needs slightly larger size for readability */
    letter-spacing: 0.5px;
}

/* Body mit Admin-Bar bekommt unten Padding */
body.has-admin-bar .main {
    padding-bottom: calc(var(--space-2xl) + 70px); /* Space + Admin-Bar-Höhe */
}

body.has-admin-bar .footer {
    padding-bottom: 70px; /* Admin-Bar-Höhe */
}

body.has-admin-bar .admin-section {
    padding-bottom: 120px; /* Extra Platz für Admin-Bar */
}

.admin-bar__section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Environment Badge */
.admin-bar__env {
    position: absolute;
    left: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: var(--font-retro);
    letter-spacing: 1px;
    border-radius: 3px;
    text-transform: uppercase;
}

.admin-bar__env--dev {
    background: #ffd700;
    color: #000;
    border: 2px solid #b8860b;
}

.admin-bar__env--prod {
    background: #28a745;
    color: #fff;
    border: 2px solid #1e7e34;
}

/* Admin Bar Mobile Optimizations */
@media (max-width: 768px) {
    /* Keep admin-bar horizontal on mobile: buttons | hamburger */
    .admin-bar {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: var(--space-sm) var(--space-md) !important;
        gap: var(--space-sm) !important;
    }
    
    .admin-bar__section {
        width: auto !important;
    }
    
    .admin-bar__section--left {
        flex: 1;
        justify-content: flex-start !important;
    }
    
    .admin-bar__section--right {
        flex: 0 0 auto;
        justify-content: flex-end !important;
    }
    
    /* Hide DEV/PROD badge on mobile */
    .admin-bar__env {
        display: none;
    }
    
    /* Hide "Admin Bar" label on mobile */
    .admin-bar__section--center {
        display: none !important;
    }
    
    /* Hide user menu on mobile (logout is in hamburger menu) */
    .admin-bar__user-menu {
        display: none;
    }
    
    /* Bearbeiten button: hide text, show only icon */
    .admin-bar__btn-text {
        display: none;
    }
    
    .admin-bar__btn--primary {
        padding: var(--space-sm);
        min-width: auto;
    }
    
    .admin-bar__btn {
        flex: 0 0 auto !important;
    }
    
    /* Nav popup: right-align, don't overflow left */
    .admin-bar__nav-popup {
        right: 0;
        left: auto;
        min-width: 200px;
        max-width: calc(100vw - 20px);
    }
}

.admin-bar__section--left {
    flex: 0 0 auto;
}

.admin-bar__section--center {
    flex: 1;
    justify-content: center;
}

.admin-bar__section--right {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.admin-bar__label {
    font-family: var(--font-retro);
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-right: var(--space-xs);
    letter-spacing: 0.5px;
}

.admin-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    /* Retro PC Style: Sharp corners, no smooth transitions */
    border: 3px solid;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #808080;
    border-right-color: #808080;
    background: #d0d0d0;
    color: var(--color-text);
    font-family: var(--font-retro);
    font-size: 1rem; /* VT323 needs slightly larger size */
    font-weight: 400; /* VT323 has only one weight */
    letter-spacing: 0.5px;
    border-radius: 0; /* Sharp corners for retro look */
    cursor: pointer;
    transition: none; /* No smooth animations - instant feedback like old PCs */
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.2;
    height: auto;
    /* 3D "raised" effect like Amiga Workbench buttons */
    box-shadow: 1px 1px 0 #606060 inset, -1px -1px 0 #ffffff inset;
}

/* Ensure a and button have same dimensions */
a.admin-bar__btn,
button.admin-bar__btn {
    padding: 0.5rem 0.75rem;
}

.admin-bar__btn img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.admin-bar__btn:hover {
    background: #c0c0c0;
    /* "Pressed" effect - inverted shadows */
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    box-shadow: -1px -1px 0 #606060 inset, 1px 1px 0 #ffffff inset;
    text-decoration: none;
}

.admin-bar__btn--primary {
    background: #4a90e2;
    color: white;
    /* Retro blue button with 3D effect */
    border-top-color: #6ba8f5;
    border-left-color: #6ba8f5;
    border-bottom-color: #2c5f99;
    border-right-color: #2c5f99;
    box-shadow: 1px 1px 0 #1a4470 inset, -1px -1px 0 #7fb3f7 inset;
}

.admin-bar__btn--primary:hover {
    background: #3a7bc8;
    /* Pressed effect */
    border-top-color: #2c5f99;
    border-left-color: #2c5f99;
    border-bottom-color: #6ba8f5;
    border-right-color: #6ba8f5;
    box-shadow: -1px -1px 0 #1a4470 inset, 1px 1px 0 #7fb3f7 inset;
}

.admin-bar__btn--danger {
    background: #e74c3c;
    color: white;
    /* Retro red button with 3D effect */
    border-top-color: #ff6b5a;
    border-left-color: #ff6b5a;
    border-bottom-color: #a93226;
    border-right-color: #a93226;
    box-shadow: 1px 1px 0 #7f1c15 inset, -1px -1px 0 #ff8f7f inset;
}

.admin-bar__btn--danger:hover {
    background: #c0392b;
    /* Pressed effect */
    border-top-color: #a93226;
    border-left-color: #a93226;
    border-bottom-color: #ff6b5a;
    border-right-color: #ff6b5a;
    box-shadow: -1px -1px 0 #7f1c15 inset, 1px 1px 0 #ff8f7f inset;
}

/* Admin Bar AI Section */
.admin-bar__ai {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-right: var(--space-md);
}

.admin-bar__select {
    padding: var(--space-xs) var(--space-sm);
    /* Retro dropdown style */
    border: 2px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    background: #ffffff;
    color: var(--color-text);
    font-family: var(--font-retro);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 0; /* Sharp corners */
    cursor: pointer;
    max-width: 150px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

.admin-bar__select--small {
    max-width: 80px;
}

.admin-bar__btn--ai {
    background: #9b59b6; /* Retro purple */
    color: white;
    /* Retro purple button with 3D effect */
    border-top-color: #bb7bd1;
    border-left-color: #bb7bd1;
    border-bottom-color: #6c3483;
    border-right-color: #6c3483;
    box-shadow: 1px 1px 0 #4a235a inset, -1px -1px 0 #d7bde2 inset;
}

.admin-bar__btn--ai:hover {
    background: #8e44ad;
    /* Pressed effect */
    border-top-color: #6c3483;
    border-left-color: #6c3483;
    border-bottom-color: #bb7bd1;
    border-right-color: #bb7bd1;
    box-shadow: -1px -1px 0 #4a235a inset, 1px 1px 0 #d7bde2 inset;
}

.admin-bar__btn--ai.loading {
    opacity: 0.7;
    pointer-events: none;
}

.admin-bar__btn--ai img {
    filter: brightness(0); /* Black icon for AI button */
}

/* Admin Bar Navigation Menu Popup */
.admin-bar__nav-menu {
    position: relative;
}

.admin-bar__nav-toggle {
    cursor: pointer;
    /* Retro button style for hamburger menu */
    padding: var(--space-sm);
    border: 3px solid;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #808080;
    border-right-color: #808080;
    background: #d0d0d0;
    border-radius: 0;
    box-shadow: 1px 1px 0 #606060 inset, -1px -1px 0 #ffffff inset;
    transition: none;
}

.admin-bar__nav-toggle:hover {
    background: #c0c0c0;
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    box-shadow: -1px -1px 0 #606060 inset, 1px 1px 0 #ffffff inset;
}

/* Make hamburger icon lines thicker and more pixelated */
.admin-bar__nav-toggle svg,
.admin-bar__nav-toggle img {
    filter: contrast(2) brightness(0.8);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.admin-bar__nav-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #d0d0d0;
    /* Retro PC window style - thick border with 3D effect */
    border: 3px solid;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #606060;
    border-right-color: #606060;
    border-radius: 0; /* No rounded corners - pure retro */
    /* Classic "drop shadow" effect from Windows 95/Amiga */
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    min-width: 240px;
    z-index: 1001;
}

.admin-bar__nav-popup.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.admin-bar__nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 0; /* No rounded corners */
    font-family: var(--font-retro);
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: none; /* Instant feedback, no smooth transitions */
    border: 2px solid transparent;
}

.admin-bar__nav-item:hover {
    background: #a0a0a0;
    text-decoration: none;
    /* Retro "selected" state with inset border */
    border: 2px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
}

.admin-bar__nav-item img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Nav Group Labels */
.admin-bar__nav-group {
    padding: var(--space-xs) 0;
}

.admin-bar__nav-group:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-xs);
}

.admin-bar__nav-label {
    font-family: var(--font-retro);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-md);
    letter-spacing: 1px;
}

.admin-bar__btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0); /* Black icons */
}

.admin-bar__btn--primary img,
.admin-bar__btn--danger img {
    filter: brightness(0) invert(1); /* White icons */
}

/* Icon-only buttons */
.admin-bar__btn--icon {
    padding: var(--space-sm);
    min-width: auto;
}

.admin-bar__btn--icon img {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* AI Dropdown */
.admin-bar__ai-dropdown {
    position: relative;
}

.admin-bar__ai-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    min-width: 200px;
    max-width: 250px;
    z-index: 1001;
}

.admin-bar__ai-provider {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: var(--color-bg-lighter);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.admin-bar__ai-provider label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--color-text);
}

.admin-bar__ai-provider input[type="radio"] {
    width: 16px;
    height: 16px;
}

.admin-bar__ai-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-xs) 0;
}

.admin-bar__ai-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    border: none;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    font-family: var(--font-retro);
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 0; /* Retro: Sharp corners */
    cursor: pointer;
    transition: none; /* Retro: No smooth transitions */
}

.admin-bar__ai-option:hover {
    background: var(--color-bg-lighter);
}

/* User Menu */
.admin-bar__user-menu {
    position: relative;
}

.admin-bar__user-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    min-width: 140px;
    z-index: 1001;
}

.admin-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text-muted);
    font-family: var(--font-retro);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 0; /* Retro: Sharp corners */
    transition: none; /* Retro: No smooth transitions */
}

.admin-bar__link:hover {
    background: var(--color-bg-lighter);
    color: var(--color-text);
    text-decoration: none;
}

.admin-bar__link img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.admin-bar__link--danger {
    color: var(--danger-color);
}

.admin-bar__link--danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.admin-bar__status-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-retro);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-text);
    cursor: pointer;
    border-radius: 0; /* Retro: Sharp corners */
    transition: none; /* Retro: No smooth transitions */
    white-space: nowrap;
    /* Retro 3D button style */
    border: 3px solid;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #808080;
    border-right-color: #808080;
    background: #d0d0d0;
    box-shadow: 1px 1px 0 #606060 inset, -1px -1px 0 #ffffff inset;
}

.admin-bar__status-toggle:hover {
    background: #c0c0c0;
    /* Retro pressed effect */
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    box-shadow: -1px -1px 0 #606060 inset, 1px 1px 0 #ffffff inset;
}

.admin-bar__status-toggle input[type="checkbox"] {
    display: none; /* Hide native checkbox, we use icons instead */
}

.admin-bar__status-toggle .status-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.admin-bar__status-toggle .status-icon--draft {
    opacity: 0.6;
}

.admin-bar__status-toggle .status-icon--published {
    display: none; /* Hidden by default, shown via JS */
}

.admin-bar__publish-date {
    display: inline-flex;
    align-items: center;
}

.admin-bar__date-input {
    padding: 6px 10px;
    font-family: var(--font-retro);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    /* Retro inset input field style */
    border: 2px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #f0f0f0;
    border-right-color: #f0f0f0;
    border-radius: 0; /* Sharp corners */
    background: #ffffff;
    color: var(--color-text);
    transition: none; /* No smooth transitions */
    max-width: 180px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

.admin-bar__date-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.admin-bar__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    font-family: var(--font-retro);
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-border-light);
    border-radius: 0; /* Retro: Sharp corners */
    cursor: pointer;
    transition: none; /* Retro: No smooth transitions */
}

.admin-bar__toggle:hover {
    background: var(--color-bg-lighter);
}

.admin-bar__toggle img {
    width: 16px;
    height: 16px;
}

.admin-bar__badge {
    font-family: var(--font-retro);
    font-size: 0.8rem;
    font-weight: 400;
    padding: 2px 6px;
    border-radius: 0; /* Retro: Sharp corners */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-bar__badge--active {
    background: var(--danger-color);
    color: white;
}

.admin-bar__badge--inactive {
    background: var(--color-border-light);
    color: var(--color-text-muted);
}

/* Content Tabs (für Pages-Filter) */
.content-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: var(--space-xs);
}

.content-tab {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: -2px;
}

.content-tab:hover {
    color: var(--color-text);
    background: var(--color-bg-lighter);
}

.content-tab--active {
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}

.pages-admin__actions {
    display: flex;
    gap: var(--space-sm);
}

.pages-admin__actions .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.9rem;
}

.pages-admin__actions .btn img {
    width: 16px;
    height: 16px;
    margin-right: var(--space-xs);
}

/* Form Metadata (für Draft & Publish Date ohne Buttons) */
.form-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-lighter);
    border-radius: var(--radius-md);
}

.publish-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.publish-date label {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    white-space: nowrap;
}

.publish-date__hint {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.form-input--small {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.color-input-wrapper input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border-radius: 2px;
    border: none;
}

.color-input-wrapper .form-input {
    flex: 1;
}

/* -----------------------------------------------------------------------------
   Landingpage Admin Sections (Editor only)
   ----------------------------------------------------------------------------- */
.editor .lp-admin-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.editor .lp-admin-section--alt {
    background: #f8f9fa;
}

/* Floating Navigation Menu for Landingpages */
.lp-nav-menu {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 200px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: var(--space-md);
    z-index: 100;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.lp-nav-menu__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.lp-nav-menu__item {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.lp-nav-menu__item:hover {
    background: var(--color-bg-hover);
    color: var(--color-primary);
    transform: translateX(2px);
}

.lp-nav-menu__item:active {
    background: var(--color-primary);
    color: white;
}

.lp-nav-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.7;
}

.lp-nav-menu__item:hover .lp-nav-icon {
    opacity: 1;
}

.section-title-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.editor .lp-admin-section__title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.lp-cta-fields {
    border-top: 1px dashed var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.feature-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-md);
    position: relative;
}

.feature-item__remove {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Dropdown */
.icon-dropdown {
    position: relative;
    width: 100%;
}

.icon-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    background: #fff;
}

.icon-dropdown-trigger:hover {
    border-color: var(--color-primary);
}

.icon-dropdown-selected {
    flex: 1;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.icon-dropdown-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.icon-dropdown-option:hover {
    background-color: #f8f9fa;
}

.icon-dropdown-option img {
    flex-shrink: 0;
}

.icon-dropdown-option span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logos Grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}


/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-toast);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Brand Logo Picker Grid */
.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
    padding: var(--space-md);
}

.brand-logo-item {
    aspect-ratio: 2 / 1;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
}

.brand-logo-item:hover {
    border-color: var(--color-primary);
}

.brand-logo-item img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    margin-bottom: var(--space-xs);
}

.brand-logo-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Landingpage fields visibility */
.landingpage-fields,
.landingpage-fields-edit,
.homepage-fields {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Reset full-width styles inside admin forms */
.landingpage-fields .lp-admin-section,
.landingpage-fields-edit .lp-admin-section,
.editor .lp-admin-section {
    width: auto;
    position: static;
    left: auto;
    transform: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.editor .lp-admin-section--alt {
    background: #f8f9fa;
}

.editor .lp-admin-section__title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Image Upload
   ----------------------------------------------------------------------------- */
.image-upload {
    position: relative;
}

.image-upload__input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.image-upload__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    border: 1px dashed var(--color-border-light);
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

.image-upload__label:hover,
.image-upload__label.dragover {
    border-color: var(--color-text);
}

.image-upload__icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
    opacity: 0.6;
}

.image-upload__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.image-upload__preview {
    display: none;
    margin-top: var(--space-md);
}

.image-upload__preview img {
    max-height: 200px;
}

.current-image {
    margin-bottom: var(--space-md);
}

.current-image img {
    max-height: 200px;
    margin-bottom: var(--space-sm);
    border-radius: 4px;
}

.current-image__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.current-image__seo {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
}

.current-image__seo .form-label--small {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.seo-input-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.seo-filename-input {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.seo-url-preview {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    word-break: break-all;
}

.seo-url-preview.active {
    color: #28a745;
}

.current-image__delete {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

/* Current Video (editor) */
.current-video {
    margin-bottom: var(--space-md);
}

.current-video__preview {
    max-width: 100%;
    max-height: 200px;
    margin-bottom: var(--space-sm);
    border-radius: 4px;
    background: #000;
}

.current-video__actions {
    display: flex;
    gap: var(--space-sm);
}

.current-video__info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Gallery video preview */
.gallery-preview__item--video {
    position: relative;
}

.gallery-preview__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.gallery-preview__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    pointer-events: none;
}

.btn--icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
}

.image-actions {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Image Picker Modal */
.image-picker-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-toast);
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
}

.image-picker-modal.active {
    display: flex;
}

.image-picker-modal__content {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-picker-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.image-picker-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.image-picker-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    line-height: 1;
}

.image-picker-modal__close:hover {
    color: var(--color-text);
}

.image-picker-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.2s ease;
    border-radius: 8px;
    flex: 1;
    min-height: 0;
    align-items: start;
    grid-auto-rows: minmax(120px, auto);
}

.image-picker-modal__grid.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
}

.image-picker-modal__item {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.15s;
    display: block;
}

.image-picker-modal__item:hover {
    border-color: var(--color-text);
    transform: scale(1.02);
}

.image-picker-modal__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-picker-modal__item--video {
    position: relative;
}

.image-picker-modal__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    pointer-events: none;
}

.image-picker-modal__loading,
.image-picker-modal__empty,
.image-picker-modal__error {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-light);
}

.image-picker-modal__info {
    padding: var(--space-sm) var(--space-md);
    background: #fef3c7;
    border-bottom: 1px solid #fcd34d;
}

.image-picker-modal__unused-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: #92400e;
}

.image-picker-modal__unused-info .icon {
    width: 1em;
    height: 1em;
}

.image-picker-modal__item--unused {
    position: relative;
    opacity: 0.7;
    border: 2px dashed #fbbf24 !important;
}

.image-picker-modal__item--unused:hover {
    opacity: 1;
}

.image-picker-modal__unused-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    background: #fbbf24;
    color: #78350f;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    pointer-events: none;
}

.image-picker-modal__delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-picker-modal__item--unused:hover .image-picker-modal__delete {
    opacity: 1;
}

.image-picker-modal__delete:hover {
    background: rgba(185, 28, 28, 1);
}

/* -----------------------------------------------------------------------------
   AI Tools Section
   ----------------------------------------------------------------------------- */
/* Markdown Help */
.markdown-help {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

.markdown-help summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.markdown-help summary:hover {
    color: var(--color-text);
}

.markdown-help__content {
    margin-top: var(--space-sm);
    padding: var(--space-md);
    background: #f9f9f9;
    font-size: 0.9rem;
    line-height: 1.8;
}

.markdown-help__content code {
    background: #eee;
    padding: 2px 6px;
    font-size: 0.85em;
}

/* -----------------------------------------------------------------------------
   Editor
   ----------------------------------------------------------------------------- */
.editor {
    /* Clean look */
}

.editor__back {
    display: inline-block;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
}

.editor__back:hover {
    color: var(--color-text);
}

.editor__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.editor__title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.editor__preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.editor__preview-btn svg {
    flex-shrink: 0;
}

.editor__danger-zone {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    border: 1px solid #dc3545;
    border-radius: 4px;
    background: #fff5f5;
}

.danger-zone__title {
    color: #dc3545;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
}

.danger-zone__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
}

/* -----------------------------------------------------------------------------
   Login
   ----------------------------------------------------------------------------- */
.login {
    max-width: 320px;
    margin: var(--space-3xl) auto;
}

.login__title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

/* -----------------------------------------------------------------------------
   Error Pages
   ----------------------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.error-page__code {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.04em;
}

.error-page__message {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* -----------------------------------------------------------------------------
   Maintenance Page
   ----------------------------------------------------------------------------- */
.maintenance-page {
    text-align: center;
    padding: var(--space-3xl) 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.maintenance-page__icon {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-xl);
    opacity: 0.8;
}

.maintenance-page__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.maintenance-page__message {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Maintenance Toggle in Mobile Menu */
.mobile-menu__maintenance-form {
    display: block;
    padding: 0;
}

.mobile-menu__link--maintenance {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-menu__link--maintenance .badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.badge--active {
    background-color: #e74c3c;
    color: #fff;
}

.badge--inactive {
    background-color: var(--color-border);
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------------------
   Empty State
   ----------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--color-text-muted);
}

.empty-state .btn {
    margin-top: var(--space-lg);
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .header {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .search.open .search__panel {
        width: 250px;
    }
    
    .nav--desktop {
        display: none;
    }
    
    
    .post__title {
        font-size: 1.75rem;
    }
    
    .post-card__title {
        font-size: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions__right {
        align-items: stretch;
    }
    
    .form-actions__buttons {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .admin-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .admin-bar__section {
        width: 100%;
    }
    
    .admin-bar__section--left,
    .admin-bar__section--center,
    .admin-bar__section--right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-bar__btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .admin-bar__link {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }
    
    .admin-bar__toggle {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .admin-bar__label {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-xs);
    }
    
    .form-metadata {
        flex-direction: column;
        align-items: stretch;
    }

    .publish-date {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .draft-toggle {
        width: 100%;
    }
    
}

/* -----------------------------------------------------------------------------
   Links Page
   ----------------------------------------------------------------------------- */
.links-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.links-page__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 0;
}

.links-category {
    margin-bottom: var(--space-xl);
}

.links-category__title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.link-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.link-item__title {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: underline;
}

.link-item__title:hover {
    color: var(--color-text-muted);
}

.link-item__description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    flex-basis: 100%;
}

.link-item__delete button {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
}

.link-item__delete button:hover {
    color: #c00;
}

/* -----------------------------------------------------------------------------
   Share Buttons
   ----------------------------------------------------------------------------- */
.share-buttons {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.share-buttons__label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-right: var(--space-sm);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.share-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.share-btn img {
    width: 18px;
    height: 18px;
    transition: filter 0.15s ease;
}

.share-btn:hover img {
    filter: invert(1);
}

.share-btn--copy {
    position: relative;
}

.share-btn__check {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.share-btn--copy.copied .share-btn__icon {
    opacity: 0;
}

.share-btn--copy.copied .share-btn__check {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   Drag & Drop Upload
   ----------------------------------------------------------------------------- */
.drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.drop-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.drop-overlay__content {
    text-align: center;
    color: white;
    padding: var(--space-xl);
    border: 3px dashed white;
    border-radius: var(--border-radius-lg);
}

.drop-overlay__icon {
    width: 80px;
    height: 80px;
    display: block;
    margin-bottom: var(--space-md);
    filter: invert(1);
}

.drop-overlay__text {
    font-size: 1.5rem;
    font-weight: 500;
}

.upload-status {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: slideDown 0.3s ease;
}

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

.upload-status--success {
    background: #e8f5e9;
    border-color: #4caf50;
}

.upload-status--error {
    background: #ffebee;
    border-color: #f44336;
}

.upload-status__spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.gallery-preview__item {
    position: relative;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-light);
}

.gallery-preview__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.gallery-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview__remove:hover {
    background: #c00;
}

/* -----------------------------------------------------------------------------
   Back to Top
   ----------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* -----------------------------------------------------------------------------
   Breadcrumb
   ----------------------------------------------------------------------------- */
.breadcrumb {
    margin-bottom: var(--space-lg);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
}

.breadcrumb__item::after {
    content: "›";
    margin: 0 var(--space-sm);
    color: var(--color-text-light);
}

.breadcrumb__item:last-child::after {
    display: none;
}

.breadcrumb__item a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

.breadcrumb__item--current {
    color: var(--color-text);
}

/* -----------------------------------------------------------------------------
   Updated Date
   ----------------------------------------------------------------------------- */
.post__updated {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: var(--space-sm);
}

/* -----------------------------------------------------------------------------
   External Link & FAQ (Post)
   ----------------------------------------------------------------------------- */
.post__external-link {
    margin: var(--space-xl) 0;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border-left: 3px solid var(--color-text);
}

.post__external-link-label {
    font-weight: 500;
    margin-right: var(--space-sm);
}

.post__external-link-url {
    color: var(--color-text);
    text-decoration: underline;
}

.post__faq {
    margin: var(--space-xl) 0;
}

.post__faq-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-serif);
}

.faq-item-display {
    border-bottom: 1px solid var(--color-border-light);
}

.faq-item-display__q {
    padding: var(--space-md) 0;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}

.faq-item-display__q::-webkit-details-marker {
    display: none;
}

.faq-item-display__q::before {
    content: '+';
    display: inline-block;
    width: 1.5em;
    font-weight: 400;
}

.faq-item-display[open] .faq-item-display__q::before {
    content: '−';
}

.faq-item-display__a {
    padding: 0 0 var(--space-md) 1.5em;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Optional Sections (Editor)
   ----------------------------------------------------------------------------- */
.optional-section {
    margin-top: 3rem; /* Increased from var(--space-md) to prevent overlap */
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    position: relative;
    z-index: 10;
    background: white;
    clear: both; /* Ensure it starts below any floated elements */
}

.optional-section summary {
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 500;
    background: #fafafa;
}

.optional-section summary .optional {
    font-weight: 400;
    color: var(--color-text-light);
}

.optional-section__content {
    padding: var(--space-md);
}

.link-fields {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-sm);
}

@media (max-width: 600px) {
    .link-fields {
        grid-template-columns: 1fr;
    }
}

/* FAQ Editor */
.faq-editor {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #fafafa;
    border-radius: 4px;
}

.faq-item input,
.faq-item textarea {
    grid-column: 1;
}

.faq-item__remove {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0 var(--space-sm);
}

.faq-item__remove:hover {
    color: #c00;
}

/* -----------------------------------------------------------------------------
   AI Assist
   ----------------------------------------------------------------------------- */
.ai-assist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 1px solid #e0e4f0;
    border-radius: 8px;
}

.btn--ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn--ai:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn--ai:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--ai .btn__icon {
    width: 18px;
    height: 18px;
}

.ai-assist__hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.ai-assist__loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #6366f1;
    font-weight: 500;
}

.ai-assist__loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e4f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-assist__suggestions {
    width: 100%;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #e0e4f0;
}

.ai-suggest-group {
    margin-bottom: var(--space-md);
}

.ai-suggest-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.ai-suggest-titles,
.ai-suggest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ai-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #d0d4e0;
    border-radius: 50px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chip:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.ai-chip.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.ai-chip--tag {
    font-size: 0.8rem;
    padding: 4px 12px;
}

/* AI Controls */
.ai-assist__controls {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.ai-assist__select {
    padding: 10px 16px;
    border: 1px solid #d0d4e0;
    border-radius: 50px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    min-width: 180px;
}

.ai-assist__select:focus {
    outline: none;
    border-color: #6366f1;
}

/* AI Result Area */
.ai-assist__result {
    width: 100%;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: #f8f9ff;
    border: 1px solid #e0e4f0;
    border-radius: 8px;
}

.ai-result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.ai-result__content {
    max-height: 300px;
    overflow-y: auto;
}

.ai-result__content pre {
    margin: 0;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid #e0e4f0;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* AI FAQ Items */
.ai-faq-item {
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    background: #fff;
    border: 1px solid #e0e4f0;
    border-radius: 4px;
}

.ai-faq-item strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.ai-faq-item p {
    margin: 0 0 var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* AI Meta Items */
.ai-meta-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: #fff;
    border: 1px solid #e0e4f0;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.ai-meta-item strong {
    flex-shrink: 0;
    min-width: 80px;
}

/* AI CTA Preview */
.ai-cta-preview {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #c7d4f0;
    border-radius: 8px;
    padding: var(--space-md);
}

.ai-cta-item {
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.ai-cta-item strong {
    color: var(--color-primary);
}

.ai-cta-preview .btn--primary {
    margin-top: var(--space-md);
}

/* AI Corrections */
.ai-suggest-corrections ul {
    margin: 0;
    padding-left: 20px;
}

.ai-suggest-corrections li {
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .ai-assist__controls {
        flex-direction: column;
        width: 100%;
    }
    
    .ai-assist__select {
        width: 100%;
    }
    
    .btn--ai {
        width: 100%;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   Landingpage Frontend Sections
   ----------------------------------------------------------------------------- */

/* Hero Section */
.lp-hero {
    position: relative;
    min-height: var(--hero-vh, 80vh);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--hero-text-color, #fff);
}

.lp-hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.lp-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.lp-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--hero-overlay-color, #000000);
    opacity: var(--hero-opacity, 0.6);
    z-index: 2;
    pointer-events: none;
}

.lp-hero__content {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    width: 100%;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

.lp-hero__headline {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 var(--space-md);
}

.lp-hero__text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    margin: 0 auto var(--space-lg);
    max-width: 700px;
    opacity: 0.9;
}

/* Landingpage Sections - Full Width Breakout */
.lp-hero,
.lp-section {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

.lp-section {
    padding: clamp(60px, 10vw, 120px) var(--space-lg);
}

.lp-section--alt {
    background: #f8f9fa;
}

.lp-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.lp-section__inner--with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.lp-section__inner--with-image .lp-section__text {
    order: 1;
}

.lp-section__inner--with-image .lp-section__image {
    order: 2;
}

/* Alternating: Bild links bei geraden Sections */
.lp-section--alt .lp-section__inner--with-image .lp-section__text {
    order: 2;
}

.lp-section--alt .lp-section__inner--with-image .lp-section__image {
    order: 1;
}

.lp-section__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lp-section__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.lp-section__video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.current-image__video {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: #000;
}

@media (max-width: 768px) {
    .lp-section__inner--with-image {
        grid-template-columns: 1fr;
    }
    
    .lp-section__inner--with-image .lp-section__text,
    .lp-section__inner--with-image .lp-section__image,
    .lp-section--alt .lp-section__inner--with-image .lp-section__text,
    .lp-section--alt .lp-section__inner--with-image .lp-section__image {
        order: unset;
    }
    
    .lp-section__image {
        margin-top: var(--space-lg);
    }
}

.lp-section__inner--centered {
    text-align: center;
}

.lp-section__headline {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-lg);
    text-align: center;
}

/* Bei Sections mit Bild: Headline linksbündig */
.lp-section__inner--with-image .lp-section__headline {
    text-align: left;
}

.lp-section__extra {
    max-width: var(--max-width);
    margin: 0 auto;
}

.lp-section__content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-section__content p {
    margin-bottom: var(--space-md);
}

.lp-section__text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 var(--space-lg);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.lp-section__cta {
    margin-top: var(--space-xl);
    text-align: center;
}

.lp-section__cta-text {
    font-size: 1.125rem;
    margin: 0 0 var(--space-md);
    color: var(--color-text);
    font-weight: 600;
}

/* Features Grid */
.lp-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.lp-feature {
    text-align: center;
    padding: var(--space-xl);
    background: #fff;
    flex: 0 1 calc(33.333% - var(--space-lg));
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.lp-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.lp-feature__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.lp-feature__icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lp-feature:hover .lp-feature__icon-img {
    transform: scale(1.1);
}

.lp-feature__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}

/* =============================================================================
   UNIFIED COMPONENT SYSTEM (New Section-Based Architecture)
   ============================================================================= */

/* Universal Grid System */
.lp-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.lp-grid--2col { grid-template-columns: repeat(2, 1fr); }
.lp-grid--3col { grid-template-columns: repeat(3, 1fr); }
.lp-grid--4col { grid-template-columns: repeat(4, 1fr); }
.lp-grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 1024px) {
    .lp-grid--4col { grid-template-columns: repeat(2, 1fr); }
}

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

/* Universal Card Component (Features, Benefits, Testimonials) */
.lp-card {
    background: #fff;
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: var(--transition-base);
    text-align: center;
}

.lp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.lp-card__icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lp-card__icon img,
.lp-card__icon svg {
    max-width: 64px !important;
    max-height: 64px !important;
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lp-card:hover .lp-card__icon img {
    transform: scale(1.1);
}

.lp-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.lp-card__text {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Universal Accordion Component (FAQs, Collapsibles) */
.lp-accordion {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
}

.lp-accordion__item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.lp-accordion__item summary {
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.lp-accordion__item summary:hover {
    background: var(--color-bg-lighter);
}

.lp-accordion__item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.lp-accordion__item[open] summary::after {
    transform: rotate(45deg);
}

.lp-accordion__content {
    padding: var(--space-md) var(--space-sm) 0;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Universal Image Component */
.lp-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.lp-image img,
.lp-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Mode */
.lp-image--gallery {
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.lp-image--gallery:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.lp-image--gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition-base);
}

.lp-image--gallery:hover::after {
    background: rgba(0,0,0,0.1);
}

/* Universal CTA Component */
.lp-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.lp-cta__text {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.lp-cta__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .lp-cta__buttons {
        flex-direction: column;
    }
    
    .lp-cta__buttons .btn {
        width: 100%;
    }
}

.lp-feature__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
}

/* Social Proof Gallery */
.social-proof-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.social-proof-gallery__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.social-proof-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-proof-gallery__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-proof-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    pointer-events: none;
}

.social-proof-gallery__item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Brand Logos Grid */
/* Brand Logos Section - minimal padding, full width */
.lp-section--logos {
    padding: var(--space-md) 0;
    background: #fff;
    margin-top: calc(-1 * var(--space-xl));
    margin-left: calc(-1 * var(--space-xl));
    margin-right: calc(-1 * var(--space-xl));
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.lp-section--logos.lp-section--alt {
    background: var(--alt-section-color);
}

.lp-section--logos h2 {
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .lp-section--logos {
        margin-top: calc(-1 * var(--space-md));
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

.lp-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    align-items: center;
}

.lp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.lp-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.lp-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Team Section Styling for Landingpages */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    text-align: center;
    flex: 0 0 calc(25% - var(--space-xl) * 3 / 4);
    min-width: 200px;
    max-width: 250px;
}

.team-member__image {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-member__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.25rem 0;
}

.team-member__title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin: 0;
}

@media (max-width: 992px) {
    .team-grid {
        gap: var(--space-lg);
    }
    
    .team-member {
        flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        gap: var(--space-md);
    }
    
    .team-member {
        flex: 0 0 calc(50% - var(--space-md) / 2);
        max-width: 200px;
    }
    
    .team-member__image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        gap: var(--space-lg);
    }
    
    .team-member {
        flex: 0 0 100%;
        max-width: 250px;
    }
    
    .team-member__image {
        max-width: 180px;
    }
}

/* FAQ Section Styling for Landingpages */
.lp-section--faq .faq-accordion {
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
}

.faq__item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq__question {
    padding: var(--space-lg);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__question:hover {
    background: #f8f9fa;
}

.faq__answer {
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
    color: var(--color-muted);
    line-height: 1.6;
}

.faq__answer p {
    margin: 0 0 var(--space-sm) 0;
}

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

/* Final CTA Section */
.lp-section--final-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.lp-section--final-cta .lp-section__headline {
    color: #fff;
}

.lp-section--final-cta .lp-section__text {
    color: rgba(255,255,255,0.8);
}

.btn--hero,
.btn--large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Landingpage Admin Edit Link */
.lp-admin-edit {
    padding: var(--space-lg) 0;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid var(--color-border);
}

.lp-admin-edit .admin-link {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.lp-admin-edit .admin-link:hover {
    background: #005fa3;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icons in Buttons färben wie Text */
.btn img {
    filter: brightness(0) saturate(100%);
    opacity: 1;
}

.btn--primary img {
    filter: brightness(0) invert(1);
}

/* Floating Contact Card */
.floating-contact-card {
    position: fixed;
    z-index: 9999;
    /* Position wird per Inline-Style von Settings gesteuert */
}

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

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 0 var(--button-bg-color);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 15px rgba(255, 0, 0, 0);
    }
}

.floating-contact-card__toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--button-bg-color);
    background: #fff;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.floating-contact-card__toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: none;
}

.floating-contact-card__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.floating-contact-card__avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--button-bg-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.floating-contact-card__content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: var(--space-lg);
    animation: slideIn 0.3s ease;
}

.floating-contact-card__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition-base);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.floating-contact-card__close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.floating-contact-card__close img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1); /* Makes SVG white */
}

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

.floating-contact-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted);
    margin: 0 0 var(--space-sm) 0;
    text-align: center;
}

.floating-contact-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-sm);
    display: block;
    border: 3px solid var(--button-bg-color);
}

.floating-contact-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-xs) 0;
    text-align: center;
}

.floating-contact-card__bio {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0 0 var(--space-md) 0;
    text-align: center;
    line-height: 1.4;
}

.floating-contact-card__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.floating-contact-card__buttons .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .floating-contact-card__toggle {
        width: 50px;
        height: 50px;
    }
    
    .floating-contact-card__content {
        width: 260px;
        bottom: 60px;
    }
}

.btn--hero {
    background: var(--hero-text-color, #fff);
    color: var(--hero-overlay-color, #000);
}

.btn--hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Responsive Landingpage */
@media (max-width: 768px) {
    .lp-hero__content {
        padding: var(--space-lg);
    }
    
    .lp-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lp-features .lp-feature {
        flex: 0 1 calc(50% - var(--space-lg));
    }
}

@media (max-width: 480px) {
    .lp-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lp-features .lp-feature {
        flex: 0 1 100%;
    }
}

/* -----------------------------------------------------------------------------
   Logo Slots & Social Proof Images Grid (Admin)
   ----------------------------------------------------------------------------- */
.logos-grid,
.social-proof-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto); /* Ensure rows have minimum height */
    gap: 1rem;
    margin-top: var(--space-md);
    margin-bottom: 4rem; /* Increased from 2rem */
    padding-bottom: 3rem; /* Increased from 2rem */
    position: relative;
    z-index: 1;
    max-width: 720px;
    /* Force grid to calculate proper height */
    min-height: min-content;
}

.logo-slot {
    position: relative;
    /* Remove fixed aspect-ratio to allow for SEO fields */
    min-height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    /* Ensure content doesn't overflow */
    overflow: visible; /* Keep visible for buttons */
    margin-bottom: 2rem; /* Add extra space below each slot for SEO fields */
    padding-bottom: 0; /* Reset any padding */
}

/* Leere Slots dezenter */
.logo-slot:not(.logo-slot--filled) {
    opacity: 0.5;
    border-width: 1px;
}

.logo-slot:not(.logo-slot--filled):hover {
    opacity: 1;
    border-width: 2px;
}

.logo-slot:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.logo-slot__preview {
    width: 100%;
    aspect-ratio: 1; /* Make preview square */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}

.logo-slot__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.logo-slot__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-slot__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    pointer-events: none;
}

.logo-slot__placeholder {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 300;
}

.logo-slot--filled {
    border-style: solid;
    border-color: var(--primary-color);
    background: white;
}

.logo-slot__remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.logo-slot__remove img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.logo-slot__remove:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

/* Brand Logo Picker Modal */
.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.brand-logo-item {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
}

.brand-logo-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: var(--space-xs);
}

.brand-logo-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    word-break: break-word;
    margin-top: auto;
}

@media (max-width: 768px) {
    .logos-grid,
    .social-proof-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .logos-grid,
    .social-proof-images-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* -----------------------------------------------------------------------------
   AI-Landing-Page Generator
   ----------------------------------------------------------------------------- */

/* AI Generator Container */
.ai-generator {
    max-width: var(--max-width); /* 1200px wie Rest der Seite */
    margin: 0 auto;
    padding-bottom: 100px; /* Platz für Admin-Footer-Bar */
}

/* AI Quick-Start */
.ai-quick-start {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid var(--text-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ai-quick-start h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.ai-quick-start p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.ai-generator__progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.ai-generator__progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-color);
    opacity: 0.2;
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    opacity: 0.3;
    font-weight: 500;
    z-index: 1;
    position: relative;
}

.progress-step.active {
    opacity: 1;
    background: var(--text-color);
    color: var(--bg-color);
}

.progress-step.completed {
    opacity: 1;
    border-color: var(--success-color);
    color: var(--success-color);
}

/* Variant Cards */
.variant-card {
    border: 2px solid var(--text-color);
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-color);
}

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

.variant-card__header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.variant-card__content {
    margin-bottom: 1.5rem;
}

.variant-card__content p {
    margin-bottom: 1rem;
}

.variant-card__content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.variant-card__content li {
    margin-bottom: 0.5rem;
}

.variant-preview,
.variant-hero,
.variant-strategy,
.variant-structure,
.variant-risks {
    margin-bottom: 1rem;
}

.variant-card__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* AI-LP Cards (Übersicht) */
.ai-lp-card {
    border: 2px solid var(--text-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
}

.ai-lp-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ai-lp-card__header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.ai-lp-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.ai-lp-card__actions {
    display: flex;
    gap: 0.75rem;
}

.ai-lp-card__actions form {
    display: inline;
}

/* LP Preview */
.lp-preview {
    margin: 2rem 0;
}

.lp-preview__section {
    border: 2px solid var(--text-color);
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-color);
}

.lp-preview__section h3 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--text-color);
    margin-bottom: 1rem;
}

.lp-preview__content h1 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.lp-preview__content h2 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.lp-preview__content .eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.lp-preview__content .subheadline {
    font-size: 1.125rem;
    margin: 0.5rem 0 1rem;
}

.lp-preview__content .cta-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--text-color);
}

.lp-preview__content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.lp-preview__content li {
    margin-bottom: 0.5rem;
}

.lp-preview__content details {
    margin: 0.5rem 0;
}

.lp-preview__content summary {
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 0;
}

.stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stats-preview .stat {
    padding: 1rem;
    border: 1px solid var(--text-color);
}

.stats-preview .stat strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-color);
}

.badge--draft {
    background: var(--bg-color);
    color: var(--text-color);
}

.badge--warning {
    background: #ff9800;
    color: #000;
    border-color: #ff9800;
}

.badge--success {
    background: var(--success-color);
    color: #fff;
    border-color: var(--success-color);
}

.badge--info {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.5;
    font-style: italic;
}

/* Alert Boxes */
.alert {
    padding: 1.5rem;
    margin: 1.5rem 0;
    /* Retro 3D box style */
    border: 3px solid;
    border-top-color: #f0f0f0;
    border-left-color: #f0f0f0;
    border-bottom-color: #606060;
    border-right-color: #606060;
    background: #d0d0d0;
    border-radius: 0; /* Sharp corners */
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    font-family: var(--font-retro);
    letter-spacing: 0.5px;
}

.alert--warning {
    /* Retro warning style - keep 3D effect, change colors */
    border-top-color: #ffd54f;
    border-left-color: #ffd54f;
    border-bottom-color: #e65100;
    border-right-color: #e65100;
    background: #ffecb3;
}

.alert ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
}

.alert li {
    margin-bottom: 0.5rem;
}

/* Subtitle */
.subtitle {
    font-size: 1.125rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-generator__progress {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ai-generator__progress::before {
        display: none;
    }
    
    .variant-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .variant-card__actions {
        flex-direction: column;
    }
    
    .ai-lp-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ai-lp-card__meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ai-lp-card__actions {
        flex-direction: column;
    }
    
    .stats-preview {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------------------------
   LP Preview Sections
   ----------------------------------------------------------------------------- */
.lp-preview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.lp-preview__section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lp-preview__section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.lp-preview__section h2 {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.75rem;
    color: #000;
}

.lp-preview__section h1 {
    margin: 0.5rem 0 1rem 0;
    font-size: 2.25rem;
    color: #000;
    line-height: 1.2;
}

.lp-preview__section .eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.5rem;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.preview-card {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.preview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    min-width: 120px;
}

.preview-stat.needs-verification {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

.preview-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.preview-faq-item {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.preview-faq-item strong {
    color: #000;
    display: block;
    margin-bottom: 0.5rem;
}

.markdown-preview {
    line-height: 1.6;
    color: #333;
}

.markdown-preview p {
    margin: 0.5rem 0;
}

.markdown-preview ul,
.markdown-preview ol {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.debug-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.debug-panel pre {
    max-height: 400px;
    overflow: auto;
    font-family: 'Courier New', monospace;
}

/* -----------------------------------------------------------------------------
   AI API Logs
   ----------------------------------------------------------------------------- */
.ai-logs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-log-entry {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.ai-log-entry--success {
    border-left: 4px solid #28a745;
}

.ai-log-entry--error {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.ai-log-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.ai-log-step {
    font-weight: 700;
    color: #333;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: monospace;
}

.ai-log-time {
    color: #666;
    font-size: 0.875rem;
}

.ai-log-status {
    font-size: 0.875rem;
}

.ai-log-tokens,
.ai-log-duration {
    font-size: 0.875rem;
    color: #666;
    background: #f9f9f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.ai-log-details {
    margin: 0.5rem 0;
}

.ai-log-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #007bff;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.ai-log-details summary:hover {
    background: #f0f0f0;
}

.ai-log-pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 0.5rem;
}

.ai-log-error {
    background: #fee;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* =============================================================================
   SECTIONS EDITOR (Landing Page)
   ============================================================================= */

.sections-container {
    margin: 2rem 0;
}

.sections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-lighter);
    border-radius: var(--radius-md);
}

.sections-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.sections-header__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-item {
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    margin-bottom: var(--space-md);
}

.section-item:nth-of-type(odd) {
    background: #f9fafb;
}

.section-item:nth-of-type(even) {
    background: #fff;
}

.section-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-item__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #e5e7eb;
    cursor: pointer;
    user-select: none;
}

.section-item:nth-of-type(odd) .section-item__header {
    background: #d1d5db;
}

.section-item:nth-of-type(even) .section-item__header {
    background: #e5e7eb;
}

.section-item__drag-handle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    cursor: grab;
    transition: color 0.2s;
}

.section-item__drag-handle:hover {
    color: var(--color-primary);
}

.section-item__drag-handle:active {
    cursor: grabbing;
}

.section-item__title {
    flex: 1;
    font-weight: 600;
    font-size: 1.125rem;
}

.section-item__toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.section-item__toggle:hover {
    color: var(--color-primary);
}

.section-item__remove {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-item__remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.section-item__content {
    padding: 1.5rem;
}

.section-item .form-input,
.section-item .form-textarea,
.section-item .form-select {
    background: #fff;
}

/* Section Images Grid */
.section-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.img-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

.img-slot:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-lighter);
}

.img-slot--filled {
    border-style: solid;
}

.img-slot__preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-slot__preview img,
.img-slot__preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-slot__placeholder {
    font-size: 2rem;
    color: var(--color-text-muted);
}

.img-slot__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    pointer-events: none;
}

.img-slot__remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    transition: var(--transition-base);
}

.img-slot--filled .img-slot__remove {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-slot__remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Feature Cards & FAQ Items */
.feature-cards-list,
.faq-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-card-item,
.faq-item {
    background: var(--color-bg-lighter);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: relative;
}

.feature-card-item__remove,
.faq-item__remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-base);
}

.feature-card-item__remove:hover,
.faq-item__remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Dragging State */
.section-item[draggable="true"] {
    opacity: 0.5;
    cursor: grabbing;
}


/* =============================================================================
   AI PROMPTS MANAGER
   ============================================================================= */

.prompts-manager {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.prompt-category {
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.prompt-category__header {
    padding: 1.5rem;
    background: var(--color-bg-lighter);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: var(--transition-base);
}

.prompt-category__header:hover {
    background: #e9ecef;
}

.prompt-category__header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.prompt-category__header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.prompt-category__header::before {
    content: '▼';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}

.prompt-category:not([open]) .prompt-category__header::before {
    transform: rotate(-90deg);
}

.prompt-category__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-item {
    background: var(--color-bg-lighter);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prompt-item__header {
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition-base);
}

.prompt-item__header:hover {
    background: #f8f9fa;
}

.prompt-item__header strong {
    font-size: 1.125rem;
    color: var(--color-text);
}

.prompt-item__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.prompt-item__header::before {
    content: '▶';
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}

.prompt-item[open] .prompt-item__header::before {
    transform: rotate(90deg);
}

.prompt-item__content {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.code-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: #f8f9fa;
}

.editor__footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}


/* =============================================================================
   SEO CAMPAIGNS & KEYWORD RESEARCH
   ============================================================================= */

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.keyword-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.keyword-item:hover {
    background: #e9ecef;
    border-color: var(--color-primary);
}

.keyword-item input[type="checkbox"] {
    margin: 0;
}

.keyword-item--selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    cursor: default;
}

.keyword-list--readonly .keyword-item {
    cursor: default;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal .close:hover {
    color: var(--color-text);
}

.pages-list__item--published {
    background: #f0fff4;
    border-left: 3px solid var(--color-success);
}


/* =============================================================================
   AI QUICK-START (for Pages/Posts)
   ============================================================================= */

.ai-quick-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    color: white;
}

.ai-quick-start__header h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.5rem;
}

.ai-quick-start__header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.ai-quick-start .form-textarea {
    background: rgba(255,255,255,0.95);
    border: none;
    margin: 1rem 0;
}

.ai-quick-start__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ai-quick-start__actions select {
    max-width: 150px;
}

.ai-quick-start__actions .btn {
    white-space: nowrap;
}

.ai-quick-start__actions .btn img {
    width: 18px;
    height: 18px;
    filter: none;
    margin-right: 0.5rem;
}

.ai-quick-start .btn--primary {
    background: white;
    color: #667eea;
    border-color: white;
    font-weight: 500;
}

.ai-quick-start .btn--primary:hover {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border-color: white;
    transform: none;
}

.ai-loading {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-loading p {
    margin: 0;
    opacity: 0.9;
}

.ai-quick-result {
    margin-top: 1rem;
}

.ai-result-card {
    background: white;
    color: var(--color-text);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.ai-result-card h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.ai-result-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.ai-result-section:last-of-type {
    border-bottom: none;
}

.ai-result-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.ai-result-section p {
    margin: 0.5rem 0;
}

.title-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.title-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.title-suggestion:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-lighter);
}

.title-suggestion input[type="radio"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.title-suggestion span {
    flex: 1;
    font-weight: 500;
}

.title-suggestion input[type="radio"]:checked + span {
    color: var(--color-primary);
}

.ai-result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.ai-error {
    background: #fee;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--radius-md);
}


/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
    .header,
    .footer,
    .nav,
    .post__admin,
    .toast-container {
        display: none;
    }
}

/* Gallery Image SEO Inputs */
.logo-slot__seo {
    margin-top: 0.5rem;
    margin-bottom: 1rem; /* Add bottom margin to prevent overlap */
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.logo-slot__seo-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.logo-slot__seo-input:focus {
    outline: none;
    border-color: #007bff;
}

.logo-slot__seo-preview {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    word-break: break-all;
}

/* Section Image SEO Inputs (same as Gallery) */
.img-slot__seo {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.img-slot__seo-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.img-slot__seo-input:focus {
    outline: none;
    border-color: #007bff;
}

.img-slot__seo-preview {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    word-break: break-all;
}

/* -----------------------------------------------------------------------------
   Icon Picker Component
   ----------------------------------------------------------------------------- */
.icon-picker {
    position: relative;
}

.icon-picker__selected {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: var(--transition-base);
}

.icon-picker__selected:hover {
    border-color: var(--color-primary);
}

.icon-picker__preview {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.icon-picker__arrow {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.icon-picker__grid {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-xs);
    padding: var(--space-sm);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-xs);
}

.icon-picker__grid.active {
    display: grid !important;
}

.icon-picker__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

.icon-picker__option:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary-light);
}

.icon-picker__option.selected {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.icon-picker__icon {
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-picker__icon img,
.icon-picker__icon svg {
    max-width: 40px !important;
    max-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

.icon-picker__option span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.2;
    word-break: break-word;
}

.icon-picker__option.selected span {
    color: var(--color-primary);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Admin Card Items (Problem Cards, Feature Cards, etc.)
   ----------------------------------------------------------------------------- */
.card-item {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    background: #fff;
    transition: var(--transition-base);
}

.card-item.card-item--odd {
    background: #f9fafb !important;
    padding-top: 10px;
    padding-bottom: 50px;
}

.card-item.card-item--even {
    background: #fff !important;
    padding-top: 10px;
    padding-bottom: 50px;
}

.card-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-item .form-input,
.card-item .form-textarea,
.card-item .form-select {
    background: #fff;
}

.card-item .btn--danger {
    float: right;
}

/* Icon Preview Box in Admin Forms */
.icon-preview-box {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.icon-preview-box img {
    max-width: 32px !important;
    max-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}

