/* ============================================================
   Viehhandlung Bothmer – Redesign Prototyp
   Dunkles Waldgrün, Gold-Akzent, Space Grotesk + Inter
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg:        #15271d;
    --bg-2:      #1b3326;
    --bg-3:      #0f1c15;
    --panel:     #1e3729;
    --gold:      #c9a44c;
    --gold-2:    #d9b968;
    --gold-soft: rgba(201, 164, 76, 0.16);
    --cream:     #ece6d8;
    --text:      #c4d2c6;
    --text-dim:  #93a597;
    --line:      rgba(236, 230, 216, 0.14);
    --line-2:    rgba(236, 230, 216, 0.08);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --radius:    20px;
    --radius-lg: 28px;
    --maxw:      1200px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 90px) 0; }
.section--panel { background: var(--bg-2); }
.section--dark { background: var(--bg-3); }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--cream); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: 0.7; }
.eyebrow--center { justify-content: center; }
.text-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.lead { max-width: 640px; }
.lead--center { margin: 0 auto; }
.mb-l { margin-bottom: 2.4rem; }

/* Section-Kopf */
.s-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.s-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 15px 30px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    background: none;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: #1a1407; }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    padding: 11px 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.header--scrolled {
    background: rgba(15, 28, 21, 0.86);
    backdrop-filter: blur(14px);
    padding: 6px 0;
    border-bottom-color: var(--line-2);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__logo { height: 84px; width: auto; display: block; transition: opacity 0.35s var(--ease), height 0.35s var(--ease); }
.brand:hover .brand__logo { opacity: 0.85; }
.header--scrolled .brand__logo { height: 70px; }
.brand__name { font-family: var(--font-display); font-weight: 600; color: var(--cream); font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1.1; }
.brand__logo--footer { height: 96px; }
.footer .brand { align-items: flex-start; }
.footer .brand__name { display: none; }
@media (max-width: 560px) { .brand__name { display: none; } .brand__logo { height: 60px; } }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 0.92rem; color: var(--text); letter-spacing: 0.02em; transition: color 0.25s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--cream); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header__phone { font-family: var(--font-display); color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero (Ken Burns) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
    width: 100%; height: 100%; object-fit: cover;
    animation: kenburns 22s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes kenburns {
    0%   { transform: scale(1.06) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2%, -2%); }
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to top, var(--bg) 4%, rgba(21,39,29,0.35) 45%, rgba(21,39,29,0.55) 100%),
        radial-gradient(120% 80% at 20% 100%, rgba(15,28,21,0.7), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(70px, 11vw, 150px); padding-top: 140px; width: 100%; }
.hero h1 { max-width: 14ch; margin: 14px 0 22px; }
.hero h1 .gold { color: var(--gold); }
.hero__sub { max-width: 540px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #dfe6dc; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
    position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.scroll-hint__line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrolldrop 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrolldrop { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Hero (Sub-Seiten, kompakter) */
.hero--page { min-height: 78vh; }

/* ---------- Reveal-Animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero__media img { animation: none; }
}

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 5/4; object-fit: cover; }
.split__media .frame {
    position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold);
    border-radius: var(--radius-lg); z-index: -1; opacity: 0.5;
}
.split__text h2 { margin-bottom: 22px; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
    text-align: center; padding: 38px 20px; border: 1px solid var(--line);
    border-radius: var(--radius); background: rgba(255,255,255,0.012);
}
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); font-weight: 600; line-height: 1; }
.stat__label { margin-top: 12px; font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Gründe (nummeriert, editorial) ---------- */
.reasons { display: grid; gap: 0; }
.reason {
    display: grid; grid-template-columns: 90px 1fr; gap: 28px; align-items: start;
    padding: 34px 0; border-top: 1px solid var(--line-2);
}
.reason:last-child { border-bottom: 1px solid var(--line-2); }
.reason__num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); font-weight: 600; line-height: 1; opacity: 0.85; }
.reason__body h3 { margin-bottom: 10px; }
.reason__body p { color: var(--text-dim); max-width: 60ch; }

/* ---------- Service-Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 38px 32px; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
    position: relative; overflow: hidden;
}
.tile::after {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width 0.5s var(--ease);
}
.tile:hover { transform: translateY(-6px); border-color: rgba(201,164,76,0.4); background: #224030; }
.tile:hover::after { width: 100%; }
.tile__icon {
    width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px; color: var(--gold);
    transition: border-color 0.4s, background 0.4s;
}
.tile:hover .tile__icon { border-color: var(--gold); background: var(--gold-soft); }
.tile__icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.tile h3 { margin-bottom: 12px; }
.tile p { color: var(--text-dim); font-size: 0.97rem; }
.tile__link { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.tile__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.tile:hover .tile__link svg { transform: translateX(4px); }

/* ---------- Feature-Liste (Check) ---------- */
.check-list { display: grid; gap: 14px; margin: 22px 0 26px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; color: var(--text); }
.check-list li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }

/* ---------- Detail-Block mit Anker ---------- */
.detail { scroll-margin-top: 90px; }

/* ---------- Standort-Karten ---------- */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.place {
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel);
    transition: transform 0.4s var(--ease), border-color 0.4s;
}
.place:hover { transform: translateY(-5px); border-color: rgba(201,164,76,0.35); }
.place__img { aspect-ratio: 16/10; overflow: hidden; }
.place__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.place:hover .place__img img { transform: scale(1.06); }
.place__body { padding: 28px 30px 32px; }
.place__tag { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.place__body h3 { margin: 10px 0 12px; }
.place__addr { color: var(--text-dim); font-size: 0.95rem; }
.place__phone { margin-top: 16px; display: inline-flex; align-items: center; gap: 9px; color: var(--cream); font-family: var(--font-display); font-weight: 600; }
.place__phone svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Notierungen-Teaser ---------- */
.quote-teaser {
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 60px);
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--bg-2), var(--bg-3));
}
.quote-teaser h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.quote-teaser p { color: var(--text-dim); margin-top: 8px; }

/* ---------- Ornament ---------- */
.ornament { position: absolute; pointer-events: none; opacity: 0.06; color: var(--gold); z-index: 0; }
.ornament svg { width: 100%; height: 100%; }
.ornament--tr { top: 40px; right: 30px; width: 160px; height: 160px; }
.ornament--bl { bottom: 40px; left: 30px; width: 200px; height: 200px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-3); border-top: 1px solid var(--line-2); padding: 70px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-family: var(--font-display); color: var(--cream); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 20px; }
.footer a, .footer p { color: var(--text-dim); font-size: 0.92rem; }
.footer ul { display: grid; gap: 11px; }
.footer a:hover { color: var(--gold); }
.footer__about p { max-width: 30ch; margin-top: 14px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Chatbot ---------- */
.chat-fab {
    position: fixed; right: 26px; bottom: 26px; z-index: 950;
    width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--gold); color: #1a1407;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 36px rgba(0,0,0,0.4); transition: transform 0.35s var(--ease);
}
.chat-fab:hover { transform: scale(1.07); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

.chat {
    position: fixed; right: 26px; bottom: 100px; z-index: 951;
    width: 360px; max-width: calc(100vw - 36px); max-height: 70vh;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
    display: flex; flex-direction: column;
    transform: translateY(24px) scale(0.96); opacity: 0; pointer-events: none;
    transition: all 0.4s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.chat--open { transform: none; opacity: 1; pointer-events: auto; }
.chat__head { background: var(--bg-3); padding: 18px 20px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line-2); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.chat__avatar svg { width: 22px; height: 22px; }
.chat__title { font-family: var(--font-display); color: var(--cream); font-weight: 600; font-size: 0.98rem; }
.chat__status { font-size: 0.74rem; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fcf97; }
.chat__close { margin-left: auto; background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.chat__body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.msg { max-width: 84%; padding: 12px 16px; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; animation: msgIn 0.4s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg--bot { background: var(--panel); color: var(--text); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg--user { background: var(--gold); color: #1a1407; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg a { color: var(--gold-2); text-decoration: underline; }
.msg--bot a { color: var(--gold-2); }
.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.chat__chip {
    border: 1px solid var(--line); background: none; color: var(--cream); cursor: pointer;
    padding: 9px 14px; border-radius: 100px; font-size: 0.83rem; font-family: var(--font-body);
    transition: all 0.25s var(--ease);
}
.chat__chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav, .header__phone { display: none; }
    .nav-toggle { display: block; }
    .nav.open {
        display: flex; position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px;
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
        background: var(--bg-3); padding: 40px; z-index: 905;
    }
    .nav.open a { font-size: 1.3rem; }
    .split, .stats, .tiles, .places, .footer__grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: -1; }
}

/* ---------- Notierungen ---------- */
.notierungen__meta { color: var(--text-dim); margin-top: 8px; max-width: 640px; }
.notierungen { margin-top: 32px; }
.notierungen__charts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
/* min-width: 0 ist noetig, damit die Karte als Grid-Element unter die
   Standardbreite des Canvas (300px) schrumpfen kann. Ohne das laeuft
   die Seite auf Handys unter 414px seitlich ueber. */
.quote-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 20px 14px; min-width: 0; }
.quote-card__title { font-size: 1rem; color: var(--cream); margin-bottom: 12px; display: flex; align-items: center; gap: 9px; font-family: var(--font-display); }
.quote-card__title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); display: inline-block; }
.quote-card__canvas { position: relative; height: 220px; }
.quote-card__canvas canvas { max-width: 100%; display: block; }
.quote-now { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.quote-table { border-collapse: collapse; font-size: 0.92rem; }
.quote-table th { text-align: left; color: var(--text-dim); font-weight: 500; font-family: var(--font-display); padding: 6px 26px 8px 0; border-bottom: 1px solid var(--line); }
.quote-table td { padding: 9px 26px 9px 0; border-bottom: 1px solid var(--line-2); color: var(--text); }
.quote-table td:last-child { color: var(--gold-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.quote-hint { color: var(--text-dim); font-size: 0.9rem; max-width: 260px; }
.quote-hint a { color: var(--gold-2); }
@media (max-width: 760px) { .notierungen__charts { grid-template-columns: 1fr; } }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-hero { background: var(--bg-2); padding: clamp(120px,16vh,180px) 0 clamp(38px,6vw,66px); border-bottom: 1px solid var(--line-2); }
.legal-hero .eyebrow { color: var(--gold); }
.legal-hero h1 { font-size: clamp(2rem,5vw,3.1rem); margin-top: 10px; }
.legal-hero p { color: var(--text-dim); margin-top: 12px; max-width: 640px; }
.legal { padding: clamp(40px,6vw,80px) 0 clamp(60px,8vw,110px); }
.legal__card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(28px,4vw,56px); }
.legal__card h2 { color: var(--cream); font-size: 1.3rem; margin: 36px 0 12px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.legal__card h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal__card h3 { color: var(--gold-2); font-size: 1rem; margin: 22px 0 6px; }
.legal__card p, .legal__card li { color: var(--text); line-height: 1.75; font-size: 0.97rem; }
.legal__card p { margin: 0 0 14px; }
.legal__card ul { margin: 0 0 16px; padding-left: 22px; }
.legal__card li { margin: 0 0 8px; }
.legal__card a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal__card a:hover { color: var(--gold); }
.legal__card hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.legal__card strong { color: var(--cream); }
.footer__bottom a { color: var(--text-dim); text-decoration: none; }
.footer__bottom a:hover { color: var(--gold-2); }
