/* =========================================================
   Förderverein St. Ulrich - Stylesheet
   Plain CSS, keine Build-Tools nötig
   ========================================================= */

/* ============ DESIGN TOKENS ============ */
:root {
    /* Farben - warmes Weinrot/Beige-Schema passend zum Vereinslogo */
    --background: 25 30% 95%;
    --foreground: 20 20% 15%;
    --primary: 348 60% 30%;
    --primary-foreground: 0 0% 100%;
    --secondary: 25 25% 90%;
    --secondary-foreground: 20 20% 15%;
    --accent: 348 40% 40%;
    --accent-foreground: 0 0% 100%;
    --muted: 25 20% 90%;
    --muted-foreground: 20 10% 45%;
    --card: 30 25% 96%;
    --card-foreground: 20 20% 15%;
    --border: 25 15% 85%;
    --input: 25 15% 85%;
    --ring: 348 60% 30%;
    --radius: 0.5rem;
}

/* Direkte Farbvariablen für einfacheres Nutzen */
:root {
    --c-bg: hsl(var(--background));
    --c-fg: hsl(var(--foreground));
    --c-primary: hsl(var(--primary));
    --c-primary-fg: hsl(var(--primary-foreground));
    --c-secondary: hsl(var(--secondary));
    --c-accent: hsl(var(--accent));
    --c-muted: hsl(var(--muted));
    --c-muted-fg: hsl(var(--muted-foreground));
    --c-card: hsl(var(--card));
    --c-card-fg: hsl(var(--card-foreground));
    --c-border: hsl(var(--border));
    --c-input: hsl(var(--input));
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-fg);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Screen-Reader only (Skip-Link) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--c-primary);
    color: var(--c-primary-fg);
    border-radius: var(--radius);
    font-weight: 600;
}

.page { min-height: 100vh; background: var(--c-bg); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 2.5rem;
    width: auto;
    border-radius: 4px;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-primary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: hsl(var(--foreground) / 0.8);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--c-primary); }

.nav-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--c-fg);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
    .brand-text { display: inline; }
}

@media (max-width: 767px) {
    .brand-text { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-border);
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.open { display: flex; }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 3rem 0 5rem;
    background: linear-gradient(135deg,
        hsl(var(--primary) / 0.15) 0%,
        var(--c-secondary) 50%,
        hsl(var(--accent) / 0.05) 100%);
}

@media (min-width: 768px) {
    .hero { padding: 4rem 0 6rem; }
}

.hero-inner {
    text-align: center;
    max-width: 768px;
}

.hero-logo {
    height: 8rem;
    width: auto;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .hero-logo { height: 12rem; }
}

@media (min-width: 1024px) {
    .hero-logo { height: 14rem; }
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--c-fg);
}

@media (min-width: 768px) { .hero h1 { font-size: 2rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 2.5rem; } }

.hero h1 .accent { color: var(--c-primary); }

.lead {
    font-size: 1.0625rem;
    color: var(--c-muted-fg);
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    letter-spacing: 0.01em;
    font-style: italic;
}

@media (min-width: 768px) { .lead { font-size: 1.125rem; } }

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0 1rem;
    height: 2.5rem;
    transition: background-color 0.2s, color 0.2s, transform 0.05s;
    border: 1px solid transparent;
    line-height: 1;
}

.btn:active { transform: scale(0.98); }
.btn svg { flex-shrink: 0; }

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-block { width: 100%; }

.btn-primary {
    background: var(--c-primary);
    color: var(--c-primary-fg);
}

.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-outline {
    background: var(--c-bg);
    color: var(--c-fg);
    border: 1px solid var(--c-input);
}

.btn-outline:hover {
    background: var(--c-secondary);
}

/* ============ SECTIONS ============ */
.section {
    padding: 4rem 0;
    background: var(--c-bg);
}

@media (min-width: 768px) { .section { padding: 6rem 0; } }

.section-alt { background: hsl(var(--secondary) / 0.3); }

.section-gradient {
    background: linear-gradient(135deg,
        hsl(var(--primary) / 0.1) 0%,
        hsl(var(--accent) / 0.1) 100%);
}

.section-head {
    max-width: 768px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head h2 {
    font-size: 1.875rem;
    color: var(--c-fg);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-head h2 { font-size: 2.25rem; }
}

.section-head p {
    font-size: 1.125rem;
    color: var(--c-muted-fg);
}

/* ============ GRIDS ============ */
.grid { display: grid; gap: 1.5rem; }

.grid-2 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.max-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }

/* ============ FEATURE CARDS (Über uns) ============ */
.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: hsl(var(--secondary) / 0.5);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.1);
    color: var(--c-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-fg);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* ============ CARDS (general) ============ */
.card {
    background: var(--c-card);
    color: var(--c-card-fg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.5rem;
}

.card-body { padding: 1.5rem; padding-top: 0; }

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

#kontakt .card-title { font-size: 1.5rem; }

.icon-primary { color: var(--c-primary); }
.icon-accent { color: var(--c-accent); }
.icon-muted { color: var(--c-muted-fg); margin-top: 0.125rem; flex-shrink: 0; }

/* ============ PROJECT CARD ============ */
.project-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsl(var(--accent) / 0.2);
    color: var(--c-accent);
    margin-bottom: 1rem;
}

.project-card .card-body p { color: var(--c-muted-fg); }

/* ============ BOARD (Vorstand) ============ */
.board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .board-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .board-grid { grid-template-columns: repeat(5, 1fr); }
}

.board-member { text-align: center; }

.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid hsl(var(--primary) / 0.2);
    overflow: hidden;
    background: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar span {
    color: var(--c-primary-fg);
    font-size: 1.25rem;
    font-weight: 600;
}

.board-member h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-fg);
}

.board-member p {
    color: var(--c-muted-fg);
    margin-top: 0.25rem;
}

/* ============ FORM ============ */
.form-card { text-align: left; }

.member-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 1rem; }

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-fg);
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: var(--c-fg);
}

.field input {
    display: flex;
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--c-input);
    border-radius: 0.375rem;
    background: var(--c-bg);
    color: var(--c-fg);
    transition: box-shadow 0.2s, border-color 0.2s;
}

@media (min-width: 768px) {
    .field input { font-size: 0.875rem; }
}

.field input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4);
}

.field input::placeholder { color: var(--c-muted-fg); }

.field input[readonly] {
    background: hsl(var(--secondary) / 0.5);
    color: var(--c-muted-fg);
    cursor: default;
}

.field textarea {
    display: flex;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--c-input);
    border-radius: 0.375rem;
    background: var(--c-bg);
    color: var(--c-fg);
    resize: vertical;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4);
}

/* ============ IBAN STATUS ============ */
.iban-status {
    display: block;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    min-height: 1.25rem;
}

.iban-loading { color: var(--c-muted-fg); }
.iban-valid { color: hsl(140 50% 35%); }
.iban-invalid { color: hsl(0 70% 45%); }

.muted { color: var(--c-muted-fg); font-size: 0.875rem; }
.accent-text { color: var(--c-primary); font-weight: 600; }

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-field input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    accent-color: var(--c-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-field label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-field label a {
    color: var(--c-primary);
}

.checkbox-field label a:hover { text-decoration: underline; }

.form-footnote {
    font-size: 0.75rem;
    color: var(--c-muted-fg);
    text-align: center;
}

.doc-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .doc-actions { flex-direction: row; }
}

/* ============ KONTAKT ============ */
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-label { font-weight: 500; color: var(--c-fg); }

.link-primary { color: var(--c-primary); }
.link-primary:hover { text-decoration: underline; }

.donate-box {
    background: hsl(var(--secondary) / 0.5);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.donate-box .contact-row { margin-bottom: 0; }

.iban-row {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-btn {
    background: none;
    border: none;
    padding: 0.125rem;
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: color 0.2s;
}

.copy-btn:hover { color: hsl(var(--primary) / 0.8); }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--c-fg);
    color: var(--c-bg);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.site-footer p { color: hsl(0 0% 100% / 0.7); font-size: 0.875rem; }

.site-footer h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-bg);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a, .site-footer > .container > .footer-grid a {
    color: hsl(0 0% 100% / 0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover, .site-footer > .container > .footer-grid a:hover {
    color: var(--c-bg);
}

.footer-bottom {
    border-top: 1px solid hsl(0 0% 100% / 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: hsl(0 0% 100% / 0.5);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-legal a {
    color: hsl(0 0% 100% / 0.7);
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--c-bg); }

.footer-legal .sep { color: hsl(0 0% 100% / 0.3); }

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--c-fg);
    color: var(--c-bg);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    max-width: calc(100% - 3rem);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============ PREVIEW GRID (Startseite: Projekt + Termine + Rückblicke) ============ */
.preview-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-muted-fg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.preview-label svg { color: var(--c-primary); }

.preview-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .preview-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .preview-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.preview-project { display: flex; flex-direction: column; }
.preview-project .card-body { flex: 1; }

/* ============ TERMIN-LISTE (kompakt) ============ */
.termin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.termin-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}

.termin-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

.termin-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-fg);
    margin-bottom: 0.25rem;
}

.termin-info p { font-size: 0.8125rem; }

/* ============ DATUM-BADGE ============ */
.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.5rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.date-badge-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1;
}

.date-badge-month {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============ STATUS-BADGE (Projekte) ============ */
.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    text-transform: capitalize;
}

.status-geplant {
    background: hsl(var(--muted));
    color: var(--c-muted-fg);
}

.status-laufend {
    background: hsl(var(--primary) / 0.15);
    color: var(--c-primary);
}

.status-abgeschlossen {
    background: hsl(140 40% 90%);
    color: hsl(140 40% 30%);
}

/* ============ LISTING PAGES ============ */
.listing-page { padding-top: 6rem; }
.listing-page h1 { font-size: 2.25rem; margin-bottom: 1rem; }

/* ============ FOTO-GRID (Rückblicke) ============ */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.foto-grid img {
    border-radius: var(--radius);
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* ============ PROJEKT-GALERIE (Detailseite) ============ */
.projekt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.projekt-gallery img {
    border-radius: var(--radius);
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.2s;
    cursor: pointer;
}

.projekt-gallery img:hover { transform: scale(1.02); }

/* ============ PROJEKT-TEXT (Detailseite) ============ */
.projekt-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--c-fg);
}

.projekt-text h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--c-fg);
}

.projekt-text p {
    color: var(--c-muted-fg);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.projekt-text ul {
    color: var(--c-muted-fg);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.projekt-text li { margin-bottom: 0.375rem; line-height: 1.6; }

.projekt-text blockquote {
    border-left: 4px solid var(--c-primary);
    padding: 1rem 1.5rem;
    background: hsl(var(--secondary) / 0.5);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.projekt-text blockquote p {
    color: var(--c-fg);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.projekt-text a { color: var(--c-primary); }
.projekt-text a:hover { text-decoration: underline; }

/* ============ PROJEKT-TEASER (Listing) ============ */
.projekt-card-link { display: block; text-decoration: none; color: inherit; }
.projekt-card-link:hover .project-card { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.projekt-teaser-image {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.projekt-teaser-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.projekt-card-link:hover .projekt-teaser-image img {
    transform: scale(1.03);
}

/* ============ PARTNER & SPONSOREN ============ */
.partner-section { margin-bottom: 3rem; }

.partner-cat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--c-fg);
    margin-bottom: 0.5rem;
}

.partner-cat-title svg { color: var(--c-primary); }

.partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

.partner-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.1s;
}

a.partner-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.partner-logo {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--secondary) / 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.partner-initial {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
}

.partner-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-fg);
    margin-bottom: 0.25rem;
}

.partner-info p {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.partner-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--c-primary);
    margin-top: 0.375rem;
}

a.partner-card:hover .partner-link { text-decoration: underline; }

.partner-cta { margin-top: 3rem; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* ============ SCROLL-OFFSET für sticky-Header ============ */
section[id] { scroll-margin-top: 5rem; }
