/* ==========================================================
   Julian Wagner · Webseite
   Gemeinsames Stylesheet für julian-wagner.ch und
   sponsoring.julian-wagner.ch (Gestaltung «Variante A»)
   Farben und Schriften gemäss CD-Manual 1.0
   ========================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("publicsans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Farben und Grundwerte ---------- */
:root {
  --navy: #0E1D3A;
  --navy-2: #16294D;
  --navy-line: #2A3D63;
  --paper: #F7F4EC;
  --white: #FFFFFF;
  --sand: #E9E4D8;
  --border: #E6E1D6;
  --gold: #D4A84A;
  --gold-dark: #8E6418;
  --gold-gradient: linear-gradient(135deg, #F6DE97, #D4A84A 55%, #A9781F);
  --text-2: #3D4757;
  --muted: #5A6474;
  --on-navy-2: #C9D3E6;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", Arial, sans-serif;

  --radius-l: 32px;
  --radius-m: 18px;
  --wrap: 1200px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typografie ---------- */
.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.on-navy .kicker, .panel-navy .kicker { color: var(--gold); }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
}
h1.display { font-size: clamp(42px, 6vw, 64px); }
h2.display { font-size: clamp(34px, 4.6vw, 56px); line-height: 1; }
h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.15; }
.lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.panel-navy .lead { color: var(--on-navy-2); }
.muted { color: var(--muted); font-size: 15px; }
.accent { color: var(--gold); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { color: var(--white); background: var(--navy-2); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { color: var(--navy); }
.btn-gold {
  border: 0; padding: 14px 26px;
  background: linear-gradient(135deg, #F3D98F, #D4A84A);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(142, 100, 24, .25);
}
.btn-gold:hover { color: var(--navy); }
.btn-outline { border-color: var(--gold); color: inherit; }
.btn-outline:hover { color: inherit; background: rgba(212, 168, 74, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header und Navigation ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.site-logo img { width: 169px; height: 48px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 26px; }
.nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
}
.nav a[aria-current="page"]:not(.btn) { color: var(--gold-dark); }
.nav .btn { min-height: 44px; padding: 12px 22px; line-height: 1; font-family: var(--font-display); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 15px; }
.nav-toggle {
  display: none; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--navy); border-radius: 999px; background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy); cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0 8px; }
  .nav.is-open { display: flex; }
}

/* ---------- Seitenaufbau ---------- */
main.wrap { display: flex; flex-direction: column; gap: 120px; }
@media (max-width: 700px) { main.wrap { gap: 80px; } }
.section { display: flex; flex-direction: column; gap: 36px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; border-bottom: 2px solid var(--navy); padding-bottom: 18px;
}
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.panel-navy .section-head { border-bottom-color: var(--navy-line); }

.panel-navy {
  background: var(--navy); color: var(--paper);
  border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.panel-navy a:not(.btn) { color: var(--gold); }
.panel-gold {
  background: var(--gold-gradient); color: var(--navy);
  border-radius: var(--radius-l); padding: clamp(28px, 5vw, 44px);
}

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; position: relative; }
.hero-media { flex: 1 1 360px; min-width: 0; position: relative; }
.hero-bg-number {
  position: absolute; left: 36px; bottom: -70px; margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(160px, 24vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--navy-line);
  pointer-events: none; user-select: none;
}
.badge {
  position: absolute; right: -8px; bottom: 28px;
  background: var(--gold-gradient); color: var(--navy);
  border-radius: var(--radius-m); padding: 16px 20px;
}
.badge p:first-child { font-size: 13px; font-weight: 600; }
.badge p:last-child { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
@media (max-width: 520px) { .badge { right: 12px; } }

/* Platzhalter für Fotos, bis die Bilder da sind */
.photo {
  width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover;
  border-radius: 22px; background: var(--navy-2);
}
.photo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--navy-line); color: #9FB2D4; font-size: 15px; padding: 24px;
}

/* ---------- Karten ---------- */
.card {
  background: var(--white); border-radius: var(--radius-m); padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.card-topline { border-top: 4px solid var(--navy); }
.card-label { font-size: 13px; color: var(--muted); }
.card-value { font-weight: 600; }
.card-navy { background: var(--navy); color: var(--paper); }
.card-navy .muted { color: var(--on-navy-2); }
.card-date { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--gold-dark); }
.card-navy .card-date { color: var(--gold); }
.card-featured { border: 2px solid var(--gold); }

/* Steckbrief: eine Karte, vier Felder mit feinen Trennlinien */
.facts {
  background: var(--white); border-radius: var(--radius-m); overflow: hidden;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}
.facts::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: var(--gold-gradient);
}
.facts > div { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 4px; }
.facts > div:nth-child(odd) { border-right: 1px solid #EFEBE2; }
.facts > div:nth-child(-n+2) { border-bottom: 1px solid #EFEBE2; }
.facts dt {
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold-dark);
}
.facts dd { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; text-transform: uppercase; }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:not(:last-child) { border-bottom: 1px solid #EFEBE2; }
}

/* Warum Julian: drei Gründe als Band mit grossem Stichwort im Goldverlauf */
.reasons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 2px solid var(--navy);
}
.reason { padding: 32px 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.reason + .reason { border-left: 1px solid var(--border); }
.reason-word {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, 6vw, 76px); line-height: 1.1;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-top: 4px;
}
.reason h3 { font-size: 20px; }
.reason p:last-child { color: var(--text-2); }
@media (max-width: 820px) {
  .reasons { grid-template-columns: 1fr; }
  .reason { padding: 26px 0; }
  .reason + .reason { border-left: 0; border-top: 1px solid var(--border); }
}

.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }

/* ---------- Zahlen ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 7vw, 80px); line-height: 1; color: var(--gold); }
.stat-label { font-weight: 600; }
.stat-note { font-size: 15px; color: var(--on-navy-2); }

/* ---------- Fortschritt ---------- */
.progress { height: 10px; background: #EFEBE2; border-radius: 5px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold-gradient); border-radius: 5px; }
.gap-note { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--gold-dark); }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.insta-grid > * { aspect-ratio: 1 / 1; border-radius: var(--radius-m); background: var(--sand); overflow: hidden; }
.insta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.insta-photo:hover img { transform: scale(1.04); }
.insta-more {
  background: var(--navy) !important; color: var(--white); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 28px;
}
.insta-more .kicker { color: var(--gold); }
.insta-more-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; }
.insta-more-handle { color: var(--gold); font-weight: 600; }
.insta-more:hover { color: var(--white); background: var(--navy-2) !important; }
@media (max-width: 640px) {
  .insta-grid { grid-template-columns: 1fr 1fr; }
  .insta-more { grid-column: 1 / -1; aspect-ratio: auto !important; padding: 22px; }
}
.insta-placeholder { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

/* ---------- Partner ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.partners-grid { flex: 1 1 600px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.partner-slot {
  height: 72px; border: 1px dashed #CFC8B8; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted);
}
.partner-slot { padding: 14px 22px; }
.partner-slot img { max-height: 66px; width: auto; }
.partner-slot img.wide { max-height: 26px; }
.partners-grid-logos { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.partners-grid-logos .partner-slot { height: 96px; background: var(--white); border: 0; }

/* ---------- Tabelle ---------- */
.table-wrap { background: var(--white); border-radius: var(--radius-m); overflow-x: auto; }
.table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: center; padding: 16px 12px; border-bottom: 2px solid var(--navy); }
.table th:first-child, .table td:first-child { text-align: left; padding-left: 22px; }
.table td { text-align: center; padding: 14px 12px; border-bottom: 1px solid #EFEBE2; }
.table tr:last-child td { border-bottom: none; }
.table .no { color: #A9A396; }

.list-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EFEBE2; }
.list-rows li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer .wrap {
  margin-top: 64px; padding-top: 20px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 24px; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
