/* ============================================================
   Emdschi Media — Sea Glass & Sun
   Sailcloth #F7F5EF · Deep Tide #0E5666 · Sea Glass #7CC9C2 · Sunlit Sand #E8B45C
   Clean · slim · airy · coastal · relaxed · premium
   ============================================================ */

/* Fonts lokal gehostet — keine Verbindung zu Google-Servern (DSGVO) */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sailcloth:   #F7F5EF;
  --deep-tide:   #0E5666;
  --sea-glass:   #7CC9C2;
  --sunlit-sand: #E8B45C;

  --tide-soft:   #4d7f8a;           /* gedämpftes Deep Tide für Sekundärtext */
  --sea-glass-10: rgba(124, 201, 194, .16);
  --sea-glass-20: rgba(124, 201, 194, .32);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 46rem;
  --pad:  clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--sailcloth);
  color: var(--deep-tide);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--deep-tide);
  text-decoration-color: var(--sea-glass);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}
a:hover { text-decoration-color: var(--sunlit-sand); }

:focus-visible {
  outline: 2px solid var(--deep-tide);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-tide);
  color: var(--sailcloth);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  padding: clamp(1.5rem, 4vw, 2.25rem) var(--pad);
  max-width: var(--wrap);
  margin-inline: auto;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--deep-tide);
}
.lockup__mark { display: block; width: auto; height: 1.85rem; }
.lockup__mark svg { display: block; height: 100%; width: auto; }
.lockup__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 9vw, 5.5rem) clamp(2rem, 7vw, 4rem);
}
.hero__mark {
  display: block;
  width: clamp(3rem, 11vw, 4.25rem);
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
}
.hero__mark svg { display: block; width: 100%; height: auto; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero__claim {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  color: var(--deep-tide);
  margin: 0.9rem 0 0;
}
.hero__claim::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 1.1rem;
  background: var(--sunlit-sand);
  border-radius: 2px;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--tide-soft);
}

/* ---------- Rule ---------- */
.rule {
  border: 0;
  height: 1px;
  background: var(--sea-glass-20);
  max-width: var(--wrap);
  margin: clamp(1rem, 4vw, 2rem) auto;
}

/* ---------- About / Contact ---------- */
.about, .contact {
  padding-block: clamp(2rem, 6vw, 3.25rem);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-tide);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--sea-glass);
  vertical-align: 0.05em;
}

.about__text { max-width: 36rem; margin: 0; color: var(--tide-soft); }

.contact {
  background: var(--sea-glass-10);
  border-top: 1px solid var(--sea-glass-20);
  border-bottom: 1px solid var(--sea-glass-20);
}
.contact__line { margin: 0; }
.contact__line a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.site-footer__mark { display: block; width: 1.35rem; margin-bottom: 0.4rem; }
.site-footer__mark svg { display: block; width: 100%; height: auto; }
.site-footer__copy {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tide-soft);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.9375rem;
}
.site-footer__nav a { text-decoration: none; color: var(--tide-soft); }
.site-footer__nav a:hover { color: var(--deep-tide); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2rem, 6vw, 3.5rem); }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}
.legal p, .legal address { margin: 0 0 1rem; }
.legal address { font-style: normal; }
.legal .back { display: inline-block; margin-top: 2rem; font-weight: 600; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__mark, .hero__title, .hero__claim, .hero__lead {
    animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero__title  { animation-delay: 0.06s; }
  .hero__claim  { animation-delay: 0.12s; }
  .hero__lead   { animation-delay: 0.18s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 40rem) {
  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
  .site-footer__mark { margin-bottom: 0; }
  .site-footer__nav { margin-left: auto; }
}
