/* ═══════════════════════════════════════════════════════════════
   ugurdemirel.de — Biografie
   Signature: Randnummern (Rn.) als Gliederungsmittel am Satzrand
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Papier & Tinte */
  --paper:      #FBFBFC;
  --paper-warm: #F4F4F2;
  --ink:        #12161F;
  --ink-soft:   #444C5C;
  --ink-mute:   #7B8494;

  /* Akzente: Messing aus dem Kanzleilicht, Stahlblau aus dem Sakko */
  --brass:      #9C7A34;
  --brass-lite: #C9A961;
  --steel:      #40607F;

  --rule:       #E4E7EC;
  --rule-soft:  #EFF1F4;

  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --rail: 5.5rem;         /* Breite der Randnummern-Spalte */
}

*, *::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: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto hebt die HTML-Höhenattribute auf — sonst überschreiben sie
   jedes aspect-ratio. Die Attribute bleiben trotzdem sinnvoll: sie
   reservieren beim Laden den Platz und verhindern Layout-Sprünge. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Kopfleiste ─────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  background: rgba(251,251,252,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar__name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.topbar__nav { display: flex; gap: 1.6rem; }
.topbar__nav a {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.topbar__nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
@media (max-width: 720px) { .topbar__nav { display: none; } }

/* ── Randnummern-Raster (das Signature-Element) ─────────────── */

.sheet {
  max-width: 78rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.rn {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--rule);
}
.rn:first-of-type { border-top: none; }

/* Die Randnummer selbst */
.rn__mark {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--brass);
  padding-top: .55rem;
  font-variant-numeric: tabular-nums;
  position: sticky;
  top: 5rem;
  align-self: start;
  height: max-content;
}
.rn__mark span { display: block; color: var(--ink-mute); margin-top: .3rem; font-size: .66rem; }

.rn__body { min-width: 0; }

@media (max-width: 860px) {
  :root { --rail: 0px; }
  .rn { grid-template-columns: 1fr; gap: 0; }
  .rn__mark {
    position: static;
    padding-top: 0;
    margin-bottom: 1.4rem;
    display: flex; align-items: baseline; gap: .6rem;
  }
  .rn__mark span { margin-top: 0; }
}

/* ── Typografie ─────────────────────────────────────────────── */

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

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.018em;
  max-width: 22ch;
  font-variation-settings: "opsz" 42;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.008em;
}

p { margin: 0 0 1.15rem; max-width: var(--measure); color: var(--ink-soft); }
p.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  color: var(--ink);
  line-height: 1.55;
}
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
}

/* ── Auftakt ────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem);
}
@media (max-width: 900px) {
  /* Auf schmalen Geräten steht der Name zuerst — ein Foto ohne Namen
     darüber ist ein ganzer Bildschirm ohne Information. */
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 2.5rem; gap: 2.25rem; }
  .hero__figure { max-width: 20rem; margin-inline: 0; }
  .hero__figure::after { display: none; }   /* versetzter Rahmen braucht Luft, die hier fehlt */
  .hero__claim { margin-bottom: 0; }
}

.hero__kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .7rem;
}
.hero__kicker::after {
  content: ""; height: 1px; flex: 1; max-width: 5rem;
  background: linear-gradient(90deg, var(--brass-lite), transparent);
}

h1 {
  font-size: clamp(3rem, 8.5vw, 6rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 72;
  margin-bottom: 1.5rem;
}
h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--steel);
}

.hero__claim {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero__claim b { font-weight: 600; }

.hero__figure { position: relative; max-width: 25rem; margin-left: auto; width: 100%; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 3px;
  filter: saturate(.94) contrast(1.02);
}
/* dünner Messingrahmen, versetzt — ruhig, kein Schlagschatten-Kitsch */
.hero__figure::after {
  content: "";
  position: absolute;
  inset: .9rem -.9rem -.9rem .9rem;
  border: 1px solid var(--brass-lite);
  border-radius: 3px;
  z-index: -1;
}

/* ── Kennzahlen ─────────────────────────────────────────────── */

/* Trennlinien über Rahmen der Zellen statt über einen Gitter-Hintergrund:
   Bei 5 Zellen in 3 Spalten bliebe sonst eine leere Zelle stehen, die den
   Hintergrund durchscheinen lässt — ein grauer Kasten ohne Inhalt. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.fact {
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fact__n {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: .45rem;
  display: block;
}
.fact__l {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ── Aufzählungen ───────────────────────────────────────────── */

.stack { display: grid; gap: 2.25rem; margin-top: 2.5rem; }
.stack--2 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.25rem 3rem; }

.item { position: relative; padding-left: 1.6rem; }
.item::before {
  content: "";
  position: absolute; left: 0; top: .58rem;
  width: .42rem; height: .42rem;
  background: var(--brass);
  transform: rotate(45deg);
}
.item h3 { margin-bottom: .5rem; }
.item p { font-size: .945rem; margin-bottom: 0; }

/* Zitat / Haltung */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -.014em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brass);
  font-variation-settings: "opsz" 36;
}

/* Bildband */
.plate { margin-top: 2.75rem; }
.plate img { width: 100%; border-radius: 3px; }
.plate figcaption {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
  margin-top: .7rem;
  text-transform: uppercase;
}

/* ── Kontakt ────────────────────────────────────────────────── */

.contact { background: var(--ink); color: var(--paper); margin-top: 0; }
.contact .sheet { padding-block: clamp(3.5rem, 7vw, 6rem); }
.contact h2 { color: var(--paper); }
.contact p { color: #A8B0BE; }
.contact .eyebrow { color: var(--brass-lite); }

.lines { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; max-width: 34rem; }
.lines li { border-top: 1px solid #262C38; }
.lines a, .lines span {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .95rem 0;
  text-decoration: none;
  color: var(--paper);
  font-size: 1.0625rem;
  transition: color .18s;
}
.lines a:hover { color: var(--brass-lite); }
.lines .k {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7A8494;
  flex: none;
}

/* Fuß im Zuschnitt eines Kanzleibriefbogens: schmale Spalten mit
   Pflichtangaben. Weist nach, statt zu werben. */
footer {
  padding: 2.5rem var(--gutter) 3rem;
  background: var(--ink);
  border-top: 1px solid #232936;
}
footer .sheet { padding-inline: 0; }

.colophon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.75rem 2.5rem;
  font-size: .78rem;
  line-height: 1.65;
  color: #798193;
}
.colophon__k {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4E5665;
  margin-bottom: .55rem;
}
.colophon a { color: #949CAC; text-decoration: none; border-bottom: 1px solid #333B4A; }
.colophon a:hover { color: var(--brass-lite); border-bottom-color: var(--brass); }

