/* rothermel-dtp.de – Entwurf 2026
   Idee: „Druckbogen“ – warmes Papier, schwarze Druckfarbe, das Rot aus dem alten Logo,
   dazu Passermarken und CMYK-Farben als kleines DTP-Augenzwinkern.
   Keine externen Schriften (datenschutzfreundlich, schnell). */

/* Rotis Sans Serif für den Lauftext – Datei liegt in fonts/ */
@font-face {
  font-family: "Rotis Sans Serif";
  src: url("../fonts/RotisSansSerif.woff2") format("woff2"),
       url("../fonts/RotisSansSerif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #f5f1ea;
  --papier-2: #ebe5da;
  --tinte: #1c1b19;
  --tinte-2: #55524c;
  --rot: #e30613;   /* Logo-Rot */
  --linie: #d8d1c4;
  --c: #00a0e3; --m: #e5007d; --y: #ffe500; --k: #1c1b19;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Rotis Sans Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 1.1875rem/1.6 var(--sans);
  font-synthesis-weight: none;   /* Rotis gibt es hier nur in Regular: kein künstliches Fett */
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--rot); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--rot); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p, ul { margin: 0 0 1em; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 1.5rem; }
.rahmen-schmal { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Kopf ---------- */
.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); position: sticky; top: 0; z-index: 10; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; }
.logo { display: block; line-height: 0; }
.logo img { height: 46px; width: auto; display: block; }

.menue { display: flex; gap: 2rem; }
.menue a { text-decoration: none; font-weight: 500; padding: .3em 0; border-bottom: 2px solid transparent; }
.menue a[aria-current="page"] { border-bottom-color: var(--rot); }
.menue-knopf { display: none; }

/* ---------- Startseite: Held ---------- */
.held { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem); position: relative; }
.held h1 { max-width: 52rem; }
/* Schreibende Feder rechts im Kopfbereich (Animation: js/feder.js) */
.feder-szene { position: absolute; right: 0; top: 50%; width: 320px; height: 300px; transform: translateY(-50%); pointer-events: none; }
.feder-szene svg { position: absolute; inset: 0; overflow: visible; }
.feder-szene .hilfslinie { stroke: var(--linie); stroke-width: 1; }
.feder-szene .tinte { fill: none; stroke: var(--tinte); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .9s; }
.feder-szene .tinte.verblasst { opacity: 0; }
.feder { position: absolute; left: 0; top: 0; width: 100px; height: 200px; transform-origin: 51% 99.7%;
  transform: translate(150px, -30px) rotate(28deg); filter: drop-shadow(6px 10px 6px rgba(28,27,25,.18)); }
@media (min-width: 961px) { .held > :not(.feder-szene) { max-width: min(52rem, calc(100% - 350px)); } }
.held p:not(.dachzeile):not(.knoepfe) { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--tinte-2); max-width: 40rem; }
.held h1 { margin-bottom: .4em; }
.dachzeile { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--rot); margin-bottom: 1rem; }

.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.knopf { display: inline-block; background: var(--tinte); color: var(--papier); text-decoration: none; padding: .85em 1.4em; font-weight: 600; border: 2px solid var(--tinte); }
.knopf:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf-hell { background: transparent; color: var(--tinte); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--linie); }
.abschnitt > h2 { margin-bottom: 1.5em; }

.karten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--tinte); }
.karte { padding: 1.5rem 1.5rem 1rem 0; border-right: 1px solid var(--linie); }
.karte + .karte { padding-left: 1.5rem; }
.karte:last-child { border-right: 0; }
.karte p { color: var(--tinte-2); font-size: 1.05rem; }
.karte-nr { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--rot); margin-bottom: .6rem; line-height: 1; }
.karte p:first-child { margin: 0; }

/* Band mit Zitat, volle Breite */
.band { background: var(--tinte); color: var(--papier); padding: clamp(3rem, 7vw, 5rem) 0; margin: 0 calc(50% - 50vw); position: relative; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, var(--papier) 75%); }
.band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; }
/* Optischer Randausgleich: Das öffnende „ hängt links in den Rand, der Text steht bündig */
.band blockquote p { position: relative; }
.band blockquote p::before { content: "„"; color: var(--rot); position: absolute; right: 100%; }
.band blockquote p::after { content: "“"; color: var(--rot); }
.band-unterzeile { color: #b9b3a8; margin-top: 1.2rem; }

/* Projekte */
.projekte-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.projekt { background: var(--papier-2); padding: 1.75rem; position: relative; }
.projekt::after { content: ""; position: absolute; right: 1rem; top: 1rem; width: 14px; height: 14px; border-radius: 50%;
  background: conic-gradient(var(--c) 0 25%, var(--m) 0 50%, var(--y) 0 75%, var(--k) 0); opacity: .85; }
.projekt-art { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tinte-2); margin-bottom: .8rem; }
.projekt p:last-child { margin: 0; color: var(--tinte-2); }
.mehr { display: inline-block; margin-top: 1.5rem; font-weight: 600; }

/* Kontakt-Kasten */
.kontakt-box { margin: clamp(2.5rem, 6vw, 4.5rem) 0; padding: clamp(2rem, 5vw, 3.5rem); border: 2px solid var(--tinte); position: relative; }
.kontakt-box::before, .kontakt-box::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--rot); }
.kontakt-box::before { left: -12px; top: -12px; border-width: 2px 0 0 2px; }
.kontakt-box::after { right: -12px; bottom: -12px; border-width: 0 2px 2px 0; }
.kontakt-box .knoepfe { margin-top: 1.2rem; margin-bottom: 0; }

/* ---------- Unterseiten ---------- */
.seitenkopf { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 2px solid var(--tinte); }
.seitenkopf h1 { margin-bottom: .3em; }
.einleitung { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--tinte-2); max-width: 42rem; margin: 0; }
.seite-start .inhalt, .inhalt { padding-bottom: 1rem; }
body:not(.seite-start) .inhalt { padding-top: 2.5rem; }
body:not(.seite-start) .inhalt > h2 { margin-top: 1.5em; }
body:not(.seite-start) .inhalt > p { max-width: 42rem; }

.projekt-detail { display: grid; grid-template-columns: 16rem 1fr; gap: 0 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--linie); }
.projekt-detail .projekt-art { grid-column: 1; grid-row: 1 / span 4; padding-top: .55rem; margin: 0; color: var(--rot); font-weight: 600; }
.projekt-detail > :not(.projekt-art) { grid-column: 2; max-width: 42rem; }
.projekt-detail ul { list-style: none; padding: 0; }
.projekt-detail li { padding-left: 1.2rem; position: relative; }
.projekt-detail li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 2px; background: var(--rot); }

.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--papier-2); border-top: 1px solid var(--linie); margin-top: 3rem; padding: 2.5rem 0; font-size: 1.05rem; color: var(--tinte-2); }
.fuss-innen { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; }
.fuss p { margin: 0; }
.fuss-name { font-weight: 700; color: var(--tinte); margin-bottom: .3rem !important; }
.fuss-links { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.passer { display: flex; gap: 4px; margin-top: .8rem; }
.passer i { width: 12px; height: 12px; display: block; }
.passer i:nth-child(1) { background: var(--c); } .passer i:nth-child(2) { background: var(--m); }
.passer i:nth-child(3) { background: var(--y); } .passer i:nth-child(4) { background: var(--k); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .feder-szene { display: none; }
  .karten { grid-template-columns: 1fr 1fr; }
  .karte:nth-child(2n) { border-right: 0; }
  .karte:nth-child(2n+1) { padding-left: 0; }
  .karte:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .projekte-liste { grid-template-columns: 1fr; }
}

/* ---------- Handy ---------- */
@media (max-width: 680px) {
  body { font-size: 1.125rem; }
  .kopf-innen { min-height: 4.25rem; }
  .logo img { height: 34px; }
  .menue-knopf { display: block; width: 2.75rem; height: 2.75rem; position: relative; cursor: pointer; }
  .menue-knopf span, .menue-knopf span::before, .menue-knopf span::after {
    position: absolute; left: .55rem; width: 1.65rem; height: 2px; background: var(--tinte); content: ""; transition: transform .2s; }
  .menue-knopf span { top: 50%; }
  .menue-knopf span::before { left: 0; top: -7px; } .menue-knopf span::after { left: 0; top: 7px; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier);
    flex-direction: column; gap: 0; border-bottom: 2px solid var(--tinte); padding: .5rem 1.5rem 1rem; }
  .menue a { padding: .8rem 0; border-bottom: 1px solid var(--linie); font-size: 1.15rem; }
  .menue a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--linie); }
  .menue-schalter:checked ~ .menue { display: flex; }
  .menue-schalter:checked ~ .menue-knopf span { background: transparent; }
  .menue-schalter:checked ~ .menue-knopf span::before { top: 0; transform: rotate(45deg); }
  .menue-schalter:checked ~ .menue-knopf span::after { top: 0; transform: rotate(-45deg); }

  .karten { grid-template-columns: 1fr; }
  .karte, .karte + .karte { padding: 1.25rem 0; border-right: 0; border-top: 1px solid var(--linie); }
  .karte:first-child { border-top: 0; }
  .knopf { flex: 1 1 100%; text-align: center; }
  .projekt-detail { grid-template-columns: 1fr; }
  .projekt-detail .projekt-art, .projekt-detail > :not(.projekt-art) { grid-column: 1; grid-row: auto; padding: 0; margin-bottom: .6rem; }
  .kontakt-raster, .fuss-innen { grid-template-columns: 1fr; }
  .fuss-links { align-items: flex-start; }
}
