/* ==========================================================
   Tischholz – Stylesheet
   Warme Holz-Palette, Cormorant Garamond + Plus Jakarta Sans.
   Schriften lokal eingebunden (keine Verbindung zu Google).
   ========================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --wood-50: #FBF9F5;
    --wood-100: #F5EFE6;
    --wood-200: #E8DBCB;
    --wood-300: #D4C0A8;
    --wood-400: #B89F81;
    --wood-500: #7A6249;   /* abgedunkelt: 5:1 Kontrast auf Beige */
    --wood-600: #6F5842;
    --wood-700: #5C4835;
    --wood-800: #3B2C21;
    --wood-900: #211811;

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section: clamp(4.5rem, 9vw, 7rem);

    /* Schriftgrößen (gegenüber der ersten Überarbeitung deutlich kleiner) */
    --fs-h1: clamp(2.5rem, 1.7rem + 3vw, 4rem);
    --fs-h2: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem);
    --fs-h3: 1.5rem;
}

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

html {
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--wood-400) var(--wood-100);
}

body {
    margin: 0;
    background: var(--wood-50);
    color: var(--wood-900);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

h1, h2, h3, p, dl, dd, ol, ul, figure {
    margin: 0;
    padding: 0;
}

ol, ul {
    list-style: none;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

[id] {
    scroll-margin-top: 6rem;
}

/* ---------- Browser-Oberflächen ---------- */

::selection {
    background: var(--wood-300);
    color: var(--wood-900);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--wood-100);
}

::-webkit-scrollbar-thumb {
    background: var(--wood-400);
    border-radius: 999px;
    border: 2px solid var(--wood-100);
}

:focus-visible {
    outline: 2px solid var(--wood-800);
    outline-offset: 3px;
    border-radius: 6px;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--wood-200);
}

input,
textarea,
button {
    font: inherit;
    caret-color: var(--wood-700);
    accent-color: var(--wood-800);
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--wood-900);
    color: var(--wood-50);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-300%);
}

.skip-link:focus-visible {
    transform: none;
}

/* ---------- Typografie ---------- */

.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.h-xl {
    font-size: var(--fs-h1);
    line-height: 0.96;
}

.h-lg {
    font-size: var(--fs-h2);
    line-height: 1.02;
}

.eyebrow {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wood-500);
}

.on-dark .eyebrow {
    color: var(--wood-300);
}

.lede {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--wood-600);
}

.copy {
    max-width: 34rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--wood-600);
}

@media (min-width: 768px) {
    .lede { font-size: 1.0625rem; }
}

.wrap {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section);
    overflow-x: clip;   /* Karten, die von der Seite einfahren, erzeugen keinen Scrollbalken */
}

.section--50 { background: var(--wood-50); }
.section--100 { background: var(--wood-100); }
.section--dark { background: var(--wood-900); color: #fff; }

.section-head {
    max-width: 40rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.9rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--wood-900);
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(33, 24, 17, 0.55);
}

.btn-primary:hover {
    background: var(--wood-700);
}

.btn-ghost {
    border-color: var(--wood-300);
    background: rgba(255, 255, 255, 0.6);
    color: var(--wood-800);
}

.btn-ghost:hover {
    background: #fff;
}

.btn-sm {
    min-height: 2.5rem;
    padding: 0.6rem 1.15rem;
    font-size: 0.75rem;
    box-shadow: none;
}

.btn[disabled] {
    opacity: 0.65;
    cursor: progress;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 50;
    padding-inline: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 28rem;
    margin-inline: auto;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border: 1px solid rgba(212, 192, 168, 0.5);
    border-radius: 999px;
    background: rgba(251, 249, 245, 0.92);
    box-shadow: 0 10px 28px -16px rgba(33, 24, 17, 0.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}

.nav.is-scrolled {
    box-shadow: 0 16px 34px -14px rgba(33, 24, 17, 0.45);
    background: rgba(251, 249, 245, 0.97);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 1.75rem;
}

.brand span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wood-700);
}

.nav-links a {
    position: relative;
    padding-block: 0.4rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current] {
    color: var(--wood-900);
}

.nav-links a:hover::after,
.nav-links a[aria-current]::after {
    transform: scaleX(1);
}

.only-sm { display: inline; }
.only-lg { display: none; }

@media (min-width: 768px) {
    .site-header { top: 0; padding: 0; }
    .nav {
        max-width: 80rem;
        margin-top: 1.25rem;
        padding: 0.65rem 1.5rem;
        width: calc(100% - 4rem);
    }
    .brand img { height: 2.1rem; }
    .brand span { font-size: 1.75rem; }
    .nav-links { display: flex; }
    .nav > .btn:not(.btn-keep) { display: none; }
    .only-sm { display: none; }
    .only-lg { display: inline; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.hero .eyebrow {
    margin-bottom: 1.25rem;
}

.hero .lede {
    margin: 1.5rem auto 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
    margin-top: 2rem;
}

.hero-actions .btn-ghost {
    display: none;
}

.hero-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 26rem;
    min-height: 22rem;
    margin: 1.5rem auto 0;
}

.stage-glow {
    position: absolute;
    inset: -5%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(232, 219, 203, 0.9), rgba(232, 219, 203, 0));
}

.stage-ground {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 9%;
    height: 8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(33, 24, 17, 0.3), rgba(33, 24, 17, 0));
}

.stage-cube {
    position: relative;
    z-index: 1;
    width: 80%;
}

.stage-cube img {
    width: 100%;
    filter: drop-shadow(0 30px 28px rgba(33, 24, 17, 0.22));
}

.hero-motes {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease 0.6s;
}

.hero-motes.is-on {
    opacity: 1;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 8rem;
        padding-bottom: 5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        min-height: min(40rem, calc(100svh - 9rem));
        text-align: left;
    }

    .hero .lede { margin-inline: 0; }
    .hero-actions { justify-content: flex-start; margin-top: 2.25rem; }
    .hero-actions .btn-ghost { display: inline-flex; }
    .hero-stage { max-width: 32rem; min-height: 0; margin: 0 auto; aspect-ratio: 1 / 0.95; }
    .stage-cube { width: 76%; }
}

/* Anfangszustand der Hero-Animation; Rückfall, falls das Skript nicht lädt */
@media (prefers-reduced-motion: no-preference) {
    .js .hero-anim {
        opacity: 0;
        visibility: hidden;
    }

    @keyframes unhide {
        to { opacity: 1; visibility: visible; }
    }

    .js:not(.gsap-on) .hero-anim {
        animation: unhide 0.01s 3.5s forwards;
    }
}

/* ---------- Produkt: ein Feld, drei Spalten ---------- */

.panel3 {
    display: grid;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    border: 1px solid var(--wood-300);
    border-radius: 1.75rem;
    background: var(--wood-50);
    overflow: hidden;
}

.panel-col {
    padding: 2rem 1.75rem;
}

.panel-col + .panel-col {
    border-top: 1px solid var(--wood-300);
}

.panel-col h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.panel-col p {
    margin-top: 0.875rem;
    max-width: 24rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--wood-600);
}

@media (min-width: 768px) {
    .panel3 { grid-template-columns: repeat(3, 1fr); }
    .panel-col { padding: 3rem 2.5rem 3.25rem; }
    .panel-col + .panel-col { border-top: 0; border-left: 1px solid var(--wood-300); }
    .panel-col h3 { font-size: 2rem; }
}

/* ---------- Vorteile: Überschrift links, Liste rechts ---------- */

.vorteile-grid {
    display: grid;
    gap: 2.5rem;
}

.benefit-list {
    border-top: 1px solid var(--wood-300);
}

.benefit-list li {
    display: grid;
    gap: 0.5rem;
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--wood-300);
}

.benefit-list h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.benefit-list p {
    max-width: 30rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--wood-600);
}

@media (min-width: 960px) {
    .vorteile-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 5rem;
        align-items: start;
    }

    .vorteile-head {
        position: sticky;
        top: 7rem;
    }

    .benefit-list li {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 2rem;
        align-items: baseline;
        padding-block: 1.75rem;
    }

    .benefit-list h3 { font-size: 1.625rem; }
}

/* ---------- Manufaktur ---------- */

.manufaktur-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.manu-copy p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--wood-200);
}

.manu-copy p + p {
    margin-top: 1.5rem;
    color: var(--wood-300);
}

@media (min-width: 768px) {
    .manufaktur-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ---------- Galerie ---------- */

.gallery {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.gallery figure {
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--wood-200);
    aspect-ratio: 5 / 5.4;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .gallery figure {
        aspect-ratio: 5 / 5.4;
    }

    .gallery figure:nth-child(2) {
        margin-top: 3rem;
    }
}

/* ---------- Immersiver Foto-Bereich ---------- */

.immersive {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78svh, 42rem);
    overflow: hidden;
    background: var(--wood-900);
    color: #fff;
}

.immersive-bg {
    position: absolute;
    inset: -10% 0;
}

.immersive-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 92%;
}

.immersive::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(33, 24, 17, 0.88) 0%, rgba(33, 24, 17, 0.45) 40%, rgba(33, 24, 17, 0) 75%),
        linear-gradient(90deg, rgba(33, 24, 17, 0.55), rgba(33, 24, 17, 0) 60%);
}

.immersive .wrap {
    position: relative;
    z-index: 2;
    padding-block: clamp(3rem, 7vw, 5rem);
}

.immersive .eyebrow {
    color: var(--wood-200);
}

.immersive .copy {
    color: var(--wood-100);
}

@media (max-width: 767px) {
    .immersive {
        align-items: flex-start;
        min-height: 34rem;
    }

    .immersive::after {
        background: linear-gradient(180deg, rgba(33, 24, 17, 0.9) 0%, rgba(33, 24, 17, 0.55) 45%, rgba(33, 24, 17, 0) 75%);
    }

    .immersive-bg img {
        object-position: 52% 100%;
    }
}

/* ---------- Möglichkeiten: Reiter ---------- */

.tabs {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.tab-list {
    display: none;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.js .tab-list {
    display: flex;
}

.tab-list button {
    padding: 0.8rem 1.4rem;
    border: 1px solid var(--wood-300);
    border-radius: 999px;
    background: transparent;
    color: var(--wood-700);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tab-list button:hover {
    background: #fff;
}

.tab-list button[aria-selected="true"] {
    border-color: var(--wood-900);
    background: var(--wood-900);
    color: var(--wood-50);
}

.tab-panels {
    margin-top: 1.5rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 1.75rem;
    background: var(--wood-100);
}

.tab-panel + .tab-panel {
    margin-top: 1.75rem;
}

.js .tab-panel + .tab-panel {
    margin-top: 0;
}

.tab-panel h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.js .tab-panel h3 {
    display: none;
}

.tab-panel p {
    max-width: 36rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
}

.tab-panel[hidden] {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes tab-in {
        from { opacity: 0; transform: translateY(10px); }
    }

    .tab-panel:not([hidden]) {
        animation: tab-in 0.5s var(--ease);
    }
}

/* ---------- Demo ---------- */

.demo {
    overflow: hidden;
}

.demo-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

/* ---------- Handy-Mockups ---------- */

.phones {
    display: flex;
    gap: 1.25rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 1.5rem var(--gutter) 2.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.phones::-webkit-scrollbar {
    display: none;
}

.phone {
    --pw: 11rem;
    flex: none;
    width: var(--pw);
    scroll-snap-align: center;
}

.phone-body {
    position: relative;
    aspect-ratio: 1 / 2;
    padding: calc(var(--pw) * 0.035);
    border-radius: calc(var(--pw) * 0.17);
    background: linear-gradient(150deg, #34343a 0%, #121214 45%, #1d1d21 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
        inset 0 0 0 4px #0b0b0d,
        0 38px 50px -28px rgba(33, 24, 17, 0.6),
        0 12px 20px -12px rgba(33, 24, 17, 0.4);
}

/* Seitentasten */
.phone-body::before,
.phone-body::after {
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #26262b;
}

.phone-body::before {
    left: -3px;
    top: 17%;
    height: 7%;
    box-shadow: 0 calc(var(--pw) * 0.2) 0 #26262b;
}

.phone-body::after {
    right: -3px;
    top: 24%;
    height: 11%;
}

.phone-island {
    position: absolute;
    z-index: 2;
    top: 2.6%;
    left: 50%;
    width: 27%;
    height: 2.7%;
    border-radius: 999px;
    background: #050506;
    transform: translateX(-50%);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--pw) * 0.14);
    object-fit: cover;
    object-position: top center;
    background: #efeae0;
}

/* Glanzkante über dem Display */
.phone-body > .phone-screen {
    position: relative;
}

@media (min-width: 768px) {
    .demo-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
    }

    .phones {
        order: -1;
        position: relative;
        display: block;
        min-height: 36rem;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .phone {
        position: absolute;
        top: 50%;
        left: 50%;
        --pw: 13rem;
    }

    .phone--c {
        --pw: 15rem;
        z-index: 2;
        transform: translate(-50%, -50%);
    }

    .phone--l {
        z-index: 1;
        transform: translate(-128%, -46%) rotate(-7deg);
    }

    .phone--r {
        z-index: 1;
        transform: translate(28%, -46%) rotate(7deg);
    }
}

@media (min-width: 1100px) {
    .phone--c { --pw: 16rem; }
    .phone--l { --pw: 14rem; transform: translate(-134%, -46%) rotate(-7deg); }
    .phone--r { --pw: 14rem; transform: translate(34%, -46%) rotate(7deg); }
    .phones { min-height: 40rem; }
}

.steps {
    margin-top: 2.25rem;
}

.step {
    --seg: 1;
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.125rem;
    padding-bottom: 1.75rem;
}

.step:last-child {
    padding-bottom: 0;
}

/* Linie nur zwischen den Nummern, nie durch sie hindurch */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: calc(1.25rem - 0.5px);
    top: 2.75rem;
    bottom: 0.25rem;
    width: 1px;
    background: var(--wood-300);
}

.step:not(:last-child)::after {
    background: var(--wood-800);
    transform: scaleY(var(--seg));
    transform-origin: top;
}

.step-no {
    position: relative;
    z-index: 1;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--wood-200);
    color: var(--wood-800);
    font-size: 0.875rem;
    font-weight: 600;
}

.step h3 {
    padding-top: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.step p {
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: var(--wood-600);
}

.demo .btn {
    margin-top: 2.25rem;
}

/* ---------- Referenz (Gasthof Tross) ---------- */

.referenz-card {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border: 1px solid var(--wood-200);
    border-radius: 1.75rem;
    background: #fff;
    text-align: center;
}

.referenz-logo img {
    width: min(9.5rem, 46vw);
    margin-inline: auto;
}

.referenz-text .copy {
    margin-inline: auto;
}

.quote p {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--wood-900);
}

.quote footer {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wood-500);
}

.quote {
    margin: 1.5rem 0 0;
}

.quote[hidden] {
    display: none;
}

@media (min-width: 768px) {
    .referenz-card {
        grid-template-columns: auto 1fr;
        gap: clamp(2.5rem, 6vw, 5rem);
        text-align: left;
    }

    .referenz-logo img {
        width: 11rem;
    }

    .referenz-text .copy {
        margin-inline: 0;
    }
}

/* ---------- Kontakt ---------- */

.kontakt-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.kontakt .copy {
    color: var(--wood-300);
}

.form-card {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: 1.5rem;
    background: #fff;
    color: var(--wood-900);
}

.field + .field {
    margin-top: 1.125rem;
}

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.field .opt {
    margin-left: 0.35rem;
    font-weight: 500;
    color: var(--wood-500);
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--wood-200);
    border-radius: 1rem;
    background: var(--wood-50);
    color: var(--wood-900);
    font-size: 1rem;           /* 16px: verhindert Auto-Zoom auf iOS */
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--wood-500);
    opacity: 0.75;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--wood-400);
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--wood-600);
    box-shadow: 0 0 0 4px rgba(184, 159, 129, 0.4);
}

.field input:user-invalid,
.field textarea:user-invalid {
    border-color: #9a3b24;
}

.form-note {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--wood-600);
}

.form-note a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.form-card .btn {
    width: 100%;
    margin-top: 1.5rem;
}

.hp {
    position: absolute;
    left: -9999px;
}

@media (min-width: 768px) {
    .kontakt-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--wood-900);
    color: var(--wood-400);
    padding-inline: var(--gutter);
    padding-bottom: 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: calc(80rem - 2 * var(--gutter));
    margin-inline: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    width: auto;
    height: 1.75rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ---------- Unterseiten (Impressum, Datenschutz, Danke) ---------- */

.legal {
    padding-top: 8.5rem;
    padding-bottom: var(--section);
}

.legal .inner {
    max-width: 46rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.legal h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
}

.legal .sections {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--wood-700);
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--wood-900);
}

.legal p {
    margin-top: 0.875rem;
    max-width: 40rem;
}

.thanks {
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 8rem var(--gutter) 5rem;
    text-align: center;
}

.thanks .check {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: var(--wood-200);
    color: var(--wood-800);
}

.thanks .check svg {
    width: 2.25rem;
    height: 2.25rem;
}

.thanks .lede {
    margin: 1.5rem auto 0;
}

.thanks .btn {
    margin-top: 2rem;
}

/* ---------- SplitText-Masken: Unterlängen nicht abschneiden ---------- */

[data-split] > div,
.hero h1 > div {
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.gallery-section { padding-top: 0; }
