/* === Variablen === */
:root {
    --color-primary: #3F5448;
    --color-primary-dark: #2E3F35;
    --color-primary-darker: #2A3A31;
    --color-gradient-start: #374C40;
    --color-cta-gradient-start: #34483D;
    --color-accent: #F2644B;
    /* Dunklere Variante der Akzentfarbe für kleinen Text auf hellem Grund (Kontrast über 4,5:1) */
    --color-accent-text: #B93A21;
    --color-light: #FDFDFD;
    --color-white: #FFFFFF;
    --color-background: #F1F5F0;
    --color-background-alt: #E3EAE4;
    --color-text: #25302A;
    --color-text-muted: #56655C;
    --color-text-on-dark: #E4EBE6;
    --color-footer-text: #D3DDD6;
    --color-border: #C3CEC6;
    --color-gold: #B8975A;
    --color-gold-light: #D9C08A;
    --font-family-base: "Avenir Next", "Century Gothic", "Futura", "Montserrat", "Segoe UI", Arial, sans-serif;
}

/* === Basis === */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.7;
    font-size: 1.0625rem;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 .55em;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: -.01em;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

h3 {
    font-size: 1.2rem;
    letter-spacing: 0;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .76rem;
    font-weight: 700;
    color: var(--color-accent-text);
    margin-bottom: .9em;
}

p,
ul,
ol {
    margin: 0 0 .9em;
    max-width: 64ch;
}

ul,
ol {
    padding-left: 1.3em;
}

li {
    margin-bottom: .4em;
}

/* Muss auch display-Angaben wie die von .btn schlagen, sonst bleiben versteckte Elemente sichtbar */
[hidden] {
    display: none !important;
}

/* === Layout === */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 64px 0;
}

section h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin-top: .55em;
}

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

.section--dark {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-primary-darker));
    color: var(--color-light);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-light);
}

.section--dark p {
    color: var(--color-text-on-dark);
}

.section--dark .eyebrow {
    color: var(--color-gold-light);
}

.section--cta {
    background: linear-gradient(135deg, var(--color-cta-gradient-start), var(--color-primary-darker));
    border-top: 1px solid var(--color-gold);
    color: var(--color-light);
    text-align: center;
}

.section--cta h2 {
    color: var(--color-light);
}

.section--cta h2::after {
    margin-left: auto;
    margin-right: auto;
}

.section--cta p {
    margin: 0 auto 1.6em;
    color: var(--color-text-on-dark);
}

.section--cta .eyebrow {
    color: var(--color-gold-light);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split--top {
    align-items: start;
}

/* === Kopfbereich & Navigation === */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--color-light);
    color: var(--color-primary);
    padding: .6em 1.1em;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    left: 12px;
}

main {
    scroll-margin-top: 96px;
}

main:focus {
    outline: none;
}

.notice {
    background: var(--color-accent);
    color: var(--color-white);
    text-align: center;
    padding: .55rem 1rem;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
}

header {
    background: rgba(253, 253, 253, .94);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--color-accent);
    box-shadow: 0 1px 0 var(--color-gold);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.header-bar img {
    height: 56px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    max-width: none;
}

nav li {
    margin: 0;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
    white-space: nowrap;
}

nav a.btn {
    padding: .55em 1.35em;
    line-height: 1.5;
}

nav a:not(.btn) {
    color: var(--color-primary);
}

nav a:not(.btn):hover,
nav a:not(.btn)[aria-current] {
    color: var(--color-accent-text);
}

.menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    padding: .4em .8em;
    font: inherit;
    font-weight: 600;
}

/* === Buttons === */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    padding: .85em 1.7em;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    letter-spacing: .02em;
    transition: transform .15s, box-shadow .15s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(242, 100, 75, .35);
}

.btn.btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--color-light);
}

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

.btn--small {
    padding: .3em 1em;
}

button.btn {
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

/* === Hero & Seitenkopf === */
.hero,
.page-intro {
    background: radial-gradient(900px 420px at 88% -10%, rgba(217, 192, 138, .2), transparent 60%), linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
    color: var(--color-light);
}

.hero {
    overflow: hidden;
}

.hero h1,
.page-intro h1 {
    color: var(--color-light);
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-on-dark);
}

.hero .eyebrow,
.page-intro .eyebrow {
    color: var(--color-gold-light);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 68px;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.page-intro .wrap {
    padding-top: 46px;
    padding-bottom: 50px;
}

.page-intro h1 {
    margin-bottom: .4em;
}

.page-intro p {
    color: var(--color-text-on-dark);
    font-size: 1.12rem;
    margin: 0;
}

/* === Komponenten === */
figure.photo {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-primary-dark);
    position: relative;
    box-shadow: 0 24px 50px rgba(30, 45, 38, .22);
}

.hero figure.photo {
    box-shadow: 16px 16px 0 var(--color-gold);
}

figure.photo.photo--wide {
    aspect-ratio: 4/3;
}
figure.photo.photo--square {
    aspect-ratio: 1/1;
}
figure.photo.photo--square img {
    object-position: 38% 50%;
}
@media (max-width: 860px) {
    figure.photo.photo--square {
        aspect-ratio: 4/3;
    }
}

figure.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figure.photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 18px 14px;
    color: var(--color-white);
    font-size: .88rem;
    background: linear-gradient(transparent, rgba(20, 30, 24, .7));
}

figure.photo::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(217, 192, 138, .7);
    border-radius: 14px;
    pointer-events: none;
}

.card {
    background: var(--color-light);
    border-radius: 18px;
    padding: 26px;
    border-top: 3px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(30, 45, 38, .07);
}

.card.card--highlight {
    border-top-color: var(--color-accent);
}

.card h2,
.card h3 {
    margin-bottom: .4em;
}

.card h2 {
    font-size: 1.2rem;
    letter-spacing: 0;
}

.card h2::after {
    display: none;
}

.card p {
    margin-bottom: .7em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 1.6rem;
}

.info-box {
    border-left: 6px solid var(--color-accent);
    padding: 20px 28px;
    max-width: 800px;
    background: var(--color-light);
    border-radius: 0 14px 14px 0;
}

.info-box h2 {
    font-size: 1.3rem;
    margin-bottom: .4em;
}

.info-box h2::after,
.legal h2::after {
    display: none;
}

.info-box p {
    margin: 0;
}

.info-box p + p {
    margin-top: .7em;
}

.steps {
    list-style: none;
    padding: 0;
    counter-reset: s;
    max-width: 720px;
}

.steps li {
    counter-increment: s;
    padding: 0 0 18px 58px;
    position: relative;
    margin: 0;
}

.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist {
    list-style: none;
    padding: 0;
    max-width: 720px;
}

.checklist li {
    padding: .65em 0 .65em 26px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    margin: 0;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 430px;
}

th,
td {
    text-align: left;
    padding: .55em 0;
    border-bottom: 1px solid var(--color-border);
    font-weight: 400;
}

th {
    color: var(--color-text-muted);
}

td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hours-closed td {
    color: var(--color-text-muted);
}

details {
    border-bottom: 1px solid var(--color-border);
    max-width: 760px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    padding: .9em 0;
}

details[open] summary {
    padding-bottom: .35em;
}

details p {
    margin: 0 0 1em;
}

.service-list {
    margin-top: 1.6rem;
}

.service-row {
    display: grid;
    grid-template-columns: 90px 1fr 1.5fr;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(184, 151, 90, .55);
    align-items: start;
}

.service-row .service-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
}

.service-row h3 {
    margin: 0;
    font-size: 1.35rem;
}

.service-row p {
    margin: 0;
}

@media (min-width: 861px) {
    .service-list--stacked .service-row {
        grid-template-columns: 64px 1fr;
        gap: 6px 20px;
        padding: 24px 0;
    }

    .service-list--stacked .service-row .service-number {
        grid-row: 1 / span 2;
    }

    .service-list--stacked .service-row p {
        grid-column: 2;
    }
}

.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 2.4rem;
}

.principles div {
    border-top: 1px solid var(--color-gold);
    padding-top: 18px;
}

.principles b {
    display: block;
    color: var(--color-gold-light);
    font-size: 1.8rem;
    font-weight: 300;
}

.principles h3 {
    font-size: 1.1rem;
    margin: .3em 0;
}

.principles p {
    font-size: .95rem;
}

.legal h2 {
    font-size: 1.25rem;
    margin-top: 1.8em;
}

/* === Karussell === */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(30, 45, 38, .22);
    margin-top: 2rem;
    background: var(--color-primary-dark);
}

.carousel-track {
    display: flex;
    transition: transform .8s cubic-bezier(.65, 0, .35, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    margin: 0;
    aspect-ratio: 16/9;
    position: relative;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 40px 24px 18px;
    color: var(--color-white);
    width: 100%;
    background: linear-gradient(transparent, rgba(20, 30, 24, .65));
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--color-gold-light);
    background: rgba(30, 45, 38, .55);
    color: var(--color-white);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
}

.carousel .carousel-toggle {
    top: 14px;
    right: 14px;
    left: auto;
    transform: none;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-toggle::before {
    content: "";
    display: block;
    width: 9px;
    height: 12px;
    border-left: 3px solid var(--color-white);
    border-right: 3px solid var(--color-white);
}

.carousel-toggle.is-paused::before {
    width: 0;
    height: 0;
    border-left: 10px solid var(--color-white);
    border-right: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 3px;
}

.carousel-prev {
    left: 14px;
}

.carousel-next {
    right: 14px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--color-gold-light);
}

/* === Karte === */
.map-container {
    border-radius: 18px;
    overflow: hidden;
    background: repeating-linear-gradient(0deg, rgba(253, 253, 253, .07) 0 1px, transparent 1px 38px), repeating-linear-gradient(90deg, rgba(253, 253, 253, .07) 0 1px, transparent 1px 38px), linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    position: relative;
}

.map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-container p {
    margin: 0 auto 1em;
    font-size: .92rem;
    color: var(--color-text-on-dark);
}

.map-pin {
    display: block;
    margin: 0 auto 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--color-accent);
    position: relative;
}

.map-pin::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: var(--color-white);
}

.map-note {
    margin-top: 1rem;
    font-size: .88rem;
}

.map-note a {
    color: var(--color-gold-light);
}

/* === Fußbereich === */
footer {
    background: var(--color-primary-dark);
    color: var(--color-footer-text);
    padding: 38px 0;
    font-size: .95rem;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* === Hilfsklassen === */
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.img-pos-y-30 { object-position: 50% 30%; }
.img-pos-y-55 { object-position: 50% 55%; }
.img-pos-y-60 { object-position: 50% 60%; }
.hours-heading { margin-top: 2rem; }
.hours-intro { margin-bottom: .4em; }
.actions--tight { margin-top: 1.4rem; }
.note-muted { margin-top: 1em; color: var(--color-text-muted); font-size: .95rem; }
.figure-note { margin-top: 1rem; font-size: .92rem; color: var(--color-text-muted); }
.service-duration { font-weight: 400; color: var(--color-text-muted); }
.section--dark .statement-heading { max-width: 20ch; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--color-white); }
.principles-closing { margin-top: 2.4rem; max-width: 62ch; }
.card .download-note { margin: 0; }
.map-reset-status { display: block; margin-top: .6em; }

/* === Navigation auf Tablets und Handys === */
@media (max-width: 1040px) {
    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-light);
        border-bottom: 3px solid var(--color-accent);
        box-shadow: 0 16px 24px rgba(30, 45, 38, .12);
        padding: 12px 24px 20px;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    nav a.btn {
        padding: .65em 1.5em;
    }
}

/* === Mobil === */
/* 860px ist der Umbruchpunkt für den Seitenaufbau, die Navigation klappt schon bei 1040px ein */
@media (max-width: 860px) {
    .hero .wrap,
    .split,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid--3 {
        grid-template-columns: 1fr;
    }

    .hero .wrap {
        padding-top: 36px;
        padding-bottom: 44px;
        gap: 26px;
    }

    .split {
        gap: 26px;
    }

    .card-grid {
        gap: 16px;
        margin-top: 1.2rem;
    }

    .card {
        padding: 22px;
    }

    .hero figure.photo {
        box-shadow: 9px 9px 0 var(--color-gold);
        margin-right: 10px;
    }

    figure.photo {
        aspect-ratio: 4/3;
    }

    .header-bar img {
        height: 44px;
    }

    section {
        padding: 42px 0;
    }

    .page-intro .wrap {
        padding-top: 34px;
        padding-bottom: 36px;
    }

    h2 {
        margin-bottom: .45em;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .carousel-slide {
        aspect-ratio: 4/5;
    }
}

/* === Reduzierte Bewegung === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }

    .carousel-track {
        transition: none;
    }
}

/* Ergänzungen Textfassung */
.info-box h3{font-size:1.3rem;margin-bottom:.4em}
.info-box--spaced{margin-top:1.6rem}
.map-compact .map-placeholder>p:first-of-type{display:none}
.badge { display: inline-block; margin-bottom: .6em; padding: .15em .8em; border: 1px solid var(--color-accent-text); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-text); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .card-grid--2 { grid-template-columns: 1fr; } }

/* === Druck === */
@media print {
    .notice,
    .menu-btn,
    nav,
    .carousel,
    .map-container,
    .section--cta,
    .skip-link {
        display: none !important;
    }

    header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #999;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .hero,
    .page-intro,
    .section--alt,
    .section--dark,
    footer {
        background: none !important;
        color: #000 !important;
    }

    .hero h1,
    .hero p,
    .page-intro h1,
    .page-intro p,
    .section--dark h2,
    .section--dark h3,
    .section--dark p,
    .eyebrow {
        color: #000 !important;
    }

    .hero figure.photo {
        display: none;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
    }

    section {
        padding: 18px 0;
    }

    .card,
    .info-box,
    .service-row {
        box-shadow: none;
        break-inside: avoid;
    }

    a {
        color: #000;
    }

    .btn,
    .btn.btn--ghost,
    .btn.btn--outline {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000;
        box-shadow: none;
    }
}
