/* The Cart Crush - handgeschrieben, kein Framework */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2-variations");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;               /* bewusst helles Design */

  --paper:   #fbf8f4;               /* warmes Off-White */
  --card:    #ffffff;
  --ink:     #2b2320;               /* warmes Fast-Schwarz */
  --ink-soft:#6f635b;
  --line:    #e8dfd5;
  --accent:  #b4552f;               /* Terrakotta */
  --accent-d:#8f3f20;
  --tint:    #f4ece2;               /* Panel fuer Textkarten */

  --r:   14px;
  --r-s: 9px;
  --shadow:   0 1px 2px rgba(58,42,32,.05), 0 6px 18px rgba(58,42,32,.06);
  --shadow-h: 0 2px 6px rgba(58,42,32,.08), 0 14px 32px rgba(58,42,32,.11);

  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }

a { color: var(--accent-d); }

/* ---------- Affiliate-Hinweis: oben, sichtbar, auf jeder Seite ---------- */
.disclosure {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  color: #5d4f45;
  font-size: 13.5px;
  letter-spacing: .01em;
  text-align: center;
}
.disclosure p { margin: 0; padding-block: 11px; }

/* ---------- Kopf ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 20px; flex-wrap: wrap;
}
.logo {
  font: 700 23px/1 var(--serif);
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
}
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; font-size: 14.5px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--accent-d); }

/* ---------- Beispiel-Warnung ---------- */
.sample-note {
  margin: 22px 0 0;
  padding: 13px 16px;
  border: 1px dashed var(--accent);
  border-radius: var(--r-s);
  background: #fdf3ec;
  color: var(--accent-d);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero { padding-block: 44px 8px; max-width: 660px; }
.hero h1 {
  margin: 0 0 12px;
  font: 700 clamp(31px, 6.4vw, 49px)/1.12 var(--serif);
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 80;
}
.hero .sub {
  margin: 0 0 18px;
  font-size: clamp(16.5px, 2.4vw, 19px);
  color: var(--ink-soft);
}
.hero .intro { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 600px; }

/* ---------- Raster: 2 Spalten Handy, 3 ab 700px, 4 ab 1040px ---------- */
.grid {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px)  { .grid { gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Produktkarte ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }

.card-media { position: relative; }
.card-media img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--tint);
}
/* Textkarte, wenn kein eigenes Bild vorliegt */
.card-media.is-text {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  padding: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdfb 0%, var(--tint) 100%);
  border-bottom: 1px solid var(--line);
}
.monogram {
  font: 700 clamp(30px, 8vw, 44px)/1 var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 60;
  color: var(--accent);
  opacity: .82;
  text-align: center;
}

.badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  color: var(--accent-d);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
  backdrop-filter: blur(3px);
}
.card-media.is-text .badge { background: #fff; }

.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 {
  margin: 0;
  font: 500 16px/1.32 var(--sans);
  letter-spacing: -.005em;
}
.card-body .why { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); flex: 1; }

.btn {
  display: block;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: var(--r-s);
  background: var(--accent);
  color: #fff;
  font-size: 14.5px; font-weight: 500;
  text-align: center; text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-d); }

/* ---------- Startseiten-Kacheln ---------- */
.tiles {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px)  { .tiles { gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.tile:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.tile a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.tile-media { aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #fffdfb 0%, var(--tint) 100%);
  border-bottom: 1px solid var(--line); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.tile-body h2 { margin: 0; font: 700 18.5px/1.3 var(--serif); letter-spacing: -.01em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40; }
.tile-body p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tile-body .more { font-size: 13.5px; font-weight: 500; color: var(--accent-d); margin-top: 3px; }
.tile-count { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- Textseiten (About, Privacy) ---------- */
.prose { max-width: 680px; padding-block: 44px 8px; }
.prose h1 { margin: 0 0 20px; font: 700 clamp(28px, 5.4vw, 40px)/1.15 var(--serif);
  letter-spacing: -.02em; font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72; }
.prose h2 { margin: 32px 0 10px; font: 700 20px/1.3 var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 36; }
.prose p, .prose li { color: #4a3f39; font-size: 15.5px; }
.prose ul { padding-left: 20px; }
.prose .ph {                          /* Platzhalter, deutlich markiert */
  background: #fdf0e6; border: 1px dashed var(--accent);
  border-radius: 5px; padding: 1px 6px;
  font-weight: 500; color: var(--accent-d); white-space: nowrap;
}

/* ---------- Fuss ---------- */
.site-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: #f7f2ec;
  padding-block: 30px 36px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.site-foot .foot-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.site-foot .foot-nav a { color: var(--ink-soft); text-decoration: none; }
.site-foot .foot-nav a:hover { color: var(--accent-d); text-decoration: underline; }
.site-foot p { margin: 0 0 8px; max-width: 700px; }
.site-foot .fine { font-size: 12.5px; color: #8b7f76; }

:where(a, .btn):focus-visible {
  outline: 2px solid var(--accent-d);
  outline-offset: 2px;
  border-radius: 4px;
}
