/* ============================================================
   Tierarztpraxis Dr. Nohner – Stylesheet
   Farbpalette: erdig, bodenständig-modern
   Schriften: Fraunces (Display) + DM Sans (Body)
   ============================================================ */

:root {
    --ink:         #1a2e1f;
    --moss:        #3d5637;
    --sage:        #8ba888;
    --sage-soft:   #b8c9b4;
    --cream:       #f5f0e6;
    --parchment:   #ede4d0;
    --accent:      #b8791f;
    --accent-dark: #8f5d14;
    --line:        rgba(26, 46, 31, 0.12);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --max-width: 1100px;
    --space-section: clamp(4rem, 8vw, 7rem);
}

*, *::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);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* dezente Hintergrund-Textur */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 46, 31, 0.035) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.container--narrow { max-width: 780px; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--ink);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1.5rem;
    font-variation-settings: "opsz" 48;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-variation-settings: "opsz" 18;
}

p { margin-bottom: 1rem; }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

/* ==================== TOP-BANNER ==================== */
.top-banner {
    background: #fee2e2;          /* heller, weicher Rot-Ton als Hintergrund */
    color: #991b1b;               /* kräftiges Dunkelrot für Text + Icon */
    padding: 0.85rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #fca5a5;  /* dezente rote Abgrenzung */
    position: relative;
    z-index: 11;
    line-height: 1.45;
}
.top-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-align: left;
}
.top-banner svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.top-banner strong {
    font-weight: 700;
    color: #7f1d1d;              /* "Wichtiger Hinweis:" eine Nuance dunkler */
}

/* ==================== HILFSKLASSE: Element ausblenden ==================== */
/* Verwendung: einfach " hidden" hinter class hinzufügen
   Beispiel:  class="herd"  →  class="herd hidden"  (Section wird ausgeblendet) */
.hidden { display: none !important; }

/* ==================== HEADER ==================== */
.site-header {
    background: var(--ink);
    color: var(--cream);
    padding: 1.25rem 0;
    position: relative;
    z-index: 10;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--cream);
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--ink); /* Logo-SVG nutzt currentColor */
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 6px;
}
.brand-mark img, .brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.brand-text span {
    font-size: 0.8rem;
    color: var(--sage);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.header-phone {
    font-size: 1rem;
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(245, 240, 230, 0.3);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.header-phone:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

/* ==================== HERO ==================== */
.hero {
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--moss); }
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-variation-settings: "opsz" 144;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--moss); font-weight: 400; }
.hero-lead {
    font-size: 1.15rem;
    color: var(--moss);
    margin-bottom: 2rem;
    max-width: 38ch;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ink);
    color: var(--cream);
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover {
    background: var(--accent-dark);
    color: var(--cream);
    transform: translateY(-1px);
}
.hero-cta svg { width: 20px; height: 20px; }
.hero-image {
    aspect-ratio: 4/5;
    border-radius: 6px;
    overflow: hidden;
    background: var(--sage);
    box-shadow: 0 30px 60px -20px rgba(26, 46, 31, 0.3);
    position: relative;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.hero-image::after {
    content: "Dr. Hans-Peter Nohner";
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    background: var(--cream);
    color: var(--ink);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    font-family: var(--font-display);
    font-variation-settings: "opsz" 12;
}

/* ==================== SECTIONS ==================== */
section { padding: var(--space-section) 0; position: relative; }

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.section-label::before { content: "❋"; color: var(--accent); font-size: 1rem; }

/* ==================== EXPERTE / ÜBER ==================== */
.expert { background: var(--cream); }
.expert-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.expert h2 em { font-style: italic; color: var(--moss); }
.expert-stat-row {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0 1.5rem;
    flex-wrap: wrap;
}
.expert-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.expert-stat .number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--accent-dark);
    line-height: 1;
    font-variation-settings: "opsz" 72;
}
.expert-stat .label {
    font-size: 0.85rem;
    color: var(--moss);
    letter-spacing: 0.05em;
}

/* Bild-Container für Rinder/Hof-Fotos
   - Wenn ein echtes Bild in /assets/ liegt, wird es gezeigt
   - Fehlt das Bild, entfernt onerror="this.remove()" das <img>-Element
     und der SVG-Platzhalter darunter wird sichtbar */
.img-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--parchment) 0%, var(--sage-soft) 100%);
    border-radius: 6px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -20px rgba(26, 46, 31, 0.25);
}
.img-placeholder--real {
    /* wenn ein echtes Bild eingesetzt ist, kommen alle
       Platzhalter-Styles automatisch raus durch das <img> */
}
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2; /* liegt über dem SVG-Fallback, überdeckt ihn */
}
.img-placeholder-inner {
    text-align: center;
    padding: 2rem;
    color: var(--moss);
    position: relative;
    z-index: 1;
}
.img-placeholder-inner svg {
    width: 110px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.55;
}
.img-placeholder-inner .hint {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.img-placeholder-inner .desc {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink);
    max-width: 22ch;
    margin: 0 auto;
    line-height: 1.35;
}

/* ==================== BESTANDSBETREUUNG ==================== */
.herd {
    background: var(--parchment);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.herd-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.herd-text .lead {
    font-size: 1.1rem;
    color: var(--ink);
    max-width: 52ch;
    margin-bottom: 1.5rem;
}
.herd-benefits {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.7rem;
}
.herd-benefits li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: #2a3e2f;
}
.herd-benefits li::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 0.55rem;
    flex-shrink: 0;
    transform: rotate(45deg);
}

/* ==================== LEISTUNGEN ==================== */
.services { background: var(--ink); color: var(--cream); }
.services h2 { color: var(--cream); }
.services .section-label { color: var(--accent); }
.services .section-label::before { color: var(--accent); }
.services-intro {
    font-size: 1.1rem;
    color: var(--sage);
    max-width: 60ch;
    margin-bottom: 3rem;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: rgba(139, 168, 136, 0.15);
    border: 1px solid rgba(139, 168, 136, 0.15);
}
.service-card {
    background: var(--ink);
    padding: 2rem 1.8rem;
    transition: background 0.3s;
}
.service-card:hover { background: var(--moss); }
.service-card .icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    color: var(--accent);
}
.service-card .icon svg { width: 22px; height: 22px; }
.service-card h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--sage); font-size: 0.95rem; line-height: 1.55; margin-bottom: 0; }

/* ==================== ABLAUF ==================== */
.process { background: var(--cream); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    counter-reset: step;
    position: relative;
}
.process-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--accent) 0 6px, transparent 6px 12px);
    z-index: 0;
}
.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.process-step .num {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--ink);
    margin: 0 auto 1.2rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    font-variation-settings: "opsz" 36;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.95rem; color: #2a3e2f; line-height: 1.55; }

/* ==================== KONTAKT ==================== */
.contact { background: var(--parchment); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-top: 2.5rem;
}
.contact-card {
    background: var(--cream);
    padding: clamp(1.8rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    font-weight: 500;
    min-width: 90px;
    padding-top: 0.15rem;
}
.contact-item .value { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-item .value a { color: var(--ink); text-decoration: none; }
.contact-item .value a:hover { color: var(--accent-dark); }
.contact-item .value.phone {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    font-variation-settings: "opsz" 24;
}
.contact-side p { font-size: 0.95rem; color: var(--moss); line-height: 1.6; }
.contact-side strong { color: var(--ink); }

.region-box {
    background: var(--cream);
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.4rem;
    margin-top: 1.5rem;
}
.region-box .region-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.region-box p { margin-bottom: 0.4rem; color: var(--ink); font-size: 1rem; }
.region-box p:last-child { margin-bottom: 0; }
.region-box .primary {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    font-variation-settings: "opsz" 18;
}
.region-box .secondary { color: var(--moss); font-size: 0.95rem; }

/* Hinweis-Box (z. B. „keine Neukunden") — neutraler als region-box */
.notice-box {
    background: var(--cream);
    border-left: 3px solid var(--moss);
    padding: 1.2rem 1.4rem;
    margin-top: 1.5rem;
}
.notice-box .notice-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.notice-box p {
    margin-bottom: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
}
.notice-box strong { color: var(--ink); }

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--ink);
    color: var(--sage);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 168, 136, 0.2);
    margin-bottom: 1.5rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--sage); text-decoration: none; }
.footer-links a:hover { color: var(--cream); }
.footer-copy {
    text-align: center;
    color: rgba(139, 168, 136, 0.7);
    font-size: 0.82rem;
}

/* ==================== LEGAL PAGES (Impressum / Datenschutz) ==================== */
.page-header {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--moss);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.page-header .back-link:hover { color: var(--accent-dark); }
.page-header .back-link svg { width: 16px; height: 16px; }
.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-variation-settings: "opsz" 48;
}

.legal-content {
    background: var(--cream);
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
    font-size: 0.95rem;
    line-height: 1.65;
}
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}
.legal-content p, .legal-content li {
    color: #2a3e2f;
    margin-bottom: 0.8rem;
}
.legal-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.placeholder {
    background: #fff4d6;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: ui-monospace, monospace;
    font-size: 0.88em;
    color: #7a5b0e;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-grid > * { animation: fadeUp 0.9s ease-out backwards; }
.hero-grid > *:nth-child(1) { animation-delay: 0.1s; }
.hero-grid > *:nth-child(2) { animation-delay: 0.3s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 780px) {
    .hero-grid,
    .expert-grid,
    .herd-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-image,
    .img-placeholder {
        max-width: 400px;
        margin: 0 auto;
        order: -1;
        aspect-ratio: 1/1;
    }
    .herd-grid .img-placeholder { order: 0; } /* Bestandsbetreuung: Bild unten auf Mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .process-steps::before { display: none; }
    .header-phone { display: none; }
    .top-banner { font-size: 0.85rem; padding: 0.7rem 0; }
    .top-banner .container { padding: 0 1rem; gap: 0.5rem; }
    .brand-text strong { font-size: 1rem; }
    .brand-text span { font-size: 0.7rem; }
}

@media (max-width: 500px) {
    body { font-size: 16px; }
    .hero h1 { font-size: 2.2rem; }
    .contact-item { flex-direction: column; gap: 0.3rem; }
    .contact-item .label { min-width: auto; }
    .expert-stat-row { gap: 1.5rem; }
    .expert-stat .number { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
