:root {
    --ink: #243136;
    --muted: #667274;
    --ocean: #0a6f82;
    --ocean-dark: #084f5e;
    --leaf: #6f7f43;
    --sun: #e0a13b;
    --coral: #d7674e;
    --mist: #f4f8f7;
    --foam: #e7f2f1;
    --line: #d9e5e3;
    --white: #ffffff;
    --shadow: 0 18px 42px rgba(25, 51, 56, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: var(--white);
}

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

a {
    color: var(--ocean-dark);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    margin: 12px;
    padding: 10px 14px;
    clip: auto;
    background: var(--ocean-dark);
    color: var(--white);
    z-index: 20;
}

.topbar {
    color: var(--white);
    background: var(--ocean-dark);
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    font-size: 0.94rem;
}

.topbar a {
    color: var(--white);
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(10, 111, 130, 0.16);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-link {
    width: 158px;
    flex: 0 0 auto;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    font-size: 0.96rem;
}

.main-nav a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    padding: 12px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--coral);
    transition: transform 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--ocean-dark);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--ocean-dark);
}

.hero {
    position: relative;
    min-height: 62svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 82px 0 72px;
    color: var(--white);
    background: var(--ink);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 35, 38, 0.88), rgba(20, 35, 38, 0.54) 52%, rgba(20, 35, 38, 0.18)),
        url("../images/abendsonne/garten-terrasse.jpg") center / cover no-repeat;
}

.hero-content {
    position: relative;
    max-width: 760px;
    margin-left: max(16px, calc((100% - 1120px) / 2));
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 18px;
    color: inherit;
    font-size: 4.15rem;
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 2.25rem;
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    color: var(--ocean-dark);
    font-size: 1.18rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.hero p,
.lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.16rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--ocean);
    color: var(--white);
    font: 700 1rem/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-1px);
}

.button.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--leaf);
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: var(--mist);
}

.section-dark {
    color: var(--white);
    background: var(--ocean-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark .lead,
.section-dark .section-kicker {
    color: var(--white);
}

.section-dark .section-kicker {
    opacity: 0.82;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 48px;
    align-items: start;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.fact,
.info-panel,
.feature,
.price-box,
.contact-panel,
.form-shell {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(25, 51, 56, 0.08);
}

.fact {
    min-height: 104px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px 12px;
    text-align: center;
}

.fact strong {
    display: block;
    color: var(--ocean-dark);
    font-size: 1.25rem;
}

.fact span {
    color: var(--muted);
    font-size: 0.94rem;
}

.info-panel,
.contact-panel,
.form-shell {
    padding: 28px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sun);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.feature {
    min-height: 212px;
    padding: 22px;
}

.feature p,
.form-note {
    color: var(--muted);
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.amenity-grid span {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(111, 127, 67, 0.24);
    border-radius: 8px;
    color: #48552d;
    font-weight: 700;
    background: rgba(111, 127, 67, 0.1);
}

.gallery-section {
    padding-bottom: 82px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.gallery-item {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(25, 51, 56, 0.1);
}

.gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 454px;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-featured img,
.gallery-wide img {
    aspect-ratio: 8 / 5;
}

.gallery-item span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 11px;
    border-radius: 8px;
    background: rgba(36, 49, 54, 0.82);
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.gallery-item:hover img,
.gallery-item:focus img {
    opacity: 0.9;
    transform: scale(1.025);
}

.distance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.location-content {
    max-width: 880px;
}

.distance-grid div,
.price-lines div {
    min-height: 84px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.distance-grid strong,
.price-lines strong {
    display: block;
    color: var(--white);
    font-size: 1.22rem;
}

.price-box {
    color: var(--ink);
    background: var(--white);
}

.price-box h3 {
    font-size: 1.8rem;
}

.price-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.price-lines div {
    border-color: var(--line);
    color: var(--muted);
    background: var(--mist);
}

.price-lines strong {
    color: var(--coral);
}

.form-layout {
    align-items: start;
}

.site-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    color: var(--ocean-dark);
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
    background: var(--white);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: 3px solid rgba(10, 111, 130, 0.18);
    border-color: var(--ocean);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--ink);
    font-weight: 400;
}

.checkbox-field input {
    min-height: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    padding: 0;
}

.field-error {
    color: #b83a2d;
    font-size: 0.9rem;
}

.form-note {
    margin: 0;
    font-size: 0.93rem;
}

.form-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--mist);
}

.form-message.success {
    border-color: rgba(10, 111, 130, 0.25);
    background: rgba(10, 111, 130, 0.08);
    color: var(--ocean-dark);
}

.form-message.error {
    border-color: rgba(215, 102, 77, 0.34);
    background: rgba(215, 102, 77, 0.1);
    color: #983528;
}

.honeypot {
    display: none;
}

.legal-content {
    max-width: 920px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-top: 0;
    color: var(--ink);
    font-size: 2.5rem;
}

.legal-content h2 {
    margin-top: 34px;
    font-size: 1.55rem;
}

.legal-content h3 {
    margin-top: 24px;
    font-size: 1.2rem;
}

.site-footer {
    padding: 42px 0;
    color: var(--white);
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.footer-logo {
    width: 136px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.site-footer h2 {
    margin: 0 0 10px;
    color: var(--white);
    font-size: 1.05rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--white);
}

.footer-links {
    text-align: right;
}

@media (max-width: 980px) {
    .split {
        grid-template-columns: 1fr;
    }

    .fact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .gallery-featured,
    .gallery-wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 18px;
        padding: 7px 0;
    }

    .header-inner {
        min-height: 78px;
    }

    .logo-link {
        width: 128px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 20px;
        background: var(--white);
        box-shadow: 0 16px 30px rgba(25, 51, 56, 0.14);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
    }

    .hero {
        min-height: 0;
        padding: 54px 0 48px;
    }

    .hero-media {
        background:
            linear-gradient(90deg, rgba(20, 35, 38, 0.88), rgba(20, 35, 38, 0.58)),
            url("../images/abendsonne/garten-terrasse.jpg") center / cover no-repeat;
    }

    .hero-content {
        margin-left: auto;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 54px 0;
    }

    .fact-grid,
    .feature-grid,
    .amenity-grid,
    .field-grid,
    .gallery-grid,
    .price-lines,
    .distance-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gallery-featured,
    .gallery-wide {
        grid-column: span 1;
        min-height: 240px;
    }

    .gallery-item {
        min-height: 210px;
    }

    .feature {
        min-height: 0;
    }

    .footer-grid,
    .footer-links {
        text-align: left;
    }
}
