/* ==========================================================================
   fallier.de – One-Pager
   Schriften lokal eingebunden (keine Verbindung zu Google-Servern)
   ========================================================================== */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --accent: #1D3FC4;
  --accent-hover: #15309A;
  --accent-light: #9DB0FF;
  --ink: #14161A;
  --text: #3E424A;
  --muted: #5C5F66;
  --bg: #F4F4F1;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --line: #DADAD4;
  --dark-line: #3A3D45;
  --radius: 14px;
  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 96px);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.05; text-transform: uppercase; }
h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; }
h3 { font-size: 23px; line-height: 1.2; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-light { color: var(--accent-light); }
.muted { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(20, 22, 26, 0.06); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 22px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em; }

.site-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 8px 0; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--pad-x) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 88px);
}
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text); max-width: 620px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; border-radius: 16px; background: #E3E3DD; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-light { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }

/* ---------- Kompetenzen ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20, 22, 26, 0.07); }
.card-num { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--accent); }
.card p { font-size: 16px; color: var(--text); }

/* ---------- Werdegang ---------- */
.cv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(32px, 5vw, 56px); }
.cv-intro { display: flex; flex-direction: column; gap: 14px; }
.cv-photo { margin-top: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
@media (max-width: 860px) {
  .cv { grid-template-columns: 1fr; }
  .cv-photo { max-width: 520px; }
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 32px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .time { font-family: var(--font-head); font-weight: 500; font-size: 18px; color: var(--muted); }
.timeline strong { display: block; font-size: 19px; font-weight: 600; }
.timeline div span { color: var(--text); font-size: 16px; }
@media (max-width: 540px) { .timeline li { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.section-dark { background: var(--ink); color: #F4F4F1; }
.section-dark a { color: #fff; }
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-main { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact-mail { font-size: clamp(19px, 2vw, 22px); font-weight: 600; word-break: break-word; }
.contact-phone { font-size: 18px; color: #D5D7DC !important; text-decoration: none; }
address { font-style: normal; font-size: 16px; line-height: 1.6; color: #B9BCC3; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links .eyebrow { margin-bottom: 6px; }
.contact-links .spaced { margin-top: 18px; }
.link-tile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 20px; border: 1px solid var(--dark-line); border-radius: 10px;
  font-size: 18px; font-weight: 500; text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.link-tile:hover { border-color: var(--accent-light); background: rgba(157, 176, 255, 0.08); color: #fff; }
.link-tile small { color: #A4A8B0; font-weight: 400; font-size: 16px; }
.contact-note { font-size: 15px; line-height: 1.55; color: #B9BCC3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A4A8B0; border-top: 1px solid #2C2F36; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #D5D7DC; }
.site-footer a:hover { color: #fff; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 24px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.legal-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; margin: 0; }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: 0; color: var(--text); word-break: break-word; }
.legal-back { padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .legal-list { grid-template-columns: 1fr; gap: 2px; } .legal-list dd { margin-bottom: 12px; } }

/* Fließtext der Datenschutzerklärung */
.legal-content { gap: 0; }
.legal-content h1 { hyphens: auto; overflow-wrap: break-word; }
.legal-content h2 { margin: 48px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-content h3 { font-size: 21px; margin: 28px 0 8px; }
.legal-content h4 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 20px 0 6px; }
.legal-content p, .legal-content li { color: var(--text); font-size: 16px; overflow-wrap: break-word; }
.legal-content p + p { margin-top: 12px; }
.legal-content ul { margin: 12px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content .legal-back { margin-top: 48px; }
.legal-content p.eyebrow { color: var(--accent); font-size: 14px; }
