/* suendermann.me – Farben, Schriften und Themen (gemeinsam für alle Seiten und Werkzeuge) */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

  --bg: #f4f1ea; --surface: #fffdf9; --surface-2: #f1ede5; --surface-3: #e8e3d8;
  --text: #1d1b17; --muted: #6d675c; --border: #e5dfd3; --border-strong: #d3cbbb;
  --danger: #c8372d; --success: #2f8a4c; --warn: #b7741b;
  --canvas-bg: #e9e5dc;
  --accent: #e0532b; --accent-ink: #ffffff;
  --shadow-sm: 0 1px 2px rgba(60, 45, 20, .06);
  --shadow: 0 1px 2px rgba(60, 45, 20, .05), 0 10px 30px -14px rgba(60, 45, 20, .22);
  --shadow-lg: 0 30px 70px -24px rgba(60, 45, 20, .38);
  --radius: 16px;
  --lift: 0%; /* wie stark Kachelfarben im Dunkeln aufgehellt werden */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Akzentfarben (hell) */
:root[data-accent="salbei"] { --accent: #2f7a55; }
:root[data-accent="ozean"] { --accent: #1f5fd1; }
:root[data-accent="pflaume"] { --accent: #8b3aa6; }
:root[data-accent="graphit"] { --accent: #24211c; }

/* Dunkel – automatisch nach Systemeinstellung oder fest gewählt */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210; --surface: #1c1b18; --surface-2: #252320; --surface-3: #2f2d29;
    --text: #f2eee6; --muted: #a29b8e; --border: #2d2b27; --border-strong: #3d3a34;
    --danger: #f2705f; --success: #5fc584; --warn: #e3a64a; --canvas-bg: #0d0c0b;
    --accent: #ff7b4f; --accent-ink: #1a0d07; --lift: 38%;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
  :root:not([data-theme="light"])[data-accent="salbei"] { --accent: #6cc797; }
  :root:not([data-theme="light"])[data-accent="ozean"] { --accent: #79a6ff; }
  :root:not([data-theme="light"])[data-accent="pflaume"] { --accent: #cf8ce8; }
  :root:not([data-theme="light"])[data-accent="graphit"] { --accent: #f2eee6; }
}
:root[data-theme="dark"] {
  --bg: #131210; --surface: #1c1b18; --surface-2: #252320; --surface-3: #2f2d29;
  --text: #f2eee6; --muted: #a29b8e; --border: #2d2b27; --border-strong: #3d3a34;
  --danger: #f2705f; --success: #5fc584; --warn: #e3a64a; --canvas-bg: #0d0c0b;
  --accent: #ff7b4f; --accent-ink: #1a0d07; --lift: 38%;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
:root[data-theme="dark"][data-accent="salbei"] { --accent: #6cc797; }
:root[data-theme="dark"][data-accent="ozean"] { --accent: #79a6ff; }
:root[data-theme="dark"][data-accent="pflaume"] { --accent: #cf8ce8; }
:root[data-theme="dark"][data-accent="graphit"] { --accent: #f2eee6; }

/* Abgeleitete Töne – passen sich automatisch an Akzent und Hell/Dunkel an */
:root {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 35%, var(--border));
  --ring: color-mix(in srgb, var(--accent) 32%, transparent);
}
