:root {
    --bg: #f4efe7;
    --surface: #fdfaf5;
    --surface-strong: #efe5d5;
    --ink: #241913;
    --muted: #66574d;
    --line: #d6c7b6;
    --accent: #7f5336;
    --accent-2: #bc8451;
    --shadow: 0 24px 60px rgba(54, 35, 21, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Palatino Linotype", "Book Antiqua", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(188, 132, 81, 0.2), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(127, 83, 54, 0.14), transparent 40%),
        var(--bg);
    line-height: 1.6;
}

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: var(--ink);
    color: #fff;
    padding: 0.5rem 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 239, 231, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--ink);
}

.hero {
    padding: 6.5rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: 2rem;
    align-items: start;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

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

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin: 0 0 1rem;
}

.lead {
    max-width: 65ch;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    color: var(--muted);
}

.hero-text,
.section-intro {
    max-width: 68ch;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.hero-panel {
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(253, 250, 245, 0.96), rgba(239, 229, 213, 0.9));
    border: 1px solid rgba(127, 83, 54, 0.16);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.panel-label {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-highlights {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding-left: 1.2rem;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(127, 83, 54, 0.18);
}

.button-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-tertiary {
    background: #2f221a;
    color: #fff;
}

.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
}

.contact-popup[hidden] {
    display: none;
}

.contact-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 10, 7, 0.6);
}

.contact-popup-panel {
    position: relative;
    width: min(640px, 92vw);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.contact-popup-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.countdown-target {
    margin-top: 1rem;
    margin-bottom: 0.7rem;
    color: var(--muted);
}

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

.countdown-item {
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
}

.countdown-item strong {
    display: block;
    font-size: 1.35rem;
}

.countdown-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

body.popup-open {
    overflow: hidden;
}

.section {
    padding: 4.2rem 0;
}

.accent {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.cards article {
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(36, 25, 19, 0.06);
}

.steps {
    display: grid;
    gap: 0.9rem;
    padding-left: 1.2rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}

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

.reference-gallery figure {
    margin: 0;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(36, 25, 19, 0.08);
}

.reference-gallery figure:first-child {
    grid-column: 1 / -1;
}

.reference-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4eadb, #eadfce);
}

.reference-gallery figcaption {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer {
    padding: 3rem 0 4rem;
    background: #221913;
    color: #f4ede6;
}

.site-footer a {
    color: #f7b889;
}

@media (max-width: 820px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-grid,
    .reference-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .reference-gallery {
        grid-template-columns: 1fr;
    }

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

    .reference-gallery figure:first-child {
        grid-column: auto;
    }
}

/* hero-panel temporär ausgeblendet */
.hero-panel {
    display: none;
}

/* Scroll-to-top */
.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 30%;
    z-index: 200;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(127, 83, 54, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}