/* ============================================================
   PhysioTraining Unalome — Base Reset & Typografie
   ============================================================ */

/* Google Fonts — Jost (Logo-Stil, geometrisch) + Inter (Body) + Cormorant (seltene Akzente) */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;1,400&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ── Fein gerasterte Textur auf dem Hintergrund ───────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Typografie ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  color: var(--color-dark);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--size-3xl); font-weight: var(--weight-regular); }
h2 { font-size: var(--size-2xl); font-weight: var(--weight-regular); }
h3 { font-size: var(--size-xl); font-weight: var(--weight-medium); }
h4 { font-size: var(--size-lg); font-weight: var(--weight-medium); }

@media (max-width: 768px) {
  h1 { font-size: var(--size-2xl); }
  h2 { font-size: var(--size-xl); }
  h3 { font-size: var(--size-lg); }
}

p {
  line-height: var(--leading-normal);
  max-width: 65ch;
}

p + p {
  margin-top: var(--space-4);
}

strong { font-weight: var(--weight-medium); color: var(--color-dark); }

em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

/* ── Links ──────────────────────────────────────────────────── */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}
a:hover { color: var(--color-accent-dim); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Listen ─────────────────────────────────────────────────── */
ul, ol { list-style: none; }

/* ── Bilder ─────────────────────────────────────────────────── */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Formulare ──────────────────────────────────────────────── */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Trennlinien ────────────────────────────────────────────── */
hr {
  border: none;
  border-top: var(--border-hair);
  margin: var(--space-12) 0;
}

/* Dekorativer Trenner mit kleinem Unalome-Punkt in der Mitte */
.divider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-12) 0;
  color: var(--color-accent);
}
.divider-dot::before,
.divider-dot::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-line), var(--color-line), transparent);
}
.divider-dot__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}
.divider-dot__glyph::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(78, 138, 92, 0.18);
}

/* ── Auswahl ────────────────────────────────────────────────── */
::selection {
  background-color: var(--color-accent-pale);
  color: var(--color-dark);
}

/* ── Scrollbar (subtil) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  opacity: 0.4;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-dim); }

/* ── Hintergrund-Ornament: dezentes Unalome ──────────────── */
.unalome-bg {
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: var(--color-accent);
  opacity: 0.05;
  z-index: 0;
}

.unalome-bg--right {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: auto;
}

.unalome-bg--left {
  left: -80px;
  top: 10%;
  width: 260px;
  height: auto;
}

.unalome-bg--corner {
  right: 4%;
  top: 8%;
  width: 180px;
  opacity: 0.06;
}

@media (max-width: 900px) {
  .unalome-bg--right,
  .unalome-bg--left {
    width: 200px;
    opacity: 0.04;
  }
  .unalome-bg--corner {
    width: 120px;
  }
}
