/*
Theme Name: Nanes Kinderwelt
Theme URI: https://nanes-kinderwelt.at
Author: Nanes Kinderwelt
Author URI: https://nanes-kinderwelt.at
Description: Ein freundliches, seriöses WordPress-Theme für Nanes Kinderwelt - Hüpfburgverleih, Kinderschminken, Glitzer Tattoos und bunte Haarsträhnen im Waldviertel und Wien. Kinderfreundliches Design mit professionellem Auftritt. Extrem einfach zu bedienen durch deutsche Menüführung, vorgefertigte Inhalte und klare Anleitungen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huepfburg-welt
Tags: business, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   Hüpfburg-Welt Theme Stylesheet
   Farbphilosophie: freundlich, warm, vertrauenswürdig
   ========================================================= */

:root {
    /* Sandige, warme Palette - inspiriert von Strand, Sonne und Sommerfest */
    --farbe-primaer:   #c97b3e;  /* warmes Sandstein-Orange, seriös */
    --farbe-primaer-d: #a85f2b;  /* dunkleres Karamell für Hover */
    --farbe-akzent:    #e89f2a;  /* honig-gold, fröhlich & warm */
    --farbe-sonne:     #ffd98a;  /* helles Sonnengelb */
    --farbe-gras:      #7fa85c;  /* gedämpftes Wiesen-Grün */
    --farbe-himmel:    #9fbfd9;  /* weiches, sandig-blasses Blau */
    --farbe-text:      #3a2a1a;  /* warmes Dunkelbraun statt hartem Schwarz */
    --farbe-text-weich:#7a6550;  /* sandiges Braun für Nebentext */
    --farbe-hell:      #fdf6e9;  /* creme-sandig, heller Hintergrund */
    --farbe-sand:      #f3e2c4;  /* mittlerer Sandton */
    --farbe-sand-tief: #e8d1a6;  /* tieferer Sandton */
    --farbe-weiss:     #fffdf7;  /* warmes Weiß */
    --farbe-rahmen:    #ecd9b6;  /* sandfarbener Rahmen */
    --schatten-weich:  0 4px 20px rgba(138, 95, 43, 0.10);
    --schatten-karte:  0 10px 30px rgba(138, 95, 43, 0.18);
    --radius-klein:    10px;
    --radius-mittel:   18px;
    --radius-gross:    28px;
    --schrift-titel:   'Fredoka', 'Quicksand', 'Segoe UI', system-ui, sans-serif;
    --schrift-text:    'Nunito', 'Open Sans', 'Segoe UI', system-ui, sans-serif;
}

/* =========================================================
   ANIMATIONEN
   - Alle Animationen sind sehr dezent gehalten
   - Respektieren prefers-reduced-motion (Barrierefreiheit)
   ========================================================= */

@keyframes hüpfen {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    20%      { transform: translateY(0) scale(1.05, 0.92); } /* eindrücken */
    50%      { transform: translateY(-18px) scale(0.97, 1.04); } /* Hochsprung */
    70%      { transform: translateY(-6px) scale(1, 1); }
}

@keyframes schweben {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes wackeln {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}

@keyframes einblenden {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulsieren {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(232, 159, 42, 0.35); }
    50%      { transform: scale(1.03); box-shadow: 0 10px 24px rgba(232, 159, 42, 0.50); }
}

@keyframes funkeln {
    0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.2) rotate(180deg); }
}

@keyframes wolke-ziehen {
    from { transform: translateX(-100px); }
    to   { transform: translateX(calc(100vw + 100px)); }
}

@keyframes sonne-strahlen {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Reduzierte Bewegung für Menschen, die das bevorzugen */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--schrift-text);
    font-size: 18px;
    line-height: 1.7;
    color: var(--farbe-text);
    background: var(--farbe-weiss);
    background-image:
        radial-gradient(ellipse at top, rgba(255, 217, 138, 0.25), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(243, 226, 196, 0.35), transparent 55%);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--farbe-primaer); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--schrift-titel);
    font-weight: 600;
    line-height: 1.2;
    color: var(--farbe-text);
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.4rem; }

p  { margin: 0 0 1em; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------------- Infoleiste ---------------------- */
.topbar {
    background: linear-gradient(90deg, var(--farbe-primaer-d), var(--farbe-primaer));
    color: var(--farbe-weiss);
    font-size: 15px;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: var(--farbe-weiss); font-weight: 600; }
.topbar .telefon { font-size: 17px; }
.topbar .telefon::before { content: "\260E"; margin-right: 6px; }

/* ----------------------- Kopfbereich --------------------- */
.site-header {
    background: var(--farbe-weiss);
    border-bottom: 1px solid var(--farbe-rahmen);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--schatten-weich);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo img { max-height: 70px; width: auto; }
.site-title {
    font-family: var(--schrift-titel);
    font-size: 1.7rem;
    margin: 0;
    color: var(--farbe-primaer);
}
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 0; color: var(--farbe-text-weich); font-size: 0.95rem; }

/* --------------------- Hauptnavigation ------------------- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--farbe-text);
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--farbe-primaer);
    color: var(--farbe-weiss);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--farbe-primaer);
    color: var(--farbe-weiss);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* ------------------------ Button ------------------------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
    border: 0;
    cursor: pointer;
}
.btn-primaer {
    background: linear-gradient(135deg, var(--farbe-akzent), #d88817);
    color: var(--farbe-weiss);
    box-shadow: 0 6px 16px rgba(232, 159, 42, 0.35);
    animation: pulsieren 3s ease-in-out infinite;
}
.btn-primaer:hover {
    transform: translateY(-3px) scale(1.03);
    text-decoration: none;
    color: var(--farbe-weiss);
    animation-play-state: paused;
    box-shadow: 0 12px 28px rgba(232, 159, 42, 0.55);
}
.btn-sekundaer {
    background: var(--farbe-weiss);
    color: var(--farbe-primaer);
    border: 2px solid var(--farbe-primaer);
}
.btn-sekundaer:hover { background: var(--farbe-primaer); color: var(--farbe-weiss); text-decoration: none; }

/* --------------------- Hero / Startfoto ------------------ */
.hero {
    position: relative;
    color: #fffdf7;
    padding: 90px 0 140px;
    /* Himmelsverlauf: hellblau oben zu sattem Himmelblau unten */
    background: linear-gradient(180deg, #a8d8ec 0%, #7ec1e0 50%, #5ba9d0 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bild, none);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    z-index: 0;
    mix-blend-mode: multiply;
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 {
    color: #fffdf7;
    text-shadow: 0 3px 14px rgba(88, 48, 16, 0.35);
    animation: einblenden 1s ease-out;
}
.hero .lead {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 8px rgba(88, 48, 16, 0.30);
    animation: einblenden 1.2s ease-out;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    animation: einblenden 1.4s ease-out;
}

/* Strahlend warme Sonne in der Ecke */
.hero-sonne {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 217, 100, 0.95) 0%, rgba(255, 200, 80, 0.6) 30%, rgba(255, 180, 60, 0) 70%);
    border-radius: 50%;
    animation: sonne-strahlen 40s linear infinite;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px);
}

/* Weiße Schäfchenwolken */
.hero-wolken {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.hero-wolke {
    position: absolute;
    font-size: 3rem;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(0, 80, 120, 0.15));
    animation: wolke-ziehen 60s linear infinite;
}
.hero-wolke-1 { top: 12%; animation-duration: 70s; }
.hero-wolke-2 { top: 32%; font-size: 2rem; animation-duration: 90s; animation-delay: -20s; opacity: 0.75; }
.hero-wolke-3 { top: 22%; font-size: 2.5rem; animation-duration: 80s; animation-delay: -40s; opacity: 0.85; }

/* Die Wiese am unteren Rand des Hero (auf der steht die Hüpfburg) */
.hero-wiese {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background:
        linear-gradient(180deg, #9ccc6a 0%, #7fa85c 60%, #5a8a3c 100%);
    z-index: 1;
}
/* Grashalme am oberen Wiesenrand */
.hero-wiese::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0 8px,
        #7fa85c 8px 10px,
        transparent 10px 18px,
        #6b9b4e 18px 20px
    );
}
/* Kleine Blumen auf der Wiese */
.hero-wiese::after {
    content: "🌼   🌸       🌼     🌷    🌼   🌸       🌼     🌻    🌼   🌸       🌼";
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    font-size: 1rem;
    letter-spacing: 20px;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0.9;
}

/* Die hüpfende Hüpfburg im Hero - steht auf der Wiese */
.hero-huepfburg {
    display: inline-block;
    margin: 20px auto -10px;
    transform-origin: bottom center;
    animation: hüpfen 2.4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(30, 60, 90, 0.35));
    position: relative;
    z-index: 3;
}
.hero-huepfburg svg {
    width: 180px;
    height: auto;
    display: block;
}

/* Schatten unter der Hüpfburg auf der Wiese (pulsiert mit) */
.hero-huepfburg-schatten {
    display: block;
    width: 160px;
    height: 12px;
    margin: -2px auto 0;
    background: radial-gradient(ellipse, rgba(30, 50, 20, 0.45), transparent 70%);
    border-radius: 50%;
    animation: schatten-puls 2.4s ease-in-out infinite;
    position: relative;
    z-index: 3;
}
@keyframes schatten-puls {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(0.75); opacity: 0.4; }
}

/* Wellen-Dekoration */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ---------------------- Vorteils-Boxen ------------------- */
.vorteile {
    padding: 70px 0;
    background: var(--farbe-hell);
}
.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}
.vorteil-karte {
    background: var(--farbe-weiss);
    padding: 32px 26px;
    border-radius: var(--radius-mittel);
    text-align: center;
    box-shadow: var(--schatten-weich);
    border: 1px solid var(--farbe-sand);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vorteil-karte:hover {
    transform: translateY(-6px);
    box-shadow: var(--schatten-karte);
}
.vorteil-karte:hover .vorteil-icon {
    animation: wackeln 0.6s ease-in-out;
}
.vorteil-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--farbe-sonne), var(--farbe-akzent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    animation: schweben 4s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(232, 159, 42, 0.3);
}
.vorteil-karte:nth-child(2) .vorteil-icon { animation-delay: -1.3s; }
.vorteil-karte:nth-child(3) .vorteil-icon { animation-delay: -2.6s; }
.vorteil-karte h3 { margin-bottom: 10px; }
.vorteil-karte p { color: var(--farbe-text-weich); margin: 0; }

/* --------------------- Abschnitt allgemein --------------- */
.section { padding: 80px 0; }
.section-heller  { background: var(--farbe-hell); }
.section-header  { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--farbe-text-weich); max-width: 680px; margin: 0 auto; }

/* ------------------ Hüpfburgen-Übersicht ----------------- */
.huepfburgen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.huepfburg-karte {
    background: var(--farbe-weiss);
    border-radius: var(--radius-mittel);
    overflow: hidden;
    box-shadow: var(--schatten-weich);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--farbe-sand);
    text-decoration: none;
    color: inherit;
    animation: einblenden 0.7s ease-out both;
}
.huepfburg-karte:nth-child(2) { animation-delay: 0.1s; }
.huepfburg-karte:nth-child(3) { animation-delay: 0.2s; }
.huepfburg-karte:nth-child(4) { animation-delay: 0.3s; }
.huepfburg-karte:nth-child(5) { animation-delay: 0.4s; }
.huepfburg-karte:nth-child(6) { animation-delay: 0.5s; }
.huepfburg-karte:hover {
    transform: translateY(-8px) rotate(-0.5deg);
    box-shadow: var(--schatten-karte);
    text-decoration: none;
}
.huepfburg-bild {
    aspect-ratio: 4 / 3;
    background: var(--farbe-rahmen);
    overflow: hidden;
}
.huepfburg-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.huepfburg-karte:hover .huepfburg-bild img { transform: scale(1.05); }
.huepfburg-inhalt { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.huepfburg-inhalt h3 { margin-bottom: 10px; color: var(--farbe-primaer); }
.huepfburg-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--farbe-text-weich);
    margin-bottom: 14px;
}
.huepfburg-meta span::before { margin-right: 4px; }
.huepfburg-preis {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--farbe-akzent);
    margin-top: auto;
    padding-top: 14px;
}
.huepfburg-preis small { color: var(--farbe-text-weich); font-weight: 400; font-size: 0.85rem; }

/* ------------------ Einzelansicht Hüpfburg --------------- */
.huepfburg-einzel {
    padding: 60px 0;
}
.huepfburg-einzel-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}
.huepfburg-hauptbild {
    border-radius: var(--radius-mittel);
    overflow: hidden;
    box-shadow: var(--schatten-karte);
}
.huepfburg-details h1 { color: var(--farbe-primaer); }
.huepfburg-fakten {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.huepfburg-fakten li {
    background: var(--farbe-hell);
    padding: 14px 18px;
    border-radius: var(--radius-klein);
    border-left: 4px solid var(--farbe-akzent);
}
.huepfburg-fakten strong { display: block; font-size: 0.9rem; color: var(--farbe-text-weich); }
.huepfburg-fakten span { font-size: 1.1rem; font-weight: 700; color: var(--farbe-text); }
.huepfburg-preisbox {
    background: linear-gradient(135deg, var(--farbe-akzent), #ff6b1a);
    color: var(--farbe-weiss);
    padding: 28px;
    border-radius: var(--radius-mittel);
    margin: 30px 0;
    text-align: center;
}
.huepfburg-preisbox .preis { font-size: 2.5rem; font-weight: 700; font-family: var(--schrift-titel); }
.huepfburg-preisbox small { opacity: 0.9; }

/* ----------------- Kontakt / Anfrage-Bereich ------------- */
.kontakt-bereich {
    background: linear-gradient(135deg, var(--farbe-primaer), var(--farbe-akzent));
    color: var(--farbe-weiss);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.kontakt-bereich::before {
    content: "✨";
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 1.5rem;
    animation: funkeln 3s ease-in-out infinite;
    opacity: 0.5;
}
.kontakt-bereich::after {
    content: "✨";
    position: absolute;
    top: 30%;
    right: 15%;
    font-size: 2rem;
    animation: funkeln 3s ease-in-out infinite;
    animation-delay: -1.5s;
    opacity: 0.5;
}
.kontakt-bereich h2 { color: var(--farbe-weiss); }
.kontakt-bereich p  { font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; }
.kontakt-gross {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
}
.kontakt-gross a { color: var(--farbe-weiss); }
.kontakt-gross .telefon-nummer {
    background: var(--farbe-weiss);
    color: var(--farbe-primaer);
    padding: 18px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.kontakt-gross .telefon-nummer:hover { text-decoration: none; transform: translateY(-2px); }

/* ----------------- Anfrageformular ----------------------- */
.anfrageformular {
    background: var(--farbe-weiss);
    color: var(--farbe-text);
    border-radius: var(--radius-mittel);
    padding: 36px;
    box-shadow: var(--schatten-karte);
    max-width: 720px;
    margin: 30px auto 0;
    text-align: left;
}
.anfrageformular h3 { text-align: center; color: var(--farbe-primaer); }
.anfrageformular label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
    font-size: 1rem;
}
.anfrageformular input,
.anfrageformular textarea,
.anfrageformular select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--farbe-rahmen);
    border-radius: var(--radius-klein);
    font-size: 1rem;
    font-family: inherit;
    background: var(--farbe-weiss);
    transition: border-color 0.2s;
}
.anfrageformular input:focus,
.anfrageformular textarea:focus,
.anfrageformular select:focus {
    outline: none;
    border-color: var(--farbe-primaer);
}
.anfrageformular textarea { min-height: 130px; resize: vertical; }
.anfrageformular button { width: 100%; margin-top: 20px; }
.anfrage-erfolg {
    background: #e6f7ed;
    color: #166534;
    border: 2px solid #4caf50;
    padding: 16px;
    border-radius: var(--radius-klein);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}
.anfrage-fehler {
    background: #fdecec;
    color: #991b1b;
    border: 2px solid #ef4444;
    padding: 16px;
    border-radius: var(--radius-klein);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

/* ---------------- Über-uns / Inhalt ---------------------- */
.inhalt-bereich {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px;
    font-size: 1.1rem;
}
.inhalt-bereich h1 { color: var(--farbe-primaer); }
.inhalt-bereich img { border-radius: var(--radius-mittel); margin: 20px 0; }

/* ---------------- Fußbereich (grüne Wiese) --------------- */
.site-footer {
    /* Wiesen-Verlauf: hellgrün oben zu tiefem Waldgrün unten */
    background: linear-gradient(180deg, #8db959 0%, #5a8a3c 45%, #3d6b26 100%);
    color: #fffdf7;
    padding: 70px 0 60px; /* extra Platz unten für das Eichhörnchen-Gras */
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
/* Grashalme am oberen Rand der Wiese */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0 10px,
        #a8cf6a 10px 12px,
        transparent 12px 20px,
        #8db959 20px 22px,
        transparent 22px 30px,
        #9cc466 30px 32px
    );
    z-index: 6;
}
.site-footer .container { position: relative; z-index: 5; }
.site-footer a { color: #fff3b0; font-weight: 700; }
.site-footer a:hover { color: #fffdf7; }
.site-footer h4 { color: #fffdf7; text-shadow: 0 1px 2px rgba(0, 50, 20, 0.3); }

/* ================= EICHHÖRNCHEN IM FOOTER ================ */
.eichhoernchen-szene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Gras-Teppich am unteren Rand (passt sich dem Wiesen-Footer an) */
.eichh-gras {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(180deg, #3d6b26 0%, #2d5518 100%);
    border-top: 2px solid #5a8a3c;
}
/* Kleine Grashalme */
.eichh-gras::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 8px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0 6px,
        #7fa85c 6px 8px,
        transparent 8px 14px,
        #5a8a3c 14px 15px
    );
}
/* Ein paar Blumen-Tupfer auf der Wiese */
.eichh-gras::after {
    content: "🌼     🌸       🌻       🌼    🌷     🌼    🌸      🌻     🌼      🌸";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    font-size: 0.85rem;
    letter-spacing: 30px;
    white-space: nowrap;
    overflow: hidden;
}

/* Die Nüsse am Boden */
.eichh-nuss {
    position: absolute;
    bottom: 18px;
    width: 20px;
    height: 24px;
    z-index: 2;
    animation-duration: 24s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.eichh-nuss svg { width: 100%; height: 100%; }

.eichh-nuss-1 {
    left: 28%;
    animation-name: nuss-leben-1;
}
.eichh-nuss-2 {
    left: 68%;
    animation-name: nuss-leben-2;
}

/* Die Nuss bleibt liegen, schrumpft dann plötzlich weg
   wenn das Eichhörnchen sie erreicht. */
@keyframes nuss-leben-1 {
    0%, 24%   { opacity: 1; transform: scale(1) rotate(0deg); }
    26%       { opacity: 1; transform: scale(1.3) rotate(15deg); } /* wird aufgehoben */
    27%, 32%  { opacity: 0; transform: scale(0); }                  /* wird gegessen */
    95%       { opacity: 0; transform: scale(0); }
    98%, 100% { opacity: 1; transform: scale(1); }                  /* neue Nuss erscheint */
}

@keyframes nuss-leben-2 {
    0%, 56%   { opacity: 1; transform: scale(1) rotate(0deg); }
    58%       { opacity: 1; transform: scale(1.3) rotate(-15deg); }
    60%, 65%  { opacity: 0; transform: scale(0); }
    95%       { opacity: 0; transform: scale(0); }
    98%, 100% { opacity: 1; transform: scale(1); }
}

/* Eichhörnchen-Container - bewegt sich horizontal auf der Wiese */
.eichhoernchen {
    position: absolute;
    bottom: 18px;
    left: -100px;
    width: 90px;
    height: 68px;
    z-index: 3;
    animation: eichh-route 24s ease-in-out infinite;
}

@keyframes eichh-route {
    /* Läuft von links rein */
    0%    { left: -100px; transform: scaleX(1); }
    /* Erreicht erste Nuss bei ~28% */
    24%   { left: calc(28% - 20px); transform: scaleX(1); }
    /* Frisst Nuss 1 */
    24.1% { transform: scaleX(1); }
    32%   { left: calc(28% - 20px); transform: scaleX(1); }
    /* Weiter zur zweiten Nuss */
    56%   { left: calc(68% - 20px); transform: scaleX(1); }
    /* Frisst Nuss 2 */
    65%   { left: calc(68% - 20px); transform: scaleX(1); }
    /* Merkt etwas - dreht sich um und läuft zurück */
    66%   { left: calc(68% - 20px); transform: scaleX(-1); }
    95%   { left: -100px; transform: scaleX(-1); }
    /* Dreht sich wieder um für nächste Runde */
    96%, 100% { left: -100px; transform: scaleX(1); }
}

/* Körper hüpft beim Laufen - beim Fressen bewegt er sich anders */
.eichh-koerper {
    width: 100%;
    height: 100%;
    animation: eichh-bewegung 24s ease-in-out infinite;
    transform-origin: bottom center;
}
.eichh-koerper svg { width: 100%; height: 100%; display: block; }

@keyframes eichh-bewegung {
    /* Laufen: schnelles Hopsen (0-24%) */
    0%, 24%    { transform: translateY(0); }
    2%         { transform: translateY(-6px); }
    4%         { transform: translateY(0); }
    6%         { transform: translateY(-6px); }
    8%         { transform: translateY(0); }
    10%        { transform: translateY(-6px); }
    12%        { transform: translateY(0); }
    14%        { transform: translateY(-6px); }
    16%        { transform: translateY(0); }
    18%        { transform: translateY(-6px); }
    20%        { transform: translateY(0); }
    22%        { transform: translateY(-6px); }
    /* Fressen: aufrecht sitzen, sanft wippen (24-32%) */
    25%, 31%   { transform: translateY(-2px); }
    28%        { transform: translateY(0); }
    /* Weiterlaufen (32-56%) */
    34%        { transform: translateY(-6px); }
    36%        { transform: translateY(0); }
    38%        { transform: translateY(-6px); }
    40%        { transform: translateY(0); }
    42%        { transform: translateY(-6px); }
    44%        { transform: translateY(0); }
    46%        { transform: translateY(-6px); }
    48%        { transform: translateY(0); }
    50%        { transform: translateY(-6px); }
    52%        { transform: translateY(0); }
    54%        { transform: translateY(-6px); }
    56%        { transform: translateY(0); }
    /* Fressen #2 (56-65%) */
    58%, 63%   { transform: translateY(-2px); }
    61%        { transform: translateY(0); }
    /* Zurücklaufen (65-95%) */
    67%        { transform: translateY(-6px); }
    70%        { transform: translateY(0); }
    73%        { transform: translateY(-6px); }
    76%        { transform: translateY(0); }
    79%        { transform: translateY(-6px); }
    82%        { transform: translateY(0); }
    85%        { transform: translateY(-6px); }
    88%        { transform: translateY(0); }
    91%        { transform: translateY(-6px); }
    94%        { transform: translateY(0); }
    100%       { transform: translateY(0); }
}

/* Schwanz wedelt ständig sanft */
.eichh-schwanz {
    transform-origin: 30px 60px;
    animation: eichh-schwanzwedeln 1.2s ease-in-out infinite;
}

@keyframes eichh-schwanzwedeln {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(8deg); }
}

/* Pfoten mit Nuss - nur beim Fressen sichtbar */
.eichh-pfoten {
    opacity: 0;
    animation: eichh-pfoten-zeigen 24s ease-in-out infinite;
}

@keyframes eichh-pfoten-zeigen {
    0%, 23%    { opacity: 0; }
    25%, 31%   { opacity: 1; } /* fressen #1 */
    33%, 55%   { opacity: 0; }
    57%, 64%   { opacity: 1; } /* fressen #2 */
    66%, 100%  { opacity: 0; }
}

/* Knabber-Bewegung der Nuss zwischen den Pfoten */
.eichh-mundnuss {
    transform-origin: 85px 54px;
    animation: eichh-knabbern 24s ease-in-out infinite;
}

@keyframes eichh-knabbern {
    0%, 23%    { transform: scale(1); }
    24%        { transform: scale(1); }
    26%        { transform: scale(0.85); } /* Biss */
    28%        { transform: scale(0.95); }
    30%        { transform: scale(0.75); } /* Biss */
    32%, 55%   { transform: scale(1); }
    57%        { transform: scale(0.85); }
    59%        { transform: scale(0.95); }
    61%        { transform: scale(0.75); }
    63%, 100%  { transform: scale(1); }
}

/* Auf kleinen Geräten das Eichhörnchen etwas kleiner */
@media (max-width: 600px) {
    .eichhoernchen { width: 70px; height: 53px; bottom: 16px; }
    .eichh-nuss    { width: 16px; height: 19px; bottom: 16px; }
    .eichh-gras    { height: 14px; }
}
/* ============== Ende Eichhörnchen ============== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}
.footer-grid h4 {
    color: var(--farbe-weiss);
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-unten {
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 20px;
    padding-bottom: 30px; /* Platz, damit das Eichhörnchen nicht den Text überlappt */
    text-align: center;
    font-size: 0.9rem;
    color: #eafbd7;
}

/* ---------------- Skip-Link (Barrierefreiheit) ----------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--farbe-primaer);
    color: var(--farbe-weiss);
    padding: 10px 20px;
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ---------------- Vertrauens-Badges (Hover-Wackeln) ------ */
.vertrauen-badge {
    transition: transform 0.3s ease;
}
.vertrauen-badge:hover {
    transform: translateY(-4px) rotate(-1deg);
    animation: wackeln 0.6s ease-in-out;
}

/* ---------------- Paginierung ---------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-klein);
    background: var(--farbe-hell);
    color: var(--farbe-text);
    text-decoration: none;
    font-weight: 700;
}
.pagination .current {
    background: var(--farbe-primaer);
    color: var(--farbe-weiss);
}

/* ---------------- Mobile ---------------------------------- */
@media (max-width: 900px) {
    .huepfburg-einzel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .menu-toggle { display: inline-block; }
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--farbe-weiss);
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid var(--farbe-rahmen);
        box-shadow: var(--schatten-karte);
    }
    .main-nav.open ul { display: flex; }
    .main-nav a { padding: 14px 16px; }
    .site-header .container { position: relative; }
    .hero { padding: 60px 0 80px; }
    .topbar .container { justify-content: center; text-align: center; }
}

/* ---------------- Druckansicht --------------------------- */
@media print {
    .site-header, .site-footer, .kontakt-bereich, .btn { display: none !important; }
    body { font-size: 12pt; color: #000; }
}
