/* Elektro-Heise — Reset, Fonts, Grundlagen */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

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

html {
  /* Seitliches Pannen des Viewports komplett unterbinden (iOS schiebt sonst
     bei 1px Überbreite die ganze Ansicht — Menü wirkt „verschoben") */
  overflow-x: clip;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: clip;
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.on-dark {
  background: var(--navy);
  color: var(--ice-on-dark);
}

.on-dark .eyebrow {
  color: var(--sky);
}

.on-dark p {
  color: var(--ice-on-dark-soft);
}

/* Eyebrow mit Stecker-Punkt */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px;
  background: var(--orange);
  rotate: 45deg;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast),
    color var(--duration-fast), border-color var(--duration-fast);
}

.btn .arr {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--solid {
  background: var(--blue);
  color: #fff;
}

.btn--solid:hover {
  background: var(--blue-strong);
}

.btn--spark {
  background: var(--orange);
  color: #fff;
}

.btn--spark:hover {
  background: #d9541a;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.on-dark .btn--ghost {
  border-color: var(--line-dark);
  color: var(--ice-on-dark);
}

.on-dark .btn--ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
}

/* Handschrift-Akzent */
.hand {
  font-family: var(--hand);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 600;
  color: var(--orange);
  rotate: -2deg;
  display: inline-block;
}

/* Fokus */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 300;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Reveal-Grundzustand (JS aktiviert) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

html.js.reduced-motion [data-reveal] {
  opacity: 1;
  transform: none;
}

::selection {
  background: var(--sky);
  color: var(--navy);
}
