/* ============================================================
   SAFAA MOHAJERI — Design System
   Hell & Editorial — Cormorant Garamond + DM Sans
   ============================================================ */

/* === VARIABLES === */
:root {
    --bg-primary:    #FAFAF8;
    --bg-secondary:  #F5F3EF;
    --bg-elevated:   #FFFFFF;
    --text-primary:  #2C2C2C;
    --text-secondary:#6B6560;
    --text-muted:    #9A9590;
    --accent:        #C9B99A;
    --accent-dark:   #A89678;
    --border:        #E0DDD8;
    --border-strong: #C9C4BC;
    --linkedin:      #0077B5;

    --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:   'DM Sans', system-ui, -apple-system, sans-serif;

    --max-w: 1140px;
    --pad-x: 40px;
    --nav-h: 76px;

    --shadow-sm: 0 2px 8px rgba(44,44,44,0.06);
    --shadow-md: 0 8px 32px rgba(44,44,44,0.10);
    --shadow-lg: 0 20px 60px rgba(44,44,44,0.12);

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t:    0.3s var(--ease);
    --t-slow: 0.7s var(--ease);
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg-primary);
}
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }

[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* === LAYOUT === */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.section {
    padding: 110px 0;
    background: var(--bg-primary);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes dotPing {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.6); opacity: 0; }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(1); }
    50%       { opacity: 0.6; transform: scaleY(0.75); }
}

.animate-1, .animate-2, .animate-3, .animate-4 {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) forwards;
}
.animate-1 { animation-delay: 0.15s; }
.animate-2 { animation-delay: 0.35s; }
.animate-3 { animation-delay: 0.55s; }
.animate-4 { animation-delay: 0.75s; }

/* Scroll reveals */
.reveal, .reveal-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible, .reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
.logo-initials {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    line-height: 1;
}
.logo-sep {
    width: 1px;
    height: 28px;
    background: var(--border-strong);
}
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.logo-name {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1;
}
.logo-sub {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    transition: color var(--t);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links .nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.nav-links .nav-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 16px var(--pad-x) 24px;
    box-shadow: var(--shadow-md);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { border-top: 1px solid var(--border); }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}
.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-deco-line {
    position: absolute;
    background: var(--border);
}
.hero-deco-line--1 {
    top: 0;
    right: 15%;
    width: 1px;
    height: 100%;
    opacity: 0.6;
}
.hero-deco-line--2 {
    bottom: 25%;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0.4;
}
.hero-container {
    width: 100%;
    padding-top: var(--nav-h);
}
.hero-content {
    max-width: 760px;
    padding: 100px 0 120px;
}
.hero-eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.hero-h1 {
    font-family: var(--serif);
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 32px;
}
.hero-h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
}
.hero-sub {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 32px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.badge-dot-wrap {
    position: relative;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}
.badge-dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: dotPing 2s ease-out infinite;
}
.badge-dot-core {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--accent-dark);
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: var(--pad-x);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero-scroll-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    border: none;
}
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1.5px solid var(--text-primary);
}
.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}
.btn-linkedin {
    background: var(--linkedin);
    color: #fff;
    border: 1.5px solid var(--linkedin);
    padding: 12px 22px;
    font-size: 13px;
}
.btn-linkedin:hover {
    background: #005f91;
    border-color: #005f91;
}

/* === SECTION ELEMENTS === */
.section-eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 20px;
}
.section-h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 32px;
}

/* === POSITIONIERUNG === */
.positionierung {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pos-quote {
    font-family: var(--serif);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    color: var(--text-primary);
    max-width: 820px;
    margin-bottom: 32px;
    padding-left: 28px;
    border-left: 3px solid var(--accent);
}
.pos-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.8;
}
.pos-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    padding: 8px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    transition: all var(--t);
}
.tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-elevated);
}

/* === LEISTUNGEN === */
.leistungen { background: var(--bg-primary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.svc-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--accent-dark);
}
.service-card h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.service-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-card ul li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}
.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 1px;
    background: var(--accent);
}
.services-note {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
}

/* === ÜBER SAFAA === */
.ueber { background: var(--bg-secondary); }
.ueber-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 72px;
    align-items: start;
}
.ueber-photo {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
}
.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.ueber-text .section-h2 { margin-bottom: 24px; }
.ueber-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.ueber-meta {
    margin: 32px 0;
    padding: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.ueber-meta-block h4 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 14px;
}
.about-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}
.about-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 1px;
    background: var(--accent);
}
.ueber-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* === SIGNATURE TOPICS & KONTEXTE === */
.topics { background: var(--bg-primary); }
.topics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.topics-col .section-eyebrow { margin-bottom: 28px; }
.topics-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.topics-list li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 20px;
    position: relative;
}
.topics-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.kontexte-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kontext-tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--t);
}
.kontext-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-elevated);
}

/* === ARBEITSWEISE === */
.arbeitsweise {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.aw-intro {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.6;
}
.aw-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.aw-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: border-color var(--t), box-shadow var(--t);
}
.aw-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.aw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* === KEYNOTE === */
.keynote { background: var(--bg-primary); }
.keynote-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 64px;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.keynote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
.kn-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 16px;
}
.kn-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}
.kn-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-style: italic;
}
.kn-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 640px;
}
.kn-desc:last-of-type { margin-bottom: 36px; }

/* === KONTAKT === */
.kontakt { background: var(--bg-secondary); }
.kontakt-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.kontakt-h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.kontakt-sub {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.kontakt-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}
.kontakt-email {
    display: block;
    font-family: var(--serif);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 40px;
    transition: color var(--t);
    letter-spacing: -0.01em;
}
.kontakt-email:hover { color: var(--accent-dark); }
.kontakt-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-link {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    cursor: pointer;
    transition: color var(--t);
    background: none;
    border: none;
    padding: 0;
    font-family: var(--sans);
}
.footer-link:hover { color: var(--text-primary); }
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* === LEGAL MODALS === */
.legal-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: rgba(44, 44, 44, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    padding: 24px;
    align-items: center;
    justify-content: center;
    z-index: 200;
    display: none;
}
.legal-modal[open] {
    display: flex;
}
.legal-modal::backdrop {
    background: rgba(44, 44, 44, 0.5);
    backdrop-filter: blur(4px);
}
.legal-modal-inner {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 48px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color var(--t), background var(--t);
}
.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.legal-modal-inner h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.legal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.legal-modal-inner h3 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 24px 0 10px;
}
.legal-modal-inner p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.legal-modal-inner a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root { --pad-x: 32px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .ueber-grid { grid-template-columns: 280px 1fr; gap: 48px; }
    .topics-grid { gap: 40px; }
}

@media (max-width: 768px) {
    :root { --pad-x: 24px; }
    .section { padding: 80px 0; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .services-grid { grid-template-columns: 1fr; }
    .ueber-grid { grid-template-columns: 1fr; }
    .ueber-photo { position: static; max-width: 320px; }
    .topics-grid { grid-template-columns: 1fr; gap: 48px; }
    .keynote-card { padding: 40px 28px; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-right { align-items: flex-start; }
    .hero-content { padding: 80px 0 100px; }
    .br-desktop { display: none; }
    .pos-quote { padding-left: 20px; }
    .hero-scroll { display: none; }
}

@media (max-width: 480px) {
    :root { --pad-x: 20px; }
    .kontakt-btns { flex-direction: column; }
    .kontakt-btns .btn { justify-content: center; }
    .ueber-actions { flex-direction: column; }
    .legal-modal-inner { padding: 32px 24px; }
}

/* === OLIVE BRANCH DECORATIONS === */
.olive-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.olive-deco svg { display: block; width: 100%; height: auto; }

.olive-deco--hero {
    top: -30px;
    right: -55px;
    width: 220px;
    opacity: 0.09;
    transform: rotate(16deg);
}
.olive-deco--keynote {
    bottom: -10px;
    right: 0px;
    width: 90px;
    opacity: 0.13;
    transform: rotate(-8deg);
}
.olive-deco--kontakt {
    bottom: 0;
    left: -20px;
    width: 130px;
    opacity: 0.08;
    transform: scaleX(-1) rotate(-5deg);
}

/* Ensure content sits above olive decorations */
.hero-container,
.hero-content,
.hero-scroll,
.hero-deco { position: relative; z-index: 1; }
.keynote-card .kn-eyebrow,
.keynote-card .kn-title,
.keynote-card .kn-subtitle,
.keynote-card .kn-desc,
.keynote-card .btn { position: relative; z-index: 1; }
.kontakt { position: relative; overflow: hidden; }
.kontakt .container { position: relative; z-index: 1; }

/* === BOOKING MODAL === */
.booking-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(560px, calc(100vw - 32px));
    max-height: 90vh;
    border: none;
    padding: 0;
    border-radius: 16px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
}
.booking-modal[open] {
    display: flex;
    flex-direction: column;
}
.booking-modal::backdrop {
    background: rgba(44, 44, 44, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Header — step indicator + close */
.bm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.bm-steps { display: flex; align-items: center; gap: 8px; }
.bm-step {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--t);
}
.bm-step.is-active { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.bm-step.is-done { border-color: var(--accent); background: var(--accent); color: #fff; }
.bm-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: color var(--t), background var(--t);
}
.bm-close:hover { color: var(--text-primary); background: var(--bg-secondary); }

/* Body — scrollable, holds the 4 panels */
.bm-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 32px 24px;
}
.bm-panel { display: none; }
.bm-panel.is-active { display: block; }

.bm-title {
    font-family: var(--serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}
.bm-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Footer — single shared Back / Next nav */
.bm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.bm-footer .btn { min-height: 44px; }
.bm-footer .btn.is-hidden { visibility: hidden; }
.bm-footer .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bm-footer .btn-primary:disabled:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Step 1 — type cards + duration */
.bm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.bm-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    background: var(--bg-primary);
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.bm-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.bm-card.is-selected { border-color: var(--accent-dark); background: var(--bg-secondary); box-shadow: var(--shadow-md); }
.bm-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-dark);
    margin-bottom: 12px;
}
.bm-card.is-selected .bm-card-icon { background: var(--accent); color: #fff; }
.bm-card-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.bm-card-meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 3px 0 7px;
}
.bm-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

.bm-duration { border-top: 1px solid var(--border); padding-top: 18px; }
.bm-duration-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.bm-duration-btns { display: flex; gap: 10px; }
.bm-dur {
    flex: 1;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all var(--t);
}
.bm-dur:hover { border-color: var(--accent); color: var(--accent-dark); }
.bm-dur.is-selected { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }

/* Step 2 — calendar + times */
.bm-cal { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bm-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.bm-cal-arrow {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t);
}
.bm-cal-arrow:hover { border-color: var(--accent); color: var(--accent-dark); }
.bm-cal-month {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}
.bm-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.bm-cal-weekdays span {
    text-align: center;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.bm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 10px;
}
.bm-cal-day {
    aspect-ratio: 1;
    min-height: 40px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    background: none;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t);
}
.bm-cal-day:hover:not(:disabled):not(.is-empty) { background: var(--bg-secondary); border-color: var(--accent); }
.bm-cal-day.is-selected { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.bm-cal-day:disabled { color: var(--border-strong); cursor: not-allowed; }
.bm-cal-day.is-today { font-weight: 600; border-color: var(--accent); }
.bm-cal-day.is-empty { cursor: default; pointer-events: none; }

.bm-times { margin-top: 22px; }
.bm-times-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 10px;
}
.bm-times-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-time {
    flex: 1;
    min-width: 80px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all var(--t);
}
.bm-time:hover { border-color: var(--accent); color: var(--accent-dark); }
.bm-time.is-selected { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }

/* Step 3 — contact form */
.bm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.bm-field label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.bm-optional { font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.bm-field input,
.bm-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    transition: border-color var(--t);
}
.bm-field input:focus,
.bm-field textarea:focus { border-color: var(--accent-dark); }
.bm-field input.is-error,
.bm-field textarea.is-error { border-color: #C0392B; }
.bm-field textarea { resize: vertical; min-height: 92px; }
.bm-char { font-size: 11px; color: var(--text-muted); text-align: right; }
.bm-pref { border: none; margin-top: 4px; }
.bm-pref legend {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.bm-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.bm-radio:last-child { border-bottom: none; }
.bm-radio input[type="radio"] { accent-color: var(--accent-dark); width: 16px; height: 16px; }

/* Step 4 — summary + thank-you */
.bm-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
}
.bm-summary-row {
    display: flex;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.bm-summary-row:last-child { border-bottom: none; }
.bm-summary-label {
    flex-shrink: 0;
    min-width: 104px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-dark);
    padding-top: 3px;
}
.bm-summary-value { color: var(--text-primary); line-height: 1.5; }
.bm-thankyou { text-align: center; padding: 16px 0; }
.bm-thankyou-icon { display: flex; justify-content: center; margin-bottom: 18px; }

/* Mobile — full-screen modal */
@media (max-width: 600px) {
    .booking-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }
    .bm-header { padding: 16px 18px; }
    .bm-body { padding: 24px 18px; }
    .bm-footer { padding: 14px 18px; }
    .bm-cards { grid-template-columns: 1fr; }
    .bm-form-row { grid-template-columns: 1fr; }
    .bm-footer .btn { flex: 1; justify-content: center; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .animate-1, .animate-2, .animate-3, .animate-4 {
        animation: none;
        opacity: 1;
    }
    .reveal, .reveal-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .badge-dot-ping { animation: none; }
    .hero-scroll-line { animation: none; }
}
