/* ed-flock Premium Design - Apple/Stripe inspired */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --accent: #667eea;
    --accent-alt: #764ba2;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f7;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #e5e5e7;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-ed {
    color: var(--primary);
}

.logo-flock {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s var(--transition);
}

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

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: all 0.2s var(--transition);
}

.language-link:hover {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.06);
}

.language-link.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.22);
}

.nav-link-cta {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--transition);
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    z-index: -1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.hero-badge-alt .badge-dot {
    background: #10b981;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    transition: all 0.4s var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.project-card-featured {
    grid-column: span 2;
}

.project-visual {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.project-visual-photobox {
    background:
        linear-gradient(135deg, rgba(0, 102, 255, 0.10), rgba(118, 75, 162, 0.12)),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.project-icon {
    font-size: 64px;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-badge-live {
    background: #10b981;
    color: white;
}

.project-badge-soon {
    background: #f59e0b;
    color: white;
}

.badge-indicator {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s var(--transition);
}

.project-link:hover {
    gap: 10px;
}

.project-status {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--transition);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.2);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Photobox Page */
.photobox-hero {
    min-height: 92vh;
    padding: 130px 0 80px;
}

.photobox-hero-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 56px;
    align-items: center;
}

.photobox-hero-copy {
    text-align: left;
}

.photobox-hero-copy .hero-badges {
    justify-content: flex-start;
}

.photobox-hero-copy .hero-description {
    margin-left: 0;
    margin-right: 0;
}

.photobox-hero-copy .hero-cta {
    justify-content: flex-start;
}

.photobox-visual {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 24% 24%, rgba(255,255,255,0.65) 0%, transparent 28%),
        linear-gradient(145deg, #0f172a 0%, #1e3a8a 50%, #4c1d95 100%);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.photobox-visual::before {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.22);
}

.photobox-device {
    position: absolute;
    left: 50%;
    bottom: 54px;
    width: 220px;
    height: 340px;
    transform: translateX(-50%);
    border-radius: 24px 24px 14px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
    box-shadow: 0 26px 60px rgba(0,0,0,0.28);
}

.photobox-device::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 32px;
    width: 74px;
    height: 74px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, #0f172a 0 28%, #334155 29% 46%, #94a3b8 47% 60%, #111827 61%);
    box-shadow: inset 0 0 0 8px rgba(255,255,255,0.14);
}

.photobox-device::after {
    content: "";
    position: absolute;
    left: 46px;
    right: 46px;
    bottom: 46px;
    height: 108px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #111827 0%, #1f2937 62%, #ffffff 63% 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.photobox-print {
    position: absolute;
    right: 42px;
    bottom: 82px;
    width: 118px;
    height: 148px;
    padding: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 36px rgba(0,0,0,0.26);
    transform: rotate(7deg);
}

.photobox-print::before {
    content: "";
    display: block;
    height: 92px;
    border-radius: 5px;
    background:
        radial-gradient(circle at 32% 36%, #f97316 0 12%, transparent 13%),
        radial-gradient(circle at 64% 34%, #0ea5e9 0 13%, transparent 14%),
        linear-gradient(135deg, #dbeafe, #fce7f3);
}

.photobox-spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 24px rgba(255,255,255,0.85);
}

.photobox-spark:nth-child(1) { top: 76px; left: 86px; }
.photobox-spark:nth-child(2) { top: 142px; right: 96px; }
.photobox-spark:nth-child(3) { bottom: 150px; left: 60px; }

.photobox-packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.photobox-package {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.photobox-package h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.photobox-package p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.photobox-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.photobox-list li {
    color: var(--text-primary);
    font-weight: 600;
}

.photobox-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 900;
    margin-right: 9px;
}

.photobox-cta-band {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.09), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(0, 102, 255, 0.14);
    border-radius: 24px;
    padding: 38px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.photobox-cta-band h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    margin-bottom: 10px;
}

.photobox-cta-band p {
    color: var(--text-secondary);
    font-size: 17px;
}

.photobox-booking {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.photobox-booking.designer-page-active {
    grid-template-columns: minmax(0, 1fr);
}

.photobox-booking.designer-page-active .booking-summary {
    display: none;
}

.booking-main {
    display: grid;
    gap: 22px;
}

.booking-panel {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.booking-login-entry {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(180px, 240px) auto;
    align-items: center;
    gap: 14px;
    margin: -12px 0 24px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.booking-login-entry label {
    display: block;
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
    white-space: nowrap;
}

.booking-login-entry input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.booking-login-entry .form-status {
    grid-column: 1 / -1;
    margin-top: -4px;
}

.booking-page {
    display: none;
}

.booking-page.is-active {
    display: block;
}

.booking-panel-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.booking-panel h3,
.booking-summary h3 {
    font-size: 22px;
    margin-bottom: 0;
}

.booking-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-step {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    font-weight: 900;
}

.booking-grid {
    display: grid;
    gap: 16px;
}

.booking-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 13px;
    color: var(--text-primary);
    background: white;
    font: inherit;
    font-weight: 500;
}

.form-field textarea {
    resize: vertical;
}

.availability-box {
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 102, 255, 0.14);
    background: rgba(0, 102, 255, 0.06);
    display: grid;
    gap: 2px;
}

.availability-box span {
    color: var(--text-secondary);
    font-size: 14px;
}

.availability-box.available {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
}

.availability-box.blocked {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.availability-box.checking {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.08);
}

.package-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.package-option {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.package-option.is-selected {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.06);
}

.package-option input {
    width: auto;
}

.package-option span {
    color: #0066ff;
    font-weight: 800;
}

.package-option small {
    color: var(--text-secondary);
    line-height: 1.35;
}

.voucher-field {
    margin: 18px 0;
    display: grid;
    gap: 8px;
}

.voucher-field > label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.voucher-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.voucher-input-row input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    text-transform: uppercase;
}

.voucher-input-row input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.16);
}

.voucher-input-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.voucher-field.is-applied .voucher-input-row input {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
    color: #047857;
    font-weight: 700;
}

.voucher-status {
    display: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 8px;
}

.voucher-status.show {
    display: block;
}

.voucher-status.pending {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.voucher-status.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.voucher-status.success::before {
    content: '✓ ';
    font-weight: 900;
}

.voucher-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.summary-price-original {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-right: 6px;
}

.summary-price-final {
    color: #6ee7b7;
    font-weight: 800;
}

.booking-code-panel {
    display: grid;
    gap: 16px;
}

.booking-code {
    width: fit-content;
    padding: 14px 18px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: 0.12em;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.single-package {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(0, 102, 255, 0.18);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(255,255,255,0.96));
    margin-bottom: 18px;
}

.single-package p {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.option-card {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 184px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s var(--transition), box-shadow 0.2s var(--transition);
}

.option-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.option-card input {
    width: 18px;
    height: 18px;
}

.option-title {
    font-size: 18px;
    font-weight: 900;
}

.option-copy {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.option-price {
    align-self: end;
    color: var(--primary);
    font-weight: 900;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.addon-grid label,
.booking-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-primary);
    font-weight: 600;
}

.addon-grid label {
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    line-height: 1.35;
}

.addon-grid input,
.booking-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.booking-help {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.booking-help a,
.booking-note a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.booking-page-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.booking-page-actions .btn {
    min-width: 170px;
    justify-content: center;
}

.design-builder {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(560px, 1fr);
    gap: 22px;
    align-items: start;
}

.design-controls {
    display: grid;
    gap: 10px;
    align-self: start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.designer-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.designer-tools-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.designer-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tool-button {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 44px;
    padding: 10px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tool-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 102, 255, 0.06);
}

.tool-button-danger {
    color: #b42318;
}

.designer-drop-field {
    border: 1px dashed #9aa4b2;
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #f8fafc;
}

.designer-drop-field.is-dragover,
.designer-stage-wrap.is-dragover {
    border-color: var(--primary);
    background: #eef6ff;
}

.designer-inspector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.designer-snap-toggle {
    margin-top: 0;
}

.web-designer {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.designer-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
}

.designer-stage-wrap {
    display: grid;
    place-items: center;
    min-height: 580px;
    padding: 24px;
    border: 2px dashed transparent;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        #eef2f7;
    background-size: 24px 24px;
}

.designer-stage {
    position: relative;
    width: 100%;
    max-width: 820px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    background: #fff;
    background-size: cover;
    background-position: center;
    touch-action: none;
}

.designer-stage[data-format="15x10"] {
    max-width: 820px;
    aspect-ratio: 3 / 2;
}

.designer-stage[data-format="10x15"] {
    max-width: 560px;
    aspect-ratio: 2 / 3;
}

.designer-stage[data-theme="white"] {
    background: #fff;
}

.designer-stage[data-theme="gray"] {
    background: #e5e7eb;
}

.design-object {
    position: absolute;
    user-select: none;
    cursor: move;
    touch-action: none;
    box-sizing: border-box;
}

.design-object-label {
    pointer-events: none;
    display: block;
    width: 100%;
    padding: 6px;
    overflow-wrap: anywhere;
}

.design-photo {
    left: 13%;
    top: 12%;
    width: 74%;
    height: 22%;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,0.96);
    border-radius: 4px;
    background: rgba(255,255,255,0.86);
    color: #334155;
    font-weight: 900;
    min-width: 42px;
    min-height: 34px;
    overflow: hidden;
}

.design-photo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(51, 65, 85, 0.35);
    pointer-events: none;
}

.design-photo:nth-child(2) {
    top: 38%;
}

.design-text {
    left: 13%;
    top: 72%;
    width: 74%;
    height: 8%;
    display: grid;
    place-items: center;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    text-shadow: none;
    overflow: hidden;
}

.design-object.selected {
    outline: 3px solid #f59e0b;
    outline-offset: 4px;
    z-index: 50;
}

.design-resize-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #0f172a;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
}

.design-object.selected .design-resize-handle {
    opacity: 1;
    pointer-events: auto;
}

.design-resize-nw { left: -10px; top: -10px; cursor: nwse-resize; }
.design-resize-ne { right: -10px; top: -10px; cursor: nesw-resize; }
.design-resize-sw { left: -10px; bottom: -10px; cursor: nesw-resize; }
.design-resize-se { right: -10px; bottom: -10px; cursor: nwse-resize; }

.designer-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.designer-hints span {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.booking-summary {
    position: sticky;
    top: 96px;
    background: #101828;
    color: white;
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-lg);
}

.booking-summary .section-label {
    color: #93c5fd;
}

.booking-summary dl {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.booking-summary dl div {
    display: grid;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.booking-summary dt {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 900;
}

.booking-summary dd {
    color: white;
    font-weight: 700;
}

.booking-submit {
    width: 100%;
    justify-content: center;
}

.booking-design-preview {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin: 0 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
}

.booking-note {
    margin-top: 14px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    line-height: 1.5;
}

/* Produktwahl Schritt 1 */
.product-choice {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
}

.product-choice legend {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding: 0;
}

.product-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-option.is-selected {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.06);
}

.product-option input {
    width: auto;
    margin-top: 3px;
    flex: 0 0 auto;
}

.product-option-body {
    display: grid;
    gap: 3px;
}

.product-option-body strong {
    font-size: 16px;
    color: var(--text-primary);
}

.product-option-body small {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 13px;
}

.product-option-price {
    color: #0066ff;
    font-weight: 800;
    font-size: 14px;
}

.product-guestbook-hint {
    color: #b45309;
    font-weight: 600;
}

/* Übersprungener Design-Step im Stepper */
.stepper-step.is-skipped {
    pointer-events: none;
    opacity: 0.45;
}

.stepper-step.is-skipped .stepper-index {
    border-style: dashed;
    background: #fff;
    color: var(--text-secondary);
}

/* Audio-Gästebuch Marketing-Karte */
/* Produkt-Übersicht: Fotobox & Audio-Gästebuch gleich präsent (zwei gleiche Spalten) */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto 44px;
    align-items: stretch;
}

/* Ist das Gästebuch deaktiviert, nimmt die Fotobox die volle Breite (Pakete wieder 2-spaltig) */
.products-grid:has(.audiobook-card[hidden]) {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}
.products-grid:has(.audiobook-card[hidden]) .price-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-group {
    display: flex;
    flex-direction: column;
}

.product-group-tag {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* Pakete innerhalb der Fotobox-Spalte gestapelt, damit beide Produkte gleich breit sind */
.product-group .price-packages {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin: 0;
    gap: 20px;
}

.audiobook-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    border: 1px solid rgba(0, 102, 255, 0.28);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 0;
    box-shadow: 0 12px 34px rgba(0, 102, 255, 0.12);
}

.audiobook-card-icon {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
}

.audiobook-card-photo {
    width: 100%;
    align-self: stretch;
}

.audiobook-card-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 16px;
}

.audiobook-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.audiobook-card-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.audiobook-card-head h3 {
    font-size: 22px;
}

.audiobook-card-price {
    color: #0066ff;
    font-weight: 800;
    font-size: 18px;
}

.audiobook-card-desc {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 8px;
}

.audiobook-card-note {
    display: inline-block;
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.photobox-admin-page {
    background: var(--bg-light);
}

.photobox-cms-page {
    background: #f3f6f9;
}

/* Anmeldung ueber der Oberflaeche. Die Seite darunter bleibt samt Eingaben
   stehen, damit eine abgelaufene Sitzung keine Arbeit kostet.
   ACHTUNG: hier stand versehentlich `.cms-shell,` davor. Damit lag das ganze
   CMS in einem festen, bildschirmfuellenden Kasten - die Seite liess sich nicht
   mehr scrollen und alles unter dem Bildschirmrand war unerreichbar. */
.cms-reauth {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.cms-reauth[hidden] {
    display: none;
}

.cms-reauth-box {
    width: min(100%, 420px);
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}

.cms-reauth-box h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.cms-reauth-box p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #475569);
}

.cms-reauth-box .form-field {
    margin-bottom: 12px;
}

.cms-reauth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cms-shell,
.cms-app {
    display: grid;
    gap: 18px;
}

.cms-login-panel .booking-panel-head p {
    max-width: 760px;
    margin: 6px 0 0;
    color: var(--text-secondary);
}

/* Zwei Ebenen: oben der Bereich, darunter dessen Reiter. Beide zusammen kleben
   oben, damit die Navigation beim Scrollen durch lange Buchungslisten bleibt. */
.cms-nav {
    /* sticky ist zugleich der Bezugspunkt fuer die rechte Ecke, die aus dem
       Fluss genommen ist. Kein overflow:hidden - das Ampelfeld haengt unter
       der Leiste und wuerde abgeschnitten. */
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.cms-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 0 10px;
    /* Rechts bleibt Raum fuer Kennung, Ampeln und Abmelden. */
    padding-right: 260px;
}

.cms-group {
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 12px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 900;
    cursor: pointer;
}

.cms-group.is-active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.cms-group.cms-logout {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
}

.cms-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 10px;
    border-top: 1px solid var(--border);
    background: rgba(15,23,42,0.02);
    /* Untere Ecken selbst runden, weil die Leiste nicht mehr clippt. */
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Reiter fremder Bereiche bleiben im Markup, damit showTab sie kennt. */
.cms-tab.is-fremd {
    display: none;
}


.cms-tab {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.cms-tab.is-active {
    border-color: rgba(0,102,255,0.22);
    background: rgba(0,102,255,0.08);
    color: var(--primary);
}

/* Geraete-Ampel: nur Symbol und Punkt, rechts oben in der Navigationszeile.
   Beschriftungen daneben haetten die Zeile gesprengt - was das Symbol bedeutet,
   sagt der Titel und das Feld beim Draufzeigen. */
/* Aus dem Fluss genommen: als Teil der Gruppenzeile ist sie mit umgebrochen,
   sobald die Bereichsnamen breiter wurden - dann stand sie allein in einer
   zweiten Zeile. */
.cms-nav-rechts {
    position: absolute;
    top: 4px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cms-geraete {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cms-geraet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 0;
}

.cms-geraet:hover,
.cms-geraet:focus-visible {
    background: rgba(15,23,42,0.05);
}

.cms-geraet-icon {
    width: 17px;
    height: 17px;
}

.cms-geraet-punkt {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
}

.cms-geraet-punkt[data-zustand="gruen"] { background: #16a34a; }
.cms-geraet-punkt[data-zustand="gelb"]  { background: #f59e0b; }
.cms-geraet-punkt[data-zustand="rot"]   { background: #dc2626; }
.cms-geraet-punkt[data-zustand="grau"]  { background: #cbd5e1; }

/* Das Feld haengt an der Leiste, nicht am einzelnen Knopf: rechts ausgerichtet,
   damit es am Fensterrand nicht hinauslaeuft. */
.cms-geraet-info {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 260px;
    max-width: 340px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 6px 24px rgba(15,23,42,0.14);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.cms-geraet-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    margin: 8px 0 0;
}

.cms-geraet-info dl > div {
    display: contents;
}

.cms-geraet-info dt {
    color: var(--text-secondary);
    white-space: nowrap;
}

.cms-geraet-info dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.cms-geraet-hinweis {
    margin: 10px 0 0;
    color: var(--text-secondary);
}

.cms-geraet-fehler {
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid var(--border);
    color: #b91c1c;
    font-size: 12px;
    word-break: break-word;
}

.cms-identity {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    white-space: nowrap;
}

.cms-identity-role {
    font-weight: 600;
    opacity: .7;
}

.cms-dock-daten {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 18px;
    margin: 0 0 14px;
    max-width: 520px;
}

.cms-dock-daten > div {
    display: contents;
}

.cms-dock-daten dt {
    color: var(--text-secondary);
}

.cms-dock-daten dd {
    margin: 0;
    font-weight: 700;
}

.cms-view {
    display: none;
}

.cms-view.is-active {
    display: grid;
    gap: 18px;
}

.cms-two-col {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.cms-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.cms-list,
.cms-activity {
    display: grid;
    gap: 10px;
}

.cms-list-item,
.cms-activity-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.cms-list-item span,
.cms-activity-item span {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.cms-booking-card .span-12,
.cms-box-card .span-12 {
    grid-column: 1 / -1;
}

.cms-box-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cms-box-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.cms-box-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.cms-box-head h3 {
    margin: 0;
}

.cms-box-head strong {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
}

.event-area-page {
    background:
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 42%, #f8fafc 100%);
}

.admin-shell {
    display: grid;
    gap: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stats article {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.admin-stats span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-stats strong {
    display: block;
    margin-top: 6px;
    font-size: 32px;
    line-height: 1;
}

.admin-load-button {
    align-self: end;
    justify-content: center;
}

.admin-calendar-head,
.admin-booking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-calendar-head h2,
.admin-booking-head h2 {
    margin: 0;
    font-size: 22px;
}

.admin-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.admin-day {
    min-height: 78px;
    display: grid;
    align-content: space-between;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 12px;
}

.admin-day span {
    color: var(--text-secondary);
    font-weight: 800;
}

.admin-day strong {
    color: #059669;
    font-size: 12px;
    word-break: break-word;
}

.admin-day.is-blocked {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
}

.admin-day.is-blocked strong {
    color: #b91c1c;
}

.admin-bookings {
    display: grid;
    gap: 16px;
}

.admin-booking-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.admin-booking-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-bottom: 16px;
}

.admin-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
    gap: 18px;
    align-items: start;
}

.admin-booking-data a {
    color: var(--primary);
    text-decoration: none;
}

.admin-design-preview {
    display: grid;
    gap: 8px;
    margin: 0;
}

.admin-design-preview img,
.admin-design-preview span {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 800;
}

.admin-design-preview figcaption {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.admin-booking-data div {
    display: grid;
    gap: 4px;
}

.admin-booking-data dt {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-booking-data dd {
    font-weight: 700;
}

.private-event-data {
    margin-bottom: 22px;
}

.event-shell {
    display: grid;
    gap: 22px;
}

.event-login-panel {
    overflow: hidden;
}

.event-login-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #10b981, #f59e0b);
}

.event-login-panel .booking-panel-head p {
    max-width: 680px;
    margin: 6px 0 0;
    color: var(--text-secondary);
}

.event-login-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.event-area {
    display: grid;
    gap: 20px;
}

.event-area-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 20px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid rgba(0, 102, 255, 0.14);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96)),
        radial-gradient(circle at 10% 0%, rgba(0, 102, 255, 0.16), transparent 34%);
    box-shadow: var(--shadow-md);
}

.event-area-hero h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

.event-area-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 17px;
}

.event-status-card {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 124px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f172a;
    color: white;
}

.event-status-card span {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-status-card strong {
    font-size: 24px;
    line-height: 1;
}

.event-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.event-facts div {
    min-height: 92px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
}

.event-facts dt {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-facts dd {
    color: var(--text-primary);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.private-menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.private-menu-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.private-menu-card-wide {
    grid-column: 1 / -1;
}

.private-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.private-designer-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.private-designer-tools .designer-tools,
.private-designer-tools .private-save-button {
    grid-column: span 3;
}

.private-pill {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
}

.private-designer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 18px;
    align-items: start;
}

.private-designer-wrap {
    min-height: 430px;
    border: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        #eef2f7;
    background-size: 22px 22px;
}

.private-designer-wrap .designer-stage[data-format="15x10"] {
    max-width: 620px;
}

.private-designer-wrap .designer-stage[data-format="10x15"] {
    max-width: 300px;
}

.private-designer-wrap .design-object {
    cursor: move;
}

.private-designer-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    font-weight: 900;
}

.private-preview img,
.private-preview span {
    aspect-ratio: 3 / 2;
}

.private-choice-list,
.private-check-list {
    display: grid;
    gap: 10px;
}

.private-menu-card .package-option {
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.private-check-list label {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.private-save-button {
    justify-content: center;
}

.private-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.private-gallery-viewer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.private-gallery-tile {
    min-height: 132px;
    display: grid;
    align-content: end;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.86), rgba(241,245,249,0.92)),
        linear-gradient(45deg, rgba(0,102,255,0.08) 25%, transparent 25%, transparent 50%, rgba(0,102,255,0.08) 50%, rgba(0,102,255,0.08) 75%, transparent 75%);
    background-size: auto, 22px 22px;
    color: var(--text-primary);
    text-align: left;
}

.private-gallery-tile span {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.private-gallery-tile strong {
    font-size: 18px;
}

.private-link-card {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.private-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.32);
    box-shadow: var(--shadow-sm);
}

.private-link-card strong {
    color: var(--primary);
}

.private-link-card span {
    color: var(--text-secondary);
    font-weight: 700;
}

.admin-booking-card details {
    margin: 14px 0 18px;
}

.admin-booking-card summary {
    cursor: pointer;
    font-weight: 900;
}

.admin-booking-card pre {
    overflow: auto;
    max-height: 360px;
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
}

.admin-booking-edit {
    align-items: end;
}

/* Engineering */
.section-engineering {
    position: relative;
    background:
        radial-gradient(circle at 8% 12%, rgba(0, 102, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 92% 78%, rgba(118, 75, 162, 0.08) 0%, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-light) 48%, #ffffff 100%);
    overflow: hidden;
}

.engineering-header {
    margin-bottom: 48px;
}

.engineering-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    padding: 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 102, 255, 0.14);
    box-shadow: 0 24px 70px rgba(24, 42, 89, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-bottom: 56px;
}

.engineering-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.engineering-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.engineering-hero-content h3 {
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.engineering-hero-content p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.75;
    max-width: 720px;
}

.engineering-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.engineering-highlights span {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.engineering-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.engineering-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.engineering-step-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 900;
}

.engineering-step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.engineering-step p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.engineering-section-block {
    margin-top: 48px;
}

.engineering-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.engineering-card {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 22px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    overflow: hidden;
}

.engineering-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -45px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.06);
    transition: transform 0.3s var(--transition);
}

.engineering-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.24);
}

.engineering-card:hover::after {
    transform: scale(1.18);
}

.engineering-icon,
.industry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.12);
}

.engineering-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 14px;
    margin-bottom: 22px;
}

.engineering-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.engineering-description {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 15px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.engineering-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.engineering-subtitle::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.22), transparent);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.industry-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: all 0.25s var(--transition);
}

.industry-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(0, 102, 255, 0.22);
}

.industry-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1;
}

.industry-text {
    min-width: 0;
}

.industry-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 5px;
    color: var(--text-primary);
}

.industry-description {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.industry-card-more {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(118, 75, 162, 0.05));
    border-style: dashed;
}

/* Patent section: align visual style with industries cards */
.patent-header {
    margin-bottom: 22px;
}

.patent-intro {
    max-width: 860px;
    margin: 14px auto 0;
    color: var(--text-secondary);
}

.patent-industries-grid {
    margin-top: 6px;
}

.patent-industry-card .industry-title {
    font-size: 18px;
}

.patent-industry-card .industry-description a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.patent-industry-card .industry-description a:hover {
    text-decoration: underline;
}

.patent-industry-more {
    grid-column: 1 / -1;
}

.engineering-cta {
    margin-top: 56px;
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(118, 75, 162, 0.07));
    border: 1px solid rgba(0, 102, 255, 0.16);
    text-align: center;
}

.engineering-cta-text {
    font-size: 17px;
    color: var(--text-primary);
    margin: 0 auto 22px;
    max-width: 780px;
    font-weight: 600;
    line-height: 1.65;
}

.engineering-cta-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.engineering-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 980px) {
    .engineering-hero-card {
        grid-template-columns: 1fr;
    }

    .engineering-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .engineering-hero-card {
        padding: 24px;
        border-radius: 22px;
    }

    .engineering-grid,
    .industries-grid,
    .patent-industries-grid {
        grid-template-columns: 1fr;
    }

    .engineering-card {
        min-height: auto;
    }

    .engineering-step {
        grid-template-columns: 1fr;
    }

    .engineering-cta {
        padding: 26px 20px;
    }
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.tech-category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: white;
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s var(--transition);
}

.tech-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 24px;
}

.contact-disclaimer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 16px 18px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 40px;
}

.contact-disclaimer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-disclaimer a:hover {
    text-decoration: underline;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item-icon {
    font-size: 28px;
}

.contact-item-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-value {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.contact-item-value:hover {
    color: var(--primary);
}

/* Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

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

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-consent {
    margin-bottom: 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.consent-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.consent-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s var(--transition);
}

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

.footer-button {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-secondary);
    cursor: pointer;
}

.legal-body {
    background: var(--bg-light);
}

.legal-topnav {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.legal-back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.legal-page {
    max-width: 920px;
    margin: 32px auto 80px;
    padding: 42px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.legal-page h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.legal-page h2 {
    font-size: 24px;
    margin: 34px 0 12px;
}

.legal-page h3 {
    font-size: 18px;
    margin: 22px 0 10px;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-page ul {
    padding-left: 22px;
    margin: 12px 0;
}

.legal-page a,
.link-button {
    color: var(--primary);
    font-weight: 700;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.legal-updated {
    color: var(--text-tertiary) !important;
    font-size: 14px;
    margin-bottom: 24px;
}

.legal-note,
.legal-warning {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.legal-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.legal-warning h2 {
    margin-top: 0;
}

.legal-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    margin-top: 36px;
    border-top: 1px solid var(--border);
}

.legal-link-list a {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--bg-light);
    text-decoration: none;
}

.legal-table {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin: 18px 0;
}

.legal-table [role="row"] {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.legal-table [role="row"]:last-child {
    border-bottom: 0;
}

@media (max-width: 680px) {
    .legal-topnav {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-page {
        margin-top: 20px;
        padding: 26px 20px;
        border-radius: 18px;
    }

    .legal-table [role="row"] {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        visibility: hidden;
        pointer-events: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 40px;
    }

    .photobox-hero-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .photobox-hero-copy {
        text-align: center;
    }

    .photobox-hero-copy .hero-badges,
    .photobox-hero-copy .hero-cta {
        justify-content: center;
    }

    .photobox-hero-copy .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .photobox-visual {
        min-height: 420px;
    }

    .photobox-packages {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-group .price-packages {
        grid-template-columns: 1fr;
    }

    .audiobook-card-photo img {
        max-height: 260px;
    }

    .photobox-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .photobox-booking {
        grid-template-columns: 1fr;
    }

    .cms-two-col,
    .cms-box-grid {
        grid-template-columns: 1fr;
    }

    .cms-toolbar,
    .cms-box-head {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-login-entry {
        grid-template-columns: 1fr;
        margin-top: -6px;
    }

    .booking-login-entry .btn {
        width: 100%;
    }

    .booking-summary {
        position: static;
        order: -1;
    }

    .booking-grid-2,
    .booking-grid-3,
    .option-grid,
    .addon-grid,
    .product-choice-grid,
    .package-choice,
    .design-builder,
    .event-login-form,
    .event-area-hero,
    .event-facts,
    .private-menu-grid,
    .private-designer-layout,
    .private-designer-tools,
    .private-link-grid,
    .private-gallery-viewer,
    .admin-booking-data,
    .admin-booking-layout {
        grid-template-columns: 1fr;
    }

    .private-designer-tools .designer-tools,
    .private-designer-tools .private-save-button {
        grid-column: auto;
    }

    .private-card-head {
        flex-direction: column;
    }

    .private-designer-wrap {
        min-height: 300px;
    }

    .event-area-hero {
        padding: 24px;
    }

    .event-login-panel .booking-panel-head h1,
    .event-area-hero h2 {
        font-size: 34px;
        line-height: 1.12;
    }

    .event-status-card {
        min-height: 96px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-panel {
        padding: 24px;
    }

    .booking-panel-head {
        gap: 12px;
        margin-bottom: 18px;
    }

    .booking-page-actions {
        flex-direction: column-reverse;
    }

    .booking-page-actions .btn {
        width: 100%;
    }

    .single-package {
        flex-direction: column;
        gap: 10px;
    }

    .option-card {
        min-height: auto;
    }

    .designer-stage {
        max-width: min(100%, 360px);
    }

    .designer-stage[data-format="15x10"] {
        max-width: 100%;
    }

    .designer-stage-wrap {
        min-height: 520px;
        padding: 12px;
    }

    .designer-tools-wide,
    .designer-inspector-grid {
        grid-template-columns: 1fr;
    }

    .admin-design-preview img,
    .admin-design-preview span {
        max-height: 340px;
    }
    
    .projects-grid,
    .project-card-featured {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

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

/* Mobile Menu Fix */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-link {
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        font-size: 18px;
    }

    .language-switch {
        width: 100%;
        justify-content: center;
        margin: 18px 0 6px;
        background: var(--bg-light);
    }
    
    .nav-link-cta {
        margin-top: 16px;
        text-align: center;
        border: none;
    }
    
    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

/* hidden-Attribut muss klassenbasierte display-Regeln immer schlagen */
[hidden] {
    display: none !important;
}

/* Auf schmalen Geraeten passt die rechte Ecke nicht neben die Bereichsnamen.
   Dort laeuft sie wieder im Fluss mit und bekommt eine eigene Zeile, statt
   die Bereiche zu ueberdecken. */
@media (max-width: 820px) {
    .cms-nav-rechts {
        position: static;
        width: 100%;
        justify-content: flex-end;
        padding: 4px 0 6px;
        border-top: 1px solid var(--border);
    }

    .cms-groups {
        padding-right: 10px;
    }

    .cms-geraet-info {
        right: 0;
        left: auto;
        max-width: min(340px, calc(100vw - 40px));
    }
}
