/* ═══════════════════════════════════════════
   BASE — Reset, Typografie, globale Styles
   Sicilia Profonda
   ═══════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typografie ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

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

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.text-dim { color: var(--color-text-dim); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-hover);
  background: var(--color-accent-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--fs-h2);
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-dim);
  max-width: 55ch;
  line-height: 1.6;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Scroll-Reveal (.js-ready Pattern) ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: Falls Observer nicht greift, nach 2s trotzdem einblenden */
@keyframes reveal-safety {
  to { opacity: 1; transform: translateY(0); }
}

.js-ready .reveal {
  animation: reveal-safety 0.6s ease 2s forwards;
}

.js-ready .reveal--visible {
  animation: none;
}

/* ── Selection ── */
::selection {
  background: var(--color-accent);
  color: var(--color-navy);
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Body Lock (Mobile Menu offen) ── */
body.menu-open {
  overflow: hidden;
}
