/* raphaelschoen.net – Design A "Redaktionell" mit Kacheln (Oktober 2026) */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --bg: #F6F3EE; --ink: #1A1714; --soft: #3D3833; --muted: #6E665D;
  --accent: #B4400F; --line: #D9D2C8; --photo: #E4DED5;
  --t1-bg: #B4400F; --t1-ink: #FBF8F3;
  --t2-bg: #1A1714; --t2-ink: #F6F3EE;
  --t3-bg: #EDE8E0; --t3-ink: #1A1714;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141210; --ink: #EFEAE3; --soft: #CFC7BC; --muted: #A39A8F;
  --accent: #F59A55; --line: #3A342E; --photo: #2A2622;
  --t1-bg: #F59A55; --t1-ink: #141210;
  --t2-bg: #EFEAE3; --t2-ink: #141210;
  --t3-bg: #1F1C19; --t3-ink: #EFEAE3;
  color-scheme: dark;
}

/* Sprache: alles gibt es zweimal, das jeweils andere wird versteckt */
:root[data-lang="de"] body [lang="en"],
:root[data-lang="en"] body [lang="de"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  transition: background-color .3s, color .3s;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Kopfzeile mit den zwei Schaltern */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: max(20px, env(safe-area-inset-top)); min-height: 66px;
}
.home { font-family: "Instrument Serif", serif; font-size: 22px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.switches { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; border-radius: 999px; min-width: 44px; height: 38px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  background: transparent; color: var(--ink);
}
:root[data-lang="de"] .lang [data-set-lang="de"],
:root[data-lang="en"] .lang [data-set-lang="en"] { background: var(--ink); color: var(--bg); }
.mode {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.mode .sun { display: none; }
:root[data-theme="dark"] .mode .sun { display: block; }
:root[data-theme="dark"] .mode .moon { display: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Startseite */
.hero { padding-top: 52px; max-width: 680px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent); }
.name {
  margin: 14px 0 0; font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: clamp(64px, 17vw, 112px); line-height: 1.05; letter-spacing: -2px;
}
.intro { margin: 22px 0 0; font-size: 18px; line-height: 1.55; color: var(--soft); }
.photo { display: block; margin-top: 36px; max-width: 520px; }
.photo img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 4px; background: var(--photo);
}

.credit { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 36px; }
.tile {
  background: var(--tb); color: var(--ti); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 20px 20px 12px; display: flex; flex-direction: column;
}
.tile:nth-child(1) { --tb: var(--t1-bg); --ti: var(--t1-ink); }
.tile:nth-child(2) { --tb: var(--t2-bg); --ti: var(--t2-ink); }
.tile:nth-child(n+3) { --tb: var(--t3-bg); --ti: var(--t3-ink); }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; }
.tile-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.tile-num { font-family: "Instrument Serif", serif; font-style: italic; font-size: 22px; line-height: 1; }
.tile h2 { margin: 16px 0 0; font-family: "Instrument Serif", serif; font-weight: 400; font-size: 34px; line-height: 1.02; letter-spacing: -0.5px; }
.tile p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; opacity: .88; flex: 1; }
.tile-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  margin-top: 12px; border-top: 1px solid var(--ti); padding-top: 6px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}

/* Unterseiten */
.page { padding-top: 40px; max-width: 680px; }
.page h1 { margin: 12px 0 0; font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(48px, 13vw, 80px); line-height: 1.05; letter-spacing: -1.5px; }
.page .lead { margin: 18px 0 0; font-size: 18px; color: var(--soft); }

/* Buch */
.book .cover { width: 70%; max-width: 320px; height: auto; margin: 32px 0 0; }
.pull { margin: 32px 0 0; padding: 0; }
.pull p { margin: 0; font-family: "Instrument Serif", serif; font-style: italic; font-size: 28px; line-height: 1.2; }
.body { margin: 24px 0 0; font-size: 17px; line-height: 1.65; color: var(--soft); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.section {
  margin: 52px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent);
}
.review { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--accent); }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-family: "Instrument Serif", serif; font-size: 22px; line-height: 1.3; }
.review .translation { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.review figcaption { margin-top: 10px; font-size: 14px; font-weight: 500; }
.review cite { font-style: italic; }
.buy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.buy a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; padding: 0 12px;
  border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 700; text-decoration: none;
}
.buy a:first-child { background: var(--t1-bg); color: var(--t1-ink); }
.buy a:hover { background: var(--ink); color: var(--bg); }

/* Arbeit */
.work { max-width: 1040px; }
.work .lead { max-width: 680px; }
.work .tiles { margin-top: 18px; }
.work .tile-num { font-size: 18px; }
.cv { list-style: none; margin: 18px 0 0; padding: 0; max-width: 680px; }
.cv li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cv li:last-child { border-bottom: 0; }
.cv-when { font-family: "Instrument Serif", serif; font-style: italic; font-size: 20px; color: var(--accent); }
.cv h3 { margin: 4px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.cv p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--soft); }
.articles { list-style: none; margin: 12px 0 0; padding: 0; max-width: 680px; }
.articles li { border-bottom: 1px solid var(--line); }
.articles a { display: block; padding: 14px 0; text-decoration: none; font-family: "Instrument Serif", serif; font-size: 22px; line-height: 1.25; }
.articles a:hover { color: var(--accent); }
.outlet { display: block; margin-bottom: 4px; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* Presse */
.press .lead a { color: var(--accent); }
.bio { margin-top: 22px; padding: 18px 18px 6px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--t3-bg); }
.bio-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bio h3, .sub { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.sub { margin-top: 32px; }
.bio p { margin: 10px 0 12px; font-size: 16px; line-height: 1.6; }
.copy {
  min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 700;
}
.copy.done { background: var(--ink); color: var(--bg); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 14px; align-items: start; max-width: 680px; }
.photos a:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.photos a:nth-child(3) { grid-column: 1; grid-row: 2; }
.photos a { display: block; text-decoration: none; }
.photos img { width: 100%; height: auto; border-radius: 4px; background: var(--photo); }
.photos a > span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.note a { color: inherit; }

/* Fuß */
.foot { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; font-weight: 500; }
.foot nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.foot p { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { body { transition: none; } }
.foot .foot-links { margin-top: 6px; font-size: 14px; color: var(--soft); }
.foot-links a { display: inline-block; padding: 10px 0; text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.legal h2 { margin: 36px 0 0; font-size: 18px; font-weight: 700; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--soft); }
.legal p { margin: 10px 0 0; }
.legal a { color: var(--accent); }
