:root {
    --ink: #1a2332;
    --ink-soft: #2c3a4f;
    --muted: #5b6470;
    --line: #e3ded5;
    --bg: #ffffff;
    --bg-alt: #f5f3ef;
    --accent: #b08d57;
    --accent-dark: #8f6f3f;
    --max: 1140px;
    --radius: 10px;
    --shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
    --serif: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
    display: inline-block; padding: 14px 30px; border-radius: 50px; font-weight: 600;
    font-size: .95rem; letter-spacing: .01em; cursor: pointer; transition: all .2s ease;
    border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; transform: translateY(-1px); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.primary-nav .nav-list { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: 10px 14px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; border-radius: 6px; }
.nav-link:hover { color: var(--accent-dark); text-decoration: none; background: var(--bg-alt); }
.nav-link.is-active { color: var(--accent-dark); }
.nav-cta { display: inline-block; margin-left: 8px; padding: 10px 20px; background: var(--ink); color: #fff; border-radius: 50px; font-weight: 600; font-size: .9rem; }
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: #12161c; color: #fff; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 520px at 88% -5%, rgba(176,141,87,.20), transparent 58%),
        linear-gradient(155deg, #10141a 0%, #1a2029 52%, #141922 100%);
}
/* Feine vertikale Struktur (Säulen-Anmutung) + oberer Akzent */
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 84px);
    mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.hero-bg::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 60%);
    z-index: 3;
}

/* Hero mit Foto-Hintergrund */
.hero.has-photo .hero-bg {
    background-size: cover;
    background-position: center right;
    transform: scaleX(-1);
}
.hero.has-photo .hero-bg::before { opacity: .5; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(15,19,25,.95) 0%, rgba(15,19,25,.82) 42%, rgba(15,19,25,.45) 72%, rgba(15,19,25,.30) 100%),
        linear-gradient(0deg, rgba(15,19,25,.55), transparent 45%);
}
@media (max-width: 720px) {
    /* Foto als eigenes Band oben, Text darunter auf dunklem Grund */
    .hero.has-photo .hero-bg {
        position: relative;
        height: 260px;
        background-position: center 18%;
    }
    .hero.has-photo .hero-bg::before { display: none; }
    .hero.has-photo .hero-overlay {
        top: 0; height: 260px; bottom: auto;
        background: linear-gradient(180deg, rgba(15,19,25,.10) 0%, rgba(15,19,25,.30) 55%, #12161c 100%);
    }
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; padding: 96px 0 104px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 .2em; }
.hero-subtitle { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); color: #e7dfd2; margin: 0 0 24px; font-weight: 500; }
.hero-intro { font-size: 1.1rem; color: #c9d0da; max-width: 620px; margin: 0 0 34px; }

/* Sections */
.section { padding: 80px 0; }
.section-alt, .section-langs { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; color: var(--accent-dark); font-weight: 600; margin: 0 0 12px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-lead { color: var(--muted); font-size: 1.08rem; }
.mt-xl { margin-top: 2.5rem; }

/* Practice areas */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; }
@media (max-width: 780px) { .area-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; } }
@media (max-width: 520px) { .area-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; } }
.area-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area-card.is-focus { border-color: var(--accent); border-top: 3px solid var(--accent); }
.area-badge { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dark); font-weight: 700; margin-bottom: 10px; }
.area-title { font-size: 1.35rem; margin: 0 0 .3em; overflow-wrap: break-word; hyphens: auto; }
.area-desc { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 520px) {
    .area-card { padding: 20px 18px; }
    .area-title { font-size: 1.2rem; }
}

.areas-subhead { margin: 48px 0 18px; font-size: 1.5rem; color: var(--ink); }
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.area-list li {
    background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 9px 20px;
    font-size: .95rem; color: var(--ink-soft); max-width: 100%; overflow-wrap: break-word;
}

/* Languages */
.lang-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.lang-chip {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 28px;
    font-weight: 600; color: var(--ink); font-size: 1.05rem;
}

/* CTA */
.section-cta { background: var(--ink); color: #fff; text-align: center; }
.cta-inner { max-width: 640px; }
.cta-title { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-text { color: #c9d0da; margin: 0 0 28px; }

/* Page head */
.page-head { background: var(--bg-alt); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }
.page-lead { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; max-width: 640px; }

/* Rich text */
.rich-text { font-size: 1.06rem; }
.rich-text h2 { margin-top: 1.6em; font-size: 1.6rem; }
.rich-text h3 { margin-top: 1.4em; font-size: 1.3rem; }
.rich-text p { margin: 0 0 1.1em; }
.rich-text ul { padding-left: 1.2em; }

/* About intro with portrait */
.about-intro.has-portrait { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.about-portrait { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 640px) {
    .about-intro.has-portrait { grid-template-columns: 1fr; }
    .about-portrait { max-width: 240px; }
}

/* Timeline */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 30px 28px; }
.timeline-item::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; }
.timeline-year { display: block; font-weight: 700; color: var(--accent-dark); font-size: .9rem; margin-bottom: 4px; }
.timeline-text { margin: 0; color: var(--ink-soft); }

/* Team */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.member-card { text-align: center; }
.member-photo { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4/5; margin-bottom: 16px; border: 1px solid var(--line); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 1.3rem; margin: 0 0 .15em; }
.member-role { color: var(--accent-dark); font-weight: 600; margin: 0 0 .4em; font-size: .95rem; }
.member-bio { color: var(--muted); font-size: .92rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-heading { font-size: 1.5rem; margin: 0 0 .6em; }
.contact-heading + * { margin-top: 0; }
.contact-subheading { font-size: 1.1rem; margin: 1.4em 0 .3em; color: var(--ink); }
.contact-address { font-style: normal; font-size: 1.08rem; margin: 0 0 20px; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 10px; }
.contact-list dt { font-weight: 600; color: var(--ink); }
.contact-list dd { margin: 0; }
.garage-list { padding-left: 1.1em; margin: .3em 0; }
.garage-list li { margin-bottom: 6px; }
.muted { color: var(--muted); font-weight: 400; }
.map-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius); }
.map-link { display: inline-block; margin-top: 10px; font-size: .9rem; }

/* Legal */
.legal-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 32px; }
.legal-card p { margin: 0; }

.empty-note { color: var(--muted); }

/* Umsetzung-Credit-Boxen (im Stil der Startseiten-Karten) */
.credit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.credit-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; text-align: center; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.credit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.credit-logo { display: flex; align-items: center; justify-content: center; width: 100px; height: 34px; margin-bottom: 12px; }
.credit-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: .85; }
.credit-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--accent); letter-spacing: .01em; }
.credit-domain { font-size: .92rem; color: var(--accent-dark); }
@media (max-width: 520px) { .credit-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #c9d0da; padding: 64px 0 0; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: #fff; font-weight: 700; display: block; }
.footer-sub { display: block; margin-top: 2px; }
.footer-tagline { margin: 14px 0 0; font-size: .95rem; max-width: 320px; }
.footer-heading { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; }
.footer-address { font-style: normal; line-height: 1.9; }
.footer-address a, .footer-links a { color: #c9d0da; }
.footer-address a:hover, .footer-links a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 26px; font-size: .85rem; color: #8b95a3; }

/* Responsive */
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow);
    }
    .primary-nav.is-open { transform: translateY(0); }
    .primary-nav .nav-list { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
    .nav-link, .nav-cta { display: block; padding: 14px 12px; text-align: left; border-radius: 8px; }
    .nav-cta { margin: 8px 0 0; text-align: center; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 60px 0; }
    .hero-inner { padding: 72px 0 80px; }
    .hero.has-photo .hero-inner { padding: 30px 0 56px; }
}
@media (max-width: 480px) {
    .brand-sub { display: none; }
    .brand-name { font-size: 1.15rem; }
    .brand-mark { height: 34px; }
    .header-inner { gap: 12px; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1.25rem; }
}
