/* ============================================================
   Anwaltskanzlei Annett Hein — Stylesheet
   Modernes, responsives Design (Mobile / Tablet / Desktop)
   ============================================================ */
/* ---------- Design Tokens ---------- */
:root {
    /* Farben: seriöses, ruhiges Anwaltsblau mit warmem Akzent */
    --color-primary: #1f3a5f;

    /* dunkles Marineblau */
    --color-primary-dark: #142942;
    --color-primary-light: #2f5580;
    --color-accent: #b08d57;

    /* gedämpftes Gold/Messing */
    --color-accent-dark: #977640;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f9;

    /* sehr helles Blaugrau */
    --color-bg-deep: #10233b;

    /* für Footer */
    --color-text: #24303f;
    --color-text-muted: #5a6b7e;
    --color-text-invert: #eef2f7;
    --color-border: #e0e6ee;
    --font-serif: "Georgia", "Times New Roman", serif;
    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(16, 35, 59, 0.08);
    --shadow-md: 0 6px 24px rgba(16, 35, 59, 0.10);
    --shadow-lg: 0 18px 50px rgba(16, 35, 59, 0.16);
    --radius: 10px;
    --radius-lg: 18px;
    --maxw: 1160px;
    --header-h: 88px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

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

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 0.6em;
}

h2.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.3em;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.4rem;
}

/* ---------- Layout Helpers ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.08rem;
}

.accent-rule {
    width: 64px;
    height: 4px;
    background: var(--color-accent);
    border: none;
    border-radius: 2px;
    margin: 1rem auto 1.6rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost-light:hover {
    background: #fff;
    color: var(--color-primary);
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow var(--transition), height var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    height: 100%;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: -6px;
    line-height: 1.1;
    font-family: var(--font-serif);
    color: var(--color-primary);
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand:hover {
    color: var(--color-primary);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-sub {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-sans);
    color: var(--color-text);
    font-size: 0.97rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links .btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.92rem;
}

.nav-links .btn::after {
    display: none;
}

/* Burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.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);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: var(--header-h);
    background: linear-gradient(115deg, rgba(16, 35, 59, 0.94) 0%, rgba(31, 58, 95, 0.82) 55%, rgba(47, 85, 128, 0.7) 100%),
    url("../images/hero.svg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Logo als dezentes Hintergrund-Element rechts im Hero (ersetzt die Waage) */
.hero-logo {
    position: absolute;
    top: 50%;
    right: clamp(24px, 8vw, 150px);
    transform: translateY(-50%);
    width: clamp(200px, 26vw, 340px);
    height: auto;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Inline-Logo zwischen Buttons und Badges – nur auf Mobil sichtbar */
.hero-logo-inline {
    display: none;
}

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

.hero .eyebrow {
    color: var(--color-accent);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    margin-bottom: 0.5rem;
}

.hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--color-text-invert);
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge {
    display: flex;
    flex-direction: column;
}

.hero-badge strong {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.hero-badge span {
    font-size: 0.85rem;
    color: var(--color-text-invert);
    letter-spacing: 0.03em;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: center;
}

.about-portrait {
    position: relative;
}

.about-portrait .portrait-frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(160deg, var(--color-primary-light), var(--color-primary-dark));
}

.about-portrait .portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    display: block;
}

.about-portrait .portrait-frame svg {
    width: 100%;
    height: 100%;
}

.about-portrait .portrait-tag {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.about-text h2 {
    text-align: left;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.about-text .accent-rule {
    margin-left: 0;
}

/* ---------- Practice Areas (Cards) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    color: var(--color-accent);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card ul {
    color: var(--color-text-muted);
    font-size: 0.97rem;
    padding-left: 1.1rem;
}

.card ul li::marker {
    color: var(--color-accent);
}

/* ---------- Werdegang (Timeline) ---------- */
.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding: 0 0 1.8rem 1.6rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-item .year {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-accent-dark);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.timeline-item .event {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1.08rem;
}

/* ---------- Beratung / Info Boxes ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.info-box {
    background: var(--color-bg);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 1.2rem;
}

.info-box p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-size: 0.98rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.pill-list li {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin: 0;
}

/* ---------- Korrespondenzanwalt ---------- */
.courts-list {
    columns: 2;
    column-gap: 2.5rem;
    max-width: 720px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.courts-list li {
    padding: 0.55rem 0 0.55rem 1.6rem;
    position: relative;
    break-inside: avoid;
    color: var(--color-text);
}

.courts-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.contact-card {
    background: var(--color-primary);
    color: var(--color-text-invert);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.contact-item .ci-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.contact-item .ci-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item a {
    color: #fff;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.15rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.97rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    width: 42px;
}

.hours-table td:last-child {
    text-align: right;
    color: var(--color-text-muted);
}

.hours-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
    line-height: 0;
}

.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg-deep);
    color: var(--color-text-invert);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-grid h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.site-footer p,
.site-footer li {
    color: rgba(238, 242, 247, 0.75);
    font-size: 0.95rem;
}

.footer-brand .brand-name {
    color: #fff;
    font-size: 1.3rem;
}

.footer-brand .brand-sub {
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: rgba(238, 242, 247, 0.8);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(238, 242, 247, 0.6);
}

.footer-bottom a {
    color: rgba(238, 242, 247, 0.75);
}

/* ---------- Legal Pages ---------- */
.legal-hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 2rem;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.legal-content {
    max-width: 820px;
}

.legal-content h2 {
    text-align: left;
    font-size: 1.4rem;
    margin-top: 2.2rem;
}

.legal-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal-content address {
    font-style: normal;
    line-height: 1.8;
}

/* ---------- FAQ (Accordion) ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 3rem 1.2rem 1.4rem;
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
    background: var(--color-bg-alt);
}

.faq-answer {
    padding: 0 1.4rem 1.3rem;
    color: var(--color-text-muted);
}

.faq-answer p {
    margin: 0;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .about-portrait {
        max-width: 360px;
        margin: 0 auto;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text .accent-rule {
        margin-left: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 0.5rem 0 1.2rem;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 24px;
        border-bottom: 1px solid var(--color-bg-alt);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links .btn {
        margin: 0.8rem 24px 0;
        display: block;
    }

    .hero {
        min-height: 88vh;
        text-align: left;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .hero-badges {
        gap: 1.2rem 1.8rem;
    }

    /* Logo im Header auf Mobil etwas kompakter */
    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: 1.02rem;
    }

    .brand-sub {
        font-size: 0.64rem;
    }

    /* Hero-Logo auf Mobil: Hintergrund-Variante aus, frei stehendes Inline-Logo an */
    .hero-logo {
        display: none;
    }

    .hero-logo-inline {
        display: block;
        width: 150px;
        height: auto;
        margin: 1.8rem auto;
        opacity: 0.85;
    }

    .courts-list {
        columns: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 1.8rem;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 18px;
    }

    .hero-badge strong {
        font-size: 1.25rem;
    }
}

.faq-hinweis {
    line-height: 1.6;
    margin-top: 20px;
}
