/*
 * Tresenkarte - Gestaltung von tresenkarte.de wie eine Drucksache: ein Bogen
 * Kraftpapier auf dunklem Tresen. Gilt für alle Seiten, siehe docs/DESIGN.md
 * und docs/SCHREIBREGELN.md. Schriften in /schriften.css.
 */

:root {
  --espresso: #1d1a18;
  --creme: #f1e8d6;
  --akzent: #e2683a;
  --papier: #f4eee2;
  --kraft: #e6d9bf;
  --tinte: #3b2a20;
  --druck: #2a211b;
  --leise: #5b4e43;
  --titel: "Fraunces", Georgia, serif;
  --schrift: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Feine Körnung, nur abdunkelnd. */
  --koernung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0.55 -0.2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23k)'/%3E%3C/svg%3E");
  /* Große, weiche Flecken im Kraftpapier. */
  --wolken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' preserveAspectRatio='none'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.14 0 0 0 0 0.08 0 0 0 0.38 -0.16'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23w)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--espresso);
  color: var(--druck);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }

/* Das Blatt */

.blatt {
  position: relative;
  max-width: 1100px;
  margin: 48px auto 0;
}

.papier,
.zettel a {
  background-color: var(--kraft);
  background-image: var(--koernung), var(--wolken);
  background-repeat: repeat, no-repeat;
  background-size: auto, 100% 100%;
}

.papier {
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.18) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
}

.satz {
  padding: clamp(24px, 5.5vw, 72px) clamp(20px, 6vw, 80px) 0;
}

/* Kopf wie bei einer Tageskarte */

.kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 4px double var(--druck);
}
.kopf img { height: clamp(78px, 11vw, 124px); width: auto; }
/* Der Slogan steht wie das Motto im Kopf einer Zeitung. */
.kopf .spruch {
  font-family: var(--titel);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--druck);
  margin: 0 0 6px;
}

/* Kopfleiste unter der Doppellinie, beide Angaben in einer Schrift */
.kopfleiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 9px 0 8px;
  border-bottom: 1px solid rgba(42, 33, 27, 0.55);
  font-family: var(--schrift);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--druck);
}

/* Aufmacher */

.aufmacher {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(28px, 4vw, 56px);
  padding: clamp(30px, 5vw, 56px) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(42, 33, 27, 0.55);
}

h1 {
  grid-column: 1 / -1;
  max-width: 15em;
  margin: 0;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--espresso);
  text-wrap: balance;
}

.einleitung {
  grid-column: 1;
  align-self: start;
  max-width: 33em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: 18px;
  line-height: 1.62;
}
.einleitung p { margin: 0 0 0.8em; }
.einleitung p:first-child::first-letter {
  float: left;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 4.1em;
  line-height: 0.78;
  padding: 0.08em 0.08em 0 0;
  color: var(--espresso);
}

.muster {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  width: min(100%, 380px);
}

/* Die Beispielkarte aus Papier */

.karte {
  position: relative;
  background-color: var(--papier);
  background-image: var(--koernung);
  padding: 20px 20px 16px;
  transform: rotate(2.2deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 14px 26px -14px rgba(42, 25, 10, 0.55);
}
.karte::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(59, 42, 32, 0.55);
  outline: 1px solid rgba(59, 42, 32, 0.35);
  outline-offset: -4px;
  pointer-events: none;
}
.karte-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 6px 10px;
}
.karte-kopf strong { font-family: var(--titel); font-weight: 700; font-size: 21px; color: var(--tinte); }
.karte-kopf span { font-size: 11px; letter-spacing: 0.12em; color: var(--leise); }
.felder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 4px 6px;
}
.feld {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(59, 42, 32, 0.4);
}
.feld svg {
  position: absolute;
  inset: -9%;
  width: 118%;
  height: 118%;
  color: var(--tinte);
  mix-blend-mode: multiply;
}
.karte-fuss {
  margin: 10px 6px 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--leise);
  font-family: var(--titel);
  font-style: italic;
}

/* Randnotizen */

.notiz {
  font-family: var(--titel);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  color: #4a3a2e;
  margin: 0;
}
.muster .notiz {
  margin: 26px 0 0 18px;
  max-width: 17em;
  transform: rotate(-2deg);
}
.notiz .pfeil { display: inline-block; width: 34px; height: 22px; vertical-align: -4px; margin-right: 6px; }

/* Die Karte des Hauses */

.tafel {
  padding: clamp(36px, 5vw, 60px) 0;
  border-bottom: 1px solid rgba(42, 33, 27, 0.55);
  position: relative;
}
h2 { text-wrap: balance; }

.tafel h2 {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--espresso);
}
.zier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto clamp(24px, 3.5vw, 40px);
  max-width: 340px;
}
.zier::before, .zier::after { content: ""; flex: 1; border-top: 1px solid var(--druck); }
.zier svg { width: 14px; height: 14px; color: var(--akzent); }

.gerichte {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(32px, 5vw, 72px);
}
.gerichte li {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0 11px;
}
.gerichte .name {
  font-family: var(--titel);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--espresso);
  flex: none;
  max-width: 60%;
}
.gerichte .punkte {
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 2px dotted rgba(42, 33, 27, 0.55);
  transform: translateY(-5px);
}
.gerichte .was {
  flex: 0 1 auto;
  max-width: 62%;
  text-align: right;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--leise);
}
.kleingedruckt {
  margin: clamp(18px, 3vw, 28px) 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--leise);
}
.tafel .notiz {
  position: absolute;
  top: clamp(26px, 4vw, 48px);
  right: 0;
  max-width: 12em;
  transform: rotate(4deg);
  text-align: right;
}

/* Stand der Dinge mit dem Gummistempel */

.stand {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 24px clamp(28px, 4vw, 56px);
  padding: clamp(36px, 5vw, 60px) 0 clamp(44px, 6vw, 72px);
}
.stand h2 {
  margin: 0 0 14px;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--espresso);
}
.stand p { margin: 0 0 12px; max-width: 32em; }
.gummi {
  justify-self: center;
  width: clamp(180px, 22vw, 250px);
  transform: rotate(-13deg);
  color: var(--akzent);
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.gummi text {
  font-family: var(--schrift);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 3.2px;
  fill: currentColor;
}
.gummi .mitte {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.5px;
}

/* Aushang mit Abreißzetteln */

.aushang {
  position: relative;
  margin: 0 clamp(20px, 6vw, 80px);
  padding: clamp(28px, 4vw, 44px) 0 clamp(22px, 3vw, 30px);
  border-top: 4px double var(--druck);
}
.aushang h2 {
  margin: 0;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--espresso);
}
.aushang p { margin: 10px 0 0; font-size: 18px; }
.aushang p a {
  font-weight: 600;
  color: var(--espresso);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--akzent);
}
.aushang .notiz {
  position: absolute;
  right: 0;
  bottom: 6px;
  transform: rotate(-3deg);
  font-size: 19px;
}
.aushang .notiz .pfeil { width: 40px; height: 34px; margin: 0 0 0 6px; vertical-align: -14px; }

.zettel {
  display: flex;
  align-items: flex-start;
}
.zettel a,
.zettel .weg {
  flex: 1 1 0;
  min-width: 0;
  height: clamp(150px, 15vw, 176px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px dashed rgba(42, 33, 27, 0.5);
  border-top: 2px dashed rgba(42, 33, 27, 0.55);
  text-decoration: none;
  color: var(--druck);
  box-shadow: 0 14px 18px -12px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 0;
  transition: transform 0.2s ease;
}
.zettel a:last-child { border-right: 0; }
.zettel a span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
}
.zettel a b { font-family: var(--titel); font-weight: 700; font-size: 15.5px; }
.zettel a:nth-child(2) { transform: rotate(0.6deg); }
.zettel a:nth-child(6) { transform: rotate(-0.5deg); }
.zettel a:hover { transform: rotate(-1.2deg) translateY(2px); }
/* Einer ist schon weg, oben bleibt ein ausgefranster Rest. */
.zettel .weg {
  height: 15px;
  border-right: 1.5px dashed rgba(42, 33, 27, 0.5);
  box-shadow: none;
  background-color: var(--kraft);
  background-image: var(--koernung);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 88% 85%, 76% 45%, 63% 95%, 50% 55%, 38% 100%, 24% 50%, 12% 85%, 0 40%);
}

/* Unter dem Blatt */

.unten {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px clamp(20px, 6vw, 80px) 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* Die Links haben Innenabstand zum Antippen, deshalb an der Schriftlinie ausrichten. */
  align-items: baseline;
  gap: 12px 28px;
  color: #bdb3a3;
  font-size: 14px;
}
.unten nav { display: flex; align-items: baseline; gap: 6px 24px; flex-wrap: wrap; }
.unten a { color: #bdb3a3; text-decoration: none; padding: 6px 0; }
.unten a:hover { color: var(--creme); }

/* Schmal */

@media (max-width: 860px) {
  .blatt { margin: 12px 10px 0; }
  .aufmacher, .stand { grid-template-columns: minmax(0, 1fr); }
  .muster { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .einleitung { columns: 1; text-align: left; }
  .gerichte { columns: 1; }
  .tafel .notiz { position: static; margin: -8px auto 22px; text-align: center; transform: rotate(-2deg); }
  .aushang .notiz { position: static; margin-top: 18px; }
}

@media (max-width: 520px) {
  .kopf { flex-direction: column; align-items: flex-start; gap: 10px; }
  .kopfleiste { font-size: 11px; letter-spacing: 0.08em; }
  .gerichte li { flex-wrap: wrap; }
  .gerichte .name { max-width: 100%; }
  .gerichte .was { max-width: none; text-align: left; flex-basis: 100%; }
  .gerichte .punkte { display: none; }
  .gerichte li { padding: 8px 0 10px; border-bottom: 1px dotted rgba(42, 33, 27, 0.4); }
  .zettel > :nth-child(n + 7) { display: none; }
  .zettel a span { font-size: 12px; }
  .zettel a b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .zettel a { transition: none; }
  .zettel a:hover { transform: none; }
}

/* Rechtliches: Impressum, Datenschutz, Fehlerseite */

.recht {
  max-width: 44em;
  padding: clamp(30px, 5vw, 56px) 0 clamp(52px, 7vw, 88px);
}
.recht h1 {
  max-width: none;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.02;
  margin-bottom: 10px;
}
.recht h2 {
  margin: 36px 0 8px;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(21px, 2.2vw, 25px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--espresso);
}
.recht p { margin: 0 0 12px; }
.recht .datum {
  font-family: var(--titel);
  font-style: italic;
  color: var(--leise);
  margin-bottom: 8px;
}
.recht a { text-decoration-color: var(--akzent); text-underline-offset: 3px; }
.recht .zurueck {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}
