/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: #0a0c0f;
    color: #e8e0cc;
    overflow-x: hidden;
    position: relative;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === TOKENS === */
:root {
    --gold: #C9A84C;
    --gold-light: #E8C96A;
    --gold-dark: #8B6914;
    --seal-red: #7A2323;
    --seal-red-light: #A33636;
    --blue: #1a2744;
    --blue-mid: #243660;
    --blue-light: #2e4a8a;
    --dark: #0a0c0f;
    --dark-mid: #111418;
    --dark-card: #151a24;
    --text: #e8e0cc;
    --text-muted: #8a8070;
    --radius: 4px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === AMBIENT GUILLOCHE TEXTURE (engraved-document feel) === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        135deg,
        var(--gold) 0px,
        var(--gold) 1px,
        transparent 1px,
        transparent 26px
    ), repeating-linear-gradient(
        45deg,
        var(--gold) 0px,
        var(--gold) 1px,
        transparent 1px,
        transparent 26px
    );
    mix-blend-mode: overlay;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* === SEAL / CREST SIGNATURE ELEMENT === */
.seal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.12), 0 0 0 5px rgba(201,168,76,0.35);
}
.seal::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(201,168,76,0.5);
    border-radius: 50%;
}
.seal-crest {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.25));
}

/* Corner brackets — authoritative document framing */
.bracketed {
    position: relative;
}
.bracketed::before,
.bracketed::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--gold);
    opacity: 0.55;
    transition: var(--transition);
}
.bracketed::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bracketed::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.bracketed:hover::before,
.bracketed:hover::after { opacity: 1; width: 18px; height: 18px; }

/* === NAVBAR === */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2rem;
    transition: var(--transition);
    background: transparent;
}
#navbar.scrolled {
    background: rgba(10, 12, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    margin-right: auto;
}
.nav-logo img.nav-crest {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(201,168,76,0.25));
}
.nav-logo-text { display: flex; flex-direction: column; }
.logo-kreis {
    font-family: 'Fraunces', serif;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    font-weight: 400;
}
.logo-lindenberg {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--text);
    font-weight: 600;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}
.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.15rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-socials {
    display: flex;
    gap: 0.5rem;
}
.social-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { color: var(--gold); border-color: var(--gold); background: rgba(201, 168, 76, 0.08); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-slider {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.05);
    animation: kenburns 8s ease forwards;
}
.hero-slide.active {
    opacity: 1;
}
@keyframes kenburns {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 12, 15, 0.85) 0%,
        rgba(26, 39, 68, 0.6) 50%,
        rgba(10, 12, 15, 0.75) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}
.hero-badge-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; animation: fadeUp 0.8s ease both; }
.hero-seal {
    width: 46px; height: 46px;
    flex-shrink: 0;
    animation: sealSpin 1.1s ease both;
}
@keyframes sealSpin {
    from { opacity: 0; transform: rotate(-45deg) scale(0.6); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}
.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 0.35rem 1rem;
    border-radius: 2px;
}
.hero-title {
    display: flex;
    flex-direction: column;
    font-family: 'Fraunces', serif;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}
.hero-title-kreis {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--gold);
    animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title-lindenberg {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text);
    animation: fadeUp 0.8s 0.2s ease both;
}
.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(232, 224, 204, 0.7);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s ease both;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: #0a0c0f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid var(--gold);
}
.btn-primary svg { width: 14px; height: 14px; }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.btn-secondary svg { width: 16px; height: 16px; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--gold);
    transition: var(--transition);
}
.btn-outline:hover { background: var(--gold); color: #0a0c0f; }
.hero-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
    animation: fadeUp 0.8s 0.5s ease both;
}
.dot {
    width: 24px; height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--gold); width: 40px; }
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: fadeUp 0.8s 0.8s ease both;
}
.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* === SECTIONS === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 24px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}
.section-eyebrow::after { background: linear-gradient(to left, transparent, var(--gold)); }
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* === FEATURES === */
.features {
    padding: 8rem 0;
    background: var(--dark-mid);
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.3), transparent);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
}
.feature-card:hover { border-color: rgba(201, 168, 76, 0.3); transform: translateY(-4px); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.feature-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* === GALLERY === */
.gallery {
    padding: 8rem 0;
    background: var(--dark);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,12,15,0.6), transparent);
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* === CTA === */
.cta {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: var(--blue);
}
.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(46, 74, 138, 0.3) 0%, transparent 60%);
}
.cta-content {
    position: relative;
    text-align: center;
}
.cta-content h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}
.cta-content p {
    font-size: 1.1rem;
    color: rgba(232, 224, 204, 0.7);
    margin-bottom: 3rem;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
footer {
    background: #060709;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 4rem 0 2rem;
    position: relative;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand-row { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand-row img { height: 32px; width: 32px; object-fit: contain; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; max-width: 260px; line-height: 1.6; }
.footer-logo { margin-bottom: 0.5rem; }
.footer-links h4, .footer-social h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-socials { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-socials .social-btn { width: auto; justify-content: flex-start; padding: 0.5rem 1rem; font-size: 0.8rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === PAGE HERO (shared across sub-pages) === */
.page-hero {
    position: relative;
    padding: 10rem 0 5rem;
    background: linear-gradient(to bottom, var(--blue) 0%, var(--dark) 100%);
    text-align: center;
    overflow: hidden;
}
.page-hero-seal {
    width: 64px; height: 64px;
    margin: 0 auto 1.5rem;
    animation: sealSpin 0.9s ease both;
}
.page-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: min(90%, 640px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.5), transparent);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   TEAM PAGE — "Dienstakte" (personnel-file) treatment
   ============================================================ */
.team-section { padding: 6rem 0 8rem; position: relative; }
.team-intro {
    max-width: 620px;
    margin: 0 auto 5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.team-category { margin-bottom: 4.5rem; }
.team-category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}
.team-rank-mark {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--tier-color, var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.team-rank-mark::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px dashed var(--tier-color, var(--gold));
    border-radius: 50%;
    opacity: 0.5;
}
.team-rank-mark span {
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tier-color, var(--gold));
}
.team-category-title {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}
.team-category-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}
.team-category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(201, 168, 76, 0.3), transparent);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}
.team-card {
    --tier-color: var(--gold);
    background: var(--dark-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-left: 3px solid var(--tier-color);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 90px; height: 90px;
    background: radial-gradient(circle at top right, var(--tier-color) 0%, transparent 70%);
    opacity: 0.08;
    transition: var(--transition);
}
.team-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5);
}
.team-card:hover::before { opacity: 0.18; }
.team-avatar {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tier-color);
    border: 2px solid var(--tier-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.team-card-body { min-width: 0; flex: 1; }
.team-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-role {
    font-size: 0.72rem;
    color: var(--tier-color);
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.team-stripes { display: flex; gap: 3px; }
.team-stripes span {
    width: 14px; height: 3px;
    background: var(--tier-color);
    border-radius: 1px;
    opacity: 0.85;
}
.team-card.placeholder {
    border-style: dashed;
    border-left-style: solid;
    opacity: 0.6;
}
.team-card.placeholder .team-avatar { color: var(--text-muted); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links, .nav-socials { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(10, 12, 15, 0.98);
        padding: 2rem;
        gap: 0.5rem;
        backdrop-filter: blur(12px);
    }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.large { grid-column: span 2; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title-lindenberg { font-size: 3rem; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
