
/* ==========================================================================
   BERNER SENNENHUNDE VOM MARIENBURGER UFER – MODERNES DESIGN (KOMPLETT)
   ========================================================================== */

:root {
    --bg-page: #faf8f5;          /* Warmes Cremeweiß */
    --bg-surface: #ffffff;       /* Reinweiße Karten */
    --bg-subtle: #f3efe9;        /* Sanfter Akzent-Hintergrund */
    --text-main: #241c18;        /* Warmes Tiefanthrazit */
    --text-muted: #6b5e55;       /* Dezentes Taupe */
    --brand-dark: #3b281e;       /* Edles Dunkelbraun */
    --brand-accent: #a65a2a;     /* Berner-Rostbraun / Bernstein */
    --border-light: #d6cec2;     /* Klar sichtbare, feine Rahmenlinie */
    --shadow-soft: 0 8px 24px rgba(36, 28, 24, 0.07);
    --shadow-hover: 0 12px 32px rgba(36, 28, 24, 0.11);
}

/* Erinnerungs-Seiten (body.memorial-page): Ruhiges, würdevolles Steingrau */
body.memorial-page {
    --bg-page: #eceae4;
    --bg-surface: #f7f6f2;
    --bg-subtle: #e2dfd7;
    --brand-dark: #3d3d3a;
    --brand-accent: #5e5d58;
    --border-light: #c8c3b8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Source Sans 3", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
	text-align: center;
	
}

a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* --- Header & Logo --- */
#header {
    text-align: center;
    padding: 28px 15px 12px;
}

/* Desktop / Laptop: Großzügiger, breiter Header */
.header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Schiebt die beiden Bilder weiter nach außen */
    width: 100%;
    max-width: 960px;               /* Steuert die Gesamtbreite des Headers (z. B. 900px–1100px) */
    gap: 36px;
    padding: 0 16px;
    margin: 0 auto;
}

.header-side-img {
    width: 105px;                   /* Etwas größer passend zum breiteren Header */
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.site-logo,
.site-logo:hover {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
}

/* Desktop / Laptop */
.logo-main {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 3.4rem;           /* Vorher 2.75rem – deutlich größer */
    font-weight: 700;
    color: #241c18;  
    letter-spacing: 0.03em;
    line-height: 1.15;
}

.logo-sub {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.35rem;          /* Vorher 1.15rem – proportional mitvergrößert */
    font-weight: 600;
    color: #a65a2a;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 8px;
}

.logo-line {
    display: inline-block;
    width: 54px;                 /* Etwas längere Linien passend zur größeren Schrift */
    height: 1.5px;
    background-color: #a65a2a;
    opacity: 0.75;
}

/* Smartphone-Anpassung (Galaxy S26) */
@media (max-width: 768px) {
    .logo-main {
        font-size: 1.95rem;      /* Vorher 1.45rem – größer, aber bricht auf dem S26 noch nicht um */
    }

    .logo-sub {
        font-size: 0.92rem;      /* Vorher 0.78rem */
        gap: 8px;
        letter-spacing: 0.08em;
    }

    .logo-line {
        width: 22px;
    }
}




/** Content  ***/

.content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px 50px;
}

/* --- Navigation --- */
.navi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin: 12px auto 40px;
    padding: 12px 18px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    max-width: 820px;
}

.navi a {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navi a:hover {
    background-color: var(--bg-subtle);
    color: var(--brand-dark);
    text-decoration: none;
}

.navi a.active {
    background-color: var(--brand-dark);
    color: #ffffff;
}

/* --- Überschriften (einheitlich in Segoe UI) --- */
h1, h2, .dog-detail-name, .section-heading, .page-title, .dog-name {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Source Sans 3", Roboto, Helvetica, Arial, sans-serif;
    color: var(--brand-dark);
}

.page-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 32px;
    font-weight: 700;
}

/* Untertitel (z. B. unter der Hauptüberschrift) */
.subtitle {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: -18px auto 28px;
    max-width: 720px;
    line-height: 1.5;
}


.section-heading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 22px;
    position: relative;
}

/* Querstrich ÜBER den Abschnittsüberschriften */
.section-heading::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--brand-accent);
    margin: 0 auto 10px;
    border-radius: 2px;
}

.detail-section {
    margin-bottom: 85px;
}

/* ==========================================================================
   ÜBERSICHTSSEITEN (ourDogs.html, inMemory.html, veteranen.html)
   Exakt abgestimmt auf <a class="dog-card"> -> <h3> + <hr> + <div class="dog-info">
   ========================================================================== */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 Karten nebeneinander auf Laptop */
    gap: 24px;
    align-items: stretch;
}

a.dog-card {
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 14px 16px 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hundename (<h3>) – angenehmer Abstand oben, kompakt nach unten */
a.dog-card h3 {
    text-align: center;
    margin: 4px 0 8px;
    padding: 0;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-dark);
}

/* Feine Trennlinie (<hr>) unter dem Namen */
a.dog-card hr {
    border: none;
    border-top: 1px solid var(--border-light);
    width: 100%;
    margin: 0 0 12px;
}

/* Bild links & Text rechts nebeneinander (Laptop UND Handy) */
a.dog-card .dog-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Kurzer, sauberer Abstand zwischen Bild und Text */
    width: 100%;
    margin-top: auto;
}

/* Das Bild nimmt 58% der Kartenbreite ein */
a.dog-card .dog-info img {
    flex: 0 0 58%;
    width: 58%;
    max-width: 58%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    display: block;
    margin: 0;
}

body.memorial-page a.dog-card .dog-info img {
    border: 2px solid #3d3d3a;
}

/* Eckdaten rechts neben dem Bild – etwas größer und noch besser lesbar */
a.dog-card .dog-stats {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 0.95rem; /* Vorher 0.86rem */
    line-height: 1.9;
    color: var(--text-main);
}

a.dog-card .dog-stats p {
    margin: 0 0 8px;
}

a.dog-card .dog-stats p:last-child {
    margin-bottom: 0;
}

/* Tablet: 2 Karten nebeneinander */
@media (max-width: 1080px) {
    .dogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .dogs-grid {
        grid-template-columns: 1fr;
    }

    .dog-detail-name {
        font-size: 1.8rem;
    }
}



/* ==========================================================================
   DETAILSEITEN: STECKBRIEF
   ========================================================================== */
.profile-card {
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 36px;
    max-width: 880px;
    margin: 0 auto 85px;
    box-shadow: var(--shadow-soft);
}

.dog-detail-name {
    text-align: center;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 6px;
}

.dog-detail-callname {
    text-align: center;
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin: 0 0 14px;
}

.dog-detail-champion,
.dog-detail-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-light);
    display: table;
    margin: 0 auto 22px;
    padding: 6px 18px;
    border-radius: 30px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: 16px;
}

.profile-photo {
    width: 100%;
    max-width: 440px;   /* Vorher 380px – nutzt den frei gewordenen Platz neben .profile-specs */
    max-height: 460px;  /* Proportionale Höhe dazu */
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}


body.memorial-page .profile-photo {
    border: 3px solid #3d3d3a;
}

.profile-specs {
    flex: 1 1 250px;
    max-width: 280px;   /* Vorher 340px – macht den Datenblock kompakter */
    font-size: 0.96rem;
}


.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: var(--text-muted);
    white-space: nowrap;
    padding-right: 14px;
}

.spec-row strong {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.profile-asw-note {
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 16px 0 0;
}

/* Berner-Garde Link – ruhig ohne Veränderung beim Überfahren */
.bernergarde-link {
    text-align: center;
    margin: 22px 0 4px;
}

.bernergarde-link a,
a.bernergarde-link,
.bernergarde-link a:hover,
a.bernergarde-link:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background-color: var(--bg-subtle);
    color: var(--brand-dark);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transform: none;
}

/* Trauerspruch & Abschiedstext */
.memorial-quote,
.memorial-text {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text-main);
    border-radius: 12px;
    padding: 16px 22px;
    max-width: 560px;
    margin: 4px auto 12px;
}

.memorial-text p {
    margin: 0 0 10px;
}

.memorial-quote span {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 6px;
    color: var(--text-muted);
}

/* ==========================================================================
   AHNENTAFEL
   ========================================================================== */
.scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

/* Begrenzt die gesamte Ahnentafel in der Breite und zentriert sie mittig */
.pedigree-wrapper {
    max-width: 980px;   /* Schmaler als die volle Seitenbreite (1360px) – z. B. auch auf 900px anpassbar */
    margin: 0 auto;     /* Zentriert die Ahnentafel sauber in der Mitte */
}

.pedigree-table {
    width: 100%;
    min-width: 720px;   /* Etwas kompakter für das seitliche Scrollen auf dem Smartphone */
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.pedigree-table td {
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    vertical-align: middle;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pedigree-table td strong {
color: var(--brand-dark);
font-size: 0.93rem;
}
.pedigree-table .ped-gen1 {
background-color: var(--bg-subtle);
border-left: 4px solid var(--brand-accent);
}
.pedigree-table .ped-info {
display: inline-block;
margin-top: 3px;
color: var(--text-muted);
font-size: 0.82rem;
}

/* Links in der Ahnentafel: gleiche Schriftfarbe wie normale Namen, nur unterstrichen */
.pedigree-table a,
.pedigree-table a:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px; /* Dezenter Abstand zwischen Buchstaben und Unterstrich */
}


/* Button auf dem Laptop unsichtbar */
.pedigree-more-btn {
    display: none;
}

@media (max-width: 768px) {
    .pedigree-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: -95px auto 95px;
        padding: 10px 22px;
        background-color: var(--bg-surface);
        color: var(--brand-dark);
        border: 1.5px solid var(--border-light);
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
    }

    .pedigree-more-btn:hover {
        background-color: var(--bg-subtle);
        border-color: var(--brand-accent);
    }

    /* Solange nicht aufgeklappt: Tabelle kompakt für Gen 1 & 2 (kein Seitwärts-Scrollen nötig) */
    .pedigree-wrapper:not(.show-all-gen) .pedigree-table {
        min-width: 100%;
    }

    /* Blendet die Zellen der Generation 3 und 4 auf dem Handy aus */
    .pedigree-wrapper:not(.show-all-gen) .pedigree-table .ped-gen3,
    .pedigree-wrapper:not(.show-all-gen) .pedigree-table .ped-gen4 {
        display: none;
    }

    /* Blendet den Wisch-Hinweis aus, solange nur Gen 1 & 2 offen sind */
    .pedigree-wrapper:not(.show-all-gen) .scroll-hint {
        display: none;
    }
}



/* ==========================================================================
AUSSTELLUNGS- & NACHKOMMENTABELLEN
========================================================================== */
.show-wrapper,
.progeny-wrapper {
max-width: 740px;
margin: 0 auto;
}
body.memorial-page .show-wrapper {
max-width: 600px;
}
.show-table {
width: 100%;
min-width: 400px;
border-collapse: collapse;
font-size: 0.92rem;
}
.show-table th {
background-color: var(--brand-dark);
color: #ffffff;
font-weight: 600;
text-align: left;
padding: 12px 14px;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.show-table td {
padding: 10px 14px;
border-bottom: 1px solid var(--border-light);
vertical-align: middle;
}

/* Ausstellung (2. Spalte) und Richter / Klasse (3. Spalte) linksbündig */
.show-table td:nth-child(2),
.show-table td:nth-child(3) {
text-align: left;
}

.show-table td.show-result,
.show-table th.show-result {
text-align: center;
white-space: nowrap;
}

.progeny-table th:last-child,
.progeny-table td:last-child {
white-space: nowrap;
text-align: center;
padding-left: 14px;
padding-right: 14px;
}

.show-table tr.class-divider td {
    background-color: var(--bg-subtle);
    color: var(--brand-dark);
    font-weight: 700;
    text-align: center;
    font-size: 1.0rem;   /* Vorher 0.9rem – deutlich größer und präsenter */
    padding: 13px 14px;   /* Etwas mehr Höhe nach oben und unten */
    letter-spacing: 0.02em;
}

.show-table tr.champion-highlight td {
background-color: #ffffff;
color: #b3261e;
font-weight: 700;
text-align: center;
}

/* ==========================================================================
   WURFTABELLE (alleWuerfe.html)
   ========================================================================== */
.litters-wrapper {
    max-width: 960px;
    margin: 0 auto 60px;
}

.litters-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
    background-color: var(--bg-surface);
}

.litters-table th {
    background-color: var(--brand-dark);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.litters-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    text-align: left;
    color: var(--text-main);
}

/* Dickerer Trennstrich zwischen A-Wurf und Z-Wurf */
.litters-table tr.alphabet-divider td {
    border-top: 3px solid var(--brand-accent);
}

/* Dezenter Wechsel der Zeilenfarbe für bessere Lesbarkeit */
.litters-table tbody tr:nth-child(even) {
    background-color: var(--bg-subtle);
}


/* Links in der Tabelle (z. B. verlinkte Würfe oder Eltern) */
.litters-table a {
    color: var(--brand-accent);
    font-weight: 600;
    text-decoration: none;
}



/* ==========================================================================
ELTERN-KARTEN, FAMILIE, KÖRSCHEIN, SLIDESHOW & VIDEOS
========================================================================== */
.koerschein-box {
text-align: center;
}
.koerschein-box img {
max-width: 220px;
height: auto;
border-radius: 8px;
}
.parents-grid,
.family-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 24px;
max-width: 900px;
margin: 0 auto;
}
.parent-card,
.family-card {
background-color: var(--bg-surface);
border: 1.5px solid var(--border-light);
border-radius: 16px;
padding: 20px;
text-align: center;
box-shadow: var(--shadow-soft);
}
.parent-card img,
.family-card img {
width: 100%;
max-width: 340px;
height: 255px;
object-fit: cover;
object-position: center 20%;
border-radius: 10px;
border: 1px solid var(--border-light);
margin: 10px auto;
}
.slide_wrapper {
max-width: 680px;
margin: 0 auto;
border-radius: 16px;
overflow: hidden;
box-shadow: var(--shadow-soft);
border: 1.5px solid var(--border-light);
background-color: var(--bg-surface);
}
video,
.detail-section video,
.detail-section iframe,
.video-wrapper {
display: block;
width: 100%;
max-width: 380px;
height: auto;
margin: 0 auto;
border-radius: 14px;
border: 1.5px solid var(--border-light);
box-shadow: var(--shadow-soft);
}
/* ==========================================================================
FOOTER
========================================================================== */
.footer {
margin-top: 72px;
padding: 28px 20px;
border-top: 1px solid var(--border-light);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 18px;
font-size: 0.9rem;
color: var(--text-muted);
text-align: center;
}
.footer p {
margin: 0;
text-align: center;
}
.footer img {
max-height: 56px;
}
/* ==========================================================================
TABLET & SMARTPHONE ANPASSUNGEN
========================================================================== */

@media (max-width: 768px) {
    .navi {
        border-radius: 14px;
        padding: 8px 10px;       /* Deutlich schmalerer Rahmen außen herum (vorher 12px 18px) */
        gap: 4px 6px;            /* Engere Abstände zwischen den Buttons (vorher 8px 12px) */
        margin: 8px auto 26px;   /* Weniger Leerraum unter dem Menü */
    }

    .navi a {
        font-size: 0.9rem;      /* Etwas feinere Schrift (vorher 0.96rem) */
        padding: 5px 11px;       /* Kompaktere Pill-Buttons (vorher 8px 18px) */
    }
	
    .profile-card {
        padding: 24px 18px;
    }

    .scroll-hint {
        display: block;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
	   /* Veteranen auf dem Handy: Karte bleibt gleich groß, .veteranDetails wird deutlich breiter */
    .veteran-grid {
        grid-template-columns: 1fr;
    }

    .veteran-card {
        padding-left: 10px;  /* Macht den Innenraum für .veteranDetails maximal breit */
        padding-right: 10px;
    }

    .veteranDetails {
        width: 100%;
        align-items: stretch;
    }

    .veteranDetails img {
        width: 100%;
        max-width: 100%;
        height: 320px;
    }
}

/* Im @media (max-width: 650px)-Block unten die alte .dog-info-Regel löschen,
   damit dort ebenfalls die großen 58% greifen */
@media (max-width: 650px) {
    .dogs-grid {
        grid-template-columns: 1fr;
    }

    .dog-detail-name {
        font-size: 1.8rem;
    }


.dog-info > a,
.dog-info > img {
flex: 0 0 46%;
width: 46%;
max-width: 175px;
}
.dog-detail-name {
font-size: 1.8rem;
}

}

@media (max-width: 900px) {
   .navi {
        border-radius: 14px;
        padding: 8px 10px !important;
        gap: 6px 8px !important;
        margin: 8px auto 24px !important;
    }

    .navi a {
        font-size: 1rem !important;       /* Vorher 0.78rem – jetzt deutlich größer & gut lesbar */
        padding: 6px 12px !important;     /* Mehr Platz rund um die größere Schrift */
        line-height: 1.35;
    }

    .profile-card {
        padding: 24px 18px;
    }

    .scroll-hint {
        display: block;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   STARTSEITE (index.html) – KOMPAKTERE BILDER AUF DEM SMARTPHONE
   ========================================================================== */
@media (max-width: 768px) {
    body.home-page .content img,
    .home-main img,
    .welcome-section img {
        width: auto !important;
        max-width: 280px !important;   /* Begrenzt die Bildbreite auf dem Handy auf max. 280px */
        max-height: 260px !important;  /* Verhindert, dass Hochformat-Bilder den ganzen Bildschirm füllen */
        height: auto !important;
        margin: 12px auto !important;
        border-radius: 12px;
    }

    /* Falls auf der Startseite auch ein Video liegt, bleibt es ebenfalls kompakt */
    body.home-page .content video,
    .home-main video {
        max-width: 280px !important;
        height: auto !important;
    }
}

/* Mehr Abstand zwischen ALLEN <section>-Blöcken auf der gesamten Website */
main section,
.content section,
.detail-section {
    margin-bottom: 105px !important; /* Vorher 85px bzw. 0px bei allgemeinen <section>-Tags */
}

/* Verhindert doppelten Leerraum nach der letzten Section vor dem Footer */
main section:last-child,
.content section:last-child,
.detail-section:last-child {
    margin-bottom: 30px !important;
}

/* Instagram-Logo und Name exakt auf einer Höhe ausrichten */
a[href*="instagram"],
.instagram-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

a[href*="instagram"] img,
.instagram-link img {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
}


/* ==========================================================================
   NUR FÜR ourDogs.html: TEXT WIE "UNSERE BERNER", ETWAS KLEINER & LINKSBÜNDIG
   ========================================================================== */
body.ourdogs-page .content > p,
body.ourdogs-page .content > div > p:not(.dog-stats p),
body.ourdogs-page main > p,
body.ourdogs-page main > section > p:not(.dog-stats p),
body.ourdogs-page .subtitle {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Source Sans 3", Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--brand-dark) !important; /* Gleiche edle Dunkelbraun-Farbe wie "Unsere Berner" */
    font-weight: 700 !important;         /* Gleiche Schriftstärke wie die Überschrift */
    font-size: 1.35rem !important;       /* Etwas kleiner als "Unsere Berner" (1.55rem–2.0rem) */
    line-height: 1.4 !important;
    text-align: left !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
}


/* Überstimmt die allgemeine Absatz-Regel auf ourDogs.html gezielt für .asw */
body.ourdogs-page .content p.asw,
body.ourdogs-page main p.asw,
p.asw,
.asw {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    line-height: 1.4 !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

/* Hauptüberschrift für Hunde-Bereiche / Detailseiten */
.dog-heading {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.25;
    margin: 0 0 8px;
}

/* Dazugehörige Unterüberschrift (z. B. Rufname, Wurfbezeichnung oder Zusatzinfo) */
.dog-subheading {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-accent);
    line-height: 1.4;
    margin: 0 auto 24px;
    max-width: 720px;
}

/* Titel / Zusatzbezeichnung in der Hundekarte – rot, etwas größer & mehr Abstand nach unten */
.dog-title {
    text-align: center;
    font-size: 1.05rem !important;   /* Vorher 0.9rem – deutlich besser lesbar */
    font-weight: 700 !important;
    color: #b3261e !important;       /* Edles, gut lesbares Champion-Rot */
    line-height: 1.35;
    margin: -2px 0 14px !important;  /* Vorher 8px – mehr Abstand nach unten */
}

/* Hinweis auf der Welpen-Seite – purer Text ohne Box, Rahmen oder Schatten */
.no-puppies {
    background: none;
    border: none;
    box-shadow: none;
    padding: 16px 20px;
    max-width: 720px;
    margin: 20px auto 50px;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.65;
    color: var(--text-main);
}

.no-puppies p {
    margin: 0 0 12px;
}

.no-puppies p:last-child {
    margin-bottom: 0;
}

/* Neu hinzufügen: Gestaltung von .puppies-photo (Desktop & Smartphone) */
.puppies-photo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

/* Auf Smartphones genauso kompakt wie die Bilder auf index.html */
@media (max-width: 900px) {
    .puppies-photo {
        width: auto !important;
        max-width: 260px !important;
        max-height: 240px !important;
        height: auto !important;
        margin: 12px auto !important;
        border-radius: 12px;
    }
}

/* ==========================================================================
   VETERANEN-SEITE (veteranen.html)
   ========================================================================== */
.litter-heading {
    text-align: left;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin: 36px 0 18px;
}

.veteran-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 48px;
}

.veteran-card {
    background-color: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 28px 24px; /* Laptop: angenehmer Abstand zum Kartenrand */
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.veteran-card h2.veteran {
    text-align: center;
    margin: 2px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-dark);
}

.veteranDetails {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1;
}

.veteran-date {
    font-weight: 700;
    color: var(--brand-accent);
    margin: 0 0 6px;
    font-size: 0.96rem;
}

.veteranDetails p:not(.veteran-date) {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.veteranDetails img {
    width: 100%;
    max-width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin: auto 0 0;
    display: block;
}


/* Smartphone (Samsung Galaxy S26): 1 Karte, .veteranDetails & Foto nutzen die volle Breite */
@media (max-width: 820px) {
    .content .veteran-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .content .veteran-card {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        padding: 16px 12px 18px !important; /* Weniger Innenabstand -> .veteranDetails wird breiter */
    }

    .content .veteranDetails {
        width: 100% !important;
        align-items: stretch !important;
    }

    .content .veteranDetails img {
        width: 100% !important;          /* Vorher 210px !important */
        max-width: 100% !important;      /* Vorher 210px !important */
        height: 310px !important;        /* Etwas höher, passend zur neuen Breite */
        max-height: none !important;
        object-fit: cover !important;
        object-position: top center !important;
        margin: 12px 0 0 !important;
    }
}



/* ==========================================================================
   ERINNERUNGSSEITEN (z. B. nanni.html): BLOCKQUOTE DIREKT UNTER PROFILE-CARD (NUR TEXT)
   ========================================================================== */
.profile-card:has(+ blockquote),
.profile-card:has(+ section > blockquote) {
    margin-bottom: 18px !important;
}

.profile-card + blockquote,
.content blockquote {
    max-width: 720px;
    margin: 0 auto 65px !important;
    padding: 0 20px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-main);
    text-align: center;
}


/* Ganz ans Ende der modern.css setzen */
@media (max-width: 960px) {
    .header-brand {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 4px 12px;
        max-width: 540px;
        margin: 0 auto;
    }

    .site-logo,
    .logo-main {
        display: contents !important;
    }

    .img-left {
        grid-column: 1;
        grid-row: 1;
        width: 82px !important;      /* Vorher 58px – jetzt deutlich größer */
    }

    .logo-word-1 {
        grid-column: 2;
        grid-row: 1;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 2.1rem !important;
        font-weight: 700;
        color: #241c18;
        line-height: 1.1;
    }

    .img-right {
        grid-column: 3;
        grid-row: 1;
        width: 82px !important;      /* Vorher 58px – jetzt deutlich größer */
    }

     .logo-word-2 {
        grid-column: 1 / 4;
        grid-row: 2;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.95rem !important;
        font-weight: 700;
        color: #241c18;
        line-height: 1.15;
    }

    .logo-sub {
        grid-column: 1 / 4;
        grid-row: 3;
        justify-content: center;
        font-size: 0.88rem !important;
        gap: 8px;
        margin-top: 4px;
    }

    .logo-line {
        width: 22px;
    }
}

/* Handy Hochformat: etwas dezenter, damit es perfekt zu "Berner" passt */
@media (max-width: 960px) and (orientation: portrait) {
    .img-left,
    .img-right {
        width: 68px !important;   /* Hier deine Wunschgröße fürs Hochformat (z. B. 64px–72px) */
    }
}

/* Handy Querformat: darf durch den breiteren Bildschirm größer bleiben */
@media (max-width: 960px) and (orientation: landscape) {
    .img-left,
    .img-right {
        width: 90px !important;   /* Hier deine Wunschgröße fürs Querformat */
    }
}





