/* Pubmeco Media · Verlag
   Palette „Tinte und Grün“: ruhiges Papier, feine Linien, die Cover sind die einzige kräftige Farbe. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --papier: #F6F3EC;
  --abschnitt: #E9E4D7;
  --tinte: #1E2430;
  --leise: #565D6B;
  --linie: #D9D3C5;
  --gruen: #2E5E4E;
  --gruen-dunkel: #24493D;

  --schrift: "Archivo", "Arial Narrow", sans-serif;
  --lese: "Source Serif 4", Georgia, serif;

  /* Regler für Phase 6 */
  --rand: 20px;
  --breite: 1120px;
  --titel-groesse: clamp(2.75rem, 11vw, 4.75rem);
  --abstand-abschnitt: clamp(3.5rem, 10vw, 6.5rem);
  --cover-breite: 180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 1.0625rem/1.55 var(--schrift); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: var(--tinte); text-decoration-color: var(--gruen); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--tinte); }
::selection { background: var(--gruen); color: var(--papier); }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 1px; }

.sprung { position: absolute; left: var(--rand); top: -60px; background: var(--tinte); color: var(--papier); padding: 10px 14px; z-index: 20; }
.sprung:focus { top: 10px; }

.kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--rand); border-bottom: 1px solid var(--linie); max-width: var(--breite); margin: 0 auto; }
.kopf-logo img { height: 30px; width: auto; }
.kopf-nav { display: flex; gap: 22px; }
.kopf-nav a { text-decoration: none; padding: 8px 0; font-size: .9375rem; border-bottom: 1.5px solid transparent; }
.kopf-nav a:hover { border-bottom-color: var(--gruen); }

main { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.aufmacher { text-align: center; padding: clamp(4rem, 14vw, 8rem) 0 clamp(3rem, 9vw, 5.5rem); max-width: 760px; margin: 0 auto; }
h1 { margin: 0 0 24px; font-size: var(--titel-groesse); line-height: 1; font-weight: 700; font-stretch: 87.5%; letter-spacing: -.01em; }
h2 { margin: 0 0 28px; font-size: 1.75rem; line-height: 1.1; font-weight: 700; font-stretch: 87.5%; }
h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; font-weight: 700; font-stretch: 87.5%; }
.lese { font-family: var(--lese); font-size: 1.1875rem; line-height: 1.6; font-optical-sizing: auto; }
.aufmacher .lese { max-width: 46ch; margin: 0 auto; }
.leise { color: var(--leise); margin: 6px 0 24px; }

.autoren { border-top: 1px solid var(--linie); padding: var(--abstand-abschnitt) 0; }
.autor-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.link { font-weight: 700; font-stretch: 87.5%; }
.link::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.cover { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, var(--cover-breite))); gap: clamp(10px, 3vw, 24px); }
.cover a { display: block; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.cover a:hover { transform: translateY(-4px); }
.cover img { width: 100%; }
.knopf { display: inline-block; background: var(--gruen); color: var(--papier); text-decoration: none; font-weight: 700; font-stretch: 87.5%; padding: 15px 22px; border-radius: 2px; transition: background-color .2s ease-out; }
.knopf:hover { background: var(--gruen-dunkel); color: var(--papier); }

.kontakt { background: var(--abschnitt); margin: 0 calc(var(--rand) * -1) var(--abstand-abschnitt); padding: clamp(2.5rem, 8vw, 4rem) var(--rand); border-radius: 2px; }
.kontakt .lese { margin-bottom: .5em; }

/* Kontaktformular */
.kf { max-width: 560px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--linie); }
.kf form { display: grid; gap: 6px; }
.kf .kf-einleitung { margin-bottom: 12px; }
.kf label { margin-top: 10px; font-weight: 700; font-stretch: 87.5%; font-size: .9375rem; }
.kf-frei { font-weight: 400; color: var(--leise); }
.kf input, .kf textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #B9B2A3; border-radius: 2px;
  background: #FFFDF8; color: var(--tinte); font: 400 1.0625rem/1.45 var(--schrift);
}
.kf textarea { resize: vertical; min-height: 9rem; }
.kf input:focus-visible, .kf textarea:focus-visible { outline: 2px solid var(--gruen); outline-offset: 1px; border-color: var(--gruen); }
.kf [aria-invalid="true"] { border-color: #9B2C2C; }
.kf-fehler { min-height: 1.4em; margin: 6px 0 0; color: #9B2C2C; font-size: .9375rem; }
.kf .knopf { justify-self: start; border: 0; cursor: pointer; font-size: 1.0625rem; font-family: var(--schrift); }
.kf .knopf:disabled { opacity: .7; cursor: progress; }
.kf-hinweis { margin: 10px 0 0; color: var(--leise); font-size: .875rem; }
.kf-hinweis a { color: var(--leise); }
.kf-danke:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: var(--breite); margin: 0 auto; padding: 22px var(--rand) 40px; border-top: 1px solid var(--linie); font-size: .9375rem; color: var(--leise); }
.fuss a { color: var(--leise); }

/* Rechtstexte */
.rechtstext { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 10vw, 5rem) 0 var(--abstand-abschnitt); }
.rechtstext h1 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
.rechtstext h2 { font-size: 1.375rem; margin: 2em 0 .6em; }
.rechtstext .lese { font-size: 1.0625rem; }
.hinweis { background: var(--abschnitt); padding: 18px 20px; border-radius: 2px; }

@media (min-width: 900px) {
  :root { --rand: 40px; --cover-breite: 220px; }
  .kontakt { margin-left: 0; margin-right: 0; padding-left: 48px; padding-right: 48px; }
}
