/* ── Schrift lokal ── */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/ebgaramond-regular-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/ebgaramond-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Tokens ── */
:root {
    --bg:         #f9f7f4;
    --text:       #1a1715;
    --muted:      #7a6f68;
    --accent:     #3a5568;
    --rule:       #ddd8d2;
    --link:       #3a5568;
    --link-hover: #22374a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:         #1e1b18;
        --text:       #ccc6be;
        --muted:      #9e9189;
        --accent:     #7da4c0;
        --rule:       #3a342e;
        --link:       #7da4c0;
        --link-hover: #a3c3d8;
    }
}

:root[data-theme="dark"] {
    --bg:         #1e1b18;
    --text:       #ccc6be;
    --muted:      #9e9189;
    --accent:     #7da4c0;
    --rule:       #3a342e;
    --link:       #7da4c0;
    --link-hover: #a3c3d8;
}

:root[data-theme="light"] {
    --bg:         #f9f7f4;
    --text:       #1a1715;
    --muted:      #7a6f68;
    --accent:     #3a5568;
    --rule:       #ddd8d2;
    --link:       #3a5568;
    --link-hover: #22374a;
}

/* ── Basis ── */
html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    line-height: 1.85;
    transition: background 0.2s, color 0.2s;
}

/* ── Hauptcontainer ── */
.wrap {
    max-width: 720px;
    width: 100%;
}

/* ── Kopf ── */
.firm-header {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule);
}

.logo-banner {
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .logo-banner img {
        width: 90% !important;
    }
}

/* ── Navigation ── */
.site-nav {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0;
    align-items: center;
}

.site-nav li {
    display: flex;
    align-items: center;
}

.site-nav li + li::before {
    content: '|';
    color: var(--rule);
    margin: 0 0.65em;
    font-size: 0.9rem;
    line-height: 1;
}

.site-nav a {
    font-size: 1.0rem;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: var(--link);
    text-decoration: none;
    transition: color 0.15s;
}

.site-nav a:hover {
    color: var(--link-hover);
}

.site-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Abschnitte ── */
.section {
    margin-bottom: 2.75rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 400;
    font-variant: small-caps;
    color: #b07d3a;
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
}

/* ── Fliesstext ── */
.prose {
    font-size: 1.15rem;
    line-height: 2.0;
    text-align: justify;
    color: var(--text);
    hyphens: auto;
}

/* ── Em-Dash-Liste ── */
.em-list {
    list-style: none;
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.em-list li {
    font-size: 1.15rem;
    line-height: 2.0;
    padding-left: 1.4em;
    text-indent: -1.4em;
}

.em-list li::before {
    content: '\2014\00a0';
    color: var(--accent);
}

/* ── Adresse ── */
address {
    font-style: normal;
    font-size: 1.15rem;
    line-height: 2.0;
}

.uid {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ── Kontaktzeilen ── */
.contact-lines {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-line {
    font-size: 1.15rem;
    line-height: 2.0;
}

.contact-line .cl-label {
    color: var(--muted);
}

.contact-line .cl-dash {
    color: var(--rule);
    margin: 0 0.45em;
    user-select: none;
}

.contact-line a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.contact-line a:hover {
    border-color: var(--link-hover);
    color: var(--link-hover);
}

.contact-line a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: transparent;
}

.contact-line .plain {
    color: var(--muted);
}

/* ── Kontakt-Tabelle ── */
.kontakt-tabelle {
    border-collapse: collapse;
    margin-top: 1.25rem;
    font-size: 1.15rem;
    line-height: 1.9;
}

.kontakt-tabelle td {
    padding: 0 0 0.1rem 0;
    vertical-align: baseline;
}

.kontakt-tabelle td:first-child {
    width: 80px;
    color: var(--muted);
    padding-right: 1.25rem;
    white-space: nowrap;
}

.kontakt-tabelle a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.kontakt-tabelle a:hover {
    border-color: var(--link-hover);
    color: var(--link-hover);
}

.kontakt-tabelle a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: transparent;
}

/* ── Erreichbarkeit ── */
.hours-grid {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.3rem 0;
    font-size: 1.15rem;
    line-height: 2.0;
    font-variant-numeric: tabular-nums;
}

.hg-day {
    color: var(--muted);
}

.hg-time {
    color: var(--text);
}

/* ── Footer ── */
footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    html { font-size: 16px; }

    body { padding: 2.5rem 1.5rem; }

    h1 {
        font-size: 2rem;
        white-space: normal;
    }

    .hours-grid {
        grid-template-columns: 7rem 1fr;
    }

    .site-nav ul {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-line a { transition: none; }
    .site-nav a     { transition: none; }
}
