/* ==========================================================================
   Lions Club Hansestadt Greifswald – Stylesheet
   --------------------------------------------------------------------------
   Aufbau:
     1. Design-Tokens (Farben, Abstände, Schrift)
     2. Grundlagen & Typografie
     3. Layout-Bausteine
     4. Kopfbereich und Navigation
     5. Hero
     6. Sektionen & Karten
     7. Instagram-Feed
     8. Beiträge (News)
     9. Spenden & Formulare
    10. Fußbereich
    11. Hilfsklassen, Animationen, Druck
   ========================================================================== */

/* 1 ------------------------------------------------------------- Tokens -- */
:root {
    /* Lions-Corporate-Design */
    --blue-900: #001f57;
    --blue-800: #002a75;
    --blue-700: #00338d;   /* Lions Blue – Primärfarbe */
    --blue-600: #0f47ad;
    --blue-100: #e6ecf7;
    --blue-050: #f3f6fc;

    --gold-600: #b98d00;
    --gold-500: #ebb700;   /* Lions Gold – Akzentfarbe */
    --gold-300: #ffdf7a;
    --gold-200: #fdf0c4;
    --gold-100: #fdf7e4;

    --ink:        #14181f;
    --ink-soft:   #414b5a;
    --ink-mute:   #6b7583;
    --line:       #e2e7ef;
    --line-soft:  #eef1f6;
    --surface:    #ffffff;
    --surface-2:  #f7f9fc;

    /* Typografie */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;

    --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
    --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
    --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.45rem);
    --step-2:  clamp(1.45rem, 1.32rem + 0.65vw, 1.95rem);
    --step-3:  clamp(1.8rem, 1.55rem + 1.2vw, 2.7rem);
    --step-4:  clamp(2.2rem, 1.7rem + 2.3vw, 3.9rem);

    /* Abstände */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2.25rem;
    --sp-5: 3.5rem;
    --sp-6: 5rem;
    --sp-7: 7rem;

    --wrap: 1180px;
    --wrap-narrow: 760px;

    --radius:    14px;
    --radius-lg: 22px;
    --radius-sm: 8px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 4px 6px -2px rgba(16, 24, 40, .04), 0 12px 24px -6px rgba(16, 24, 40, .10);
    --shadow-lg: 0 10px 20px -8px rgba(0, 31, 87, .16), 0 30px 60px -20px rgba(0, 31, 87, .22);

    --header-h: 74px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.68;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--blue-900);
    margin: 0 0 var(--sp-2);
    text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-2); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--blue-700);
    text-decoration-color: color-mix(in srgb, var(--blue-700) 35%, transparent);
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--blue-600); text-decoration-color: currentColor; }

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

strong { font-weight: 650; color: var(--blue-900); }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: var(--sp-4) 0;
}

blockquote {
    margin: var(--sp-3) 0;
    padding: var(--sp-2) var(--sp-3);
    border-left: 3px solid var(--gold-500);
    background: var(--gold-100);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink-soft);
}

:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection { background: var(--gold-200); color: var(--blue-900); }

/* 3 ------------------------------------------------------------ Layout -- */
.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--alt { background: var(--surface-2); }
.section--blue {
    background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 70%);
    color: #dbe4f3;
}
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue a:not(.btn) { color: var(--gold-500); }

.section-head { max-width: 60ch; margin-bottom: var(--sp-4); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-sans);
    font-size: var(--step--1);
    font-weight: 620;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: var(--sp-1);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}
.section--blue .eyebrow { color: var(--gold-500); }

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
}
.section--blue .lead { color: #c3d1e9; }

.grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.55rem;
    border: 1px solid transparent;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease,
                color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--gold-500);
    color: var(--blue-900);
    box-shadow: 0 6px 16px -6px rgba(235, 183, 0, .7);
}
.btn--primary:hover { background: #f6c521; color: var(--blue-900); box-shadow: 0 10px 22px -8px rgba(235,183,0,.8); }

.btn--solid {
    background: var(--blue-700);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(0, 51, 141, .8);
}
.btn--solid:hover { background: var(--blue-600); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--blue-700);
    border-color: color-mix(in srgb, var(--blue-700) 28%, transparent);
}
.btn--ghost:hover { background: var(--blue-050); border-color: var(--blue-700); }

.btn--on-dark {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(6px);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: var(--sp-3);
}

/* 4 ------------------------------------------------- Kopf & Navigation -- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--blue-700);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px rgba(16, 24, 40, .06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    color: var(--blue-900);
    flex-shrink: 0;
}
.brand__mark { width: 42px; height: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-weight: 640;
    letter-spacing: -0.01em;
}
.brand__sub {
    font-size: .705rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
    position: relative;
    padding: .55rem .8rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 550;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-050); }
.nav__link.is-active { color: var(--blue-800); font-weight: 640; }
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: .8rem; right: .8rem; bottom: .18rem;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}

.nav__cta { margin-left: .6rem; padding: .6rem 1.15rem; font-size: .93rem; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    color: var(--blue-800);
}
.nav-toggle:hover { background: var(--blue-050); }
.nav-toggle span {
    position: relative;
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .22s ease, background-color .1s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute; left: 0;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .22s ease, top .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: var(--sp-2) 1.25rem var(--sp-3);
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__link { padding: .8rem .9rem; font-size: 1.02rem; }
    .nav__link.is-active::after { display: none; }
    .nav__link.is-active { background: var(--blue-050); }
    .nav__cta { margin: .6rem 0 0; }
}

/* 5 -------------------------------------------------------------- Hero -- */
.hero {
    position: relative;
    isolation: isolate;
    background: linear-gradient(155deg, #013a9e 0%, var(--blue-800) 45%, var(--blue-900) 100%);
    color: #fff;
    padding-block: clamp(var(--sp-6), 11vw, var(--sp-7));
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at 82% 18%, rgba(235, 183, 0, .22), transparent 42%),
        radial-gradient(circle at 8% 92%, rgba(15, 71, 173, .55), transparent 50%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-width='.6'/%3E%3C/svg%3E");
}

.hero__inner {
    display: grid;
    gap: var(--sp-5);
    align-items: center;
}
@media (min-width: 940px) {
    .hero__inner { grid-template-columns: 1.15fr .85fr; gap: var(--sp-6); }
}

.hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero__motto {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 1rem .4rem .55rem;
    margin-bottom: var(--sp-3);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-500);
    backdrop-filter: blur(8px);
}
.hero__motto span {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    background: var(--gold-500);
    color: var(--blue-900);
    border-radius: 50%;
    font-size: .7rem;
}
.hero__text { font-size: var(--step-1); color: #cddaf0; max-width: 52ch; }

.hero__emblem {
    justify-self: center;
    width: min(340px, 78%);
    height: auto;
    filter: drop-shadow(0 24px 46px rgba(0, 0, 0, .38));
}
@media (max-width: 939px) {
    .hero__emblem { width: min(180px, 45%); }
    .hero__inner { gap: var(--sp-4); }
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__fact strong {
    display: block;
    font-family: var(--font-head);
    font-size: var(--step-2);
    color: var(--gold-500);
    line-height: 1.1;
}
.hero__fact span { font-size: .88rem; color: #b9c8e2; letter-spacing: .02em; }

/* Kompakter Seitenkopf für Unterseiten */
.pagehead {
    position: relative;
    isolation: isolate;
    background: linear-gradient(150deg, var(--blue-800), var(--blue-900));
    color: #fff;
    padding-block: clamp(var(--sp-5), 8vw, var(--sp-6));
    overflow: hidden;
}
.pagehead::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at 88% 12%, rgba(235,183,0,.2), transparent 45%);
}
.pagehead h1 { color: #fff; margin-bottom: var(--sp-2); }
.pagehead p { color: #c3d1e9; font-size: var(--step-1); max-width: 58ch; }

.crumbs {
    font-size: .85rem;
    color: #9db0d1;
    margin-bottom: var(--sp-2);
}
.crumbs a { color: #c9d7ee; text-decoration: none; }
.crumbs a:hover { color: var(--gold-500); }
.crumbs span { opacity: .55; margin-inline: .4rem; }

/* 6 -------------------------------------------------- Karten & Inhalte -- */
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--sp-3);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-100);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); }

.card__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: var(--sp-2);
    border-radius: 14px;
    background: var(--blue-050);
    color: var(--blue-700);
}
.card__icon svg { width: 26px; height: 26px; }

.card--gold .card__icon { background: var(--gold-100); color: var(--gold-600); }

/* Werte-/Zahlenkacheln */
.stat {
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: var(--step-3);
    color: var(--blue-700);
    line-height: 1.05;
}
.stat span { font-size: .9rem; color: var(--ink-mute); }

/* Vorstandsliste */
.board {
    display: grid;
    gap: var(--sp-2);
    padding: 0;
    margin: 0;
    list-style: none;
}
@media (min-width: 700px) { .board { grid-template-columns: repeat(3, 1fr); } }

.board li {
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-top: 3px solid var(--gold-500);
}
.board .role {
    display: block;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .3rem;
}
.board .name {
    font-family: var(--font-head);
    font-size: var(--step-1);
    color: var(--blue-900);
    line-height: 1.25;
}

/* Zeitstrahl */
.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.2rem;
    list-style: none;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 7px; top: .6rem; bottom: .6rem;
    width: 2px;
    background: linear-gradient(var(--gold-500), var(--blue-100));
    border-radius: 2px;
}
.timeline li { position: relative; padding-bottom: var(--sp-4); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -2.2rem; top: .55rem;
    width: 16px; height: 16px;
    background: #fff;
    border: 3px solid var(--gold-500);
    border-radius: 50%;
}
.timeline .year {
    display: inline-block;
    font-family: var(--font-head);
    font-size: var(--step-1);
    font-weight: 650;
    color: var(--blue-700);
    margin-bottom: .2rem;
}
.timeline h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.timeline p { color: var(--ink-soft); }

/* Info-Zeilen (Kontakt, Bank) */
.deflist { margin: 0; }
.deflist div {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.deflist div:last-child { border-bottom: 0; }
.deflist dt {
    flex: 0 0 clamp(9rem, 30%, 14rem);
    font-weight: 600;
    color: var(--ink-mute);
    font-size: .93rem;
}
.deflist dd { margin: 0; flex: 1 1 14rem; }

/* Aufzählung mit Häkchen */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink-soft);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 1.15rem; height: 1.15rem;
    background: var(--gold-500);
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 13.4 4.6 10l-1.2 1.2L8 15.8l8.6-8.6-1.2-1.2z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 13.4 4.6 10l-1.2 1.2L8 15.8l8.6-8.6-1.2-1.2z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section--blue .checklist li { color: #cddaf0; }

/* Ablaufplan Löwenball */
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
    display: flex;
    gap: var(--sp-2);
    align-items: baseline;
    padding: .85rem 0;
    border-bottom: 1px dashed var(--line);
}
.schedule li:last-child { border-bottom: 0; }
.schedule time {
    flex: 0 0 6.5rem;
    font-family: var(--font-head);
    font-weight: 640;
    color: var(--blue-700);
}

/* 7 --------------------------------------------------- Instagram-Feed -- */
.ig-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: clamp(.6rem, 1.4vw, 1.1rem);
}

.ig-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--blue-050);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.ig-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22,.8,.3,1);
}
.ig-item:hover img { transform: scale(1.06); }

.ig-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .4rem;
    padding: .9rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 20, 60, .88) 0%, rgba(0, 20, 60, .3) 45%, transparent 75%);
    opacity: 0;
    transition: opacity .25s ease;
}
.ig-item:hover .ig-item__overlay,
.ig-item:focus-visible .ig-item__overlay { opacity: 1; }
.ig-item__caption {
    font-size: .84rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ig-item__date { font-size: .74rem; color: var(--gold-500); font-weight: 600; letter-spacing: .04em; }
.ig-item__badge {
    position: absolute;
    top: .65rem; right: .65rem;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}
.ig-item__badge svg { width: 14px; height: 14px; }

/* Platzhalter, solange kein Token hinterlegt ist */
.ig-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--sp-5) var(--sp-3);
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--ink-mute);
}
.ig-placeholder svg { width: 42px; height: 42px; color: var(--blue-700); margin-bottom: var(--sp-2); }

.ig-skeleton {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: linear-gradient(100deg, var(--blue-050) 30%, #fff 50%, var(--blue-050) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* 8 ---------------------------------------------------------- Beiträge -- */
.post-list { display: grid; gap: var(--sp-3); }
@media (min-width: 720px)  { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media svg { width: 54px; height: 54px; color: rgba(235, 183, 0, .55); }

.post-card__body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.post-card__date {
    font-size: .8rem;
    font-weight: 620;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .45rem;
}
.post-card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-700); }
.post-card p { color: var(--ink-soft); font-size: .96rem; }
.post-card__more {
    margin-top: auto;
    padding-top: var(--sp-2);
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.post-card__more::after { content: "→"; transition: transform .2s ease; }
.post-card__more:hover::after { transform: translateX(3px); }

.tag {
    display: inline-block;
    padding: .18rem .6rem;
    margin: 0 .3rem .3rem 0;
    background: var(--blue-050);
    color: var(--blue-700);
    border-radius: 100px;
    font-size: .76rem;
    font-weight: 600;
}

/* Einzelner Beitrag */
.prose { font-size: 1.06rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-4); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: var(--sp-2); color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); }
.post-figure { margin: var(--sp-3) 0; }
/* Hochformat-Fotos dürfen die Seite nicht sprengen */
.post-figure img {
    max-height: 74vh;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--radius);
}
.timeline .post-figure { margin-top: var(--sp-2); }
.timeline .post-figure img { max-height: 42vh; margin-inline: 0; }
.post-figure figcaption {
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--ink-mute);
    text-align: center;
}

/* 9 ------------------------------------------------ Spenden & Formular -- */
.iban-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold-500);
    border-radius: var(--radius);
}
.iban-box__label {
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.iban-box__value {
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--blue-900);
    letter-spacing: .02em;
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    background: var(--blue-050);
    border: 1px solid var(--blue-100);
    border-radius: 100px;
    color: var(--blue-700);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}
.copy-btn:hover { background: var(--blue-100); }
.copy-btn.is-done { background: #e7f6ec; border-color: #bfe4cb; color: #1b7a3d; }

.qr-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.qr-card canvas, .qr-card img {
    width: 168px; height: 168px;
    border-radius: var(--radius-sm);
    background: #fff;
}

.notice {
    display: flex;
    gap: var(--sp-2);
    padding: var(--sp-3);
    background: var(--gold-100);
    border: 1px solid #f0dfa5;
    border-radius: var(--radius);
    color: #6b5200;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-600); }

/* 10 ------------------------------------------------------------ Fuß -- */
.site-footer {
    background: var(--blue-900);
    color: #a9bada;
    padding-block: var(--sp-5) var(--sp-3);
    font-size: .95rem;
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.site-footer a { color: #cfdcf1; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }

.footer-grid {
    display: grid;
    gap: var(--sp-4);
}
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: var(--sp-2); }
.footer-brand svg,
.footer-brand img { width: 46px; height: auto; flex-shrink: 0; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; font-weight: 620; }
.footer-brand span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.social-row { display: flex; gap: .6rem; margin-top: var(--sp-2); }
.social-row a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #fff;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-row a:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--blue-900);
    transform: translateY(-2px);
}
.social-row svg { width: 20px; height: 20px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .87rem;
    color: #8fa2c4;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* 11 ------------------------------------- Hilfsklassen & Feinschliff -- */

/* Symbolgrößen: SVGs ohne feste Maße würden sonst zu groß dargestellt. */
.btn svg,
.copy-btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.social-row svg { width: 20px; height: 20px; }
.to-top svg { width: 20px; height: 20px; }
.inline-icon,
.deflist svg { width: 1.05em; height: 1.05em; vertical-align: -.15em; color: var(--gold-600); }
.ig-placeholder svg { width: 42px; height: 42px; }
.notice svg { width: 22px; height: 22px; }
.card__icon svg { width: 26px; height: 26px; }
.hero__motto svg { width: 13px; height: 13px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }

/* Einblend-Effekt nur, wenn JavaScript aktiv ist (Klasse "js" am <html>).
   Ohne JavaScript bleiben alle Inhalte sofort sichtbar. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22,.8,.3,1), transform .6s cubic-bezier(.22,.8,.3,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.to-top {
    position: fixed;
    right: 1.2rem; bottom: 1.2rem;
    z-index: 90;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: var(--blue-700);
    color: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .to-top, .btn-row, .ig-grid { display: none !important; }
    body { color: #000; font-size: 11pt; }
    .hero, .pagehead { background: none !important; color: #000; padding-block: 1rem; }
    .hero h1, .pagehead h1, .hero__text, .pagehead p { color: #000 !important; }
    a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
    .section { padding-block: 1rem; }
}
