/* ---------- Fonts ---------- */
@font-face {
  font-family: "Magnesium";
  src: url("fonts/Magnesium MVB Regular.otf");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #1b3f7b;
  --navy-deep: #081f3d;
  --blue: #12488c;
  --blue-mid: #1b56a3;
  --ink: #0b2a4f;
  --bg: #f4f6fa;
  --line: #dfe6ee;
  --paper: #ffffff;
  --muted: #5c7089;
  --font-display: "Magnesium", Impact, "Arial Narrow", sans-serif;
  --font-label: "Oswald", Arial, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --column-w: url("assets/graphics/column-white.png");
  --column-n: url("assets/graphics/column-navy.png");
  --akt-right-w: url("assets/graphics/akt-right-white.png");
  --akt-right-n: url("assets/graphics/akt-right-navy.png");
  --termine-right-w: url("assets/graphics/termine-right-white.png");
  --termine-right-n: url("assets/graphics/termine-right-navy.png");
  --weitere-left-w: url("assets/graphics/weitere-left-white.png");
  --weitere-left-n: url("assets/graphics/weitere-left-navy.png");
  --footer-left-w: url("assets/graphics/footer-left-white.png");
  --footer-left-n: url("assets/graphics/footer-left-navy.png");
  --footer-right-w: url("assets/graphics/footer-right-white.png");
  --footer-right-n: url("assets/graphics/footer-right-navy.png");
}

/* ---------- Graphic accents (organic fragments cropped from design reference / sprite, fade baked in) ---------- */

/* full-height dense stripe column, e.g. Aktuelles left edge (fades toward content on its own) */
.edge-column {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  background-repeat: repeat-y;
  background-size: 70px auto;
  pointer-events: none;
}
.edge-column.white {
  background-image: var(--column-w);
}
.edge-column.navy {
  background-image: var(--column-n);
}

/* single corner fragment, fade already baked into the asset - just position it */
.gfx {
  position: absolute;
  width: 300px;
  height: 300px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.gfx.tl {
  top: 0;
  left: 0;
}
.gfx.tr {
  top: 0;
  right: 0;
}
.gfx.small {
  width: 200px;
  height: 200px;
}
.gfx.akt-right.navy {
  background-image: var(--akt-right-n);
}
.gfx.termine-right.navy {
  background-image: var(--termine-right-n);
}
.gfx.weitere-left.navy {
  background-image: var(--weitere-left-n);
}
.gfx.footer-left.white {
  background-image: var(--footer-left-w);
}
.gfx.footer-right.white {
  background-image: var(--footer-right-w);
}

/* Layered display headline: outlined echo behind a solid line, poster-style */
.stack-title {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.stack-title {
  --stroke-color: var(--navy);
}
.stack-title:before {
  content: attr(data-text);
  position: absolute;
  left: -0.1em;
  top: -0.4em;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke-color);
  text-stroke: 1.5px var(--stroke-color);
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0;
}

.c {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  /* position: sticky; */
  position:relative;
  top: 0;
  z-index: 20;
  background: var(--paper);
  /* border-bottom: 1px solid var(--line); */
}
.site-header:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-dark);
  pointer-events: none;
}
.site-header .gfx {
  width: 130px;
  height: 130px;
}
.nav {
  position: relative;
  z-index: 1;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  position:relative;
}
.crest {
  height: 119px;
  width: auto;
  top: 20px;
  position: relative;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-left: 10px;  
}
.brand-text strong {
  font: 700 20px/1.1 var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--navy);
}
.brand-text small {
  font: 500 11px var(--font-body);
  color: var(--muted);
  letter-spacing: 0.2px;
}
.menu {
  display: flex;
  gap: 26px;
}
.menu a {
  font: 600 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover {
  border-color: var(--blue-mid);
}
.nav-actions {
  display: flex;
  gap: 10px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.menu-btn {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  background: var(--paper);
  overflow: hidden;
  color: #fff;
}
.hero-media {
  clip-path: polygon(0 25px, 100% 0, 100% 100%, 0 100%);
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  mix-blend-mode: overlay;
  opacity: 0.7;
  pointer-events: none;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(
      100deg,
      #06213ef2 0%,
      #06213ec2 34%,
      #06213e55 62%,
      transparent 82%
    ),
    linear-gradient(0deg, #04162bcc 0%, transparent 30%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 64px 0 190px;
}
.hero-copy {
  max-width: 640px;
  transform: skewY(-5deg);
  transform-origin: left bottom;
}
.kicker {
  font: 700 26px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 0 0 14px;
  color: #fff;
}
.hero h1 {
  font: 400 clamp(52px, 7.4vw, 108px)/0.86 var(--font-display);
  text-transform: uppercase;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.hero .stack-title {
  --stroke-color: #fff;
}
.brush {
  display: block;
  height: 9px;
  width: 290px;
  background: #fff;
  border-radius: 2px;
  transform: skewX(-22deg);
}
.match-card {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 340px;
  padding: 26px 26px 24px;
  background: #0a2c53f5;
  border: 1px solid #ffffff26;
  border-radius: 8px;
}
.eyebrow {
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9fbde3;
  margin: 0 0 6px;
}
.match-card h3 {
  font: 400 26px var(--font-display);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.team span {
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: grid;
  place-items: center;
  font: 700 11px var(--font-label);
  color: #fff;
}
.vs {
  font: 600 11px var(--font-label);
  text-transform: uppercase;
  color: #9fbde3;
}
.datetime {
  margin: 18px 0 2px;
  font: 600 13px var(--font-body);
}
.venue {
  margin: 0 0 18px;
  font: 400 11px var(--font-body);
  color: #a9c1de;
}
.btn {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font: 700 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 4px;
}
.match-card .btn {
  display: block;
  text-align: center;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}
.head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.title {
  font: 400 42px/0.9 var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 14px;
}
.title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--blue-mid);
}
.link-more {
  font: 600 12px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-mid);
  white-space: nowrap;
}

/* Aktuelles */
.aktuelles {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.aktuelles .c {
  position: relative;
  z-index: 1;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.story {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}
.story-media {
  position: relative;
  height: 420px;
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #06213ee6 0%,
    #06213e33 55%,
    transparent 75%
  );
}
.pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 999px;
}
.story-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}
.story-copy h3 {
  font: 400 27px/1.08 var(--font-display);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.meta {
  font: 500 11px var(--font-body);
  color: #c3d3e7;
  letter-spacing: 0.2px;
}

/* Nächste Termine */
.fixtures {
  position: relative;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.fixtures::before {
  content: "";
  position: absolute;
  inset: 0;
    top: 0px;
    left: 0px;
  background-image: var(--noise-dark);
  pointer-events: none;
  content: "";
  position: absolute;
  background-size: 51% auto;
  background-position: 35% 61%;
  background-image: url('assets/graphics/bg-top.jpg');
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #fff;
}
.fixture-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.fixture {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 18px 46px;
}
.fixture .teams {
  margin: 18px 0 16px;
}
.fixture .logo {
  width: 38px;
  height: 38px;
}
.fixture .badge {
  width: 38px;
  height: 38px;
  font-size: 9px;
}
.fixture .team span {
  font-size: 9px;
}
.fixture .datetime {
  font: 700 11px var(--font-label);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.fixture .venue {
  font: 400 10.5px var(--font-body);
  color: var(--muted);
  margin: 4px 0 0;
}
.arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--blue-mid);
  font-size: 14px;
  border: 1px solid var(--line);
}
.mobile-only {
  display: none;
}

/* Weitere News */
.weitere {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.weitere .c {
  position: relative;
  z-index: 1;
}
.news4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mini img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
}
.mini .cat {
  display: block;
  margin-top: 14px;
  font: 700 10px var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-mid);
}
.mini h4 {
  font: 400 19px/1.12 var(--font-display);
  text-transform: uppercase;
  margin: 6px 0 6px;
}
.mini .meta {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}
.footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-light);
  pointer-events: none;
}
.ghost {
  position: absolute;
  right: -1.5rem;
  bottom: -16%;
  font: italic 400 min(22vw, 270px)/1 var(--font-display);
  transform: skewX(-8deg);
  pointer-events: none;
  white-space: nowrap;
  color: #ffffff12;
  filter: blur(1px);
}
.foot-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) 1fr;
  gap: 28px;
  padding-bottom: 52px;
  border-bottom: 1px solid #ffffff1f;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.foot-brand .crest {
  height: 70px;
  top: 0;
}
.foot-brand h2 {
  font: 400 34px/0.92 var(--font-display);
  text-transform: uppercase;
}
.foot-col h4 {
  font: 400 15px var(--font-display);
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #cfe0f5;
}
.foot-col a {
  display: block;
  font: 500 12px var(--font-body);
  color: #b7c9e0;
  margin: 9px 0;
}
.social {
  display: flex;
  gap: 12px;
}
.social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0;
}
.social svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social a:hover {
  color: #9fbde3;
}
.foot-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font: 500 11px var(--font-body);
  color: #94aacb;
}
.foot-legal {
  display: flex;
  gap: 18px;
}
.foot-legal a {
  color: #94aacb;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu {
    display: none;
  }
  .foot-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1/-1;
  }
}

@media (max-width: 900px) {
  .fixture-row {
    grid-template-columns: repeat(5, 240px);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }
  .fixture {
    scroll-snap-align: start;
  }
  .news4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .c {
    width: calc(100% - 32px);
  }
  .title .stack-title:before {
    display: none;
  }
  .nav {
    height: 68px;
    gap: 14px;
  }
  .crest {
    height: 104px
  }
  .brand-text small {
    display: none;
  }
  .menu-btn {
    display: grid;
  }

  .hero {
    min-height: auto;
  }
  .hero-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 24px;
  }
  .hero-media {
    position: relative;
    height: 340px;
    clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  }
  .hero:before {
    clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(0deg, #06213ef5, #06213e88 55%, #06213e33);
  }
  .hero-copy {
    position: relative;
    margin-top: -120px;
    z-index: 1;
    padding: 0 4px;
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 56px);
    letter-spacing: -1px;
  }
  .match-card {
    position: relative;
    inset: auto;
    width: auto;
    margin: 20px 4px 0;
    right: auto;
    bottom: auto;
  }

  .section {
    padding: 52px 0;
  }
  .title {
    font-size: 32px;
  }
  .head {
    align-items: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
  .story-media {
    height: 300px;
  }

  .fixture-row {
    grid-template-columns: repeat(5, 78vw);
  }
  .mobile-only.btn {
    display: block;
    margin-top: 22px;
    text-align: center;
    background: var(--blue-mid);
    color: #fff;
  }

  .news4 {
    grid-template-columns: 1fr;
  }
  .mini {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .mini img {
    width: 112px;
    aspect-ratio: 1/1;
    flex: none;
  }
  .mini h4 {
    font-size: 17px;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 36px;
  }
  .foot-brand h2 {
    font-size: 28px;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .ghost {
    font-size: 38vw;
    bottom: -6%;
  }

  .gfx {
    width: 160px;
    height: 160px;
  }
  .gfx.small {
    width: 120px;
    height: 120px;
  }
  .edge-column {
    width: 44px;
  }
}
