/* ─── Blue Energy – Base & Reset ──────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  background: var(--site-shell-gradient);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Seitenweites Logo-Watermark – mittig, etwas präsenter */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  background-image: url('/img/logo-mark-512.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.06;
  filter: saturate(0.6) brightness(0.8);
  pointer-events: none;
  z-index: 0;
}

/* ─── Typografie ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text-bright);
  letter-spacing: -0.03em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

/* Akzent-Klasse (frühere Marken-Schrift, jetzt Inter) */
.font-brand {
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-brand-hover); }

main {
  position: relative;
  z-index: 1;
}

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

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Focus-Styles (Accessibility) ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Selection ──────────────────────────────────────────────────────────── */
::selection {
  background-color: var(--color-brand-glow);
  color: var(--color-text-bright);
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-base); }
::-webkit-scrollbar-thumb { background: var(--color-border-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-brand-primary); }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--sp-8); }
}

.container--sm  { max-width: var(--container-sm);  }
.container--md  { max-width: var(--container-md);  }
.container--lg  { max-width: var(--container-lg);  }
.container--2xl { max-width: var(--container-2xl); }
.container--3xl { max-width: var(--container-3xl); }

/* Flex + Grid helpers */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4      { gap: var(--sp-4); }
.gap-6      { gap: var(--sp-6); }
.gap-8      { gap: var(--sp-8); }

/* Text helpers */
.text-muted    { color: var(--color-text-dimmed); }
.text-secondary { color: var(--color-text-muted); }
.text-center   { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.text-sm       { font-size: var(--text-sm); }
.text-lg       { font-size: var(--text-lg); }
.text-xl       { font-size: var(--text-xl); }

/* Spacing helpers */
.mt-4  { margin-top: var(--sp-4); }
.mt-8  { margin-top: var(--sp-8); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-8  { margin-bottom: var(--sp-8); }
.py-8  { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.py-16 { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }

.hidden    { display: none !important; }

/* Das hidden-Attribut muss gegen eigene display-Regeln gewinnen: sonst bleibt
   ein Element mit z. B. `display: grid` trotz hidden="true" sichtbar. */
[hidden]   { display: none !important; }
.block     { display: block; }
.w-full    { width: 100%; }
.relative  { position: relative; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
