/* =========================================================================
   Philipp Heist — Sport- & Eventfotografie
   styles.css · monochrom / anthrazit, editorial, viel Weißraum
   Reine, selbst gehostete Lösung: keine externen Schriften, keine CDNs.
   Schrift = System-Stack (kein externer Request, DSGVO-konform).
   ========================================================================= */

:root {
  --ink:        #1a1a1a;   /* Anthrazit / Akzent */
  --ink-soft:   #2b2b2b;
  --grey:       #6b6b6b;
  --grey-light: #9a9a9a;
  --line:       #e3e1de;
  --paper:      #ffffff;
  --paper-2:    #f4f3f1;   /* warmer Weißraum */
  --paper-3:    #eceae7;
  --focus:      #1a1a1a;

  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', 'Noto Serif', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  --wrap: 1200px;
  --gap: clamp(1rem, 3vw, 2.5rem);
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--grey-light); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem;
  text-decoration: none; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .95rem; letter-spacing: .04em;
  padding: .8rem 1.5rem; border: 1px solid var(--ink);
  border-radius: var(--radius); cursor: pointer;
  text-decoration: none; background: transparent; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--ink); color: #fff; font-family: var(--serif);
  font-size: 1rem; letter-spacing: .02em; border-radius: var(--radius);
}
.brand-name { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .01em; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 1.6rem; align-items: center; }
.nav-list a { text-decoration: none; font-size: .98rem; padding: .4rem 0; position: relative; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .25s var(--ease);
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { width: 100%; }
.nav-ig {
  border: 1px solid var(--line); padding: .4rem .9rem !important; border-radius: var(--radius);
}
.nav-ig::after { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper-3); }
.hero-img { width: 100%; height: clamp(420px, 78vh, 760px); object-fit: cover; display: block; }
/* Scrim für Textlesbarkeit über beliebigen Fotos */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(10,12,18,.62) 0%, rgba(10,12,18,.34) 42%, rgba(10,12,18,.06) 72%, rgba(10,12,18,0) 100%);
}
.hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  width: min(100% - 2.5rem, var(--wrap)); left: 50%; transform: translateX(-50%);
  color: #fff; text-shadow: 0 1px 24px rgba(0,0,0,.45); z-index: 2;
}
.hero-kicker { font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; margin: 0 0 1rem; opacity: .92; }
.hero-title { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem); max-width: 16ch; color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 6vw, 7rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.eyebrow { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--grey); margin: 0 0 .6rem; }
.section-head h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); }
.section-intro { color: var(--grey); font-size: 1.1rem; }

/* ---------- Filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  font-family: var(--sans); font-size: .92rem; letter-spacing: .03em;
  padding: .55rem 1.15rem; border: 1px solid var(--line);
  background: #fff; color: var(--ink); border-radius: 100px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Sport-Unterfilter */
.subfilter { display: flex; flex-wrap: wrap; gap: .4rem; margin: -1rem 0 2rem; padding-left: .2rem; }
.subfilter[hidden] { display: none; }
.subfilter-btn {
  font-family: var(--sans); font-size: .85rem; letter-spacing: .03em;
  padding: .4rem .9rem; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--grey); border-radius: 100px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.subfilter-btn:hover { border-color: var(--ink); color: var(--ink); }
.subfilter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid-placeholder { grid-column: 1 / -1; color: var(--grey); padding: 2rem 0; }
.grid-placeholder code { background: var(--paper-3); padding: .1rem .4rem; border-radius: var(--radius); font-size: .9em; }

/* ---------- Portfolio grid ---------- */
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.card { margin: 0; }
.card[hidden] { display: none; }
.card-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-3);
  cursor: pointer; position: relative; overflow: hidden; border-radius: var(--radius);
  color: var(--ink); text-align: left;
}
.card-btn img {
  width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .5s var(--ease), filter .4s var(--ease);
  filter: grayscale(8%);
}
.card-btn:hover img, .card-btn:focus-visible img { transform: scale(1.04); filter: grayscale(0%); }
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: .15rem;
  padding: 2.2rem .9rem .8rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card-btn:hover .card-meta, .card-btn:focus-visible .card-meta { opacity: 1; transform: translateY(0); }
.card-cat { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.card-cap { font-family: var(--serif); font-size: 1.05rem; }
.grid-empty { color: var(--grey); padding: 2rem 0; }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.profile-media { position: relative; }
.profile-media img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); width: 100%; }
.profile-cap { font-size: .82rem; color: var(--grey); margin-top: .6rem; letter-spacing: .04em; }
.profile-text h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
.facts { border-top: 1px solid var(--line); margin: 1.6rem 0; }
.facts li { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.facts-k { flex: 0 0 30%; color: var(--grey); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.facts-v { flex: 1; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.contact-intro h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
.contact-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-list > div { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { flex: 0 0 30%; color: var(--grey); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.contact-list dd { margin: 0; }

.contact-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .92rem; margin-bottom: .4rem; letter-spacing: .02em; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .75rem .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.req { color: var(--ink); }
.err { color: #9a1f1f; font-size: .85rem; margin: .35rem 0 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #9a1f1f; }

.field-consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem .7rem; align-items: start; }
.field-consent input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; }
.field-consent label { margin: 0; font-size: .9rem; color: var(--grey); }
.field-consent .err { grid-column: 1 / -1; }

/* Honeypot — visuell & für AT versteckt, aber im DOM vorhanden */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-size: .95rem; }
.form-status.is-ok { color: #1c6b3a; }
.form-status.is-err { color: #9a1f1f; }
.form-note { font-size: .82rem; color: var(--grey-light); margin: 1rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--serif); margin: 0; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { margin: 0; color: var(--grey); font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(12,12,12,.94); padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column; gap: .8rem; }
.lb-img { max-width: 100%; max-height: 78vh; object-fit: contain; margin-inline: auto; border-radius: var(--radius); }
.lb-cap { color: #e8e8e8; font-size: .92rem; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ---------- Datenschutzhinweis ---------- */
.privacy-note {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 250; width: min(100% - 2rem, 640px);
  background: var(--ink); color: #f4f3f1; border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); flex-wrap: wrap;
}
.privacy-note[hidden] { display: none; }
.privacy-note p { margin: 0; font-size: .88rem; flex: 1 1 260px; }
.privacy-note a { color: #fff; }
.privacy-note .btn-small { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); }
.privacy-note .btn-small:hover { background: rgba(255,255,255,.18); }

/* ---------- Rechtstext-Seiten ---------- */
.legal { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: .3rem; }
.legal .updated { color: var(--grey); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul.bullet { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal ul.bullet li { margin-bottom: .4rem; }
.legal .back { display: inline-block; margin-top: 2.5rem; }
.legal address { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .profile, .contact { grid-template-columns: 1fr; }
  .profile-media { max-width: 460px; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 12px);
    flex-direction: column; align-items: flex-start; gap: .2rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .6rem; min-width: 200px; box-shadow: 0 12px 36px rgba(0,0,0,.12);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: .6rem .8rem; width: 100%; }
  .nav-ig { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
