/* ===== Schrift: Lato, lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich) ===== */
@font-face { font-family: "Lato"; src: url("../assets/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../assets/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../assets/fonts/Lato-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

/* ===== Grundwerte (hier zentral ändern) =====
   Farben sind vorläufig, sie werden an das Corporate Design angepasst. */
:root {
  --ink: #2a2c31;
  --paper: #ffffff;
  --grey: #f3f5f8;
  --accent: #0085ca;
  --accent-soft: #d3ebf8;
  --radius: 18px;
  --pad: clamp(20px, 5vw, 72px);
  --font: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.03em; font-weight: 900; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
mark { background: var(--accent); color: #fff; padding: 0 .12em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h1, h2 { line-height: 1.12; }

.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 1.2em; }
.lead { font-size: 1.15rem; max-width: 34em; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: .95em 1.6em; border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; font-family: inherit; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: transparent; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--small { padding: .7em 1.2em; }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(0,0,0,.06); }
.logo { font-weight: 900; font-size: 1rem; line-height: 1; letter-spacing: .02em; text-decoration: none; display: flex; flex-direction: column; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.main-nav a:not(.btn) { text-decoration: none; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.main-nav a:not(.btn):hover { color: var(--accent); }

/* ===== Punkt-Navigation ===== */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 12px; height: 12px; border: 2px solid var(--ink); background: #fff; box-shadow: 0 0 0 2px #fff; display: block; position: relative; transition: transform .2s, background .2s; }
.dots a.is-active { background: var(--accent); transform: scale(1.35); }
.dots a::after { content: attr(data-title); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 4px; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .2s; }
.dots a:hover::after { opacity: 1; }

/* ===== Abschnitte ===== */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { margin-bottom: clamp(32px, 5vw, 64px); }

/* ===== Hero ===== */
.hero { min-height: 100svh; padding: 120px var(--pad) 120px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; position: relative; }
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2em; }
.hero__art { position: relative; aspect-ratio: 1; max-height: 60vh; justify-self: center; width: 100%; max-width: 520px; }
.blob { position: absolute; display: block; transition: transform .25s ease-out; }
.blob--1 { overflow: hidden; width: 62%; height: 62%; background: var(--accent); border-radius: 62% 38% 55% 45% / 50% 55% 45% 50%; top: 4%; left: 6%; animation: morph 9s ease-in-out infinite; }
.blob--2 { width: 40%; height: 40%; background: var(--ink); border-radius: 50%; right: 4%; top: 38%; }
.blob--3 { width: 28%; height: 28%; background: var(--accent-soft); border: 3px solid var(--ink); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; left: 18%; bottom: 6%; animation: morph 7s ease-in-out infinite reverse; }
.sticker { position: absolute; right: 14%; top: 6%; background: #fff; border: 2px solid var(--ink); padding: .5em 1em; border-radius: 999px; font-weight: 800; transform: rotate(8deg); animation: wobble 3s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; } }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(1.06); } }

.infobar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr) auto; border-top: 1px solid rgba(0,0,0,.12); background: #fff; }
.infobar > * { padding: 16px var(--pad) 16px 24px; border-right: 1px solid rgba(0,0,0,.12); }
.infobar > *:first-child { padding-left: var(--pad); }
.infobar dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; font-weight: 700; }
.infobar dd { margin: 0; font-weight: 700; font-size: .9rem; }
.infobar__more { border: 0 !important; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; font-weight: 700; }

/* ===== Timeline ===== */
.timeline__bar { height: 4px; background: rgba(0,0,0,.1); border-radius: 4px; margin-bottom: 28px; }
.timeline__bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .15s; }
.timeline__track { list-style: none; margin: 0; padding: 0 0 20px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.timeline__track li { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; background: #fff; transition: transform .25s, box-shadow .25s; }
.timeline__track li:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--accent); }
.timeline__track b { display: block; font-size: 2.8rem; letter-spacing: -.05em; color: var(--accent); }

/* ===== Startseite dunkel (wie der Projekte-Abschnitt) ===== */
.hero { background: var(--ink); color: #fff; }
.hero .eyebrow, .hero .lead { color: #fff; }
.hero .btn--dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn--light { border-color: #fff; color: #fff; }
.hero .btn--light:hover { background: #fff; color: var(--ink); }
.hero .blob--2 { background: #fff; }
.hero .sticker { color: var(--ink); }
.hero .blob--3 { border-color: #fff; }
.hero .infobar { background: var(--ink); border-top-color: rgba(255,255,255,.18); }
.hero .infobar > * { border-right-color: rgba(255,255,255,.18); }
.hero .infobar dt { opacity: .6; }
.hero .infobar a { color: #fff; }

/* ===== Laufband ===== */
.ticker { overflow: hidden; background: var(--accent); color: #fff; padding: 18px 0; white-space: nowrap; }
.ticker__row { display: inline-flex; gap: 32px; animation: ticker 28s linear infinite; font-weight: 900; font-size: clamp(1.2rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: -.01em; padding-right: 32px; }
.ticker__row span:nth-child(even) { color: var(--ink); }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Zahlen ===== */
.stats { list-style: none; padding: 0; margin: 2em 0 0; display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.stats li { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.stats b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.04em; text-transform: none; line-height: 1; margin-bottom: 4px; }

/* ===== Karten ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 32px; border: 2px solid transparent; text-decoration: none; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--ink); }
.card__no { font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.card--more { background: var(--accent); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.card__plus { font-size: 3rem; font-weight: 900; line-height: 1; }

/* ===== Über mich ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.blob--1 img { width: 100%; height: 100%; object-fit: cover; }
.about__photo { aspect-ratio: 4 / 5; max-height: 72vh; justify-self: center; width: 100%; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--grey), var(--grey) 14px, #fff 14px, #fff 28px); border: 2px dashed var(--ink); display: grid; place-items: center; font-weight: 800; transform: rotate(2deg); transition: transform .3s; }
.about__photo:hover { transform: rotate(-1deg) scale(1.02); }

/* ===== Projekte ===== */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.project { margin: 0; }
.project__img { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #222; overflow: hidden; display: grid; place-items: center; color: #777; font-weight: 800; transition: transform .3s, background .3s; }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project:hover .project__img { transform: scale(1.03) rotate(.8deg); }
.project__tag { display: inline-block; margin-top: 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.project figcaption { margin-top: 4px; font-weight: 700; }

/* ===== Kontakt ===== */
.contact { background: var(--grey); padding-bottom: 32px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact__list { list-style: none; padding: 0; margin: 2em 0 0; }
.contact__list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid rgba(0,0,0,.15); }
.contact__list span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; font-weight: 700; }
.contact__list a { font-weight: 700; text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.form input, .form textarea { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; padding: 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__note { font-size: .82rem; opacity: .75; margin: 0; }
.legal { margin-top: 80px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; }

/* ===== Nach-oben-Button ===== */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 1.3rem; z-index: 45; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ===== Intro ===== */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .8s cubic-bezier(.7,0,.2,1); }
.intro.is-gone { transform: translateY(-100%); pointer-events: none; }
.intro__words { font-size: clamp(3rem, 12vw, 9rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; text-align: center; }
.intro__words span { display: block; opacity: 0; transform: translateY(30px); animation: pop .6s forwards; }
.intro__words span:nth-child(1) { animation-delay: .2s; }
.intro__words span:nth-child(2) { animation-delay: .8s; color: var(--accent); }
.intro__words span:nth-child(3) { animation-delay: 1.4s; }
.intro__skip { position: absolute; bottom: 28px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .5; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ===== Scroll-Einblenden ===== */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .7s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Abschnitt-für-Abschnitt-Scrollen (nur Desktop) =====
   Mausrad nach unten springt zum nächsten Abschnitt. Auf Handy und bei
   niedrigen Fenstern bleibt normales Scrollen, damit nichts abgeschnitten wird. */
@media (min-width: 861px) and (min-height: 640px) {
  html.snap { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .snap .hero, .snap .section, .snap .contact { scroll-snap-align: start; scroll-snap-stop: always; }
  .snap .section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .snap .contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; }
  .snap .contact__grid { margin: auto 0; }
}

/* ===== Mobil ===== */
@media (max-width: 860px) {
  /* Handy: sanftes Einrasten an den Abschnitten (proximity). Lange Abschnitte lassen sich
     frei durchscrollen, am Abschnittsanfang rastet die Seite wieder ein. */
  html.snap { scroll-snap-type: y proximity; }
  .snap .hero, .snap .section, .snap .contact, .snap .page-hero, .snap .cta-band { scroll-snap-align: start; }
  .hero, .about, .contact__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; padding-bottom: 160px; }
  .hero__art { max-height: 240px; order: -1; }
  .infobar { grid-template-columns: 1fr 1fr; }
  .infobar__more { display: none; }
  .infobar > *:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(0,0,0,.12); padding-left: var(--pad); }
  .hero { padding-bottom: 220px; }
  .dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.snap { scroll-snap-type: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
