/* Lüttjenwisch: Korrekturen-Seite. Keine externen Ressourcen. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/crimsonpro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/crimsonpro-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/crimsonpro-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Atkinson hat nur eine Null mit Schrägstrich (wirkt wie Ø). Wie im Buch kommt die 0 aus Fraunces
   (null-*.woff2 enthalten nur U+0030, erzeugt mit website
ull_schriften.py). */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+0031-10FFFF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+0031-10FFFF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/null-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/null-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030;
}

:root {
  --grund: #F3EBDC;
  --flaeche: #FBF6EC;
  --text: #1F3A2E;
  --leise: #4A5E54;
  --ocker: #C98B2B;
  --fokus-grund: #1F3A2E;
  --rand: rgba(31, 58, 46, 0.18);
  --knopf-grund: #1F3A2E;
  --knopf-text: #F3EBDC;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --titel: "Fraunces", Georgia, "Times New Roman", serif;
  --etikett: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1F3A2E;
    --flaeche: #26473A;
    --text: #F3EBDC;
    --leise: #C3CFC4;
    --rand: rgba(243, 235, 220, 0.22);
    --knopf-grund: #F3EBDC;
    --knopf-text: #1F3A2E;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (min-width: 560px) {
  body {
    font-size: 1.25rem;
  }
}

.seite {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

@media (min-width: 560px) {
  .seite {
    padding: 2rem 1.5rem 4rem;
  }
}

main {
  overflow-wrap: break-word;
}

/* Kopf */
.kopf {
  margin-bottom: 2rem;
}

.kopf::after {
  content: "";
  display: block;
  width: 64px;
  margin-top: 1rem;
  border-top: 2px solid var(--ocker);
}

.kopf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.kopf-link:hover .kopf-name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dohle {
  flex: none;
  width: 36px;
  height: 36px;
}

.kopf-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.kopf-name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kopf-zeile {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--leise);
}

/* Überschriften */
h1,
h2,
h3 {
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Etiketten */
.etikett,
.klein,
summary,
.fuss {
  font-family: var(--etikett);
  font-size: 0.95rem;
  line-height: 1.5;
}

.etikett,
.klein {
  color: var(--leise);
}

/* Links */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ocker);
  outline-offset: 2px;
  /* dunkler Grund hinter dem Ocker-Ring, damit 3:1 in beiden Farbmodi hält */
  box-shadow: 0 0 0 6px var(--fokus-grund);
}

/* Sprunglink: erst bei Tastaturfokus sichtbar */
.sprung {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--knopf-grund);
  color: var(--knopf-text);
  font-family: var(--etikett);
  font-weight: 700;
  border-radius: 4px;
}

.sprung:focus {
  top: 1rem;
}

/* Einstieg */
.einstieg {
  margin-bottom: 2rem;
}

/* Startseite: am Handy Cover neben dem Titel, Kauf-Fakten und Knopf vor dem Klappentext */
.einstieg-start {
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 1rem;
  align-items: center;
}

.einstieg-start .cover {
  width: 88px;
  grid-column: 1;
  grid-row: 1;
}

.einstieg-kopf {
  grid-column: 2;
  grid-row: 1;
}

.einstieg-kopf h1 {
  font-size: clamp(2rem, 9vw, 3.4rem);
  margin-bottom: 0.25rem;
}

.einstieg-kopf .etikett {
  margin: 0;
}

.einstieg-handlung,
.einstieg-start .einstieg-text {
  grid-column: 1 / -1;
}

.einstieg-handlung {
  margin-top: 1.25rem;
}

.fakten {
  font-weight: 600;
}

.einstieg-handlung .knopf {
  margin-bottom: 0.5rem;
}

.zweitlink {
  font-family: var(--etikett);
  font-size: 1rem;
}

.cover {
  display: block;
  width: 120px;
  height: auto;
  border: 1px solid var(--rand);
  border-radius: 2px;
}

@media (min-width: 560px) {
  .einstieg {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 2rem;
    align-items: start;
  }
  .cover {
    width: 180px;
  }
  .einstieg-start {
    row-gap: 0;
    column-gap: 2rem;
  }
  .einstieg-start .cover {
    width: 180px;
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .einstieg-kopf {
    grid-column: 1;
  }
  .einstieg-kopf h1 {
    font-size: clamp(2.4rem, 7vw, 3.4rem);
  }
  .einstieg-handlung,
  .einstieg-start .einstieg-text {
    grid-column: 1;
  }
}

/* Stand-Kasten und Karten */
.stand {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.stand-kopf {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.stand > p:last-child {
  margin-bottom: 0;
}

.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-top: 3px solid var(--ocker);
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.karte > :last-child {
  margin-bottom: 0;
}

/* Karte direkt unter der h1 (Korrekturen) trägt eine h2, sieht aber aus wie die übrigen Karten */
.karte h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

/* Häufige Fragen: Abstand zwischen den Fragen */
.fragen h3 {
  margin-top: 1.5rem;
}

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  background: var(--knopf-grund);
  color: var(--knopf-text);
  font-family: var(--etikett);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.knopf:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

button.knopf {
  border: 0;
  cursor: pointer;
}

/* Fährbuch-Formular */
.formular {
  display: grid;
  gap: 0.6rem;
  max-width: 28rem;
  margin: 1rem 0 0;
}

.formular label {
  font-family: var(--etikett);
  font-weight: 700;
  font-size: 1rem;
}

.formular input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--leise);
  border-radius: 4px;
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--etikett);
  font-size: 1.1rem;
}

.formular .knopf {
  justify-self: start;
}

.formular .klein {
  margin: 0;
}

/* Honigtopf für Bots: für Menschen und Screenreader unsichtbar */
.honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Korrekturen (details) */
details {
  border: 1px solid var(--rand);
  border-radius: 4px;
  margin-top: 0.5rem;
  background: var(--grund);
}

summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

/* Pfeil rein per CSS: Quadrat mit zwei Rändern, gedreht */
summary::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}

details[open] > summary::before {
  transform: translateY(-65%) rotate(45deg);
}

.korrektur {
  padding: 0 1rem 1rem 2.5rem;
}

.korrektur p:last-child {
  margin-bottom: 0;
}

/* Fuß */
.fuss {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rand);
  color: var(--leise);
}

.fuss p {
  margin: 0;
}

.fuss a {
  color: var(--leise);
}

/* Druck */
@media print {
  :root {
    --grund: #fff;
    --flaeche: #fff;
    --text: #000;
    --leise: #333;
    --rand: #999;
  }
  body {
    font-size: 11pt;
  }
  .kopf-link {
    text-decoration: none;
  }
  .knopf {
    min-height: 0;
    padding: 0;
    background: none;
    color: #000;
    justify-content: flex-start;
    text-decoration: underline;
  }
  .knopf[href^="/"]::after {
    content: " (https://luettjenwisch.de" attr(href) ")";
    font-weight: 400;
  }
  .knopf[href^="https"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  }
  .knopf-mail::after {
    content: " (info@buntundkreativ.blog)";
    font-weight: 400;
  }
  .cover,
  .einstieg-start .cover {
    width: 90px;
  }
  .sprung {
    display: none;
  }
}

.einstieg .etikett {
  margin-top: -0.25rem;
}

/* Lesekarte (/karte): Vorschau groß, darunter Abend und ein Knopf; alles Freiwillige zum Aufklappen */
.knopf[hidden],
.karte-pfeil[hidden] {
  display: none;
}

.karte-kopf h1 {
  margin-bottom: 0.25rem;
}

.karte-kopf p {
  margin-top: 0;
  font-size: 1.3rem;
}

.karte-bau {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .karte-bau {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
  }
}

.karte-vorschau {
  justify-self: center;
  width: 100%;
  max-width: 260px;
}

.karte-leinwand {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  background: #3A4A42;
}

/* Durchsichtige Karte: Schachbrett zeigt, wo das eigene Foto durchscheint */
.karte-transparent {
  background-color: #2F3B35;
  background-image:
    linear-gradient(45deg, #46554D 25%, transparent 25%, transparent 75%, #46554D 75%),
    linear-gradient(45deg, #46554D 25%, transparent 25%, transparent 75%, #46554D 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.karte-transparent.karte-auf-hell {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(45deg, #E6E0D4 25%, transparent 25%, transparent 75%, #E6E0D4 75%),
    linear-gradient(45deg, #E6E0D4 25%, transparent 25%, transparent 75%, #E6E0D4 75%);
}

.karte-steuerung {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.9rem;
}

.karte-frage {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.5rem;
}

.karte-abend {
  display: flex;
  gap: 0.5rem;
}

.karte-abend select {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--text);
  border-radius: 6px;
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
}

.karte-pfeil {
  width: 56px;
  min-height: 56px;
  border: 2px solid var(--text);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.karte-laden {
  width: 100%;
  min-height: 56px;
  font-size: 1.2rem;
}

.knopf-leise,
button.knopf-leise {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

button.knopf:disabled {
  opacity: 0.55;
  cursor: default;
}

.karte-hinweis {
  margin: 0;
  font-size: 1.05rem;
}

.karte-hinweis:empty {
  display: none;
}

.karte-mehr {
  margin-top: 0;
  background: var(--flaeche);
}

.karte-mehr summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.karte-mehr-inhalt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0 1rem 1rem;
}

.karte-mehr-inhalt p {
  margin: 0;
}

.karte-mehr-inhalt label,
.karte-mehr-inhalt legend {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.karte-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.karte-eigen {
  grid-template-columns: 2fr 1fr;
}

.karte-mehr-inhalt input[type="number"],
.karte-mehr-inhalt input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--leise);
  border-radius: 6px;
  background: var(--grund);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.karte-mehr-inhalt input[type="file"] {
  max-width: 100%;
  font-size: 1.05rem;
}

.karte-stil {
  margin: 0;
  padding: 0;
  border: 0;
}

.karte-stil label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  font-weight: 400;
}

.karte-stil input {
  width: 1.2rem;
  height: 1.2rem;
}

.karte-fuss {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}
