/* ============================================================
   friesenpferd.info – CSS-Designsystem
   Coastal & Co. / Station Seven Stil – Elegant, warm, ruhig
   ============================================================ */

/* ============================================================
   0. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* Farben – Friesenpferde Palette */
    --color-primary:    #364C41;
    --color-primary-dark: #2F3F36;
    --color-secondary:  #F5F3EE;
    --color-accent:     #D4A574;
    --color-dark:       #2A2A2A;
    --color-text:       #1A1A1A;
    --color-text-light: #555555;
    --color-text-muted: #999999;
    --color-border:     #DDD9D1;
    --color-white:      #FFFFFF;
    --color-error:      #C0392B;
    --color-success:    #27AE60;
    --color-warning:    #F39C12;

    /* Typografie */
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font-Groessen (8px-Raster) */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.5rem;
    --text-5xl:  3rem;

    /* Spacing (8px-Raster) */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --container-narrow: 800px;
    --border-radius: 2px;
    --border-radius-lg: 4px;

    /* Transitionen */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

/* ============================================================
   1. Reset & Basisstile
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ============================================================
   2. Typografie
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--text-xl);  margin-bottom: var(--space-md); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

/* ============================================================
   3. Layout
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--secondary {
    background-color: var(--color-secondary);
}

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

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

/* ============================================================
   4. Header & Navigation
   ============================================================ */
.top-bar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar a {
    color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
    color: var(--color-white);
}

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header--scrolled {
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo span {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    align-items: center;
}

.nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link--active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* Dropdown (Zuchtstall) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-primary);
    min-width: 220px;
    padding: var(--space-sm) 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition-fast);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__menu a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text);
    font-size: var(--text-sm);
    transition: background var(--transition-fast);
}

.nav-dropdown__menu a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* ============================================================
   5. Hero – Video
   ============================================================ */
.hero-video {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 720px;
    overflow: hidden;
}

.hero-video__fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video__fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.hero-video__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-video__overlay h1 {
    color: var(--color-white);
    font-size: var(--text-5xl);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 700px;
}

.hero-video__overlay p {
    color: rgba(255,255,255,0.9);
    font-size: var(--text-lg);
    margin-top: var(--space-md);
    max-width: 500px;
}

/* ============================================================
   5b. Hero – Slider (2 Slides: Video + Bild)
   ============================================================ */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 720px;
    overflow: hidden;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.hero-slider__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slider__slide img,
.hero-slider__slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Willkommens-Text: unten links, 25px Abstand, max. 1/3 Breite */
.hero-slider__welcome {
    position: absolute;
    left: 25px;
    bottom: 25px;
    max-width: 33%;
    z-index: 4;
    color: var(--color-white);
    font-family: var(--font-headline);
    font-size: var(--text-3xl);
    line-height: 1.25;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    opacity: 0;
    animation: heroWelcomeFade 7s ease-in-out infinite;
}

@keyframes heroWelcomeFade {
    0%   { opacity: 0; }
    18%  { opacity: 1; }
    72%  { opacity: 1; }
    95%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Punkte-Navigation */
.hero-slider__dots {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-slider__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.9);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast);
}

.hero-slider__dot--active {
    background: var(--color-white);
}

@media (max-width: 768px) {
    .hero-slider { height: 50vh; min-height: 300px; }
    .hero-slider__welcome {
        max-width: 60%;
        font-size: var(--text-xl);
        left: 16px;
        bottom: 16px;
    }
    .hero-slider__dots { right: 16px; bottom: 16px; }
}

/* ============================================================
   6. Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: #C49464;
    border-color: #C49464;
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--small {
    padding: 8px 16px;
    font-size: var(--text-xs);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn--white:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ============================================================
   7. Content-Sektionen
   ============================================================ */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.content-split--reverse {
    direction: rtl;
}

.content-split--reverse > * {
    direction: ltr;
}

.content-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.content-split__text {
    padding: var(--space-xl) 0;
}

.content-split__text h2 {
    font-size: var(--text-3xl);
}

.content-split__text .subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

/* ============================================================
   8. Cards (News, Verkaufspferde)
   ============================================================ */
.card-grid {
    display: grid;
    gap: var(--space-xl);
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.card:hover .card__image img {
    transform: scale(1.03);
}

.card__body {
    padding: var(--space-lg);
}

.card__date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

.card__meta {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Verkaufspferde Status-Badge */
.pferd-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pferd-status--verfuegbar { background: #EBF5EB; color: var(--color-success); }
.pferd-status--reserviert { background: #FFF3CD; color: var(--color-warning); }

/* ============================================================
   9. Galerie
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Galerie-Tabs */
.gallery-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.gallery-tab {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}

.gallery-tab:hover,
.gallery-tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ============================================================
   10. Zuchtschauerfolge-Tabelle
   ============================================================ */
.erfolge-table {
    width: 100%;
    border-collapse: collapse;
}

.erfolge-table th {
    text-align: left;
    padding: var(--space-md);
    background: var(--color-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-border);
}

.erfolge-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.erfolge-table .year-header {
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    padding: var(--space-md);
}

/* ============================================================
   11. Formular
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(54,76,65,0.1);
}

.form-input--error {
    border-color: var(--color-error);
}

.field-error {
    display: block;
    color: var(--color-error);
    font-size: var(--text-xs);
    margin-top: var(--space-xs);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.form-alert--success {
    background: #EBF5EB;
    border: 1px solid #A8D5A8;
    color: #1D5B22;
}

.form-alert--error {
    background: #FDEDED;
    border: 1px solid #F5C6CB;
    color: #721C24;
}

/* ============================================================
   12. Google Maps Consent
   ============================================================ */
.map-placeholder {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.map-loaded {
    padding: 0;
    border: none;
    background: none;
}

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-about {
    padding-right: var(--space-xl);
}

.footer-about h3 {
    color: var(--color-white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.site-footer h4 {
    color: var(--color-white);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
    font-weight: 600;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: var(--text-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   14. Breadcrumb
   ============================================================ */
.breadcrumb {
    background: var(--color-secondary);
    padding: var(--space-md) 0;
    font-size: var(--text-sm);
}

.breadcrumb__list {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    align-items: center;
}

.breadcrumb__list li::after {
    content: '/';
    margin-left: var(--space-sm);
    color: var(--color-text-muted);
}

.breadcrumb__list li:last-child::after {
    content: '';
}

.breadcrumb__list a {
    color: var(--color-text-muted);
}

.breadcrumb__list a:hover {
    color: var(--color-primary);
}

/* ============================================================
   15. Verkaufspferd-Einzelseite
   ============================================================ */
.pferd-single__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.pferd-single__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-secondary);
    border-radius: var(--border-radius-lg);
}

.pferd-info-item {
    font-size: var(--text-sm);
}

.pferd-info-item strong {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

/* ============================================================
   16. 404
   ============================================================ */
.section-404 {
    padding: var(--space-5xl) 0;
}

.text-404 {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-md);
}

/* ============================================================
   17. Legal
   ============================================================ */
.section--legal {
    padding: var(--space-3xl) 0;
}

.legal-content h2 { font-size: var(--text-2xl); margin-top: var(--space-xl); }
.legal-content h3 { font-size: var(--text-xl); margin-top: var(--space-lg); }
.legal-content p  { margin-bottom: var(--space-md); }
.legal-content ul, .legal-content ol { margin-bottom: var(--space-md); padding-left: var(--space-xl); }
.legal-content li { margin-bottom: var(--space-xs); }
.legal-date { margin-top: var(--space-2xl); }

/* ============================================================
   18. Utilities
   ============================================================ */
.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;
}

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

/* ============================================================
   19. Responsive
   ============================================================ */
@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }

    .hero-video { height: 50vh; min-height: 300px; }
    .hero-video__overlay h1 { font-size: var(--text-3xl); }

    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-4xl) var(--space-xl);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right var(--transition-base);
        z-index: 1000;
        align-items: flex-start;
    }
    .nav-menu--open { right: 0; }

    .nav-dropdown__menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: none;
        border-left: 2px solid var(--color-primary);
        margin-left: var(--space-md);
        padding: var(--space-sm) 0;
    }

    .content-split,
    .content-split--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-xl);
    }

    .card-grid--2,
    .card-grid--3 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-about { padding-right: 0; }
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

    .pferd-single__info { grid-template-columns: 1fr; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   20. @font-face (WOFF2, lokal gehostet)
   ============================================================ */
@font-face {
    font-family: 'Lora';
    src: url('/assets/fonts/lora-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('/assets/fonts/lora-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('/assets/fonts/lora-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   21. Print
   ============================================================ */
@media print {
    .site-header, .site-footer, .top-bar, .nav-toggle, .btn, .map-placeholder { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* ============================================================
   22. Lightbox
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 24px;
    cursor: zoom-out;
}

.lightbox--open { display: flex; }

.lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.85;
}

.lightbox__close:hover { opacity: 1; }

body.lightbox-open { overflow: hidden; }

/* Beitragsbilder als anklickbar kennzeichnen */
.js-lightbox-scope img { cursor: zoom-in; border-radius: var(--border-radius); }

/* ============================================================
   22b. Cookie-Consent-Box (unten links, Seitenfarben)
   ============================================================ */
.consent-box {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 2500;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--color-secondary);
    border-top: 4px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: var(--space-lg);
    display: none;
}

.consent-box--open { display: block; }

.consent-box__title {
    font-family: var(--font-headline, var(--font-heading));
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.consent-box__text {
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.consent-box__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.consent-box__actions .btn { width: 100%; text-align: center; }

.consent-box__links {
    margin-top: var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

.consent-box__links a { color: var(--color-text-light); text-decoration: underline; }
.consent-box__links a:hover { color: var(--color-primary); }

@media (max-width: 480px) {
    .consent-box { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* ============================================================
   23. Responsive-Ergaenzungen
   ============================================================ */
/* Tabelle horizontal scrollbar statt Seiten-Overflow */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Topbar: Telefon + E-Mail mittig umbrechen lassen */
    .top-bar .container {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-sm) var(--space-md);
        text-align: center;
    }

    /* Erfolge-Tabelle kompakter */
    .erfolge-table th,
    .erfolge-table td { padding: var(--space-sm); font-size: var(--text-sm); }
    .erfolge-table .year-header { font-size: var(--text-base); }
}
