/* ============================================
   Dr. med. Philipp-Simon d'Aiello
   Modern Redesign — Navy · Gold · Playfair
   ============================================ */

:root {
    --navy: #0C1B2E;
    --navy-2: #10233B;
    --navy-3: #162A45;
    --gold: #C8A97E;
    --gold-light: #D4BA95;
    --cream: #F8F6F2;
    --warm: #F2F0EC;
    --white: #FFFFFF;
    --ink: #1A1A1A;
    --ink-2: #5A5A5A;
    --ink-3: #8A8A8A;
    --border: #E8E5E0;
    --border-l: #F0EDE8;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
    --container: 1280px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--navy);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--navy); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

/* ─── Smooth-Scroll-Wrapper ─── */
.page { position: relative; }
body.smooth .page {
    position: fixed;
    top: 0; left: 0; right: 0;
    will-change: transform;
}

/* ─── Preloader ─── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s var(--ease-2);
}
.loader.done { transform: translateY(-101%); }
.loader-inner { text-align: center; }
.loader-name {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
}
.loader-name em { font-style: italic; color: var(--gold-light); }
.loader-bar {
    width: min(280px, 60vw);
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 0 auto 0.9rem;
    overflow: hidden;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--gold);
    transition: width 0.25s ease-out;
}
.loader-count {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.35);
}

/* ─── Custom Cursor ─── */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 9500;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--gold);
}
.cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(200,169,126,0.45);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.cursor-ring.hot {
    width: 58px; height: 58px;
    background: rgba(200,169,126,0.08);
    border-color: rgba(200,169,126,0.8);
}
@media (hover: none), (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ─── Scroll Progress ─── */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 8000;
}

/* ─── Split-Reveals ─── */
.line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}
.line-in {
    display: block;
    transform: translateY(115%);
    transition: transform 1.1s var(--ease);
}
.in .line-in, .line.in .line-in { transform: translateY(0); }
.line:nth-child(2) .line-in { transition-delay: 0.09s; }
.line:nth-child(3) .line-in { transition-delay: 0.18s; }

[data-split-fade] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-split-fade].in { opacity: 1; transform: none; }

[data-reveal-up] {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal-up].in { opacity: 1; transform: none; }
.bento [data-reveal-up]:nth-child(2), .quals [data-reveal-up]:nth-child(2) { transition-delay: 0.07s; }
.bento [data-reveal-up]:nth-child(3), .quals [data-reveal-up]:nth-child(3) { transition-delay: 0.14s; }
.bento [data-reveal-up]:nth-child(4), .quals [data-reveal-up]:nth-child(4) { transition-delay: 0.21s; }
.bento [data-reveal-up]:nth-child(5), .quals [data-reveal-up]:nth-child(5) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
    .line-in, [data-split-fade], [data-reveal-up] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* ─── Typografie ─── */
.overline {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.h2 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.h2 em { font-style: italic; color: var(--gold); }
.h2-big { font-size: clamp(3rem, 8.5vw, 7rem); }
.gold { color: var(--gold); }
.section-dark .h2 { color: #fff; }
.section-desc {
    font-size: 1.05rem;
    color: var(--ink-2);
    max-width: 560px;
    line-height: 1.8;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    letter-spacing: 0.01em;
    padding: 1rem 2.1rem;
    position: relative;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
    will-change: transform;
}
.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 16px 40px rgba(200,169,126,0.35);
}
.btn-gold svg { transition: transform 0.3s; }
.btn-gold:hover svg { transform: translate(2px, -2px); }
.btn-line {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-line:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-lg { padding: 1.2rem 2.6rem; font-size: 0.95rem; }

/* ─── Nav ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.1rem clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(12,27,46,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
    height: 88px;
    width: auto;
    transition: height 0.35s var(--ease);
    filter: brightness(0) invert(1);
}
.nav.scrolled .nav-logo-img { height: 60px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    list-style: none;
}
.nav-links a {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: color 0.3s;
    letter-spacing: 0.02em;
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
    background: rgba(200,169,126,0.14) !important;
    color: var(--gold-light) !important;
    padding: 0.6rem 1.35rem;
    border-radius: 100px;
    border: 1px solid rgba(200,169,126,0.35);
    transition: all 0.3s !important;
}
.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--navy) !important;
}

.mob-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    width: 30px;
    height: 20px;
}
.mob-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s var(--ease);
}
.mob-toggle span:nth-child(1) { top: 0; }
.mob-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mob-toggle span:nth-child(3) { bottom: 0; }
.mob-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mob-toggle.active span:nth-child(2) { opacity: 0; }
.mob-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ─── 3D Canvas ─── */
.fx3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(30, 58, 95, 0.55), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(200,169,126,0.10), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, #0A1626 55%, var(--navy-2) 100%);
    padding: 9rem 0 5rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/hintergrund2.webp') center / cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
}
.hero .fx3d {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px);
    mask-image: linear-gradient(180deg, transparent 0, #000 120px);
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 3rem;
}
.hero-badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
.hero-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 6.8vw, 6rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 2.4rem;
}
.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}
.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
    max-width: 480px;
    margin-bottom: 2.6rem;
}
.hero-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.hero-titles {
    display: block;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* großes freigestelltes Portrait rechts */
.hero-cutout {
    position: absolute;
    right: clamp(24px, 7vw, 150px);
    bottom: 0;
    z-index: 1;
    width: min(30vw, 430px);
    pointer-events: none;
}
.hero-cutout::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at 50% 62%, rgba(200,169,126,0.09), rgba(30,58,95,0.14) 45%, transparent 70%);
    filter: blur(8px);
}
.hero-cutout img {
    position: relative;
    width: 100%;
    display: block;
    filter: brightness(0.92) saturate(0.94) drop-shadow(0 24px 50px rgba(0,0,0,0.4));
    -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0,0,0,0.25) 100%);
    mask-image: linear-gradient(180deg, #000 86%, rgba(0,0,0,0.25) 100%);
    opacity: 0.96;
}
.hero-stats {
    display: flex;
    gap: 3rem;
    width: 100%;
    max-width: 440px;
    margin-top: 2.8rem;
}
.hero-stat {
    flex: 1;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat b {
    display: block;
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.hero-stat span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    display: block;
    letter-spacing: 0.03em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(200,169,126,0.6), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll span {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

/* ─── Marquee ─── */
.marquee {
    background: var(--navy-2);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1.6rem 0;
    overflow: hidden;
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}
.marquee-track span {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.02em;
}
.marquee-dot {
    width: 5px !important;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ─── Sections ─── */
.section {
    padding: clamp(6rem, 11vw, 10rem) 0;
    position: relative;
    overflow: hidden;
}
.section > .container { position: relative; z-index: 1; }
.section-light { background: var(--cream); }
.section-dark { background: linear-gradient(170deg, var(--navy) 0%, #0A1626 60%, var(--navy-2) 100%); }

/* Hintergrundbilder der Sektionen (wie im Original) */
#leistungen {
    background: url('images/leistungen.webp') center center / cover no-repeat;
}
#leistungen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248,246,242,0.86) 0%, rgba(248,246,242,0.76) 50%, rgba(248,246,242,0.83) 100%);
    pointer-events: none;
}
#uebermich {
    background: url('images/werdegang.webp') center center / cover no-repeat;
}
#uebermich::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,27,46,0.95) 0%, rgba(12,27,46,0.88) 50%, rgba(12,27,46,0.93) 100%);
    pointer-events: none;
}
#qualifikationen {
    background: url('images/qualifikationen.webp') center center / cover no-repeat;
}
#qualifikationen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248,246,242,0.86) 0%, rgba(248,246,242,0.76) 50%, rgba(248,246,242,0.83) 100%);
    pointer-events: none;
}
#kontakt {
    background: url('images/kontaktaufnahme.webp') center center / cover no-repeat;
}
#kontakt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,27,46,0.95) 0%, rgba(12,27,46,0.88) 50%, rgba(12,27,46,0.93) 100%);
    pointer-events: none;
}
.section-dark .overline { color: var(--gold); }
.section-head { margin-bottom: clamp(3.5rem, 6vw, 5.5rem); max-width: 900px; }

/* ─── Leistungen: elegante Zeilen (wie Original) ─── */
.services {
    display: flex;
    flex-direction: column;
}
.service-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 0;
    border-bottom: 1px solid rgba(12,27,46,0.1);
    transition: padding-left 0.45s var(--ease), background 0.45s;
    cursor: default;
}
.service-item:first-child { border-top: 1px solid rgba(12,27,46,0.1); }
.service-item:hover { padding-left: 1.6rem; }
.service-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--gold);
}
.service-title {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.45rem;
    letter-spacing: -0.01em;
}
.service-text {
    font-size: 0.92rem;
    color: var(--ink-2);
    max-width: 560px;
    line-height: 1.75;
}
.service-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(12,27,46,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--navy-3);
    transition: all 0.4s var(--ease);
}
.service-item:hover .service-icon {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold-light);
    transform: scale(1.06);
}

/* ─── Über mich ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 6.5rem);
}
.about-lead {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    color: #fff;
    line-height: 1.55;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.about-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
    margin-bottom: 2.8rem;
    max-width: 520px;
}
.about-metrics { display: flex; gap: 3rem; flex-wrap: wrap; }
.metric b {
    display: block;
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.metric span {
    font-size: 0.66rem;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.about-photo {
    position: relative;
    will-change: transform;
}
.about-photo img {
    border-radius: 22px;
    width: 100%;
    box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}
.about-photo::before {
    content: '';
    position: absolute;
    top: -18px; right: -18px;
    width: 100%; height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(200,169,126,0.35);
    z-index: -1;
}
.about-photo-badge {
    position: absolute;
    bottom: 1.3rem;
    left: 1.3rem;
    background: rgba(12,27,46,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(200,169,126,0.3);
    color: #fff;
    border-radius: 100px;
    padding: 0.55rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-photo-badge i { color: var(--gold); }

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.timeline-heading {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gold-light);
    margin-bottom: 1.6rem;
}
.tl-item {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tl-item:last-child { border-bottom: none; }
.tl-year {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    padding-top: 0.15rem;
}
.tl-text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
}
.tl-thesis {
    display: block;
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(255,255,255,0.35);
    margin-top: 0.35rem;
}

/* ─── Qualifikationen: Zeilen-Stil ─── */
.quals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2.5rem, 5vw, 4.5rem);
    column-gap: clamp(3rem, 6vw, 6rem);
}
.qual-group h4 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.qual-group h4::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}
.qual-group ul { list-style: none; }
.qual-group li {
    font-size: 0.92rem;
    color: var(--ink-2);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(12,27,46,0.1);
    line-height: 1.6;
    transition: padding-left 0.35s var(--ease), color 0.35s;
}
.qual-group li:last-child { border-bottom: none; }
.qual-group li:hover {
    padding-left: 0.7rem;
    color: var(--navy);
}

/* ─── Kontakt ─── */
.section-contact { padding-bottom: clamp(7rem, 12vw, 11rem); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
    margin-top: 3rem;
}
.contact-intro {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 420px;
}
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 2.6rem;
    will-change: transform;
}
.contact-detail { margin-bottom: 1.9rem; }
.contact-detail:last-of-type { margin-bottom: 0; }
.contact-detail-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.45rem;
}
.contact-detail-value {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}
.contact-detail-value strong { color: #fff; font-weight: 600; }
.contact-detail-value a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(200,169,126,0.35);
    transition: text-decoration-color 0.3s;
}
.contact-detail-value a:hover { text-decoration-color: var(--gold); }
.contact-note {
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
    background: rgba(12,27,46,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.contact-note i {
    font-size: 0.9rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ─── Footer ─── */
.footer {
    background: #081221;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2rem;
}
.footer-logo-img {
    height: 76px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.footer-tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.4rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s;
}
.footer-legal a:hover { color: var(--gold-light); }

/* ─── Back to top ─── */
.btt {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
    z-index: 900;
    box-shadow: 0 10px 28px rgba(200,169,126,0.35);
}
.btt.show { opacity: 1; visibility: visible; }
.btt:hover { transform: translateY(-3px); }

/* ─── Legal ─── */
.legal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(12,27,46,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.legal-overlay.active { display: flex; }
.legal-box {
    background: var(--white);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
}
.legal-box::-webkit-scrollbar { width: 3px; }
.legal-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.legal-box h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.legal-box h3 {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 1.75rem 0 0.5rem;
}
.legal-box p {
    font-size: 0.85rem;
    color: var(--ink-2);
    margin-bottom: 0.5rem;
    line-height: 1.75;
}
.legal-box a {
    color: var(--navy-3);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-x {
    position: sticky; top: 0; float: right;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1;
}
.legal-x:hover { background: var(--cream); color: var(--navy); }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .hero-content { max-width: 54%; }
    .hero-title { font-size: clamp(2.6rem, 5.5vw, 4rem); }
    .hero-cutout { width: 34vw; }
    .quals { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 420px; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .timeline { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-logo-img { height: 64px; }
    .nav.scrolled .nav-logo-img { height: 52px; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(12,27,46,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem 2rem 2rem;
        gap: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: rgba(255,255,255,0.8) !important;
        padding: 0.85rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        width: 100%;
    }
    .nav-links a::after { display: none; }
    .nav-links li { width: 100%; }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-cta {
        background: var(--gold) !important;
        color: var(--navy) !important;
        text-align: center;
        justify-content: center;
        display: flex !important;
        border-radius: 100px !important;
        margin-top: 0.75rem;
    }
    .mob-toggle { display: block; }

    .hero { padding: 7.5rem 0 0; flex-direction: column; justify-content: center; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-badge { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { max-width: 320px; gap: 1.6rem; margin: 2.2rem auto 0; text-align: left; }
    .hero-stat b { font-size: 1.5rem; }
    .hero-cutout {
        position: relative;
        right: auto;
        width: min(58vw, 260px);
        margin: 2.5rem auto 0;
    }
    .hero-title { font-size: clamp(2.4rem, 11.5vw, 3.2rem); margin-bottom: 2rem; }
    .hero-badge { font-size: 0.58rem; margin-bottom: 2rem; flex-wrap: wrap; }
    .hero-scroll { display: none; }

    .service-item { grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.7rem 0; }
    .service-item:hover { padding-left: 0; }
    .service-icon { display: none; }
    .service-title { font-size: 1.2rem; }
    .service-text { font-size: 0.85rem; }
    .quals { grid-template-columns: 1fr; gap: 2.2rem; }

    .marquee-track span { font-size: 1.05rem; }
    .contact-card { padding: 1.8rem; }
    .footer-top { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 1rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-logo-img { height: 56px; }
    .legal-box { padding: 2rem 1.5rem; border-radius: 16px; }
}

@media (max-width: 480px) {
    .btn { font-size: 0.82rem; padding: 0.9rem 1.7rem; }
    .btn-lg { width: 100%; justify-content: center; }
    .h2 { font-size: 2rem; }
    .h2-big { font-size: 2.6rem; }
    .section { padding: 4rem 0; }
    .about-metrics { gap: 1.8rem; }
    .metric b { font-size: 1.8rem; }
}
