/* ==========================================================================
   Karin Wedeking — Kunst- und Kulturvermittlung
   Ein einziges Stylesheet. Keine Frameworks, keine externen Schriften,
   kein JavaScript. Alles, was hier steht, laedt vom eigenen Server.
   ========================================================================== */

:root {
  /* Kontraste gegen --papier: tinte 19.3:1, tinte-leise 7.7:1, akzent 5.7:1 */
  --papier:       #ffffff;
  --flaeche:      #f0efec;
  --linie:        #d8d6d1;
  --tinte:        #0e0e0c;
  --tinte-leise:  #55534d;

  --akzent:       #c6007a;  /* Magenta, der einzige laute Ton   */
  --akzent-tief:  #92005a;  /* Hover, 8.9:1                      */
  --akzent-tint:  #fdeaf4;  /* Tonung fuer Hinweiskaesten        */
  --akzent-hell:  #ff8fd0;  /* nur auf Schwarz, 9.3:1            */

  --grotesk: "Segoe UI Variable Display", "Segoe UI", -apple-system,
             BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas,
             "Liberation Mono", monospace;

  --spalte: 40rem;
  --bahn:   78rem;
}

/* --- Grundlagen ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  border-top: 5px solid var(--akzent);
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--grotesk);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--akzent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Fokus: immer sichtbar, nie wegoptimiert ----------------------------- */

:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }

.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--akzent);
  color: #fff;
  padding: 0.85rem 1.4rem;
  z-index: 10;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.sprungmarke:focus { left: 0; top: 0; }

/* --- Typografie: grosser Sprung, wenig dazwischen ------------------------ */

h1, h2, h3 { letter-spacing: -0.025em; margin: 0 0 0.5em; }

h1 {
  font-size: clamp(2.5rem, 0.8rem + 8vw, 7.5rem);
  font-weight: 400;              /* leicht — die Spannung macht der Akzent */
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: 0.3em;
}

/* Der Eyecatcher: eingefaerbt UND schwerer als der Rest der Zeile */
.akzent { color: var(--akzent); font-weight: 600; }

h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.7em; }

p, ul, ol, dl { max-width: var(--spalte); }
p { margin: 0 0 1.1em; }

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin: 0 0 1.75rem;
  max-width: none;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--akzent);
  margin-right: 0.75rem;
  vertical-align: 0.02em;
}

.vorspann {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 30ch;
  border-top: 2px solid var(--akzent);
  padding-top: 1rem;
}

.leise {
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--tinte-leise);
}

a { color: var(--akzent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent-tief); text-decoration-thickness: 2px; }

/* --- Kopf ---------------------------------------------------------------- */

.rahmen { width: min(100% - 2.5rem, var(--bahn)); margin-inline: auto; }

.kopf {
  border-bottom: 1px solid var(--tinte);
  padding: 1.5rem 0 1rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.wortmarke { display: inline-block; color: var(--tinte); text-decoration: none; }
.wortmarke b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wortmarke span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin-top: 0.3rem;
}
.wortmarke:hover b { color: var(--akzent); }

.navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: none;
}
.navigation a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tinte);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.navigation a:hover { color: var(--akzent); border-bottom-color: var(--akzent); }
.navigation a[aria-current="page"] { color: var(--akzent); border-bottom-color: var(--akzent); }
.navigation .abgesetzt { margin-left: auto; }
.navigation .abgesetzt a { color: var(--tinte-leise); }

/* --- Einstieg: asymmetrisches Raster ------------------------------------- */

main { padding-bottom: clamp(4rem, 10vw, 8rem); counter-reset: projekt block; }

.einstieg { margin-bottom: clamp(3.5rem, 9vw, 7rem); }

@media (min-width: 52rem) {
  .einstieg {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .einstieg > .kicker   { grid-column: 1 / -1; }
  .einstieg > h1        { grid-column: 1 / -1; }
  .einstieg > :not(h1, .kicker) { grid-column: 6 / -1; max-width: none; }
  .einstieg .vorspann   { max-width: 34ch; }
}

/* --- Abschnitte: nummeriertes Label links, Inhalt rechts ------------------ */

.block {
  border-top: 1px solid var(--linie);
  padding-top: 1.75rem;
  margin: 0 0 clamp(3rem, 7vw, 5.5rem);
}
.block > h2 { margin-top: 0; }
.block > h2::before {
  counter-increment: block;
  content: counter(block, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--tinte-leise);
  margin-bottom: 0.9rem;
}

@media (min-width: 60rem) {
  .block {
    display: grid;
    grid-template-columns: minmax(11rem, 3fr) 9fr;
    column-gap: 3rem;
  }
  .block > h2       { grid-column: 1; grid-row: 1; }
  .block > :not(h2) { grid-column: 2; }
}

/* --- Nummerierte Bloecke statt Karten ------------------------------------ */

.karten {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: karte;
}
.karte { border-top: 2px solid var(--tinte); padding: 0.9rem 0 0; background: none; }
.karte::before {
  counter-increment: karte;
  content: counter(karte, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--akzent);
  margin-bottom: 0.9rem;
}
.karte h3 { margin-top: 0; }
.karte h3 a { text-decoration: none; color: var(--tinte); }
.karte h3 a:hover { color: var(--akzent); text-decoration: underline; }
.karte p { font-size: 0.95rem; line-height: 1.5; }
.karte p:last-child { margin-bottom: 0; }

/* --- Projekteintrag ------------------------------------------------------ */

.projekt {
  border-top: 1px solid var(--linie);
  padding-top: 2rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}
.projekt::before {
  counter-increment: projekt;
  content: counter(projekt, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--akzent);
  margin-bottom: 1.25rem;
}
.projekt h2 {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: none;
  display: grid;
  gap: 0.6rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, max-content));
  font-family: var(--mono);
  font-size: 0.775rem;
  line-height: 1.5;
  color: var(--tinte);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  padding-block: 0.9rem;
}
.meta b {
  display: block;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinte-leise);
  margin-bottom: 0.15rem;
}

/* --- Bildplatzhalter — loeschen, sobald echte Fotos da sind --------------- */

/* Echte Bilder. 32rem = 512px Anzeigebreite.
   .bild--klein fuer Dateien, die dafuer zu wenig Pixel haben — die wuerden
   hochskaliert sichtbar unscharf. */
.bild { margin: 0 0 2.5rem; max-width: 32rem; }
.bild--klein { max-width: 15rem; }
.bild img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--flaeche);
}
/* Werkschau: Haengung auf gemeinsamer Unterkante. Einheitliche Hoehe,
   Breite folgt dem Format. 240px liegt weit unter der Naturhoehe der
   Dateien (600–800px), also nie hochskaliert. */
.werkschau { margin: 2.5rem 0 0; max-width: none; }
.werkschau-hang {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.75rem 1.25rem;
}
.werkschau img {
  display: block;
  height: clamp(170px, 9rem + 6vw, 240px);
  width: auto;
  background: var(--flaeche);
}
/* Einreihig wie im ersten Entwurf — nur auf ueber-mich.html gesetzt.
   Bei 175px ergeben die 5 Arbeiten zusammen 846px und passen damit in
   eine Zeile der 900px breiten Inhaltsspalte. */
.werkschau--reihe img { height: clamp(130px, 7rem + 5vw, 175px); }

.werkschau figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--tinte-leise);
  border-top: 1px solid var(--linie);
  margin-top: 1.25rem;
  padding-top: 0.7rem;
  max-width: 46rem;
}

.bild-platz {
  aspect-ratio: 4 / 3;
  background: var(--flaeche);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinte-leise);
}
.bild figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--tinte-leise);
  margin-top: 0.7rem;
}

/* --- Vita ---------------------------------------------------------------- */

.vita { max-width: var(--spalte); margin: 0; }
.vita div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--linie);
}
.vita div:first-child { border-top: 1px solid var(--linie); }
.vita dt {
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.03em;
  color: var(--tinte-leise);
  padding-top: 0.2em;
}
.vita dd { margin: 0; }

/* --- Aufzaehlung --------------------------------------------------------- */

.liste { list-style: none; padding: 0; }
.liste li { padding-left: 1.5rem; margin-bottom: 0.65rem; position: relative; }
.liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 2px;
  background: var(--akzent);
}
.liste a { color: var(--tinte); text-decoration-color: var(--linie); }
.liste a:hover { color: var(--akzent); text-decoration-color: currentColor; }

/* --- Sozialer Link ------------------------------------------------------- */

/* Kein Embed, kein Widget, kein fremdes Skript — nur ein Link mit
   selbstgezeichnetem Inline-SVG. Kontraste: Magenta auf Weiss 5.7:1,
   im Hover Weiss auf Magenta ebenfalls 5.7:1. */
.sozial {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  margin: 2rem 0 0.75rem;
  padding: 0.7rem 1.15rem 0.7rem 0.95rem;
  border: 2px solid var(--akzent);
  color: var(--akzent);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}
.sozial:hover,
.sozial:focus-visible { background: var(--akzent); color: #fff; }
.sozial svg { flex: none; }
.sozial b { font-weight: 600; }

/* Dezente Variante ohne Rahmen — erbt die Linkfarbe des dunklen Blocks. */
.sozial-dezent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.sozial-dezent:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.sozial-dezent svg { flex: none; }

/* --- Invertierter Kontaktblock ------------------------------------------- */

.ruf {
  background: var(--tinte);
  color: var(--papier);
  border-top: 5px solid var(--akzent);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: clamp(3rem, 8vw, 6rem) 0 0;
  max-width: none;
}
.ruf h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.ruf p { max-width: 42ch; }
.ruf p:last-child { margin-bottom: 0; }
.ruf .leise { color: #b8b6b0; }
.ruf a { color: var(--akzent-hell); text-decoration-thickness: 1px; }
.ruf a:hover { color: #fff; text-decoration-thickness: 3px; }

.mail {
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  word-break: break-word;
  margin-top: 1.5rem;
}

/* --- Hinweis auf noch einzutragende Inhalte ------------------------------- */

.platzhalter-hinweis {
  border-left: 3px solid var(--akzent);
  background: var(--akzent-tint);
  padding: 1.1rem 1.35rem;
  margin: 3rem 0;
  max-width: 46rem;
}
.platzhalter-hinweis p {
  margin: 0;
  max-width: none;
  font-family: var(--mono);
  font-size: 0.775rem;
  line-height: 1.65;
}
.platzhalter-hinweis code { background: #fff; padding: 0 0.2em; }

/* --- Leichte Sprache ----------------------------------------------------- */

/* Navigation im LS-Zweig: keine Versalien, keine Sperrung, groesser.
   Grossbuchstaben und enge Laufweite sind fuer diese Zielgruppe Barrieren. */
.navigation-ls ul { gap: 0.6rem 1.75rem; margin-top: 1.25rem; }
.navigation-ls a {
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding-bottom: 0.25rem;
}

/* Ruhigere Ueberschrift als im Hauptzweig — 120px Display hilft hier nicht. */
.ls-titel {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.leichte-sprache {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  line-height: 1.75;
  letter-spacing: 0;
  max-width: 34ch;
}
.leichte-sprache p, .leichte-sprache ul { max-width: none; }
.leichte-sprache h2 {
  font-size: 1.15em;
  letter-spacing: -0.01em;
  margin-top: 2.25em;
  padding-top: 0.6em;
  border-top: 2px solid var(--tinte);
}
.leichte-sprache li { margin-bottom: 0.85rem; }
.leichte-sprache .mail { margin-top: 0.5rem; letter-spacing: -0.02em; }

/* --- Rechtstexte --------------------------------------------------------- */

.recht h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}
.recht h2 {
  font-size: 0.8rem;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin: 3rem 0 0.9rem;
}
.recht p, .recht ul { font-size: 0.95rem; line-height: 1.6; }

/* --- Fuss ---------------------------------------------------------------- */

.fuss { border-top: 1px solid var(--tinte); padding: 2rem 0 4rem; }
.fuss ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  max-width: none;
}
.fuss a {
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
}
.fuss a:hover { color: var(--akzent); border-bottom-color: var(--akzent); }

/* Instagram im Fussbereich: Glyph plus Handle. Kein Versal, weil ein
   Handle keiner ist — sonst gleiche Groesse wie die Nachbarlinks. */
.fuss .fuss-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: 0.01em;
}
.fuss .fuss-ig svg { flex: none; }
.fuss p {
  margin: 0;
  max-width: 52ch;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--tinte-leise);
}

/* --- Druck --------------------------------------------------------------- */

@media print {
  .navigation, .sprungmarke, .bild-platz, .platzhalter-hinweis { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; border-top: 0; }
  .ruf { background: none; color: #000; border: 1px solid #000; }
  .ruf a, a, .akzent { color: #000; }
  a[href^="http"]::after,
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
