/* ============================================================
   EuroSparkasse – fiktive Dachgesellschaft der Sparkassen
   Übungsprojekt, kein Build-Schritt, Google Fonts (Inter)
   ============================================================ */

:root {
  --red: #e30613;
  --red-dark: #b3050f;
  --red-deep: #7a0209;
  --ink: #1d1d1f;
  --gray: #4c4c4c;
  --gray-mid: #8a8a8a;
  --gray-line: #e2e2e2;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
  --header-h: 72px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.5);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #fbe6e7; }
.btn--outline { border-color: rgba(255, 255, 255, 0.75); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-line);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 23px;
  line-height: 1;
  border-radius: 10px;
  flex: none;
}
.brand__word {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand__word span { color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover {
  color: var(--red);
  background: rgba(227, 6, 19, 0.07);
  text-decoration: none;
}
.header__cta { flex: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--bg-soft);
  border: 0;
  border-radius: var(--radius);
}
.burger span {
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--red-deep) 0%, var(--red-dark) 45%, var(--red) 100%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.05), 0 0 0 180px rgba(255, 255, 255, 0.03);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(100deg, transparent 40%, #000 78%);
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 78%);
}
.hero__inner { padding: 110px 20px 120px; }
.hero__kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__text {
  margin: 0 0 32px;
  max-width: 56ch;
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.92);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Kennzahlen ---------- */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 54px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat__num {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stats .stat__num { color: #fff; }
.stat__num .count { color: var(--red); }
.stats .stat__num .count { color: #ff5a63; }
.stat__label {
  margin: 4px 0 0;
  color: #c9c9c9;
  font-size: 14.5px;
  font-weight: 500;
}

/* ---------- Sections allgemein ---------- */
.section-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-kicker--light { color: #ffb3b7; }
.section-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.015em;
}
.section-title--light { color: #fff; }
.section-lead {
  margin: 0 0 44px;
  max-width: 62ch;
  color: var(--gray);
  font-size: 17.5px;
}
.section-lead--light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Geschäftsfelder ---------- */
.fields { padding: 84px 0; }
.fields__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.field {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.field:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 6, 19, 0.4);
}
.field__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.09);
  margin-bottom: 18px;
}
.field__icon svg { width: 28px; height: 28px; fill: var(--red); }
.field h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.field p { margin: 0 0 14px; color: var(--gray); font-size: 14.5px; }
.field__link { font-weight: 700; font-size: 14.5px; }
.field__link:hover { text-decoration: none; }
.field__link span { display: inline-block; transition: transform 0.15s ease; }
.field__link:hover span { transform: translateX(4px); }

/* ---------- Verbund ---------- */
.verbund {
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
    var(--ink);
  color: #e8e8e8;
  padding: 84px 0;
}

.org {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}
.org__tier { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.org__box {
  background: #2c2c2e;
  border: 1px solid #444446;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  min-width: 140px;
}
.org__box--top {
  background: var(--red);
  border-color: var(--red);
  font-size: 18px;
  font-weight: 900;
  padding: 18px 40px;
}
.org__box--base {
  background: transparent;
  border-style: dashed;
  border-color: #5a5a5e;
  color: #c9c9c9;
}
.org__line {
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: linear-gradient(#5a5a5e, #8a8a8e);
  position: relative;
}
.org__tier--mid { position: relative; }

.verbund__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  border-top: 3px solid var(--red);
  padding-top: 18px;
}
.value h3 { margin: 0 0 8px; color: #fff; font-size: 18px; font-weight: 800; }
.value p { margin: 0; color: #b9b9b9; font-size: 14.5px; }

/* ---------- Newsroom ---------- */
.news { padding: 84px 0; background: var(--bg-soft); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__meta {
  margin: 0;
  color: var(--gray-mid);
  font-size: 13px;
  font-weight: 600;
}
.card__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.32; }
.card__text { margin: 0; color: var(--gray); font-size: 14.5px; flex: 1; }
.card__link { font-weight: 700; font-size: 14.5px; }
.card__link:hover { text-decoration: none; }
.card__link span { display: inline-block; transition: transform 0.15s ease; }
.card__link:hover span { transform: translateX(4px); }
.news__more { text-align: center; margin-top: 40px; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(115deg, var(--red-deep) 0%, var(--red) 70%, #ff4d42 120%);
  color: #fff;
  padding: 68px 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta__title { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.cta__text { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, 0.92); }

/* ---------- Footer ---------- */
.footer { background: #141415; color: #c4c4c4; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding: 60px 20px 44px;
}
.brand--footer { color: #fff; margin-bottom: 18px; }
.footer__addr { font-size: 14.5px; line-height: 1.7; margin: 0; }
.footer__addr a { color: #fff; }
.footer__heading {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer__heading::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--red);
  margin-top: 8px;
}
.footer__col > a {
  display: block;
  color: #c4c4c4;
  font-size: 14.5px;
  padding: 4px 0;
}
.footer__col > a:hover { color: #fff; text-decoration: none; }

.subfooter { border-top: 1px solid #333335; padding: 20px 0; font-size: 13px; }
.subfooter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.subfooter__links { display: flex; flex-wrap: wrap; gap: 18px; }
.subfooter__links a { color: #c4c4c4; }
.subfooter__links a:hover { color: #fff; }
.subfooter__note { margin: 0; color: var(--gray-mid); }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .fields__grid, .news__grid, .verbund__values { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .header__cta { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    margin: 0;
    padding: 16px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    visibility: hidden;
    z-index: 90;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link { padding: 15px 10px; font-size: 17px; border-radius: var(--radius); }
}

@media (max-width: 600px) {
  .fields__grid, .news__grid, .verbund__values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .hero__inner { padding: 80px 20px 90px; }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
