/* Patch Work — patchwork.maxecute.de
   Farben aus Palette.swift der App, damit Seite und App dieselbe Sprache
   sprechen. Hell und dunkel wie im System eingestellt. */

:root {
  --canvas:   #E7E9E4;
  --card:     #FAFBF8;
  --sunk:     #DEE1DA;
  --line:     #CBCFC6;
  --linesoft: #DDE0D8;
  --ink:      #1A1C19;
  --dim:      #666B63;
  --faint:    #8D9289;
  --accent:   #A85C14;
  --wash:     #F0E4D4;
  --ok:       #2C7358;
  --schatten: 0 1px 2px rgba(26,28,25,.06), 0 8px 24px rgba(26,28,25,.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas:   #15171A;
    --card:     #1D2024;
    --sunk:     #111316;
    --line:     #2F3438;
    --linesoft: #24282C;
    --ink:      #E4E6E2;
    --dim:      #979C95;
    --faint:    #6E736C;
    --accent:   #DE9440;
    --wash:     #2A2119;
    --ok:       #4FA684;
    --schatten: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mitte { max-width: 88rem; margin: 0 auto; padding: 0 40px; }

/* Kopf */

header.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--linesoft);
}
.kopf .mitte {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px; flex-wrap: wrap;
}
.marke {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; letter-spacing: -.01em;
}
.marke:hover { text-decoration: none; }
.marke img { width: 22px; height: 22px; border-radius: 5px; }
/* „Patch Work by [maxecute]“ — das Zeichen steht als Bild neben dem
   Namen, hell oder dunkel je nach Systemeinstellung. Es ist das
   Lockup mit dem Zusatz „Kreativagentur“; darum darf es nicht zu klein
   werden, sonst wird die zweite Zeile zu Grau. */
.marke .von { color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 2px; }
.marke .hausmarke { height: 42px; width: auto; display: block; }
nav.wege { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.wege a { color: var(--dim); }
nav.wege a:hover, nav.wege a[aria-current="page"] { color: var(--ink); text-decoration: none; }
nav.wege .sprache {
  color: var(--faint); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 8px; font-size: 13px; letter-spacing: .04em;
}
nav.wege .sprache:hover { color: var(--ink); border-color: var(--accent); }

/* Aufmacher */

.aufmacher { padding: 64px 0 8px; }

/* Aufmacher: auf breiten Schirmen Text links, Bild rechts. Darunter
   fällt das Bild unter den Text — dort ist Höhe billiger als Breite. */
.aufbau { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1080px) {
  .aufbau { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
  .aufmacher { padding-bottom: 48px; }
}
.schau { margin: 0; min-width: 0; }
.schau img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--sunk); box-shadow: var(--schatten);
}
.schau figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; }

/* Ein einzelnes Bild soll sich nicht über die volle Breite ziehen —
   die Aufnahmen sind dafür nicht scharf genug. */
.bilder.eins { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
.aufmacher img.symbol {
  width: 120px; height: 120px; border-radius: 23%;
  box-shadow: var(--schatten); display: block; margin-bottom: 26px;
}
h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 700; }
.unterzeile { font-size: 25px; color: var(--dim); margin: 0 0 26px; letter-spacing: -.01em; }
.anriss { font-size: 21px; max-width: 46rem; margin: 0 0 30px; }

.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.knopf {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  background: var(--accent); color: var(--canvas);
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
}
.knopf:hover { text-decoration: none; filter: brightness(1.07); }
.knopf.leise { background: transparent; color: var(--ink); border-color: var(--line); }
.knopf.leise:hover { border-color: var(--accent); filter: none; }
.hinweis { color: var(--faint); font-size: 14px; }

/* Abschnitte */

section { padding: 52px 0; }
section + section { border-top: 1px solid var(--linesoft); }
h2 { font-size: 15px; letter-spacing: .09em; text-transform: uppercase;
     color: var(--faint); font-weight: 600; margin: 0 0 22px; }
h3 { font-size: 21px; letter-spacing: -.015em; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.karte {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 22px 24px;
}
.karte p { color: var(--dim); font-size: 17px; }

.bilder { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); }
figure { margin: 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 12px; background: var(--sunk);
  box-shadow: var(--schatten);
}
figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; }

/* Fließtext für Rechtsseiten */

/* Fließtext bleibt schmal, sitzt aber an derselben Kante wie die
   Überschrift darüber — sonst rutscht der Text gegenüber dem Kopf ein. */
.mitte.text { max-width: 88rem; }
.mitte.text > * { max-width: 52rem; }
.text h2 { font-size: 24px; letter-spacing: -.015em; text-transform: none;
           color: var(--ink); margin: 34px 0 10px; }
.text h2:first-child { margin-top: 0; }
.text h3 { font-size: 17px; margin: 22px 0 6px; }
.text ul { padding-left: 20px; margin: 0 0 16px; }
.text li { margin-bottom: 7px; }
.text dl { margin: 0 0 16px; }
.text dt { font-weight: 600; margin-top: 14px; }
.text dd { margin: 4px 0 0; color: var(--dim); }

.zettel {
  background: var(--wash); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 0 0 22px;
}
.zettel p { color: var(--ink); }

table.angaben { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 16px; }
table.angaben th, table.angaben td {
  text-align: left; vertical-align: top; padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--linesoft);
}
table.angaben th { font-weight: 600; white-space: nowrap; width: 12rem; }
table.angaben td { color: var(--dim); }

/* Fuß */

footer.fuss {
  border-top: 1px solid var(--linesoft); margin-top: 40px;
  padding: 30px 0 46px; color: var(--faint); font-size: 14px;
}
footer.fuss .mitte { display: flex; gap: 18px 26px; flex-wrap: wrap; align-items: center; }
footer.fuss a { color: var(--dim); }
footer.fuss .rechts { margin-left: auto; }

/* Der Cookie-Hinweis steht dauerhaft da, ruhig und ohne Knopf — es gibt
   nichts wegzuklicken. */
footer.fuss .keks {
  display: block; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--linesoft);
  max-width: 52rem; line-height: 1.6;
}
footer.fuss .keks strong { color: var(--dim); font-weight: 600; }

@media (max-width: 900px) {
  .mitte { padding: 0 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .mitte { padding: 0 20px; }
  .marke .hausmarke { height: 34px; }
  .aufmacher { padding-top: 48px; }
  h1 { font-size: 34px; }
  .aufmacher img.symbol { width: 92px; height: 92px; }
  .unterzeile { font-size: 19px; }
  .anriss { font-size: 17px; }
  footer.fuss .rechts { margin-left: 0; }
}
