/* spinellastudiosde/public/assets/css/base.css
 * Gemeinsame Grundlage aller Seiten: lokal gehostete Schriften (kein Google-CDN wegen DSGVO),
 * Reset, Icons und Hilfsklassen. Farben definiert jede Seite selbst in ihrem eigenen Stylesheet.
 */

/* ---------- Schriften (latin, selbst gehostet) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-display-italic-latin.woff2") format("woff2");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:where(h1, h2, h3, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
button { font: inherit; }
a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Icons (SVG-Sprite unter /assets/icons/sprite.svg) ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* ---------- Barrierefreiheit ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* ---------- Einblende-Animation (siehe main.js) ---------- */
.js-reveal [data-reveal] { transition: opacity .7s ease, translate .7s ease; }
.js-reveal [data-reveal].is-hidden { opacity: 0; translate: 0 18px; }

/* ---------- FAQ (gemeinsam, Farben über Variablen der Seite) ---------- */
.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq details {
  border-radius: var(--faq-radius, 14px);
  background: var(--faq-bg);
  border: var(--faq-border, 0);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--faq-muted); }
.faq a { text-decoration: underline; text-underline-offset: 3px; }
