/* Lokal gehostete Fonts (Variable Fonts, latin subset) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-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: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces-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;
}

:root {
  --bg: #ffffff;
  --bg-raised: #f4f4f4;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --grey: #8a8a8a;
  --line: #e2e2e2;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --frame-max: 1180px;
  --gap: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.wrap {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Kicker label, reused above headings */
.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Header */
header {
  /* Hintergrund + Linie über die volle Breite, Inhalt bleibt ausgerichtet */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 22px calc(50vw - 50%);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
  color: var(--ink);
  transition: opacity 0.15s ease;
}
/* Logo monogram (white border trimmed); shown at native aspect, no upscale */
.wordmark-logo {
  display: block;
  height: 58px;
  aspect-ratio: 580 / 748;
  background: url("bilder/logo-trim.png") center / contain no-repeat;
  flex-shrink: 0;
}
.wordmark:hover, .wordmark:focus-visible { opacity: 0.6; }
/* Small "Fotografie" tag next to the name */
.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
nav a:hover, nav a:focus-visible { color: var(--ink); }

/* Hero */
.hero {
  padding: 56px 0 48px;
  display: grid;
  gap: 28px;
}
.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  max-width: 14ch;
}
.hero-sub {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-meta {
  font-size: 0.86rem;
  color: var(--grey);
  line-height: 1.7;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Gallery */
.gallery {
  padding: 44px 0 32px;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: none;
  /* Randlos: Bilderstreifen über die volle Viewport-Breite, durchgehend schwarz */
  background: #101010;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.carousel::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}
.slide img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.slide-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease;
}
.carousel-nav:hover, .carousel-nav:focus-visible {
  background: rgba(0, 0, 0, 0.8);
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* About */
.about {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.about h2 {
  font-size: clamp(1.4rem, 4vw, 1.7rem);
}
.about p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 16px;
}
.about p + p { margin-top: 14px; }

/* Portrait */
.portrait {
  margin: 0 auto 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  width: 160px;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scaleX(-1);
}

/* Contact */
.contact {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(1.4rem, 4vw, 1.7rem); margin-bottom: 14px; }
.contact-intro {
  color: var(--ink-soft);
  max-width: 50ch;
}
.contact-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.contact-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.15s ease;
}
.contact-links a:hover, .contact-links a:focus-visible {
  opacity: 0.6;
}

/* Footer */
footer {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--grey);
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

/* Legal / Rechtstext-Seiten */
.legal {
  padding: 48px 0 72px;
  max-width: 68ch;
}
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
}
.legal p, .legal ul { color: var(--ink-soft); margin-bottom: 14px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ink); }
.legal .back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--grey);
  text-decoration: none;
}
.legal .back:hover, .legal .back:focus-visible { color: var(--ink); }

/* Narrow / mobile: hide the "Fotografie" tag so the header stays on one line */
@media (max-width: 560px) {
  .wordmark-sub { display: none; }
  header { padding: 12px calc(50vw - 50%); }
  .wordmark-logo { height: 40px; }
}

/* Tablet and up */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
}

/* Desktop */
@media (min-width: 1000px) {
  header { padding: 32px calc(50vw - 50%); }
  .hero {
    padding: 100px 0 90px;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--gap);
    align-items: end;
  }
  .hero-sub { margin-top: 22px; font-size: 1.05rem; }
  .gallery { padding: 60px 0 40px; }
  .about {
    padding: 90px 0;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: var(--gap);
    align-items: start;
  }
  .portrait { margin: 0 auto; width: 200px; justify-self: center; align-self: center; }
  .contact { padding: 70px 0 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
