/*
Theme Name: Nelly's Wolfsspitz
Theme URI: https://nk-medien.de/nelly/
Author: NK Medien
Author URI: https://nk-medien.de/
Description: Klassisches WordPress-Theme für Wolfsspitz-Züchter. Warmes, modernes Design mit Customizer-Unterstützung für Logo, Kontaktdaten und Farben. Barrierefrei und SEO-optimiert.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nellys-wolfsspitz
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready
*/

/* ============================================================
   Design 2026: Warm Naturals, Fluid Typography, Modern Layout
   ============================================================ */

:root {
    --color-bg:          #faf9f7;
    --color-surface:     #ffffff;
    --color-text:        #3E2723;
    --color-text-sub:    #5D4E37;
    --color-muted:       #6B5D50;
    --color-accent:      #A47551;
    --color-accent-hover:#8B6242;
    --color-warm:        #EDE8E2;
    --color-warm-dark:   #DDD5CB;
    --color-border:      #E0D8CF;
    --color-hero-bg:     #F0EBE5;
    --color-gold:        #D4A843;

    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --max-width: 1140px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 4px rgba(62,39,35,0.06);
    --shadow-md: 0 8px 30px rgba(62,39,35,0.1);
    --shadow-lg: 0 16px 50px rgba(62,39,35,0.12);
    --transition: 0.25s ease;

    --fs-body: 18px;
    --fs-content: 20px;
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h3: 22px;
    --fs-nav: 15px;
}

/* Dark Mode Override — Force Light */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg:       #faf9f7;
        --color-surface:  #ffffff;
        --color-text:     #3E2723;
        --color-text-sub: #5D4E37;
        --color-muted:    #6B5D50;
        --color-border:   #E0D8CF;
        --color-hero-bg:  #F0EBE5;
    }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-accent);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* === HEADER === */
.site-header {
    background: #1a1a1a;
    color: #ffffff;
    border-bottom: none;
}

/* Hero: Logo links, Name+Slogan Mitte, Kontakt rechts */
.header-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.header-hero-logo {
    flex-shrink: 0;
}

.header-hero-logo img {
    display: block;
    width: 250px;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
    object-fit: contain;
    contain-intrinsic-size: 250px 175px;
    content-visibility: visible;
}

/* Mitte: Zwingername + Slogan */
.header-hero-center {
    flex: 1;
    text-align: center;
}

.header-hero-center h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
    font-weight: 800;
    color: #D4A843 !important;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.header-hero-center .header-subtitle {
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
    color: #e0e0e0;
    letter-spacing: 0.03em;
    font-weight: 400;
}

/* Rechts: Kontaktdaten als Badges */
.header-hero-contact {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #f0f0f0;
    transition: background var(--transition), border-color var(--transition);
}

.contact-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 168, 67, 0.4);
}

.contact-badge-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    width: 1.4rem;
    text-align: center;
    filter: grayscale(0.3);
}

.contact-badge-label {
    color: #c8c0b4;
    font-weight: 600;
}

.contact-badge a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition);
}

.contact-badge a:hover {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Focus-Styles für Tastaturnavigation */
.contact-badge a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Fallback ohne Logo */
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-gold);
    margin-bottom: 0.4rem;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
    color: #e0e0e0;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

@media (max-width: 800px) {
    .header-hero {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .header-hero-logo img {
        width: 180px;
        margin: 0 auto;
    }
    .header-hero-center h1 {
        font-size: 1.8rem;
    }
    .header-hero-center .header-subtitle {
        margin-bottom: 0;
    }
    .header-hero-contact {
        align-items: stretch;
    }
    .contact-badge {
        justify-content: center;
    }
}

/* === NAVIGATION === */
.main-nav {
    background: var(--color-hero-bg);
    padding: 0.75rem 2rem;
    margin-top: 0.5rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.main-nav li { list-style: none; }

.main-nav a {
    display: block;
    color: var(--color-text-sub);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-nav);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.main-nav a:hover {
    background: rgba(62,39,35,0.05);
    color: var(--color-text);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] {
    background: #1a1a1a;
    color: var(--color-gold);
    font-weight: 700;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Dropdown / Untermenü */
.main-nav li {
    position: relative;
}

.main-nav .sub-menu {
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-surface);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu a {
    display: block;
    padding: 0.55rem 1.25rem;
    font-size: calc(var(--fs-nav) - 1px);
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--color-text-sub);
    border-radius: 0;
    white-space: nowrap;
}

.main-nav .sub-menu a:hover {
    background: var(--color-warm);
    color: var(--color-text);
}

.main-nav .sub-menu a[aria-current="page"] {
    background: var(--color-warm);
    color: var(--color-text);
    font-weight: 700;
    border-radius: 0;
}

/* Pfeil-Indikator für Menüpunkte mit Untermenü */
.main-nav .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.75em;
    margin-left: 0.4em;
    color: #c0392b;
    vertical-align: 0.1em;
    transition: transform var(--transition);
    display: inline-block;
}

.main-nav .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .main-nav .sub-menu { transition: none; }
}

/* Burger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .nav-toggle { display: block; margin: 0 auto; font-size: 2rem; padding: 0.6rem 1rem; }
    .main-nav { padding: 0.5rem 1rem; text-align: center; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 0.75rem;
    }
    .main-nav ul.open { display: flex; }
    .main-nav a {
        border-radius: var(--radius-sm);
        text-align: center;
        padding: 0.65rem 1rem;
    }
    .main-nav .current-menu-item > a,
    .main-nav .current_page_item > a,
    .main-nav a[aria-current="page"] {
        background: #1a1a1a;
        color: var(--color-gold);
    }
    /* Dropdown mobil: immer sichtbar, eingerückt */
    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 0;
        padding: 0;
    }
    .main-nav .sub-menu a {
        padding-left: 2rem;
        font-size: calc(var(--fs-nav) - 1px);
        text-transform: none;
    }
    .main-nav .menu-item-has-children > a::after {
        display: none;
    }
}

/* === MAIN CONTENT === */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) 2rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.95rem;
    color: #5D4E37;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb strong {
    color: var(--color-text);
    font-weight: 700;
}

/* === CONTENT BODY === */
.entry-content,
.entry-content p,
.entry-content li,
.entry-content span,
.entry-content td,
.entry-content th,
.entry-content blockquote,
.entry-content address {
    font-size: var(--fs-content);
    line-height: 1.85;
    color: #000;
}

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: #000;
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.entry-content h2 { font-size: var(--fs-h2); }
.entry-content h3 { font-size: var(--fs-h3); }
.entry-content h4 { font-size: calc(var(--fs-h3) - 2px); }

.entry-content p { margin-bottom: 1.5rem; }
.entry-content ul, .entry-content ol { margin: 1.25rem 0 1.5rem 1.75rem; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: var(--color-warm);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.1em;
}

.entry-content pre {
    background: #2d2520;
    color: #EDE8E2;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 2rem 0;
}

.entry-content code {
    background: var(--color-warm);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre code { background: none; padding: 0; }

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(62, 39, 35, 0.12);
    cursor: zoom-in;
    transition: box-shadow var(--transition), transform var(--transition);
}

.entry-content img:hover {
    box-shadow: 0 8px 30px rgba(62, 39, 35, 0.2);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .entry-content img:hover { transform: none; }
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95em;
}

.entry-content th, .entry-content td {
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-warm);
    font-weight: 700;
    color: var(--color-text);
}

/* WordPress alignment classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 2rem auto; }
.alignwide { max-width: calc(var(--max-width) + 4rem); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* === AKTUELLE MELDUNG === */
.announcement {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: announcement-fade 0.5s ease;
}

@keyframes announcement-fade {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement { animation: none; }
}

.announcement-inner {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.02em;
}

.announcement-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.announcement-text a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Gold */
.announcement--gold {
    background: linear-gradient(135deg, #FDF6E3 0%, #F5E6C4 100%);
    border-left: 5px solid #D4A843;
}
.announcement--gold .announcement-title { color: #8B6914; }
.announcement--gold .announcement-text { color: #5D4E37; }
.announcement--gold .announcement-text a { color: #8B6914; }

/* Grün */
.announcement--green {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 5px solid #4CAF50;
}
.announcement--green .announcement-title { color: #2E7D32; }
.announcement--green .announcement-text { color: #1B5E20; }
.announcement--green .announcement-text a { color: #2E7D32; }

/* Rot */
.announcement--red {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-left: 5px solid #E53935;
}
.announcement--red .announcement-title { color: #C62828; }
.announcement--red .announcement-text { color: #B71C1C; }
.announcement--red .announcement-text a { color: #C62828; }

/* Blau */
.announcement--blue {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 5px solid #1976D2;
}
.announcement--blue .announcement-title { color: #1565C0; }
.announcement--blue .announcement-text { color: #0D47A1; }
.announcement--blue .announcement-text a { color: #1565C0; }

@media (max-width: 640px) {
    .announcement-inner { padding: 1.25rem 1.5rem; }
    .announcement-title { font-size: 1.1rem; }
}

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(145deg, #E8C86A, #D4A843);
    padding: 5px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card:hover { transform: none; }
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .gallery-card:hover img { transform: none; }
}

/* WordPress Gallery */
.wp-block-gallery,
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* =====================================================
   WordPress Gallery — überschreibt WP-Core inline CSS
   Hohe Spezifität nötig wegen WP :not(#individual-image)
   ===================================================== */
.wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important;
    margin: 2rem 0;
    padding: 0;
}

/* Jede Bild-Karte */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.wp-block-gallery figure.wp-block-image,
.wp-block-gallery .blocks-gallery-item {
    width: 100% !important;
    margin: 0 !important;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(145deg, #E8C86A, #D4A843);
    padding: 5px;
    box-shadow: 0 4px 16px rgba(62, 39, 35, 0.12);
    transition: box-shadow var(--transition), transform var(--transition);
}

.wp-block-gallery figure.wp-block-image:hover,
.wp-block-gallery .blocks-gallery-item:hover {
    box-shadow: 0 8px 30px rgba(62, 39, 35, 0.2);
    transform: translateY(-3px);
}

/* Bilder: volle Zelle füllen */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img,
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a img,
.wp-block-gallery figure.wp-block-image img,
.wp-block-gallery .blocks-gallery-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4/3;
    object-fit: cover !important;
    cursor: zoom-in;
    transition: transform 0.4s ease;
    border-radius: 0;
}

/* Link-Wrapper auch füllen */
.wp-block-gallery.has-nested-images figure.wp-block-image > a,
.wp-block-gallery.has-nested-images figure.wp-block-image > div {
    display: block !important;
    width: 100%;
    height: 100%;
}

.wp-block-gallery figure.wp-block-image:hover img,
.wp-block-gallery .blocks-gallery-item:hover img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .wp-block-gallery figure.wp-block-image:hover { transform: none; }
    .wp-block-gallery figure.wp-block-image:hover img { transform: none; }
}

/* Galerie-Beschriftungen */
.wp-block-gallery figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-sub);
    text-align: center;
    background: var(--color-surface);
}

/* Alte Galerie-Struktur (blocks-gallery-grid) */
.blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
}

.blocks-gallery-grid .blocks-gallery-item {
    width: 100% !important;
    margin: 0 !important;
}

.blocks-gallery-grid .blocks-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* === LIGHTBOX === */
.lightbox {
    border: none;
    background: rgba(30,20,15,0.94);
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    padding: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox[open] { display: flex; }

.lightbox::backdrop { background: rgba(30,20,15,0.94); }

.lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.3rem 0.7rem;
    line-height: 1;
    border-radius: 50%;
    transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.8rem 1rem;
    line-height: 1;
    border-radius: 50%;
    transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav:focus-visible { outline: 2px solid #D4A843; outline-offset: 2px; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 10;
}

@media (max-width: 640px) {
    .lightbox-nav { font-size: 1.5rem; padding: 0.6rem 0.8rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* === FOOTER === */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section .footer-heading {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p,
.footer-section address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    color: #e0e0e0;
}

.footer-section a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.footer-section a:hover { color: #cccccc; }

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.social-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    background: #333333;
    color: #ffffff;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.social-links a:hover {
    background: #555555;
}

/* Footer-Navigation */
.footer-nav {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #333333;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    justify-content: center;
}

.footer-nav a {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid #333333;
    text-align: center;
    font-size: 0.95rem;
    color: #999999;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    width: calc(100% - 2.5rem);
    max-width: 620px;
    background: var(--color-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transform: translateX(-50%) translateY(calc(100% + 2rem));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
    will-change: transform, opacity;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }

.cookie-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.cookie-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4340;
    margin-bottom: 1.5rem;
}

.cookie-buttons { display: flex; gap: 0.75rem; }

.cookie-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition), transform 0.1s;
    text-align: center;
}

.cookie-btn:active { transform: scale(0.97); }

.cookie-btn-accept {
    background: #6B4C2F;
    color: #fff;
}
.cookie-btn-accept:hover { background: #5A3E24; }

.cookie-btn-reject {
    background: transparent;
    color: #4a4340;
    border: 1.5px solid var(--color-border);
}
.cookie-btn-reject:hover { background: var(--color-warm); color: var(--color-text); }

@media (max-width: 480px) {
    .cookie-banner { bottom: 0.75rem; padding: 1.5rem; border-radius: 16px; }
    .cookie-buttons { flex-direction: column; gap: 0.5rem; }
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-gold);
    color: #1a1a1a;
}

@media (max-width: 480px) {
    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; font-size: 1.2rem; }
}

/* === WELPEN === */
.welpen-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.welpen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.welpe-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text);
}

.welpe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.welpe-card--female { border-left: 4px solid #c2185b; }
.welpe-card--male { border-left: 4px solid #1565c0; }

.welpe-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.welpe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.welpe-card:hover .welpe-image img {
    transform: scale(1.05);
}

.welpe-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-warm);
}

.welpe-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-muted);
}

.welpe-placeholder--female { background: #fce4ec; }
.welpe-placeholder--male { background: #e3f2fd; }

.welpe-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.welpe-status {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: calc(var(--fs-body) * 0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.welpe-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.welpe-status--frei { background: rgba(220,252,231,0.95); color: #166534; }
.welpe-status--frei .welpe-status-dot { background: #22c55e; }
.welpe-status--reserviert { background: rgba(254,243,199,0.95); color: #92400e; }
.welpe-status--reserviert .welpe-status-dot { background: #f59e0b; }
.welpe-status--vergeben { background: rgba(254,202,202,0.95); color: #991b1b; }
.welpe-status--vergeben .welpe-status-dot { background: #ef4444; }

.welpe-gender {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.welpe-gender--female { background: rgba(244,114,182,0.2); color: #c2185b; }
.welpe-gender--male { background: rgba(96,165,250,0.2); color: #1565c0; }

.welpe-details {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.welpe-name {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.welpe-meta {
    font-family: var(--font-body);
    font-size: calc(var(--fs-body) * 0.9);
    font-weight: 600;
    margin: 0;
}

.welpe-meta--female { color: #c2185b; }
.welpe-meta--male { color: #1565c0; }

.welpe-meta-sep {
    margin: 0 0.4rem;
    color: var(--color-border);
}

.welpe-meta-muted { color: var(--color-muted); font-weight: 400; }

.welpe-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.welpe-info-label {
    font-family: var(--font-body);
    font-size: calc(var(--fs-body) * 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 600;
}

.welpe-info-value {
    font-family: var(--font-body);
    font-size: calc(var(--fs-body) * 0.9);
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0.15rem;
}

.welpe-note {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--color-text-sub);
    font-size: calc(var(--fs-body) * 0.9);
    line-height: 1.5;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-warm);
    border-radius: var(--radius-sm);
}

.welpe-cta {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
}

.welpe-cta:hover { gap: 0.75rem; color: var(--color-accent-hover); }

.welpe-cta svg {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition);
}

.welpe-cta:hover svg { transform: translateX(3px); }

/* Welpen-Galerie */
.welpe-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.welpe-gallery .welpe-gallery-thumb {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e8dfd3;
    margin: 0;
    cursor: zoom-in;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.welpe-gallery .welpe-gallery-thumb:hover {
    border-color: #D4A843;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .welpe-gallery .welpe-gallery-thumb:hover { transform: none; }
}

/* Welpen-Anfrage auf Kontaktseite */
.welpen-inquiry {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #FDF6E3 0%, #F5E6C4 100%);
    border-left: 5px solid #D4A843;
    overflow: hidden;
}

.welpen-inquiry-inner {
    padding: 1.5rem 2rem;
}

.welpen-inquiry-title {
    font-size: 1.3rem;
    color: #5D4E37;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.welpen-inquiry-title strong {
    color: #8B6914;
}

.welpen-inquiry-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5D4E37;
    margin: 0 0 1.25rem;
}

.welpen-inquiry-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.welpen-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #1a1a1a;
    color: #D4A843 !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--transition);
}

.welpen-inquiry-btn:hover {
    background: #333;
}

.welpen-inquiry-name {
    font-size: 0.95rem;
    color: #8B6914;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 480px) {
    .welpen-inquiry-inner { padding: 1.25rem 1.5rem; }
    .welpen-inquiry-contact { flex-direction: column; }
}

/* Welpen Empty State */
.welpen-empty {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 32rem;
    margin: 0 auto;
}

.welpen-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--color-accent);
}

.welpen-empty-icon svg { width: 100%; height: 100%; }

.welpen-empty h2 {
    font-size: var(--fs-h2);
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.welpen-empty p {
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.welpen-empty .btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition);
}

.welpen-empty .btn:hover { background: var(--color-accent-hover); }

/* Welpen responsive */
@media (max-width: 640px) {
    .welpe-card {
        grid-template-columns: 1fr;
    }

    .welpe-image {
        aspect-ratio: 16/10;
    }

    .welpe-details {
        padding: 1.25rem;
    }

    .welpe-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === PRINT === */
@media print {
    .site-header, .site-footer, .lightbox, .nav-toggle, .cookie-banner, .back-to-top { display: none; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .site-main { padding: 0; max-width: 100%; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    a { color: #000; }
    a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
