/* ==========================================================================
   Schutzengel-Anhänger – Landingpage Goldschmiede Schmuckbrise
   Aufbau nach regelwerk.md
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin-Subset) ---------- */
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Annie Use Your Telescope";
  src: url("fonts/annie-use-your-telescope-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben (Markenpalette Schmuckbrise) */
  --color-bg: #ffffff;
  --color-bg-soft: #f3f7f8;
  --color-text: #282828;          /* 14.9:1 auf Weiß */
  --color-accent: #217b8e;        /* Petrol – 4.9:1 auf Weiß: Headlines, Buttons, Flächen */
  --color-accent-dark: #185f6e;   /* dunkleres Petrol – 7:1: Fließtext-Links, Hover */
  --color-on-accent: #ffffff;     /* Text auf Petrol – 4.9:1 */

  /* Typografie */
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --font-accent: "Annie Use Your Telescope", "Segoe Script", cursive;
  --line-height-base: 1.7;

  /* Fluide Schriftskala (utopia.fyi: 360px → 1240px, 18 → 20px, Ratio 1.2 → 1.25) */
  --step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2631rem + 0.3864vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.4837rem + 0.6057vw, 1.9531rem);
  --step-3: clamp(1.944rem, 1.7405rem + 0.9044vw, 2.4414rem);

  /* Abstand */
  --rhythm: 1rem;
  --space-section: clamp(3rem, 1.9773rem + 4.5455vw, 5.5rem);
  --container: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--line-height-base);
  font-weight: 400;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 calc(var(--rhythm) * 1.25);
  text-wrap: balance;
}

p { margin: 0 0 calc(var(--rhythm) * 1.25); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color .2s ease, text-decoration-thickness .2s ease;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus { outline: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { outline-color: var(--color-text); }

/* ---------- Hero / Headerbild ---------- */
.hero {
  max-width: 1980px;
  margin-inline: auto;
  background: var(--color-bg-soft);
}
.hero__image {
  width: 100%;
  min-height: 11rem;          /* auf schmalen Screens: Bild wird beschnitten statt winzig */
  object-fit: cover;
  object-position: 52% 50%;   /* Logo bleibt mittig im Bild */
}

/* ---------- Content-Sections ---------- */
.section { padding-block: var(--space-section) 0; }
.section:last-of-type { padding-bottom: var(--space-section); }

.section__title { color: var(--color-accent); font-weight: 700; }
h1.section__title { font-size: var(--step-3); }
h2.section__title { font-size: var(--step-2); }

.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: calc(var(--rhythm) * .75);
  background: currentColor;
  border-radius: 2px;
  opacity: .5;
}

.highlight {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-accent);
  padding-left: calc(var(--rhythm) * 1.25);
  border-left: 3px solid var(--color-accent);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: var(--space-section);
  padding-block: calc(var(--space-section) * .8);
  background: var(--color-accent);
  color: var(--color-on-accent);
  text-align: center;
}
.cta__kicker {
  font-family: var(--font-accent);
  font-size: var(--step-2);
  line-height: 1.2;
  margin-bottom: calc(var(--rhythm) * .25);
}
.cta__title {
  font-size: var(--step-2);
  font-weight: 800;
  margin-bottom: calc(var(--rhythm) * .75);
}
.cta__text { margin-bottom: calc(var(--rhythm) * 1.75); }

.cta :focus-visible { outline-color: var(--color-on-accent); }

/* Button: lokale feste Werte, kein clamp (siehe Regelwerk) */
.button {
  display: inline-block;
  padding: .9rem 1.75rem;
  border: 2px solid var(--color-on-accent);
  border-radius: 4px;
  background: var(--color-on-accent);
  color: var(--color-accent-dark);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.button:hover {
  background: transparent;
  color: var(--color-on-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid #dde6e8;
  padding-block: calc(var(--rhythm) * 2);
  font-size: 1rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--rhythm) * .75) calc(var(--rhythm) * 2);
  align-items: center;
  justify-content: space-between;
}
.site-footer__copy { margin: 0; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav a {
  display: inline-block;
  padding-block: .35rem;      /* ausreichend große Tap-Targets */
}
.site-footer__nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Unterseiten (Rechtliches) ---------- */
.page-header {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding-block: 1rem;
}
.page-header a {
  color: var(--color-on-accent);
  font-weight: 700;
  text-decoration: none;
}
.page-header a:hover { text-decoration: underline; }
.page-header :focus-visible { outline-color: var(--color-on-accent); }

.legal h2 {
  font-size: var(--step-1);
  color: var(--color-accent);
  margin-top: calc(var(--rhythm) * 2.5);
}
.legal address { font-style: normal; margin-bottom: calc(var(--rhythm) * 1.25); }
.legal ul { padding-left: 1.25em; margin: 0 0 calc(var(--rhythm) * 1.25); }

.notice {
  padding: 1rem 1.25rem;
  margin-bottom: calc(var(--rhythm) * 2);
  background: #fff4d6;
  border-left: 4px solid #8a5a00;
  color: #3d2a00;
}

/* ---------- Scroll-Reveal (nur mit JS aktiv) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
