/* -------------------- */
/* GOOGLE FONT          */
/* -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* -------------------- */
/* STANDARD / DESKTOP    */
/* -------------------- */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fafafa;
    color: #333;
}

/* Header Grundstruktur */
header {
    background: linear-gradient(135deg, #6b9b6b, #3d6f3d);
    color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
}

/* Desktop Navigation sichtbar */
header nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

header nav a:hover {
    background: linear-gradient(135deg, #8fcf8f, #6b9b6b);
    transform: scale(1.05);
}

/* Collapsed Mobile Menu (Header-Titel + Pfeil) */
.menu-current {
    display: none; /* nur auf Mobile sichtbar */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

/* Abstand Content, damit Header nicht überlappt */
main {
    padding-top: 60px; /* Höhe Header */
}

#hero, #ueber-mich, #erfolge, #kontakt {
    scroll-margin-top: 60px;
}

/* Onepager Überschriften */
h1, h2, section p {
    text-align: center;
}
/* Buttons unter den Abschnitten */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6b9b6b, #3d6f3d);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, #8fcf8f, #6b9b6b);
    transform: translateY(-3px);
}

/* Grid für Tierkarten */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* vorher 220px */
    gap: 25px;
    padding: 25px;
    justify-content: center; /* zentriert das Grid */
    align-items: start;
    max-width: 1400px; /* verhindert, dass es zu weit auseinanderzieht */
    margin: 0 auto;
}

.tier-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: black;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 380px; /* optional: gleiche max-Breite pro Karte */
    margin: 0 auto;
}

.tier-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.tier-card img {
    width: 100%;
    height: 220px; /* Einheitliche Höhe für alle Karten */
    object-fit: cover; /* Bild wird skaliert, ohne verzerrt zu werden */
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Tier-Detail Ansicht */
.tier-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.tier-detail, 
.tier-detail p {    /* je nachdem wie dein Text-Container heißt */
    white-space: normal;           /* erlaubt Zeilenumbruch */
    word-wrap: break-word;         /* alt Alias für overflow-wrap */ 
    overflow-wrap: break-word;     /* sorgt dafür, dass lange Wörter/Strings umgebrochen werden */
    word-break: break-word;        /* zusätzlich falls nötig */
    hyphens: auto;                 /* optional: automatische Trennung falls unterstützt */
    max-width: 100%;               /* stellt sicher, dass das Element nicht breiter als der Container wird */
    box-sizing: border-box;
}
/* Nur das Hauptbild (nicht die kleinen Icons) */
.tier-bild {
    max-width: 300px;
    width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}


/* -------------------- */
/* 🏷 Einheitliche Badges */
/* -------------------- */
.badge_abgabe,
.badge_reserviert,
.badge_verkauft {
    font-size: 0.95em !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: none !important;
    color: white !important;
}

/* Farbvarianten */
.badge_abgabe {
    background: linear-gradient(135deg, #ff6b6b, #ff4c4c);
}
.badge_reserviert {
    background: linear-gradient(135deg, #6b6eff, #4c4cff);
}
.badge_verkauft {
    background: linear-gradient(135deg, #9e9e9e, #6b6b6b);
}

/* Hover-Effekt */
.badge_abgabe:hover,
.badge_reserviert:hover,
.badge_verkauft:hover {
    transform: scale(1.05);
}

/* Icon einheitlich */
.badge_abgabe .badge-icon,
.badge_reserviert .badge-icon,
.badge_verkauft .badge-icon {
    width: 18px !important;
    height: auto !important;
    margin-left: 5px !important;
    transform: translateY(1px) !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)) !important;
}

/* 🔧 Feintuning: gleiche optische Höhe & Textausrichtung */
.badge_abgabe {
    padding: 5px 10px !important;
    letter-spacing: 0.2px; /* gleicht das Icon minimal aus */
}

.badge_abgabe .badge-icon {
    width: 16px !important;
    transform: translateY(1px);
}

/* Alle Badges exakt gleiche Höhe */
.badge_abgabe,
.badge_reserviert,
.badge_verkauft {
    min-height: 26px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Onepager Sektionen */
section {
    text-align: center;
    margin: 40px 20px;
    padding: 40px 20px;
}

section:nth-of-type(even) {
    background: linear-gradient(180deg, #f9f9f9, #e6f2e6);
    border-radius: 8px;
}

section img {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

section h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 600;
    color: #2e5d2e;
}

section p {
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.zurueck-button-container {
    margin-top: 30px;
    text-align: center;
}

.zurueck-button {
    display: inline-block;
    background: linear-gradient(135deg, #6b9b6b, #3d6f3d);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.zurueck-button:hover {
    background: linear-gradient(135deg, #8fcf8f, #6b9b6b);
    transform: scale(1.05);
}

/* -------------------- */
/* FOOTER (mit Maskottchen) */
/* -------------------- */


footer {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #3d6f3d, #6b9b6b);
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo img.footer-maskottchen {
    width: 110px;
    height: auto;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.footer-logo img.footer-maskottchen:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Links und Copyright untereinander */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.footer-links p {
    margin: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.4rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
}

.footer-links a:hover {
    color: #233d23;
    transform: scale(1.05);
}

/* Ersteller-Zeile */
footer .creator {
    margin-top: 1rem;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}
/* -------------------- */
/* INFO-SEITEN (Impressum, Datenschutz, AGB) */
/* -------------------- */

.info-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.info-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.info-logo {
    width: 100%;
    max-width: 500px; /* Einheitliche Breite */
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.info-text {
    text-align: left;
    line-height: 1.7;
    color: #333;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* -------------------- */
/* CALIFORNIA-ZEICHNUNGEN */
/* -------------------- */
.california-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.element-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.element {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.element:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.california-container .element-bild img {
    width: 100%;
    max-width: 700px;
    height: 400px; /* feste Höhe für einheitliche Anzeige */
    object-fit: contain; /* zeigt das ganze Bild, kein Zuschneiden */
    background-color: #f9f9f9; /* neutraler Hintergrund falls Bild schmaler ist */
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.element-titel {
    margin-top: 10px;
    font-weight: 600;
    color: #2e5d2e;
}

.element-text h3 {
    color: #2e5d2e;
    margin-bottom: 10px;
}

.element-text p {
    line-height: 1.6;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}
/* -------------------- */
/* EHEMALIGE TIERE */
/* -------------------- */
.ehemalige-tiere-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ehemalige-tiere-container h1 {
    color: #2e5d2e;
    margin-bottom: 30px;
}

.element-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.element {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.element:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ehemalige-tiere-container .element-bild img {
    width: 100%;
    max-width: 700px;
    height: 400px;
    object-fit: contain;
    background-color: #f9f9f9;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.element-titel {
    margin-top: 10px;
    font-weight: 600;
    color: #2e5d2e;
}

.element-text h3 {
    color: #2e5d2e;
    margin-bottom: 10px;
}

.element-text p {
    line-height: 1.6;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}
/* -------------------- */
/* 🖼️ EINHEITLICHE BILDGRÖSSEN */
/* -------------------- */

/* 1️⃣ Onepager / Startseite (Hero / Über mich / Kontakt) */
.section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

/* 2️⃣ Tiere (Zucht- & Abgabetiere) */
.tier-card img,
.tier-bild {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}



/* 3️⃣ Info-Seiten (Impressum, Datenschutz, AGB) */
.info-logo {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 4️⃣ California & Ehemalige Tiere */
.element-bild img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Einheitliches Verhalten für Texte unter Bildern */
.element-titel {
    margin-top: 10px;
    font-weight: 600;
    color: #2e5d2e;
    font-size: 1.1em;
}
/* -------------------- */
/* 📰 NEWS-SEITE (gleiches Layout wie California & ehemalige Tiere) */
/* -------------------- */

.news-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-container h1 {
    color: #2e5d2e;
    margin-bottom: 35px;
    font-size: 2em;
    font-weight: 700;
}

.news-container .element-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Einheitliche Elemente wie bei California */
.news-container .element {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-container .element:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 🖼️ News-Bilder */
.news-container .element-bild img {
    width: 100%;
    max-width: 700px;
    height: 400px;
    object-fit: contain;
    background-color: #f9f9f9;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Titel unter dem Bild */
.news-container .element-titel {
    margin-top: 10px;
    font-weight: 600;
    color: #2e5d2e;
}

/* 📝 Text-Element */
.news-container .element-text h3 {
    color: #2e5d2e;
    margin-bottom: 10px;
}

.news-container .element-text p {
    line-height: 1.6;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
/* -------------------- */
/* 🖼️ NEWS-GALERIE MIT THUMBNAILS */
/* -------------------- */
.news-gallery {
    text-align: center;
    margin-bottom: 25px;
}

.news-gallery-main img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    object-fit: contain;
    background-color: #f9f9f9;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.news-gallery-main img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Thumbnails unterhalb des Hauptbildes */
.news-gallery-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.news-gallery-thumbs img.thumb {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-gallery-thumbs img.thumb:hover {
    transform: scale(1.08);
    border-color: #6b9b6b;
    box-shadow: 0 2px 6px rgba(107, 155, 107, 0.3);
}

/* Aktives Thumbnail (wenn angeklickt) */
.news-gallery-thumbs img.thumb.active {
    border-color: #3d6f3d;
    box-shadow: 0 0 8px rgba(61, 111, 61, 0.4);
}
/* -------------------- */
/* 📱 RESPONSIVE ANPASSUNGEN */
/* -------------------- */
@media screen and (max-width: 1024px) {
    .tier-card img,
    .tier-bild {
        width: 200px;
        height: 200px;
    }

    .element-bild img {
        max-width: 420px;
        height: 300px;
    }

    .info-logo {
        max-width: 350px;
        height: 220px;
    }

    .section-image {
        max-width: 500px;
    }
}

/* 📱 Tablet & mittlere Geräte */
@media screen and (max-width: 768px) {
    .menu-current {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-weight: bold;
        padding: 10px;
        box-sizing: border-box;
    }

    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #6b9b6b;
        margin-top: 5px;
    }

    main {
        padding-top: 120px;
    }

    section {
        padding: 25px 15px;
        margin: 25px 10px;
    }

    section h2 {
        font-size: 1.5em;
    }

    /* 🐹 Abgabe- & Zuchttiere – wieder als Grid (2 Spalten) */
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
        padding: 20px;
        justify-content: center;
        align-items: start;
        max-width: 95%;
        margin: 0 auto;
    }

    .tier-card {
        max-width: 320px;
        margin: 0 auto;
        padding: 15px;
    }

    .tier-card img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .tier-card h2 {
        font-size: 1.2em;
        margin: 8px 0 5px;
    }

    .tier-card p {
        margin: 4px 0;
        font-size: 0.95em;
    }

    footer {
        padding: 1.5rem 0.5rem;
    }

    .footer-logo img.footer-maskottchen {
        width: 90px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    .info-page {
        padding: 30px 15px;
    }

    .info-logo {
        max-width: 320px;
        height: 200px;
        border-radius: 8px;
    }

    .info-text {
        padding: 15px 18px;
        font-size: 0.95em;
        line-height: 1.6;
    }

    .news-container {
        padding: 30px 15px;
    }

    .news-container h1 {
        font-size: 1.7em;
        margin-bottom: 25px;
    }

    .news-container .element {
        padding: 18px;
    }

    .news-container .element-bild img {
        max-width: 100%;
        height: 280px;
    }

    .news-container .element-text p {
        font-size: 0.95em;
    }
     .news-gallery-main img {
        max-width: 100%;
        height: auto;
    }

    .news-gallery-thumbs img.thumb {
        width: 70px;
        height: 55px;
    }
}

/* 📱 Kleine Handys (nur 1 Spalte) */
@media screen and (max-width: 480px) {
    header nav a {
        font-size: 14px;
        padding: 5px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        max-width: 90%;
    }

    .tier-card {
        max-width: 100%;
        padding: 12px;
    }

    .tier-card img {
        height: 180px;
    }

    .tier-card h2 {
        font-size: 1.1em;
    }

    .info-logo {
        max-width: 250px;
        height: 160px;
        border-radius: 6px;
    }

    .info-text {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .news-container h1 {
        font-size: 1.5em;
    }

    .news-container .element {
        padding: 15px;
    }

    .news-container .element-bild img {
        height: 220px;
    }

    .news-container .element-text p {
        font-size: 0.9em;
    }
    .news-gallery-thumbs {
        gap: 6px;
    }

    .news-gallery-thumbs img.thumb {
        width: 60px;
        height: 45px;
    }
}