/* ==========================================================================
   nf-psychologie.ch – Stylesheet
   Farben und Schriften oben zentral anpassen.
   ========================================================================== */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("/fonts/libre-caslon-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("/fonts/libre-caslon-display-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF;
}

:root {
  --text: #1a1a1a;
  --muted: #4a4a43;
  --bg: #ffffff;
  --bg-light: #f3f3f2;
  --bg-mid: #878780;
  --bg-dark: #4a4a43;
  --on-dark: #f3f3f2;
  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --max: 1224px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(56px, 10vw, 120px); line-height: 1; }
h2 { font-size: clamp(40px, 6vw, 64px); line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-header .logo img { width: 230px; }

.nav { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] { color: #000; border-bottom-color: #000; }

/* ---------- Buttons ---------- */

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 11px 39px;
  border: 1px solid var(--muted);
  color: var(--muted);
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn:hover { background: var(--muted); color: #fff; }

.on-mid .btn { border-color: var(--on-dark); color: var(--on-dark); }
.on-mid .btn:hover { background: var(--on-dark); color: var(--bg-mid); }

/* ---------- Sections ---------- */

.section { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.bg-mid { background: var(--bg-mid); }

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.center { text-align: center; }

/* Hero (Startseite) */
.hero { padding: 40px 0 80px; }
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
}
.hero-text { text-align: center; }
.hero-img img { width: 100%; }

/* Zweispaltig: Text + Bild */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split-text {
  padding: 80px 24px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.split-text h2 { margin-bottom: 32px; }
.split-img { align-self: stretch; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Kompetenzen */
.skills h2 { text-align: center; margin-bottom: 80px; }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.skill { display: flex; gap: 32px; align-items: flex-start; }
.skill img { width: 80px; flex-shrink: 0; }
.skill h3 { margin-bottom: 16px; }

/* Breites Bild */
.wide-img img { width: 100%; height: 470px; object-fit: cover; }

/* Aus- und Weiterbildungen */
.cv h2 { text-align: center; margin-bottom: 64px; }
.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.cv-col > h3 { font-size: 32px; margin-bottom: 40px; }
.cv-item { margin-bottom: 32px; }
.cv-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.cv-item p { font-size: 14px; margin: 0; }

/* Seiten-Titel */
.page-title { padding: 120px 0; }
.page-title h1 { font-size: clamp(48px, 8vw, 100px); text-align: center; }

/* Kontakt */
.contact-info { text-align: center; padding: 64px 24px; }
.contact-info h3 { margin: 0 0 12px; }
.contact-info p { margin-bottom: 40px; }

.map-box {
  position: relative;
  min-height: 460px;
  height: 100%;
  background: #e4e4e1 url("/img/praxis-wil.jpg") center / cover;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(243, 243, 242, 0.88);
  font-size: 14px;
}
.map-consent p { max-width: 360px; margin: 0; }

.form-wrap { padding: 80px 24px; max-width: 520px; margin: 0 auto; width: 100%; }
.form-wrap h2 { text-align: center; margin-bottom: 40px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 14px; margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: var(--bg-light);
  font: inherit;
  color: var(--text);
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--muted); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; }
.form-submit { text-align: center; }
.form-msg { padding: 14px 16px; margin-bottom: 24px; background: var(--bg-light); text-align: center; }
.form-msg.error { background: #f6e3e0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-dark); color: var(--on-dark); padding: 56px 0; }
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.site-footer .logo img { width: 363px; }
.site-footer h3 { font-size: 20px; margin-bottom: 12px; }
.site-footer p { margin: 0; text-align: center; }
.site-footer a { color: var(--on-dark); }
.footer-col { text-align: center; }
.footer-legal {
  grid-column: 1 / -1;
  font-size: 13px;
  opacity: .75;
  text-align: center;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* Rechtliche Texte */
.legal { max-width: 760px; margin: 0 auto; padding: 0 24px 100px; }
.legal h2 { font-size: 32px; margin: 48px 0 16px; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .site-header .container { flex-direction: column; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
  .site-header .logo img { width: 200px; }
  .nav { gap: 28px; }

  .hero .container,
  .split,
  .skills-grid,
  .cv-grid,
  .site-footer .container { grid-template-columns: 1fr; }

  .hero { padding-top: 24px; }
  .hero-img { order: -1; }
  .section { padding: 64px 0; }
  .split-text { padding: 64px 24px; }
  .split-img img { height: 420px; }
  .split.img-first-mobile .split-img { order: -1; }
  .skills h2, .cv h2 { margin-bottom: 48px; }
  .skill { gap: 20px; }
  .skill img { width: 60px; }
  .wide-img img { height: 300px; }
  .page-title { padding: 72px 0; }
  .map-box { min-height: 360px; }
  .site-footer .logo img { width: 260px; margin: 0 auto; }
}
