/* ==========================================================================
   swiss-konto.de — Stylesheet
   Reines CSS, keine externen Ressourcen. Schriften lokal (DSGVO).
   Gestaltungsprinzip: Pictet — Weißraum, Haarlinien, ruhiger Satz.
   ========================================================================== */

/* ---------- Schriften (lokal, kein Google-Fonts-Aufruf) ---------- */

/* DM Serif Display — 400, Headlines */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat — variabel 300–600, Fließtext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design-Tokens ---------- */
:root {
  --navy:  #0D1B2A;
  --blue:  #4A90D9;
  --gold:  #C9A84C;
  --creme: #F7F5F0;
  --white: #FFFFFF;
  --grey:  #6B6B6B;

  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1100px;
  --wrap-narrow: 720px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout-Hilfen ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--white { background: var(--white); }
.section--creme { background: var(--creme); }
.section--navy  { background: var(--navy); color: var(--creme); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

/* Kicker — Versalien, klein, gold, Sperrung */
.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
  display: block;
}

.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--grey);
  font-weight: 300;
}
.section--navy .lead { color: rgba(247,245,240,0.85); }

/* Haarlinie */
.hairline { border: 0; border-top: 1px solid rgba(201,168,76,0.55); margin: 0; }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--navy);
  background: var(--gold);
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--gold); }
.section--navy .btn:hover, .section--navy .btn:focus-visible { color: var(--gold); }

.btn--ghost { background: transparent; color: var(--navy); }
.section--navy .btn--ghost { color: var(--creme); border-color: var(--gold); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--gold); color: var(--navy); }

/* ---------- Kopfzeile / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid rgba(13,27,42,0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  font-family: var(--serif); font-size: 1.4rem; color: var(--navy);
  text-decoration: none; letter-spacing: 0.01em;
}
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a {
  text-decoration: none; color: var(--navy); font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.02em; padding-block: 0.25rem;
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex; align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* Ausschnitt am unteren Rand verankern: Horizont/Landschaft bleiben sichtbar,
     der leere Himmel läuft nach oben aus dem sichtbaren Bereich. */
  object-position: center bottom;
  filter: brightness(0.72) saturate(0.9);
}
/* Gleichmäßige Abdunklung über die volle Breite — überall dieselbe Helligkeit,
   dunkel genug, dass die Textzeilen links gut lesbar sind. Kein Verlauf. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(9,20,31,0.42);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 8rem); }
/* Text-Schatten sichert die Lesbarkeit zusätzlich ab */
.hero h1, .hero .lead, .hero__note { text-shadow: 0 2px 16px rgba(9,20,31,0.7), 0 1px 3px rgba(9,20,31,0.55); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,0.9); max-width: 46ch; margin-bottom: 2.25rem; }

/* ---------- Drei-Ebenen-Liste (Haarlinien, Überschrift links / Text rechts) ---------- */
.rows { border-top: 1px solid rgba(201,168,76,0.55); margin-top: 2.5rem; }
.row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(201,168,76,0.55);
}
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--grey); }

/* ---------- Prosa (Blogbeiträge, Kontakt-Fließtext) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

.article__meta {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 2rem;
}
.article__figure { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.article__figure img { width: 100%; }

/* Abschluss-Bausteine unter dem Beitrag */
.post-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(201,168,76,0.55); }
.post-foot .formula { font-size: 0.95rem; color: var(--grey); }
.post-foot .risk { font-size: 0.8rem; color: var(--grey); margin-top: 1.5rem; line-height: 1.6; }
.post-foot .ai-note { font-size: 0.8rem; color: var(--grey); margin-top: 0.75rem; font-style: italic; }
.post-foot .cta { margin: 1.75rem 0; }

/* ---------- Blogliste ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__date {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 1.25rem 0 0.5rem;
}
.post-card h3 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.post-card p { color: var(--grey); font-size: 0.98rem; margin: 0 0 1rem; }
.post-card__more {
  margin-top: auto; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px; align-self: flex-start;
}
.post-card:hover h3 { color: var(--blue); }

/* ---------- Kontakt ---------- */
/* Oben: Intro links, Bild rechts auf gleicher Höhe (nutzt .split) */
.contact-intro { margin-bottom: clamp(3rem, 7vw, 5rem); }
.contact-intro .split__media { min-height: 0; }

/* Darunter: zwei gleich breite, gleichwertige Spalten mit goldener Haarlinie */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-col { display: flex; flex-direction: column; }
.contact-col--termin { padding-right: clamp(2rem, 5vw, 4rem); }
.contact-cols .contact-col + .contact-col {
  padding-left: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid rgba(201,168,76,0.55);
}
.contact-col h3 { font-size: 1.3rem; }
.btn--lg { padding: 1.15rem 2.75rem; font-size: 0.9rem; letter-spacing: 0.14em; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy); color: rgba(247,245,240,0.8); padding-block: clamp(3rem, 7vw, 4.5rem); }
.site-footer a { color: rgba(247,245,240,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 4rem); }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; }
.footer-contact { font-size: 0.95rem; line-height: 1.9; }
.footer-contact strong { color: var(--white); font-weight: 600; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(247,245,240,0.14); font-size: 0.82rem; line-height: 1.7; }
.footer-legal .wordmark { color: var(--gold); letter-spacing: 0.22em; font-size: 0.72rem; margin-top: 1.25rem; }
.footer-risk { background: #0a141f; color: rgba(247,245,240,0.55); font-size: 0.75rem; line-height: 1.6; padding-block: 1.5rem; }

/* Hero-Zusatzzeile (kleiner, gedämpft) */
.hero__note { font-size: 0.95rem; color: rgba(255,255,255,0.7); max-width: 46ch; margin: -0.75rem 0 2.25rem; }

/* Gold-Sublink unter einem Drei-Ebenen-Punkt */
.row__link { display: inline-block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--gold); text-decoration: none; letter-spacing: 0.02em; }
.row__link:hover, .row__link:focus-visible { text-decoration: underline; }

/* Freistehender Zwischensatz — linksbündig im Satzspiegel, etwas größer als Fließtext */
.statement-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.statement { max-width: none; margin: 0; text-align: left; font-family: var(--sans); font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.55; color: var(--navy); }

/* Text/Bild nebeneinander — Bild füllt die Höhe des Textblocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.split__media { position: relative; margin: 0; min-height: clamp(380px, 40vw, 560px); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Utility ---------- */
.mt-cta { margin-top: 2.25rem; }
.center { text-align: center; }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 0.6rem; }
  .post-grid { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; }
  .contact-col--termin { justify-content: flex-start; padding-right: 0; padding-bottom: 2.5rem; }
  .contact-cols .contact-col + .contact-col {
    padding-left: 0; border-left: 0;
    border-top: 1px solid rgba(201,168,76,0.55); padding-top: 2.5rem;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { position: static; margin: 0; min-height: 0; }
  .split__media img { position: static; height: auto; }
  .nav { gap: 1rem; font-size: 0.85rem; }
}
@media (max-width: 460px) {
  .site-header .wrap { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
