/* ------------------------------------------------------------
   Persönliche Website – gemeinsames Stylesheet (Stil: ruhig, japanisch)
   Keine externen Schriften oder Skripte. Ein eigenes kleines Skript (theme.js) schaltet hell/dunkel.
   Farben und Maße stehen oben als Variablen und sind leicht änderbar.
   ------------------------------------------------------------ */

:root {
  --paper: #f7f2e7;
  --ink: #2f2a22;
  --muted: #615748;
  --line: #e6cfae;
  --tint: #efe6d3;
  --accent: #a14d26;
  --btn: #a14d26;
  --on-btn: #ffffff;
  color-scheme: light;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
}

/* Dunkles Design: nur wenn es per Schalter gewählt wurde (Standard ist hell) */
:root[data-theme="dark"] {
  --paper: #15120e;
  --ink: #f0e8db;
  --muted: #bdb1a0;
  --line: #433b31;
  --tint: #221e17;
  --accent: #d9825a;
  --btn: #a14d26;
  --on-btn: #ffffff;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.85;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--ink); text-underline-offset: 0.22em; text-decoration-color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; }

h1, h2, h3 { font-weight: 500; margin: 0; }
h3 { font-weight: 600; }
p { margin: 0 0 1em; max-width: 38rem; }

/* ---------- Kopfzeile ---------- */

.site-head { padding-block: 22px; }

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}

.seal {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--btn);
  color: var(--on-btn);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  font-family: var(--serif);
}

.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 0.95rem; margin-left: auto; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hell/Dunkel-Schalter ---------- */

.theme-toggle {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.js .theme-toggle { display: inline-grid; }
.brand-name + .theme-toggle { margin-left: auto; }
.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }

/* ---------- Einstieg ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-block: clamp(48px, 9vw, 96px) clamp(56px, 10vw, 104px);
}

.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
  max-width: 22ch;
}

.hero p { color: var(--muted); margin-bottom: 30px; }

.link {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.link:hover { border-bottom-width: 2px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }

.tate {
  writing-mode: vertical-rl;
  font-size: 2.2rem;
  letter-spacing: 0.35em;
  white-space: nowrap;
  margin: 0;
  max-width: none;
  color: var(--ink);
}

/* ---------- Abschnitte ---------- */

.part {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 24px 48px;
}

.part > h2 {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}

[id] { scroll-margin-top: 16px; }

.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.cols h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cols p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.75; }

/* ---------- Bilder und Bildplätze ---------- */

/* <img class="shot r43" ...> oder Platzhalter <div class="shot ph r43"> */
.shot { display: block; width: 100%; object-fit: cover; background: var(--tint); }
.r43 { aspect-ratio: 4 / 3; }
.r34 { aspect-ratio: 3 / 4; }
.r45 { aspect-ratio: 4 / 5; }
.r32 { aspect-ratio: 3 / 2; }
.r169 { aspect-ratio: 16 / 9; }
.r919 { aspect-ratio: 9 / 19; }

.ph {
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.4;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.pair.phones { grid-template-columns: repeat(2, minmax(0, 9rem)); }
.cap { color: var(--muted); font-size: 0.93rem; margin: 0; }

.list { margin: 0 0 20px; padding-left: 1.2em; max-width: 38rem; }
.list li { margin-bottom: 0.3em; }

/* ---------- Angebot ---------- */

.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.offers h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price { font-size: 2.2rem; margin: 0 0 4px; line-height: 1.3; max-width: none; }
.price small { font-size: 1rem; color: var(--muted); }
.offers p { color: var(--muted); }
.tag { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent); display: block; margin-bottom: 4px; }

/* ---------- Fragen und Antworten ---------- */

.faq-list details { border-bottom: 1px solid var(--line); max-width: 40rem; }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 36px 14px 0;
  font-weight: 600;
  position: relative;
  line-height: 1.6;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
}

.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 14px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Über mich ---------- */

.about { display: grid; grid-template-columns: 11rem 1fr; gap: 28px 36px; align-items: start; }

/* ---------- Community ---------- */

.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.groups h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.groups p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 14px; }

.socials { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--sans); font-size: 0.93rem; }

/* ---------- Abschluss ---------- */

.closing { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); text-align: left; }
.closing h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: 0.04em; margin-bottom: 12px; }
.closing p { color: var(--muted); }

/* ---------- Fußzeile ---------- */

.site-foot { border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--muted); font-size: 0.9rem; }

.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot nav, .site-foot .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(32px, 6vw, 56px); }
.legal h1 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); letter-spacing: 0.04em; margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 8px; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal ul { max-width: 38rem; padding-left: 1.2em; }

/* ---------- Buttons, Kurs-Karten, Ablauf ---------- */

.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--on-btn);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.btn:hover { filter: brightness(1.08); text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--tint);
  border-radius: 6px;
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
.card .link-row { margin-top: auto; padding-top: 8px; align-items: center; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 40rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 3rem; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.steps strong { font-weight: 600; }

.phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.phases h3 { font-size: 1.05rem; margin-bottom: 2px; }
.phases .when { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 6px; }
.phases p:last-child { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.75; }

.note { font-size: 0.93rem; color: var(--muted); max-width: 38rem; }
.page-intro { padding-block: clamp(40px, 7vw, 80px) clamp(28px, 5vw, 48px); }
.page-intro h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.5; letter-spacing: 0.04em; margin-bottom: 18px; }
.page-intro p { color: var(--muted); }
.site-head nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 46rem) {
  .brand-name { order: 1; }
  .theme-toggle { order: 2; margin-left: auto; }
  .site-head nav { order: 3; width: 100%; margin-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .tate { display: none; }
  .part { grid-template-columns: 1fr; gap: 14px; }
  .cards, .phases { grid-template-columns: 1fr; }
  .cols, .offers, .groups { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .shot { max-width: 12rem; }
  .pair.phones { grid-template-columns: repeat(2, minmax(0, 8rem)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body { transition: none; } }
