/* ==================================================
   1. VARIABLEN
   ================================================== */

:root {


    --green: #005319;
    --green-dark: #003711;
    --green-light: #106E2C;

    --yellow: #E4ED32;
    --yellow-dark: #C3CC0F;
    --yellow-light: #e4ed32;

    --red: #CC0000;
    --red-dark: #A70000;
    --red-light: #F81717;

    --blue: #0054A9;
    --blue-dark: #004388;
    --blue-light: #0074EC;
    --blue-pale: #E6EEF7;

    --grey: #666666;
    --grey-dark: #333333;
    --grey-light: #999999;

    --white: #FFFFFF;
    --text: #303832;
    --section-muted: #f3f4f6;
}

/* ==================================================
   2. RESET UND GRUNDLAGEN
   ================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text);
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 0.18rem solid currentColor;
    outline-offset: 0.24rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

ul {
  margin-left: 0;
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.6rem;
}

.eyebrow {
    display: block;
    margin-top: 1rem;
    margin-bottom: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

h1 .eyebrow,
h2 .eyebrow {
    text-transform: none;
}

#intro span {
    color: var(--yellow);
}


.hinweis-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem;

    background: var(--blue-pale);
    border-left: 0.5rem solid  var(--blue);;
    border-radius: 0.5rem;

    padding: 1rem 1.25rem;
    color: var(--blue);
}

.hinweis-container i {
    color: var(--blue);
    margin-top: 0.125rem;
}

.hinweis-container p {
    margin: 0;
}

/* Der Hero-Button behält seine verbindliche grüne Textfarbe trotz #intro span. */

/* Hero-Button: Normalzustand */
#intro .btn-yellow-green .btn-content,
#intro .btn-yellow-green .btn-content i {
    color: var(--green);
}

/* Hero-Button: Hover-Zustand */
#intro .btn-yellow-green:hover .btn-content,
#intro .btn-yellow-green:hover .btn-content i {
    color: var(--yellow);
}


/* Allgemeine Bildklasse: bei Bedarf im HTML class="img" verwenden. */
.img {
    width: 100%;
    height: auto;
    margin-block: 2rem;
}




/* ==================================================
   LINKS
   ================================================== */

.hilfsangebote a,
.impressum a,
.rechtliches a,
.datenschutz a {
  font-weight: 500;
  color: var(--green);
}

.hilfsangebote a:hover,
.impressum a:hover,
.rechtliches a:hover,
.datenschutz a:hover {
  font-weight: 500;
  color: var(--blue);
}




/* ==================================================
   3. HEADER UND NAVIGATION
   ================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 0.2em 0.9em #00000012;
}

.header-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 56.25rem;
    min-height: 7rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.logo {
    display: grid;
    place-items: center;
    min-width: 0;
}

.logo img {
    width: auto;
    max-width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.header-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: end;
    align-items: center;
    gap: 1rem;
}

.btn-spenden-top,
.btn-tiernotfall-top {
    padding-inline: 0.6rem;
    font-size: clamp(0.75rem, 1.3vw, 1rem);
    white-space: nowrap;
}

.btn-spenden-top {
    color: var(--white);
    background: var(--green);
}

.btn-spenden-top:hover {
    color: var(--white);
    background: var(--green-light);
}

.btn-tiernotfall-top {
    color: var(--white);
    background: var(--red);
}

.btn-tiernotfall-top:hover {
    color: var(--white);
    background: var(--red-dark);
}

/* ==================================================
   4. BUTTONS
   ================================================== */

.btn {
    display: inline-grid;
    place-items: center;
    min-height: 2.8rem;
    padding: 0.65rem 1.4rem;
    border: 0.15rem solid transparent;
    border-radius: 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.btn + .btn {
    margin-left: 1rem;
}

.btn-yellow-green {
    color: var(--green);
    background: var(--yellow);
    border-color: var(--yellow);
}

.btn-yellow-green:hover {
    color: var(--yellow);
    background: var(--green);
}

.btn-white-red {
    color: var(--red);
    background: var(--white);
    border-color: var(--white);
    font-size: 1.4rem;
    font-weight: 900;
}

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

.btn-white-blue {
    color: var(--blue);
    background: var(--white);
    border-color: var(--white);
    font-size: 1.4rem;
    font-weight: 900;
}

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

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

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

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

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

.btn-green-yellow-border {
    color: var(--yellow);
    background: var(--green);
    border-color: var(--green);
}

.btn-green-yellow-border:hover {
    color: var(--green);
    background: var(--yellow);
}

/* Button-Beschriftung und Font Awesome-Symbole bilden eine untrennbare Zeile. */
.btn-content {
    white-space: nowrap;
}

.btn-content > i {
    white-space: nowrap;
}

/* ==================================================
   5. CONTAINER UND DEKORATIVE ELEMENTE
   ================================================== */

.section-container {
    width: 100%;
    max-width: 56.25rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.battenberg {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    height: 1.2rem;
}

.battenberg i:nth-child(odd) {
    background: var(--yellow);
}

.battenberg i:nth-child(even) {
    background: var(--green);
}

.banner {
    background: var(--green);
}

.banner img {
    width: 100%;
    height: auto;
}

/* ==================================================
   6. SEITENABSCHNITTE
   ================================================== */

main > section[id] {
    padding-block: 2rem;
    scroll-margin-top: 7rem;
}

#intro {
    color: var(--white);
    background: var(--green);
}

#intro .eyebrow,
#mitmachen .eyebrow {
    color: var(--yellow);
}

#team,
#hilfsangebote,
#chance,
#fragen,
#impressum,
#datenschutz {
    color: var(--text);
    background: var(--white);
}

#team .eyebrow,
#hilfsangebote .eyebrow,
#chance .eyebrow,
#fragen .eyebrow,
#impressum .eyebrow,
#datenschutz .eyebrow {
    color: var(--green);
}

#tiernotfall {
    color: var(--white);
    background: var(--red);
}

#tiernotfall .eyebrow {
    color: var(--yellow);
}

#fundtier {
    color: var(--white);
    background: var(--blue);
}

#fundtier .eyebrow {
    color: var(--white);
}

#mitmachen {
    color: var(--white);
    background: var(--green);
}

#spenden {
    background: var(--yellow);
}

#spenden .eyebrow {
    color: var(--green);
}

#impressum .eyebrow,
#datenschutz .eyebrow {
    color: var(--green);
}

figcaption {
    font-size: 70%;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

.back {
    font-size: 90%;
    font-style: italic;
    text-align: right;
}




/* ==================================================
   7. TIERNOTFALL-KARTEN
   ================================================== */

.tiernotfall-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.tiernotfall-card {
    min-width: 0;
    padding: 1.25rem;
    color: var(--white);
    background: var(--red-dark);
    border-radius: 0.36rem;
}

.tiernotfall-card .card-number {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--yellow);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
}

.tiernotfall-card h4 {
    color: var(--white);
    font-size: 1rem;
}

.tiernotfall-card p {
    margin-bottom: 0;
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tiernotfall-cards + h3 {
    margin-top: 0;
}

#tiernotfall > .section-container > .btn {
    margin-bottom: 2rem;
}

/* ==================================================
   8. FRAGEN-BUTTONS
   ================================================== */

.fragen-buttons {
    display: grid;
    grid-template-columns: max-content;
    justify-content: start;
    justify-items: start;
    gap: 1rem;
}

.fragen-buttons .btn + .btn {
    margin-left: 0;
}

/* ==================================================
   9. FOOTER
   ================================================== */

footer {
    color: var(--grey-light);
    background: var(--grey-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr 0.6fr;
    gap: 2rem;
    width: 100%;
    max-width: 56.25rem;
    margin-inline: auto;
    padding: 3rem 1rem;
}

.footer-column {
    min-width: 0;
}

.footer-column h2 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.footer-column p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-sozialemedien {
    display: inline-grid;
    place-items: center;
    margin-right: 0.25rem;
    color: var(--grey-light);
    font-size: 1.8rem;
    transition: color 0.2s;
}

.footer-adresse {
    color: var(--grey-light);
}

.footer-links {
    color: var(--grey-light);
}

.footer-sozialemedien:hover,
.footer-menu a:hover,
.footer-adresse:hover,
.footer-links:hover {
    color: var(--yellow);
}

.footer-menu {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.7;
}

.footer-menu .intro-link {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-menu.legal-links {
    margin-top: 1.5rem;
}

.footer-bottom {
    border-top: 0.08rem solid #ffffff20;
}

.footer-bottom-inner {
    width: 100%;
    max-width: 56.25rem;
    margin-inline: auto;
    padding: 1.25rem 1rem;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--grey-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================================================
   10. MOBILE-FIRST LAYOUTS
   Grundlayout fÃ¼r schmale Bildschirme; Erweiterungen ab 39.06rem/46.14rem.
   Alle Layout-Anordnungen werden ausschlieÃŸlich mit CSS Grid umgesetzt.
   ================================================== */

.footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: 2rem;
}

.fragen-buttons {
    grid-template-columns: max-content;
}

.fragen-buttons .btn {
    width: auto;
    max-width: 100%;
    justify-self: start;
}

.tiernotfall-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.tiernotfall-card {
    padding: 1.1rem;
}

#tiernotfall > .section-container > .btn {
    display: grid;
    width: 100%;
    margin-bottom: 1.75rem;
}

.header-container {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 5.5rem;
}

.logo img {
    height: 4rem;
    max-width: 4rem;
}

.header-actions {
    gap: 1rem;
}

.header-actions .btn + .btn {
    margin-left: 0;
}

.btn-spenden-top,
.btn-tiernotfall-top {
    padding-inline: 0.45rem;
    font-size: 0.8rem;
}

.hinweis-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.6rem;
    padding: 0.9rem;
    margin: 1.44rem 0;
}

@media (min-width: 39.06rem) {
    .header-container {
        gap: 1rem;
        min-height: 7rem;
    }

    .logo img {
        height: 5rem;
        max-width: 5rem;
    }

    .header-actions {
        gap: 1rem;
    }

    .btn-spenden-top,
    .btn-tiernotfall-top {
        padding-inline: 0.6rem;
        font-size: clamp(0.75rem, 1.3vw, 1rem);
    }

    .tiernotfall-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .tiernotfall-card {
        padding: 1.25rem;
    }

    #tiernotfall > .section-container > .btn {
        display: inline-grid;
        width: auto;
        margin-bottom: 2rem;
    }

    .hinweis-container {
        gap: 0.84rem;
        padding: 1.08rem 1.2rem;
        margin: 1.92rem 0;
    }
}

@media (min-width: 46.14rem) {
    .footer-grid {
        grid-template-columns: 1.6fr 1.4fr 0.6fr;
        gap: 2rem;
        padding-block: 3rem;
    }

    .fragen-buttons {
        grid-template-columns: repeat(2, max-content);
        justify-content: start;
    }

    .fragen-buttons .btn {
        width: auto;
        max-width: 100%;
    }
}

/* ZusÃ¤tzlicher Abstand unter Buttons am Ende eines Abschnitts */
main > section[id] .section-container > .btn:last-child,
main > section[id] .section-container article > .btn:last-child {
    margin-bottom: 1.5rem;
}

/* Im Abschnitt Fragen liegen die Buttons in einem gemeinsamen Wrapper. */
#fragen .fragen-buttons {
    margin-bottom: 1.1rem;
}

/* Einheitliche Darstellung der Telefonnummern-Icons; CD-Farben bleiben unverÃ¤ndert. */
.phone-icon {
    font-size: 80%;
}