/* amrit.codes – gemeinsame Basis für alle Seiten: Fonts, Tokens, Reset, Typografie, Buttons, Footer */

/* ===== FONTS ===== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg-dark: #1a1612;
  --bg-dark-card: #241e19;
  --bg-dark-deep: #151210;
  --bg-light: #f5efe6;
  --bg-sand: #e8ddd0;
  --text-light: #f0e9df;
  --text-dark: #2c2218;
  --accent: #c4653a;
  --accent-hover: #d4733f;
  --gold: #d4a03c;
  --sage: #7a8b6f;
  --muted: #c9bcae;          /* gedämpfter Text auf dunklem Grund */
  --text-muted: #6f6154;     /* gedämpfter Text auf hellem Grund (≥ 4.5:1) */
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: min(90%, 1200px);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
  /* Sektions-Rhythmus: wächst mit der Viewport-Breite statt per Breakpoint */
  --space-section-top: clamp(2.5rem, 1rem + 4vw, 6rem);
  --space-section: clamp(4rem, 2rem + 5vw, 8rem);
  --wave-h: 80px;
}

/* ===== BASE ===== */
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-dark);
  overflow-x: hidden;
}
.container { width: var(--container); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--text-light); padding: 0.75rem 1.5rem;
  border-radius: var(--radius); z-index: 10000; font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* Galaxy-Akzent: Text-Markierung in Akzentfarbe */
::selection { background: var(--accent); color: var(--bg-light); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; font-variation-settings: 'WONK' 1, 'SOFT' 0; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }

/* ===== FOCUS ===== */
/* Attribut hidden gewinnt immer, auch gegen display: flex/grid der Komponenten */
[hidden] { display: none !important; }

/* Einheitlicher Fokus-Ring für alles ohne eigenen Stil */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 60px; font-weight: 600;
  font-size: 1rem; transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--text-light); box-shadow: 0 4px 16px rgba(196,101,58,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,101,58,0.5);
}
.btn--primary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.btn--outline {
  border: 2px solid var(--muted); color: var(--text-light);
}
.btn--outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.btn--outline:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.btn--dark {
  background: var(--bg-dark); color: var(--text-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.btn--dark:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark-deep); color: var(--muted);
  padding: 3rem 0 2rem; border-top: 2px solid var(--accent);
  position: relative;
}
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(240,233,223,0.35) 1px, transparent 1.7px),
    radial-gradient(circle at 34% 78%, rgba(240,233,223,0.25) 1px, transparent 1.6px),
    radial-gradient(circle at 57% 18%, rgba(255,222,160,0.35) 1.2px, transparent 2px),
    radial-gradient(circle at 76% 62%, rgba(240,233,223,0.3) 1px, transparent 1.7px),
    radial-gradient(circle at 93% 26%, rgba(240,233,223,0.3) 1px, transparent 1.6px);
}
.footer .container { position: relative; }
.footer__inner {
  display: grid; gap: 2rem;
}
.footer__brand {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; color: var(--text-light);
  font-style: italic; margin-bottom: 0.5rem;
  font-variation-settings: 'WONK' 1;
}
.footer__tagline { font-size: 0.9rem; color: var(--muted); }
.footer__links-title {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
  color: var(--text-light); margin-bottom: 0.75rem;
}
.footer__link {
  display: block; font-size: 0.9rem; color: var(--muted);
  padding: 0.6rem 0; transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }
.footer__link:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}
.footer__social { display: flex; gap: 1rem; }
.footer__social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-dark-card); display: flex;
  align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer__social-link:hover {
  background: var(--accent); transform: translateY(-2px);
}
.footer__social-link:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.footer__social-link svg {
  width: 18px; height: 18px; fill: var(--text-light);
}
.footer__copy {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(184,169,154,0.15);
  font-size: 0.8rem; text-align: center; color: var(--muted);
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
