:root {
    --bg: #f7f3ee;
    --surface: #ffffff;
    --surface-soft: #fbf8f4;
    --ink: #231f20;
    --muted: #655d58;
    --line: #ded5cc;
    --accent: #8f1529;
    --accent-dark: #65101f;
    --accent-soft: #f4e3e1;
    --sage: #66766b;
    --gold: #b58a4a;
    --shadow: 0 18px 48px rgba(45, 34, 28, 0.12);
    --shadow-soft: 0 10px 28px rgba(45, 34, 28, 0.08);
    --max-width: 1160px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(143, 21, 41, 0.05) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, #fbf8f4 0%, var(--bg) 46%, #f2ece5 100%);
    background-size: 48px 48px, auto;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.1));
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(101, 16, 31, 0.12);
    background: rgba(251, 248, 244, 0.9);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand__logo {
    width: 74px;
    height: 46px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.brand__text strong,
.brand__text span {
    display: block;
    line-height: 1.18;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text span {
    color: var(--muted);
    font-size: 0.86rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.94rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--accent-dark);
    background: rgba(143, 21, 41, 0.08);
    outline: none;
}

.nav__cta {
    border: 1px solid transparent;
}

.nav__cta--strong {
    border-color: rgba(143, 21, 41, 0.2);
    background: #fff;
    color: var(--accent-dark) !important;
}

.hero {
    padding: clamp(1.6rem, 4vw, 3.6rem) 0 3.5rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    gap: 2rem;
    align-items: center;
}

.hero__grid--full {
    grid-template-columns: 1fr;
}

.hero__grid--image-left {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.05fr);
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.section__head h2,
.legal-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 0.98;
}

.center{
    text-align: center;
}

.hero__grid--full h1 {
    max-width: none;
}

.hero p {
    max-width: 64ch;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.hero__grid--full p {
    max-width: none;
}

.hero__actions,
.form-actions,
.map-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero__actions {
    margin-top: 1.6rem;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.82rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(143, 21, 41, 0.22);
    text-align: center;
}

.button--primary:hover,
.button--primary:focus-visible {
    background: var(--accent-dark);
}

.button--secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--accent-dark);
}

.hero__visual {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero__logo-panel {
    min-height: 270px;
    display: grid;
    place-items: center;
    padding: 1.6rem;
    background: linear-gradient(135deg, #f7f3ee, #fff);
}

.hero__grid--image-left .hero__logo-panel {
    padding: 1.6rem;
}

.hero__logo-panel img {
    width: min(100%, 360px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.hero__fact {
    min-height: 92px;
    padding: 1rem;
    border-right: 1px solid var(--line);
    background: #fff;
}

.hero__fact:last-child {
    border-right: 0;
}

.hero__fact strong,
.hero__fact span {
    display: block;
}

.hero__fact strong {
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1;
}

.hero__fact span {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.section {
    padding: 4.8rem 0;
}

.section--soft {
    background: rgba(255, 255, 255, 0.46);
    border-block: 1px solid rgba(101, 16, 31, 0.1);
}

.section__head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.45fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.6rem;
}

.section__head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
}

.section__head p,
.service-card p,
.contact-card p,
.route-card p,
.form-hint,
.legal-card p,
.legal-list {
    color: var(--muted);
    line-height: 1.7;
}

.section__head p {
    margin: 0;
}

.kanzlei-grid,
.contact__grid,
.location__grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 1.25rem;
    align-items: start;
}

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

.profile-panel,
.contact-card,
.route-card,
.map-card,
.service-card,
.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.profile-panel {
    padding: 1.3rem;
}

.profile-panel__logo {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--accent);
}

.profile-panel__logo img {
    border-radius: var(--radius);
}

.profile-panel__body {
    padding-top: 1.1rem;
}

.profile-panel h3,
.contact-card h3,
.route-card h3 {
    margin: 0 0 0.55rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.profile-panel p,
.contact-card p,
.route-card p,
.service-card p {
    margin: 0;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.principle {
    min-height: 190px;
    padding: 1.25rem;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.principle strong {
    display: block;
    margin-bottom: 0.55rem;
}

.principle p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    min-height: 250px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
}

.contact-card,
.route-card {
    padding: 1.35rem;
}

.contact-list,
.route-list,
.legal-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li,
.route-list li {
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.contact-list strong,
.contact-list span,
.route-list strong,
.route-list span {
    display: block;
}

.contact-list span,
.route-list span {
    margin-top: 0.2rem;
    color: var(--muted);
    line-height: 1.55;
}

.contact-card__button {
    display: flex;
    width: fit-content;
    margin: 1.2rem auto 0;
}

.contact-note {
    max-width: 78ch;
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
}

.blocksatz {
    text-align: justify;
    font-size: larger;
}

.location {
    padding-bottom: 5.8rem;
}

.location__grid {
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
}

.map-card {
    overflow: hidden;
}

.map-container {
    position: relative;
    min-height: 420px;
    background:
        linear-gradient(135deg, rgba(143, 21, 41, 0.12), rgba(102, 118, 107, 0.12)),
        repeating-linear-gradient(45deg, rgba(101, 93, 88, 0.11) 0 1px, transparent 1px 18px);
}

.map-placeholder,
.map-frame {
    position: absolute;
    inset: 0;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.map-container.is-loaded .map-frame {
    opacity: 1;
    pointer-events: auto;
}

.map-container.is-loaded .map-placeholder {
    display: none;
}

.map-placeholder {
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.map-consent {
    width: min(520px, 100%);
    padding: 1.35rem;
    border: 1px solid rgba(143, 21, 41, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.map-consent h3 {
    margin: 0 0 0.6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.map-consent p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.map-consent a,
.legal-link {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map-actions {
    margin-top: 1rem;
}

.footer {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.45rem 0 2.2rem;
    border-top: 1px solid rgba(101, 16, 31, 0.14);
}

.footer__link {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: var(--accent-dark);
    font-weight: 700;
}

.footer__link:hover,
.footer__link:focus-visible {
    text-decoration: underline;
}

.legal-page {
    padding: 3.5rem 0 5.5rem;
}

.legal-hero {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
}

.legal-hero p {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.legal-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.legal-card {
    min-height: 100%;
    padding: 1.35rem;
}

.legal-card--highlight {
    border-color: rgba(143, 21, 41, 0.2);
    background:
        linear-gradient(135deg, rgba(244, 227, 225, 0.92), rgba(255, 255, 255, 0.96) 58%),
        var(--surface);
}

.legal-card--wide {
    grid-column: 1 / -1;
}

.legal-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.legal-card p {
    margin: 0.55rem 0 0;
}

.legal-card a {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    overflow-wrap: anywhere;
}

.legal-list {
    margin-top: 0;
}

.legal-list li {
    min-width: 0;
}

.legal-list--boxed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.legal-list--boxed li {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.legal-list--boxed strong,
.legal-list--boxed a {
    display: block;
}

.legal-list--boxed a {
    margin-top: 0.45rem;
}

.legal-list strong {
    color: var(--ink);
}

@media (max-width: 1024px) {
    .hero__grid,
    .kanzlei-grid,
    .contact__grid,
    .location__grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-list--boxed {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--max-width), calc(100% - 1.15rem));
    }

    .site-header {
        position: static;
    }

    .site-header__inner {
        align-items: flex-start;
        padding: 0.9rem 0;
    }

    .site-header__inner,
    .section__head,
    .footer__inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .brand__logo {
        width: 64px;
        height: 40px;
    }

    .nav {
        justify-content: flex-start;
    }

    .nav a {
        min-height: 38px;
        padding: 0.5rem 0.62rem;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 2.4rem;
    }

    .hero h1 {
        max-width: 100%;
    }

    .hero__facts,
    .service-grid,
    .principles {
        grid-template-columns: 1fr;
    }

    .hero__fact {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero__fact:last-child {
        border-bottom: 0;
    }

    .map-container {
        min-height: 460px;
    }
}
