/* =============================================
   verhandlungs.art – Main Stylesheet
   ============================================= */

/* ── CUSTOM PROPERTIES ── */
:root {
    --dark:        #0c0c0c;
    --dark-soft:   #161616;
    --gold:        #b28e46;
    --gold-hover:  #c9a55a;
    --gold-on-light: #8a6a2e;
    --navy:        #1a2d5e;
    --white:       #ffffff;
    --off-white:   #f7f7f5;
    --gray:        #888888;
    --text-muted:  rgba(255,255,255,0.60);

    --font-head:   'Jost', sans-serif;
    --font-body:   'Jost', sans-serif;

    --max-w:       1200px;
    --pad-x:       clamp(24px, 5vw, 80px);
    --section-v:   clamp(80px, 10vw, 140px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── BASE ── */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* ── UTILITY ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    background: var(--gold);
    color: var(--dark);
    padding: 12px 20px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
}

.section-dark { background: var(--dark); color: var(--white); }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 4px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
}
.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gold);
}
.btn-outline-dark:hover {
    background: var(--gold);
    color: var(--dark);
}

.btn-sm { padding: 10px 22px; font-size: 0.73rem; }

/* ── SECTION HEADING ── */
.section-heading {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 48px;
}
.section-heading.dark { color: var(--dark); }

/* ── SCROLL REVEAL ── */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px var(--pad-x);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    transition: padding 0.35s ease;
}

/* backdrop-filter lives on a pseudo-element, not .site-header itself —
   backdrop-filter on the header would create a CSS containing block that
   traps the position:fixed mobile .nav-menu inside the header's box. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(12, 12, 12, 0.97);
    backdrop-filter: blur(12px);
}

.site-header.scrolled {
    padding: 12px var(--pad-x);
}

.nav-container {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-svg {
    height: 30px;
    width: auto;
    display: block;
}

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

.nav-menu a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.80);
    transition: color 0.2s ease;
}
.nav-menu a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   SECTION 1: HERO
   ============================================= */
.section-hero {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 80px var(--pad-x);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.55) 40%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 1;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(200,168,76,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 20% 80%, rgba(200,168,76,0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.hero-inner {
    max-width: var(--max-w);
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.18;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 44px;
}

.hero-title { max-width: 760px; }

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =============================================
   SECTION 2: ANIMATED TEXT
   ============================================= */
.section-animation {
    padding: var(--section-v) var(--pad-x);
    background: var(--off-white);
    text-align: center;
}

.animation-intro {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.8;
}

.animated-statement {
    max-width: 900px;
    margin: 0 auto;
}

.animated-text {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(1.6rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--dark);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.animated-text:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 8px;
}

.word-cycle {
    color: var(--gold-on-light);
    display: inline-block;
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 1ch;
}

.word-cycle.exiting {
    opacity: 0;
    transform: translateY(-8px);
}
.word-cycle.entering {
    opacity: 0;
    transform: translateY(8px);
}

/* =============================================
   SECTION 3: VERHANDLUNGSRAUM
   ============================================= */
.section-vr {
    padding: var(--section-v) 0;
    overflow: hidden;
}

.vr-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.vr-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.85;
}

.vr-actions {
    display: flex;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.vr-visual {
    position: relative;
    height: 100%;
}

.vr-image-placeholder {
    width: 100%;
    height: 100%;
    background: url('../assets/VERHANDLUNGSRAUM.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* =============================================
   SECTION 4: VIER SCHRITTE
   ============================================= */
.section-steps {
    padding: var(--section-v) 0;
    background: var(--white);
}

.section-steps .container {
    text-align: center;
}

.steps-layout {
    display: none; /* replaced by steps-cols */
}

/* ── New 4-column steps layout ── */
.steps-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    margin-top: 60px;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}

.step-col {
    padding: 36px 28px;
    border-right: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
}
.step-col:last-child { border-right: none; }

.step-img-wrap {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    overflow: hidden;
}

.step-stone-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
}

.step-stone-light { mix-blend-mode: multiply; }

.step-col-body { display: flex; flex-direction: column; gap: 10px; }

.step-num {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.step-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dark);
}

.step-desc-text {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.65;
}

/* =============================================
   SECTION 5: DR. AXEL KALUS
   ============================================= */
.section-about {
    padding: var(--section-v) 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about-content p {
    font-size: 0.95rem;
    color: #3a3a3a;
    margin-bottom: 18px;
    line-height: 1.85;
}

.about-questions {
    margin: 0 0 18px 0;
    padding-left: 20px;
    list-style: disc;
}
.about-questions li {
    font-size: 0.95rem;
    color: #3a3a3a;
    margin-bottom: 6px;
    line-height: 1.7;
}

.about-quote {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--dark);
    line-height: 1.65;
    border-left: 3px solid var(--gold);
    padding-left: 24px;
    margin: 36px 0 40px;
    font-style: normal;
}

/* =============================================
   SUBPAGES (Werdegang, Impressum, Datenschutz)
   ============================================= */
.subpage-hero {
    padding: 180px 0 60px;
}

.subpage-back {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    transition: color 0.2s ease;
}
.subpage-back:hover { color: var(--gold-hover); }

.subpage-intro {
    color: rgba(255,255,255,0.65);
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 8px;
}

.section-werdegang,
.section-legal {
    padding: var(--section-v) 0;
    background: var(--off-white);
}

.subpage-content { max-width: 760px; }

.content-block { margin-bottom: 56px; }
.content-block:last-of-type { margin-bottom: 40px; }

.content-heading {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    margin-bottom: 16px;
}

.content-block p,
.section-legal p {
    font-size: 0.95rem;
    color: #3a3a3a;
    line-height: 1.85;
    margin-bottom: 14px;
}

.section-legal h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    margin: 40px 0 16px;
}
.section-legal h2:first-child { margin-top: 0; }

.section-legal a { color: var(--gold-on-light); text-decoration: underline; }

.subpage-cta { margin-top: 20px; }

/* =============================================
   WERDEGANG MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 12, 12, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    position: relative;
    background: var(--off-white);
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 56px 48px;
    text-align: left;
}

.modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 40px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--dark);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-cta { margin-top: 8px; }

@media (max-width: 640px) {
    .modal-panel { padding: 48px 24px 32px; }
}

/* =============================================
   SECTION 6: LEISTUNGEN
   ============================================= */
.section-leistungen {
    padding: var(--section-v) 0;
}

.leistungen-intro {
    color: var(--text-muted);
    max-width: 560px;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: -24px;
    margin-bottom: 48px;
}

.leistung-group-label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.leistungen-rows + .leistung-group-label {
    margin-top: 56px;
}

/* ── New stacked-row Leistungen ── */
.leistungen-rows {
    border-top: 1px solid rgba(255,255,255,0.10);
    margin-top: 16px;
}

.leistung-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: padding-left 0.35s ease;
}

.leistung-row-top {
    display: flex;
    align-items: center;
    gap: 48px;
}

.leistung-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
    max-width: 640px;
    margin-left: 80px;
}

.leistung-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.leistung-row:hover { padding-left: 20px; }
.leistung-row:hover::before { transform: scaleY(1); }

.leistung-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    min-width: 32px;
    flex-shrink: 0;
}

.leistung-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.3rem, 2.8vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    flex: 1;
    transition: color 0.3s ease;
}
.leistung-row:hover .leistung-name { color: var(--gold); }

.leistung-arrow {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.leistung-row:hover .leistung-arrow {
    color: var(--gold);
    transform: translate(5px, -5px);
}

/* =============================================
   SECTION 7: KONTAKT
   ============================================= */
.section-kontakt {
    padding: var(--section-v) 0;
    background: var(--white);
}

.kontakt-intro {
    color: #555;
    max-width: 560px;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: -24px;
    margin-bottom: 48px;
}

.kontakt-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { width: 100%; }

.form-field {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--off-white);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
}
.form-field:focus { border-color: var(--gold); }
.form-field::placeholder { color: #aaa; }

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

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    padding: 80px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 36px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-svg {
    height: 34px;
    width: auto;
    display: block;
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.30);
    text-align: center;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
    .vr-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .vr-visual { order: -1; height: auto; }
    .vr-image-placeholder { height: auto; aspect-ratio: 16 / 9; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .photo-placeholder { aspect-ratio: 16 / 9; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand { grid-column: 1 / -1; }

    /* Nav switches to the hamburger here too — below this width there isn't
       enough room for logo + all four nav links on one line without wrapping. */
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--dark);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 99;
    }
    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .nav-menu a { font-size: 1.1rem; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
    /* Steps */
    .steps-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .step-col:nth-child(2) { border-right: none; }
    .step-col:nth-child(3) { border-top: 1px solid #e2e2e2; }

    /* Leistungen */
    .leistung-row-top { gap: 20px; }
    .leistung-name { font-size: 1.1rem; }
    .leistung-desc { margin-left: 0; }

    /* Form */
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Hero */
    .hero-inner { max-width: 100%; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; text-align: center; }
}
