/* ============================================================
   Tierheim Theme – angelehnt an Tierheim Troisdorf
   ============================================================ */

:root {
    --green:        #3a7d44;
    --green-dark:   #2c5f34;
    --green-light:  #e8f5eb;
    --orange:       #e07b39;
    --orange-light: #fdf0e8;
    --text:         #1a1a1a;
    --text-muted:   #6b7280;
    --bg:           #f7f8f6;
    --white:        #ffffff;
    --border:       #dde5d8;
    --shadow:       0 2px 12px rgba(0,0,0,.08);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
    --radius:       10px;
    --radius-sm:    6px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 24px; border-radius: 50px; font-size: .95rem;
    font-weight: 700; border: 2px solid transparent;
    cursor: pointer; transition: all .2s; text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary   { background: var(--green); border-radius: 5px; padding: 5px 8px 5px; color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-secondary:hover { background: #c96d2e; border-color: #c96d2e; color: #fff; }
.btn-outline   { background: transparent;  color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white     { background: #fff; color: var(--green); border-color: #fff; }
.btn-white:hover { background: var(--green-light); color: var(--green-dark); }
.btn-sm { padding: 7px 16px; font-size: .85rem; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.site-logo {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; opacity: .9; }
.site-logo__img {
    height: 64px; width: auto; display: block;
}
.site-logo__text {
    display: flex; flex-direction: column; gap: 2px;
}
.site-logo__name {
    font-size: 1.35rem; font-weight: 800;
    color: var(--green-dark); line-height: 1.15;
}
.site-logo__sub {
    font-size: .75rem; color: var(--text-muted);
    letter-spacing: .2px;
}

/* ── Main Navigation ──────────────────────────────────────── */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }
.main-nav__link {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--text); font-weight: 600; font-size: .92rem;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.main-nav__link:hover,
.main-nav__item.active > .main-nav__link {
    background: var(--green-light); color: var(--green);
    text-decoration: none;
}
.main-nav__link .arrow {
    font-size: .65rem; margin-top: 1px; transition: transform .2s;
}
.main-nav__item:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.main-nav__dropdown {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 220px; padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s;
    z-index: 100;
}
.main-nav__item:hover .main-nav__dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav__dropdown a {
    display: block; padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text); font-size: .9rem; font-weight: 500;
}
.main-nav__dropdown a:hover {
    background: var(--green-light); color: var(--green);
    text-decoration: none;
}

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 26px; height: 2px;
    background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.5);
}
.mobile-nav.open { display: block; }
.mobile-nav__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(320px, 90vw);
    background: var(--white); overflow-y: auto;
    padding: 20px;
    transform: translateX(100%); transition: transform .3s ease;
}
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__close {
    display: flex; justify-content: flex-end; margin-bottom: 20px;
}
.mobile-nav__close button {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text);
}
.mobile-nav__links a {
    display: block; padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text); font-weight: 600;
}
.mobile-nav__sub { padding-left: 16px; }
.mobile-nav__sub a {
    font-weight: 400; font-size: .9rem; color: var(--text-muted);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #5a9e65 100%);
    padding: 80px 0 70px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
    position: relative; display: grid;
    grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800; color: #fff; line-height: 1.15;
    margin-bottom: 16px;
}
.hero__sub {
    font-size: 1.15rem; color: rgba(255,255,255,.85);
    margin-bottom: 32px; max-width: 560px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__paws {
    font-size: 5rem; opacity: .15;
    animation: float 4s ease-in-out infinite;
    display: none;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Info-Banner (Öffnungszeiten) ─────────────────────────── */
.info-banner {
    background: var(--green); color: #fff;
    padding: 12px 0; font-size: .9rem;
}
.info-banner__inner {
    display: flex; gap: 32px; flex-wrap: wrap;
    align-items: center; justify-content: center;
}
.info-banner strong { font-weight: 700; }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section--light { background: var(--bg); }
.section--green { background: var(--green-light); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--green-dark);
    margin-bottom: 10px;
}
.section-sub {
    color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px;
    max-width: 600px;
}
.section-header { margin-bottom: 40px; }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto 40px; }

/* ── Animal Cards ─────────────────────────────────────────── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.tier-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none; color: var(--text);
    display: flex; flex-direction: column;
}
.tier-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.tier-card__img {
    aspect-ratio: 4/3; overflow: hidden;
    background: var(--green-light); position: relative;
}
.tier-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tier-card:hover .tier-card__img img { transform: scale(1.04); }
.tier-card__badge {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 10px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-verfuegbar  { background: var(--green);  color: #fff; }
.badge-reserviert  { background: var(--orange); color: #fff; }
.badge-neu         { background: #0077cc;       color: #fff; }
.tier-card__body { padding: 16px; flex: 1; }
.tier-card__name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.tier-card__meta { font-size: .85rem; color: var(--text-muted); }
.tier-card__placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 3.5rem; color: var(--green); opacity: .4;
}

/* ── Tierart-Kategorie-Kacheln ────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--white); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 28px 16px;
    text-align: center; text-decoration: none; color: var(--text);
    transition: all .2s; display: block;
}
.category-card:hover {
    border-color: var(--green); background: var(--green-light);
    transform: translateY(-3px); box-shadow: var(--shadow);
    text-decoration: none; color: var(--green-dark);
}
.category-card__icon { font-size: 2.8rem; margin-bottom: 10px; }
.category-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.category-card__count { font-size: .85rem; color: var(--text-muted); }

/* ── Help/Helfen-Karten ───────────────────────────────────── */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.help-card {
    background: var(--white); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
    border-left: 4px solid var(--green);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none; color: var(--text); display: block;
}
.help-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.help-card__icon { font-size: 2.2rem; margin-bottom: 14px; }
.help-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--green-dark); }
.help-card__text  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── News/Aktuelles ───────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s; text-decoration: none; color: var(--text);
}
.news-card:hover { transform: translateY(-3px); text-decoration: none; }
.news-card__img { aspect-ratio: 16/9; background: var(--green-light); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px; }
.news-card__date { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.news-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.news-card__excerpt { font-size: .875rem; color: var(--text-muted); }

/* ── Info-Kacheln (Zahlen/Facts) ──────────────────────────── */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px; text-align: center;
}
.fact-card { background: var(--white); border-radius: var(--radius); padding: 28px 16px; box-shadow: var(--shadow); }
.fact-card__number { font-size: 2.8rem; font-weight: 800; color: var(--green); line-height: 1; }
.fact-card__label  { font-size: .9rem; color: var(--text-muted); margin-top: 6px; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb__inner { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.breadcrumb__inner a { color: var(--green); }
.breadcrumb__inner span { color: var(--text-muted); }

/* ── Page Hero (Unterseiten) ──────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    padding: 48px 0;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero__inner { position: relative; }
.page-hero__title { font-size: clamp(1.6rem,4vw,2.6rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-hero__sub   { font-size: 1rem; color: rgba(255,255,255,.8); }

/* ── Content Area ─────────────────────────────────────────── */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.content-main h2 { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); margin: 28px 0 12px; }
.content-main h3 { font-size: 1.15rem; font-weight: 700; margin: 20px 0 8px; }
.content-main p  { margin-bottom: 14px; line-height: 1.75; }
.content-main ul, .content-main ol { padding-left: 20px; margin-bottom: 14px; }
.content-main li { margin-bottom: 4px; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar__box {
    background: var(--white); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.sidebar__title {
    font-size: 1rem; font-weight: 700; color: var(--green-dark);
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.sidebar__links { list-style: none; }
.sidebar__links li { border-bottom: 1px solid var(--border); }
.sidebar__links li:last-child { border-bottom: none; }
.sidebar__links a { display: block; padding: 8px 0; font-size: .9rem; color: var(--text); }
.sidebar__links a:hover { color: var(--green); text-decoration: none; padding-left: 4px; transition: padding .15s; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--green-dark); color: rgba(255,255,255,.85);
    padding: 56px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 40px; padding-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo__icon {
    width: 44px; height: 44px; background: rgba(255,255,255,.15);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem;
}
.footer-logo__name { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-about { font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px; background: rgba(255,255,255,.1);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1rem; transition: background .2s;
    text-decoration: none; color: #fff;
}
.footer-social a:hover { background: var(--green); }

.footer-col h4 {
    font-size: .9rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    text-align: center;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0px; text-align: center; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.75); transition: color .15s; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-contact li { font-size: .88rem; gap: 8px; margin-bottom: 8px; text-align: center;}
.footer-contact .icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
}
.footer-bottom__inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px;
}
.footer-bottom__links { display: flex; gap: 16px; }
.footer-bottom__links a { color: rgba(255,255,255,.5); }
.footer-bottom__links a:hover { color: #fff; text-decoration: none; }

/* ── Donate Banner ────────────────────────────────────────── */
.donate-banner {
    background: var(--orange); color: #fff;
    padding: 40px 0; text-align: center;
}
.donate-banner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.donate-banner p  { font-size: 1rem; opacity: .9; margin-bottom: 20px; }

/* ── Notice/Alert ─────────────────────────────────────────── */
.notice {
    border-radius: var(--radius); padding: 16px 20px;
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 20px;
}
.notice--info   { background: #e3f2fd; border-left: 4px solid #1565c0; }
.notice--warn   { background: #fff8e1; border-left: 4px solid var(--orange); }
.notice--coming { background: var(--green-light); border: 2px dashed var(--green); text-align: center; padding: 48px; border-radius: var(--radius); }
.notice--coming .notice-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.notice--coming h3 { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.notice--coming p  { color: var(--text-muted); }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── TierManager: Filter-Leiste ─────────────────────────── */
.tier-filter { margin-bottom: 28px; }
.tier-filter__inner { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-filter__btn {
    padding: 8px 18px; border-radius: 50px; font-size: .9rem; font-weight: 700;
    background: var(--white); color: var(--green); border: 2px solid var(--border);
    cursor: pointer; text-decoration: none; transition: all .18s;
}
.tier-filter__btn:hover,
.tier-filter__btn.is-active {
    background: var(--green); color: #fff; border-color: var(--green);
    text-decoration: none;
}
.tier-filter__btn--notfall { border-color: #dc2626; color: #dc2626; }
.tier-filter__btn--notfall:hover,
.tier-filter__btn--notfall.is-active { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ── TierManager: Tier-Karten ───────────────────────────── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.tier-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; display: flex;
    flex-direction: column; transition: transform .18s, box-shadow .18s;
    text-decoration: none; color: var(--text);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tier-card--notfall { border: 2px solid #dc2626; }
.tier-card--reserviert { opacity: .75; }
.tier-card--vermittelt { opacity: .8; }

.tier-card__img { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--green-light); }
.tier-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tier-card:hover .tier-card__img img { transform: scale(1.04); }
.tier-card__no-img {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; height: 100%; color: var(--green);
}

.tier-card__badge {
    position: absolute; bottom: 8px; left: 8px;
    font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    padding: 3px 10px; border-radius: 50px; text-transform: uppercase;
}
.tier-card__badge--notfall   { background: #dc2626; color: #fff; }
.tier-card__badge--reserviert { background: #f59e0b; color: #fff; }
.tier-card__badge--vermittelt { background: var(--green); color: #fff; }
.tier-card__badge--privat     { background: #6366f1; color: #fff; }

.tier-card__body { padding: 14px 16px; flex: 1; }
.tier-card__name { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
.tier-card__rasse { font-size: .88rem; color: var(--text-muted); margin-bottom: 6px; }
.tier-card__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.tier-card__meta span { background: var(--green-light); color: var(--green-dark); padding: 2px 8px; border-radius: 50px; }
.tier-card__beschreibung { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
.tier-card__footer { padding: 10px 16px; border-top: 1px solid var(--border); }
.tier-card__kontakt {
    display: block; text-align: center; padding: 7px; border-radius: var(--radius-sm);
    background: var(--green-light); color: var(--green-dark); font-weight: 700; font-size: .9rem;
}
.tier-card__kontakt:hover { background: var(--green); color: #fff; text-decoration: none; }

/* ── TierManager: Archiv-Statistik ─────────────────────── */
.archiv-stats {
    display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.archiv-stats__item {
    flex: 1; min-width: 120px; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px; text-align: center;
}
.archiv-stats__zahl { display: block; font-size: 2.2rem; font-weight: 900; color: var(--green); }
.archiv-stats__label { font-size: .85rem; color: var(--text-muted); }

/* ── TierManager: Pagination ────────────────────────────── */
.tier-pagination { margin-top: 32px; display: flex; justify-content: center; }
.tier-pagination .pagination { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.tier-pagination .pagination li a,
.tier-pagination .pagination li span {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--border);
    font-weight: 700; font-size: .9rem; color: var(--green);
    text-decoration: none; transition: all .18s;
}
.tier-pagination .pagination li.active span,
.tier-pagination .pagination li a:hover {
    background: var(--green); border-color: var(--green); color: #fff;
}

/* ── TierManager: Tier-Detail ───────────────────────────── */
.tier-detail { max-width: 1100px; }

.tier-detail__header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tier-detail__name { font-size: 2rem; font-weight: 900; color: var(--green-dark); }

.tier-badge {
    display: inline-block; padding: 4px 12px; border-radius: 50px;
    font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.tier-badge--notfall    { background: #fee2e2; color: #dc2626; }
.tier-badge--reserviert { background: #fef3c7; color: #d97706; }
.tier-badge--vermittelt { background: var(--green-light); color: var(--green-dark); }

/* Spalten-Layout: mobile gestapelt (Bild zuerst), Desktop 2/3 links + 1/3 rechts */
.tier-detail__layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.tier-detail__col-left  { order: 2; min-width: 0; }
.tier-detail__col-right { order: 1; min-width: 0; }

.tier-detail__gallery { margin-bottom: 32px; }
.tier-detail__main-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.tier-detail__foto { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3/2; cursor: zoom-in; display: block; }
.tier-detail__main-img::after {
    content: '⤢'; position: absolute; right: 10px; bottom: 10px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; pointer-events: none; opacity: 0; transition: opacity .18s;
}
.tier-detail__main-img:hover::after { opacity: 1; }
.tier-detail__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tier-detail__thumb {
    width: 80px; height: 54px; object-fit: cover; border-radius: var(--radius-sm);
    border: 3px solid transparent; cursor: pointer; transition: border-color .18s;
}
.tier-detail__thumb.is-active,
.tier-detail__thumb:hover { border-color: var(--green); }
.tier-detail__no-foto {
    font-size: 8rem; text-align: center; background: var(--green-light);
    border-radius: var(--radius); padding: 60px 0; margin-bottom: 32px;
}

/* Galerie-Pfeile am Hauptbild */
.tier-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .18s; z-index: 2; padding: 0;
}
.tier-gallery__nav:hover { background: rgba(0, 0, 0, .7); }
.tier-gallery__nav--prev { left: 10px; }
.tier-gallery__nav--next { right: 10px; }

/* Lightbox */
.tier-lightbox {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(10, 10, 10, .92);
    align-items: center; justify-content: center;
}
.tier-lightbox.is-open { display: flex; }
.tier-lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.tier-lightbox__close {
    position: absolute; top: 20px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem;
    cursor: pointer; transition: background .18s;
}
.tier-lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.tier-lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .18s; z-index: 2; padding: 0;
}
.tier-lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.tier-lightbox__nav--prev { left: 24px; }
.tier-lightbox__nav--next { right: 24px; }

body.no-scroll { overflow: hidden; }

@media (max-width: 700px) {
    .tier-gallery__nav { width: 30px; height: 30px; font-size: 1.2rem; }
    .tier-lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .tier-lightbox__close { top: 12px; right: 12px; }
    .tier-lightbox__nav--prev { left: 8px; }
    .tier-lightbox__nav--next { right: 8px; }
}

.tier-detail__beschreibung { margin-bottom: 28px; }
.tier-detail__beschreibung p { margin-bottom: 12px; }
.tier-detail__medizin { margin-bottom: 28px; background: #fef3c7; border-radius: var(--radius-sm); padding: 14px; }

.tier-detail__facts-wrap h3,
.tier-detail__vertr h3,
.tier-detail__beschreibung h3,
.tier-detail__medizin h3 {
    font-size: 1.1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 10px;
}
.tier-detail__facts-wrap { margin-bottom: 28px; }
.tier-detail__facts { width: 100%; border-collapse: collapse; }
.tier-detail__facts th,
.tier-detail__facts td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.tier-detail__facts th { width: 38%; font-weight: 700; color: var(--text-muted); }
.tier-detail__facts td { color: var(--text); }

.tier-detail__vertr { margin-bottom: 28px; }
.tier-vertr-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tier-vertr-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.tier-vertr-list__label { min-width: 90px; color: var(--text-muted); }
.tier-vertr-list__value { font-weight: 700; }
.tier-vertr-list__value--ja       { color: var(--green); }
.tier-vertr-list__value--bedingt  { color: #d97706; }
.tier-vertr-list__value--nein     { color: #dc2626; }
.tier-vertr-list__value--unbekannt { color: var(--text-muted); }
.tier-detail__vertr-notizen { margin-top: 8px; font-size: .9rem; color: var(--text-muted); font-style: italic; }

.tier-detail__cta {
    background: var(--green-light); border-radius: var(--radius); padding: 24px;
    border-left: 4px solid var(--green);
}
.tier-detail__cta h3 { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; }
.tier-detail__cta p  { color: var(--text-muted); margin-bottom: 14px; }

@media (min-width: 901px) {
    .tier-detail__layout { grid-template-columns: 2fr 1fr; align-items: start; }
    .tier-detail__col-left  { order: 1; }
    .tier-detail__col-right { order: 2; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-nav    { display: none; }
    .nav-toggle  { display: flex; }
    .hero__paws  { display: none; }
    .hero__inner { grid-template-columns: 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .footer-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid         { grid-template-columns: 1fr; }
    .info-banner__inner  { flex-direction: column; gap: 8px; text-align: center; }
    .hero { padding: 48px 0; }
}
