:root {
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --color-accent: #20809B;
    --color-accent-light: #ddf0f6;
    --color-accent-dark: #186882;
    --color-warm: #f5f0eb;
    --color-border: #e8e5e1;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
    --header-height: 5rem;
    --content-width: 68rem;
    --section-space: clamp(3rem, 6vw, 5rem);
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ── Skip Link ─────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-surface);
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ── Header ────────────────────────────────────────── */

.header-shell {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(250, 249, 247, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header {
    background: transparent;
    border-bottom: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100% - 2rem, var(--content-width));
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0.5rem 0;
}

.logo img {
    width: min(10rem, 38vw);
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
}

/* Nav */

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-cta {
    background: var(--color-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.45rem 1.15rem !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--color-accent-dark) !important;
    color: #fff !important;
}

/* Hamburger */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    z-index: 120;
}

.menu-toggle:hover {
    border-color: var(--color-accent);
}

.menu-toggle__bar {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.18rem 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.hero img {
    width: 100%;
    max-height: 28rem;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.08) 100%);
    text-align: center;
    padding: 1.5rem;
}

.hero-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    margin: 0.6rem 0 0;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ── Quick Info Cards ──────────────────────────────── */

.section--quickinfo {
    width: min(100% - 2rem, var(--content-width));
    margin: -2.5rem auto 0;
    position: relative;
    z-index: 10;
    padding: 0;
}

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

.quickinfo-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quickinfo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.quickinfo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    margin-bottom: 0.85rem;
}

.quickinfo-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.quickinfo-card p {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Sections ──────────────────────────────────────── */

.section {
    width: min(100% - 2rem, var(--content-width));
    margin: 0 auto;
    padding: var(--section-space) 0;
}

.section h1,
.section h2,
.section h3 {
    line-height: 1.2;
}

.section h2 {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    text-align: center;
    margin: 0 0 2rem;
    color: var(--color-text);
}

.section h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.section p {
    margin: 0 0 1rem;
}

.section ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.section li {
    margin-bottom: 0.3rem;
}

/* ── Intro ─────────────────────────────────────────── */

.section--intro {
    text-align: center;
    padding-top: 2.5rem;
}

.intro-content {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--color-muted);
}

.intro-content p {
    margin-bottom: 1.25rem;
}

/* ── Angebot ───────────────────────────────────────── */

.section--offer {
    background: var(--color-warm);
    width: 100%;
    max-width: none;
    padding-inline: max(1rem, calc((100% - var(--content-width)) / 2));
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.table-wrap {
    overflow-x: auto;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    max-width: 56rem;
}

table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
}

th, td {
    padding: 0.85rem 1.15rem;
    text-align: left;
    vertical-align: top;
}

thead th {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

tbody td {
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: var(--color-accent-light);
}

.table-subheader td {
    background: #f5f3ef;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-muted);
}

.price {
    font-weight: 600;
    color: var(--color-accent-dark);
    white-space: nowrap;
}

.discount-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: min(100%, 48rem);
    margin-inline: auto;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.55;
}

.discount-note svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* ── Team ──────────────────────────────────────────── */

.section--team {
    padding-bottom: var(--section-space);
}

.team-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    max-width: 52rem;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.portrait {
    margin: 0;
}

.portrait img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.team-info h3 {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 0.2rem;
}

.team-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 1.25rem !important;
}

.team-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.team-info li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.team-info li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

.team-personal {
    font-size: 0.9rem;
    color: var(--color-muted);
    font-style: italic;
}

/* ── Standort ──────────────────────────────────────── */

.section--location {
    padding-bottom: var(--section-space);
}

.location-content {
    max-width: 48rem;
    margin: 0 auto;
    columns: 1;
}

.location-content p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.75;
}

/* ── Kontakt ───────────────────────────────────────── */

.section--contact {
    background: var(--color-warm);
    width: 100%;
    max-width: none;
    padding-inline: max(1rem, calc((100% - var(--content-width)) / 2));
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 52rem;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    font-size: 0.92rem;
    line-height: 1.55;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* ── Footer ────────────────────────────────────────── */

.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.6);
    padding: 1.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-inner p {
    margin: 0;
}

/* ── Mobile Menu + Responsive ──────────────────────── */

body.menu-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .header-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0.5rem max(1rem, calc((100% - var(--content-width)) / 2));
        min-height: var(--header-height);
    }

    .site-header,
    .header-inner {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .site-nav {
        display: block;
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    .header-shell {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 110;
        display: none;
        overflow-y: auto;
        background: #fff;
        border-top: 2px solid var(--color-accent);
    }

    .site-nav.is-open {
        display: block;
        animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 2.5rem;
        margin: 0;
    }

    .site-nav__list li {
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav__list li:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }

    .site-nav__list a {
        display: block;
        padding: 1.05rem 0;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--color-text);
        border-radius: 0;
    }

    .site-nav__list a:hover,
    .site-nav__list a:focus-visible {
        color: var(--color-accent);
    }

    .nav-cta {
        display: block !important;
        text-align: center !important;
        padding: 0.9rem 1.5rem !important;
        border-radius: var(--radius) !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        background: var(--color-accent) !important;
        color: #fff !important;
    }

    .nav-cta:hover,
    .nav-cta:focus-visible {
        background: var(--color-accent-dark) !important;
        color: #fff !important;
    }

    body.menu-open .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
    body.menu-open .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .team-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .portrait img {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* ─── Mobile card table (≤ 620px) ─────────────────── */
@media (max-width: 620px) {
    .table-wrap {
        overflow-x: visible;
        border-radius: var(--radius);
    }

    table {
        min-width: 0;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: block;
        border-bottom: 1px solid var(--color-border);
        padding: 0.6rem 0;
    }

    tbody tr:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    tbody td {
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        border-bottom: none;
        padding: 0.3rem 1rem;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        width: 4.5rem;
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--color-muted);
        padding-top: 0.15em;
    }

    tbody td:empty {
        display: none;
    }

    .table-subheader {
        display: block;
    }

    .table-subheader td {
        display: block;
        padding: 0.65rem 1rem 0.3rem;
        font-size: 0.8rem;
    }

    .table-subheader td::before {
        display: none;
    }
}

/* ─── Tablet: 2-Spalten-Grids (541–768px) ─────────── */
@media (min-width: 541px) and (max-width: 768px) {
    .section--quickinfo {
        margin-top: -1.5rem;
    }

    .quickinfo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Drittes Card zentriert allein in der zweiten Zeile */
    .quickinfo-card:last-child:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.375rem);
        margin: 0 auto;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Drittes Kontakt-Item zentriert */
    .contact-item:nth-child(3):last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.5rem);
        margin: 0 auto;
        width: 100%;
    }
}

/* ─── Kleines Handy: 1-Spalte (≤ 540px) ───────────── */
@media (max-width: 540px) {
    .section--quickinfo {
        margin-top: -1.25rem;
    }

    .quickinfo-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quickinfo-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding: 1.1rem 1.25rem;
    }

    .quickinfo-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

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

    .hero img {
        max-height: 18rem;
    }

    .team-card {
        padding: 1.25rem;
    }

    .portrait img {
        max-width: 180px;
    }

    .discount-note {
        padding: 1rem 1.25rem;
    }
}

/* ─── Sehr kleine Geräte (≤ 360px) ────────────────── */
@media (max-width: 360px) {
    .hero img {
        max-height: 13rem;
    }

    .section--quickinfo {
        margin-top: -0.75rem;
    }

    .quickinfo-card {
        padding: 0.9rem 1rem;
    }

    .team-card {
        padding: 1rem;
    }

    .contact-item {
        padding: 1.15rem 1rem;
    }
}

/* ─── Tablet-Desktop (769–1024px) ─────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .quickinfo-grid {
        gap: 0.75rem;
    }

    .quickinfo-card {
        padding: 1.25rem 1rem;
    }

    .team-card {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
}