/* juliafregin.de – gemeinsames Stylesheet
   Hell: Palette „Atelier“, Dunkel: Palette „Moos“ (folgt der Systemeinstellung). */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2ece3;
  --surface: #e4d8c6;
  --text: #2f3019;
  --muted: #6e6553;
  --muted-on-surface: #5f5747;
  --line: #d6cbb9;
  --accent: #6b6e3a;
  --on-accent: #f2ece3;
  --link: #5e6133;
  --field: #faf7f2;
  --field-border: #b9ad98;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --width: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 6px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2b2d18;
    --surface: #3a3d22;
    --text: #efe6d4;
    --muted: #b9ae95;
    --muted-on-surface: #c3b89f;
    --line: #45482b;
    --accent: #c9a06e;
    --on-accent: #2b2d18;
    --link: #d4ad7c;
    --field: #22240f;
    --field-border: #6c6e4a;
  }
}

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

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

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 550; }
p { margin: 0; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container {
  max-width: var(--width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.prose { max-width: 65ch; display: grid; gap: 1em; }
.prose h2 { margin-top: 1em; font-size: 1.5rem; }
.prose h3 { margin-top: 0.6em; }
.prose ul { margin: 0; padding-left: 1.2em; }

/* Vorschau-Hinweis: vor dem Livegang entfernen */
.demo-banner {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
  text-align: center;
  padding: 6px 16px;
}

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 18px;
}
.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
}
.logo span { font-family: var(--body); font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding-block: 4px; }
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--accent); }

/* Abschnitte */
main { display: block; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 60ch; }
.page-head { padding-block: clamp(40px, 7vw, 80px) 0; display: grid; gap: 16px; }

/* Startseite: Bühne */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.hero-copy { display: grid; gap: 20px; }
.hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* Raster */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* Kurskarten */
.course {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.course .meta { color: var(--muted-on-surface); font-size: 0.95rem; }
.course .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.course p { color: var(--muted-on-surface); }
.badge {
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--link);
}

/* Termine */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
td.free { font-weight: 700; color: var(--link); }
td.full { color: var(--muted); }

/* Produkte */
.product { display: grid; gap: 10px; align-content: start; }
.product img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--surface); }
.product .placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted-on-surface);
  font-size: 0.9rem;
}
.product .detail { color: var(--muted); font-size: 0.95rem; }
.product .price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Fakten-Liste */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; color: var(--muted); max-width: 65ch; }

.callout { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.callout p { color: var(--muted-on-surface); max-width: 60ch; }

/* Kontaktformular */
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--field-border);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hint { font-size: 0.9rem; color: var(--muted); }
button.btn { cursor: pointer; font-family: inherit; }
/* Honeypot gegen Spam-Bots: für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.95rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }

.todo { background: #fff3a8; color: #3a3000; padding: 0 4px; border-radius: 2px; }

@media (max-width: 860px) {
  .hero, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero img { order: -1; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 561px) and (max-width: 860px) {
  .grid-3.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
