/* Sturmhammer Garde – wow.raumdock.org
   Basis: RDOC Brand Tokens v2.3 (Space, Graphite, Steel, Off White, Copper).
   WoW/Allianz-Erweiterung: Allianz-Navy als Flächenton, Klassenfarben nur als
   Kennzeichnung an den Streamer-Bannern. Copper bleibt die eine Aktionsfarbe. */

@font-face { font-family: 'Michroma'; src: url('assets/fonts/Michroma-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('assets/fonts/IBMPlexSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('assets/fonts/IBMPlexSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  /* RDOC */
  --space: #121416;
  --graphite: #2B3135;
  --steel: #76828D;
  --offwhite: #F2F2F0;
  --copper: #C48A4A;
  --focus: #E0A868;
  /* Allianz */
  --navy: #1A2D4D;
  --navy-deep: #13213A;
  --navy-line: #2C4470;

  --text: var(--offwhite);
  --muted: #A9B3BC;           /* Steel aufgehellt: 7.9:1 auf Space, 5.9:1 auf Navy */
  --font-display: 'Michroma', 'IBM Plex Sans', system-ui, sans-serif;
  --font-text: 'IBM Plex Sans', system-ui, 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(2rem, 6.4vw, 4.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); line-height: 1.15; }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: 1.125rem; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--offwhite); color: var(--space); padding: 8px 14px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  font: 600 1rem/1 var(--font-text); text-decoration: none; border-radius: 2px;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn--primary { background: var(--copper); color: var(--space); }
.btn--primary:hover { background: var(--focus); }
.btn--ghost { border-color: rgba(242,242,240,.45); color: var(--offwhite); }
.btn--ghost:hover { border-color: var(--offwhite); }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(18,20,22,.92);
  border-bottom: 1px solid var(--graphite);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--font-display); font-size: .875rem; }
.topbar ul { display: flex; gap: clamp(12px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.topbar nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; padding: 8px 0; }
.topbar nav a:hover { color: var(--offwhite); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 860px);
  display: grid; align-items: center;
  padding: 96px var(--gutter);
  overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -2; }
.hero__bg img { object-fit: cover; object-position: 70% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,20,22,.94) 0%, rgba(18,20,22,.78) 38%, rgba(18,20,22,.1) 72%);
}
.hero { padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.hero__content { max-width: 620px; }
.hero__crest { width: 92px; height: auto; margin-bottom: 28px; }
.hero__faction { color: var(--muted); font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hero__faction::before { content: ""; width: 28px; height: 2px; background: var(--steel); }
.hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34em; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__crest { animation: raise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__faction, .hero h1, .hero__lead, .hero__actions { animation: fade .8s ease-out both; }
  .hero__faction { animation-delay: .25s; }
  .hero h1 { animation-delay: .35s; }
  .hero__lead { animation-delay: .5s; }
  .hero__actions { animation-delay: .65s; }
}
@keyframes raise { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Section shell */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.0625rem; }

/* Wer wir sind */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--navy-deep);
  border-top: 4px solid var(--navy-line);
}
.split__media { margin: 0; min-height: 360px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.split__text { padding: clamp(48px, 7vw, 96px) var(--gutter); max-width: 640px; }
.split__text h2 { margin-bottom: 24px; }
.facts { margin: 40px 0 0; display: grid; gap: 20px; }
.facts div { border-left: 2px solid var(--navy-line); padding-left: 18px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 4px 0 0; color: var(--muted); }

/* Willkommen */
.welcome { position: relative; isolation: isolate; min-height: 520px; display: flex; align-items: flex-end; padding: 64px var(--gutter); }
.welcome__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.55) 42%, rgba(18,20,22,0) 70%); }
.welcome__text { max-width: var(--max); width: 100%; margin: 0 auto; }
.welcome__text h2 { max-width: 18em; }
.welcome__text p { max-width: 36em; margin-top: 16px; font-size: 1.125rem; }

/* Kodex */
.kodex { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.kodex__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--graphite); }
.rule { padding: 36px 32px 8px 0; }
.rule + .rule { padding-left: 32px; border-left: 1px solid var(--graphite); }
.rule__icon { width: 44px; height: 44px; color: var(--steel); margin-bottom: 20px; }
.rule h3 { margin-bottom: 16px; }
.rule p { color: var(--muted); }
.rule p + p { margin-top: 12px; }

/* Gesichter – Allianz-Banner */
.faces {
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(80px, 10vw, 140px);
  background: var(--navy-deep);
  border-top: 4px solid var(--navy-line);
}
.faces .section-head { max-width: var(--max); margin-inline: auto; }
.faces .section-head > * { max-width: 640px; }
.banners {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px);
  padding-top: 14px;
}
.banner {
  position: relative;
  background: var(--navy);
  padding: 40px 20px 72px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 36px), 0 100%);
  border-top: 6px solid var(--class);
}
.banner__crest {
  width: 132px; aspect-ratio: 10 / 12; margin: 0 auto 24px;
  background: var(--class);
  clip-path: path('M0 0H132V74C132 116 104 142 66 158C28 142 0 116 0 74Z');
  padding: 4px;
}
.banner__crest img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: path('M0 0H124V70C124 110 98 134 62 149C26 134 0 110 0 70Z');
}
.banner h3 { font-size: clamp(.875rem, 1.3vw, 1rem); overflow-wrap: anywhere; }
.banner__role { margin-top: 10px; color: var(--muted); }
.banner__class { color: var(--class); font-weight: 600; margin-right: 4px; }
.banner__link {
  display: inline-block; margin-top: 20px; padding: 10px 4px;
  color: var(--offwhite); font-weight: 600; font-size: .9375rem;
  text-decoration: underline; text-decoration-color: var(--class); text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.banner__link:hover { text-decoration-color: var(--offwhite); }

/* Gemütlichkeit */
.cozy { position: relative; isolation: isolate; min-height: 560px; display: flex; align-items: center; padding: 80px var(--gutter); }
.cozy__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.cozy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,20,22,.9) 0%, rgba(18,20,22,.6) 45%, rgba(18,20,22,0) 75%); }
.cozy__text { max-width: var(--max); width: 100%; margin: 0 auto; }
.cozy__text h2 { max-width: 12em; }
.cozy__text p { max-width: 30em; margin-top: 20px; font-size: 1.125rem; }

/* Mitmachen */
.join { padding: clamp(72px, 10vw, 128px) var(--gutter); text-align: center; max-width: 720px; margin: 0 auto; }
.join__crest { width: 72px; margin: 0 auto 28px; }
.join p { color: var(--muted); margin: 20px auto 36px; font-size: 1.0625rem; max-width: 34em; }

/* Footer */
.footer { border-top: 1px solid var(--graphite); padding: 40px var(--gutter) 48px; color: var(--muted); font-size: .875rem; }
.footer > * { max-width: var(--max); margin-inline: auto; }
.footer__rdoc { display: block; margin-bottom: 16px; }
.footer__rdoc img { display: inline-block; }
.footer__rdoc img { width: 120px; }
.footer__legal { margin-top: 12px; font-size: .75rem; line-height: 1.5; color: var(--steel); }

/* Responsive */
@media (max-width: 1000px) {
  .banners { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 0; aspect-ratio: 16 / 10; }
  .kodex__grid { grid-template-columns: 1fr; border-top: 0; }
  .rule, .rule + .rule { padding: 28px 0; border-left: 0; border-top: 1px solid var(--graphite); }
  .hero::before { background: linear-gradient(0deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.75) 55%, rgba(18,20,22,.35) 100%); }
  .hero { align-items: end; }
  .cozy::before { background: rgba(18,20,22,.62); }
}
@media (max-width: 720px) {
  .topbar nav { display: none; }
  .brand span { font-size: .8125rem; }
}
@media (max-width: 480px) {
  .banners { grid-template-columns: 1fr; max-width: 320px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
