/* ==========================================================================
   PSG Voltigieren Zweibrücken – kleine Infoseite (statisch, ohne Datenbank)
   Farben und Schriften wie auf der neuen Vereinswebsite:
   Nachtblau (Schrift, dunkle Flächen), Kostümblau (Links, Buttons),
   Emblemblau (Akzente auf dunklem Grund), Sand (Flächen im Wechsel)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f2440;
  --navy-900: #0a1a31;
  --navy-700: #1a3458;
  --royal: #1d4aa6;
  --royal-600: #163c8a;
  --royal-100: #e4ebf8;
  --sky: #73add8;
  --sky-300: #a8cce9;
  --sky-100: #e7f1fa;
  --sand: #f4efe6;
  --sand-200: #e9e2d4;
  --cream: #fbfaf7;
  --ink: #142033;
  --muted: #4f5c72;
  --line: #e3dfd6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -20px rgba(13, 27, 50, 0.35);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--royal-600); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible, .notice :focus-visible { outline-color: var(--sky); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--cream); }

.eyebrow { display: inline-flex; align-items: flex-start; gap: 0.6em; font-size: 0.78rem; font-weight: 800; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin: 0 0 0.9em; }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 2px; margin-top: calc(0.8em - 1px); background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--sky); }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 0.92rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.85em 1.45em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--royal); color: #fff; box-shadow: 0 8px 20px -10px rgba(29, 74, 166, 0.7); }
.btn--accent:hover { background: var(--royal-600); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--navy-900); }
.btn--light:hover { background: #fff; color: var(--navy-900); }
.btn--ghost { border-color: rgba(251, 250, 247, 0.5); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--navy-900); border-color: var(--cream); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Hinweisleiste ---------- */
.notice { background: var(--navy); color: var(--cream); font-size: 0.93rem; line-height: 1.45; }
.notice .container { display: flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.notice p { margin: 0; }
.notice strong { color: var(--sky-300); }
.notice a { color: var(--sky); font-weight: 700; white-space: nowrap; }
.notice[hidden] { display: none; }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.96); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 216px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--navy); font-weight: 600; font-size: 0.97rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--sand); color: var(--navy-900); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--royal-600); color: #fff; }

@media (max-width: 920px) {
  .site-header .container { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .brand img { width: 190px; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 6px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; font-size: 0.93rem; background: var(--sand); }
  .nav .btn { margin-left: 0; background: var(--royal); }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--sand { background: var(--sand); }
.dark { background: var(--navy); color: rgba(251, 250, 247, 0.86); }
.dark h2, .dark h3 { color: #fff; }
.dark a:not(.btn) { color: var(--sky); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split--rev { grid-template-columns: 0.9fr 1.1fr; }
  .split--rev > :first-child { order: 2; }
}

.photo { margin: 0; position: relative; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.photo figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.photo--portrait img { aspect-ratio: 4 / 5; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; right: -140px; top: -120px; width: 560px; height: 560px; background: url("img/emblem.svg") no-repeat center / contain; opacity: 0.07; pointer-events: none; }
.hero .split { position: relative; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--royal); }
.hero .lead { max-width: 34em; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 28px 28px 28px 120px; box-shadow: var(--shadow); }
.hero__badge { position: absolute; left: -18px; bottom: 28px; max-width: 250px; padding: 14px 18px; background: var(--navy); color: var(--cream); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 0.92rem; line-height: 1.4; }
.hero__badge strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; }
@media (max-width: 879px) {
  .hero__photo { max-width: 520px; }
  .hero__photo img { aspect-ratio: 1; object-position: 50% 20%; border-radius: 24px 24px 24px 80px; }
  .hero__badge { position: relative; left: auto; bottom: auto; max-width: none; margin: -36px 16px 0 40px; }
}

/* ---------- Fakten ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.facts li { background: #fff; padding: 20px 22px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy-900); line-height: 1.2; margin-bottom: 4px; }
.facts span { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 559px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 16px; }
  .facts strong { font-size: 1.08rem; }
  .facts span { font-size: 0.85rem; }
}

/* ---------- Listen & Karten ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%; background: var(--royal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4aa6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 13px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .card--wide { grid-column: span 2; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; }
.section--sand .card { border-color: var(--sand-200); }
.card h3 { margin-bottom: 0.25em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: var(--royal-100); color: var(--royal-600); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.card--highlight { background: var(--navy); border-color: var(--navy); }
.card--highlight h3 { color: #fff; }
.card--highlight p { color: rgba(251, 250, 247, 0.8); }
.card--highlight .tag { background: rgba(115, 173, 216, 0.2); color: var(--sky-300); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; }
.timeline b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--royal); }
.dark .timeline b { color: var(--sky); }

.info-box { margin-top: 28px; padding: 18px 22px; border-left: 4px solid var(--royal); background: var(--sky-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.info-box p:last-child { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; font-weight: 700; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--royal); border-bottom: 2.5px solid var(--royal); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* ---------- Pferde ---------- */
.horse { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.horse:last-child { border-bottom: 1px solid var(--line); }
.horse h3 { margin: 0; }
.horse h3 span { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.horse p { margin: 0; color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: auto; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sommerlehrgang ---------- */
.keyfacts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 1em; }
.keyfacts dt { font-weight: 700; color: var(--navy-900); }
.keyfacts dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) {
  .keyfacts { grid-template-columns: 1fr; gap: 2px; }
  .keyfacts dd { margin-bottom: 8px; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.contact-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { margin: 0; }
.contact-card .big { font-size: 1.15rem; font-weight: 700; word-break: break-word; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--navy-900); color: rgba(251, 250, 247, 0.7); padding: 48px 0 32px; font-size: 0.93rem; }
.site-footer .container { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer img { width: 230px; margin-bottom: 14px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--cream); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.page { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.page .container { max-width: calc(780px + 2 * var(--gutter)); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.8em; }
.page h3 { font-size: 1.12rem; margin-top: 1.5em; margin-bottom: 0.3em; font-family: var(--sans); font-weight: 800; }
.back { display: inline-flex; gap: 0.4em; margin-bottom: 24px; font-weight: 700; text-decoration: none; }

/* Noch vom Verein zu ergänzende Angaben – fällt bewusst auf */
.todo { background: #fbf0d3; color: #4a3b12; padding: 1px 6px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
