:root {
  --navy: #173348;
  --navy-deep: #0f2637;
  --navy-soft: #27495f;

  --green: #72d23f;
  --teal: #21bf8d;
  --cyan: #0097d7;

  --ink: #17313f;
  --muted: #60717b;
  --line: #dce7eb;

  --surface: #ffffff;
  --surface-soft: #f5f9fa;
  --surface-tint: #eef7f7;

  --shadow-sm:
    0 10px 30px rgba(23, 51, 72, 0.08);

  --shadow-md:
    0 22px 60px rgba(23, 51, 72, 0.13);

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;

  --container: 1180px;
  --header-h: 84px;
}


/* -------------------------------------------------------
   BASIS
------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top:
    calc(var(--header-h) + 16px);
}

body {
  margin: 0;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--ink);
  background: var(--surface);

  line-height: 1.65;

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color:
    transparent;
}


/* -------------------------------------------------------
   SKIP LINK
------------------------------------------------------- */

.skip-link {
  position: fixed;

  top: 10px;
  left: 10px;

  z-index: 9999;

  padding: 10px 14px;

  border-radius: 10px;

  background: #fff;
  color: var(--navy);

  box-shadow: var(--shadow-sm);

  transform:
    translateY(-150%);
}

.skip-link:focus {
  transform:
    translateY(0);
}


/* -------------------------------------------------------
   CONTAINER / SECTIONS
------------------------------------------------------- */

.container {
  width:
    min(
      var(--container),
      calc(100% - 40px)
    );

  margin: 0 auto;
}

.section {
  padding: 108px 0;

  position: relative;

  overflow: clip;
}

.section-light {
  background:
    var(--surface-soft);
}

.section-heading {
  max-width: 760px;

  margin-bottom: 54px;
}

.eyebrow {
  margin:
    0 0 12px;

  color: var(--cyan);

  font-size: 0.79rem;
  font-weight: 800;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


/* -------------------------------------------------------
   TYPOGRAFIE
------------------------------------------------------- */

h1,
h2,
h3 {
  margin-top: 0;

  color: var(--navy);

  line-height: 1.08;
}

h1 {
  font-size:
    clamp(
      3.2rem,
      7vw,
      6.8rem
    );

  /*
   * Etwas weniger negatives Letter-Spacing.
   * Verhindert das Abschneiden von Buchstaben
   * und Satzzeichen.
   */
  letter-spacing: -0.04em;
}

h2 {
  font-size:
    clamp(
      2.2rem,
      4.2vw,
      4.2rem
    );

  letter-spacing:
    -0.04em;
}

h3 {
  font-size: 1.15rem;

  letter-spacing:
    -0.015em;
}

p {
  margin:
    0 0 1.15em;
}


/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */

.site-header {
  position: fixed;

  inset:
    0 0 auto 0;

  z-index: 1000;

  height:
    var(--header-h);

  background:
    rgba(
      255,
      255,
      255,
      0.86
    );

  border-bottom:
    1px solid
    rgba(
      23,
      51,
      72,
      0.08
    );

  backdrop-filter:
    blur(18px)
    saturate(160%);

  transition:
    height 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.site-header.scrolled {
  height: 70px;

  box-shadow:
    0 8px 30px
    rgba(
      23,
      51,
      72,
      0.08
    );

  background:
    rgba(
      255,
      255,
      255,
      0.95
    );
}

.nav-shell {
  width:
    min(
      var(--container),
      calc(100% - 40px)
    );

  height: 100%;

  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 26px;
}

.brand {
  flex:
    0 0 auto;

  display: flex;
  align-items: center;

  text-decoration: none;
}

.brand img {
  width: 220px;

  max-height: 64px;

  object-fit: contain;

  object-position:
    left center;
}


/* -------------------------------------------------------
   NAVIGATION
------------------------------------------------------- */

.main-nav {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 21px;
}

.main-nav a {
  text-decoration: none;

  color: #3c505b;

  font-size: 0.91rem;
  font-weight: 650;

  transition:
    color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cyan);
}

.main-nav .nav-cta {
  padding:
    10px 16px;

  color: #fff;

  border-radius: 999px;

  background:
    linear-gradient(
      120deg,
      var(--green),
      var(--teal),
      var(--cyan)
    );

  box-shadow:
    0 10px 24px
    rgba(
      0,
      151,
      215,
      0.16
    );
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta.active {
  color: #fff;

  filter:
    brightness(0.96);
}


/* -------------------------------------------------------
   MOBILE MENU BUTTON
------------------------------------------------------- */

.menu-toggle {
  display: none;

  width: 46px;
  height: 46px;

  padding: 11px;

  border: 0;

  border-radius: 14px;

  background:
    var(--surface-soft);

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  height: 2px;

  margin:
    5px 0;

  background:
    var(--navy);

  border-radius: 4px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.open
span:nth-child(1) {
  transform:
    translateY(7px)
    rotate(45deg);
}

.menu-toggle.open
span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open
span:nth-child(3) {
  transform:
    translateY(-7px)
    rotate(-45deg);
}


/* -------------------------------------------------------
   HERO
------------------------------------------------------- */

.hero {
  min-height: 92vh;

  padding:
    calc(
      var(--header-h) + 70px
    )
    0
    90px;

  display: flex;
  align-items: center;

  position: relative;

  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #f6fafb 100%
    );

  overflow: hidden;
}

.hero-media {
  position: absolute;

  inset: 0;

  background:
    url(
      'https://bjoernklattig.de/media/header.png'
    )
    center /
    cover
    no-repeat;

  opacity: 0.10;

  filter:
    saturate(0.7)
    contrast(0.8);
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at 80% 24%,
      rgba(
        114,
        210,
        63,
        0.12
      ),
      transparent 28%
    ),
    radial-gradient(
      circle at 72% 42%,
      rgba(
        0,
        151,
        215,
        0.10
      ),
      transparent 34%
    ),
    linear-gradient(
      90deg,
      rgba(
        255,
        255,
        255,
        0.98
      )
      0 45%,
      rgba(
        255,
        255,
        255,
        0.78
      )
      70%,
      rgba(
        255,
        255,
        255,
        0.92
      )
      100%
    );
}

.hero-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    1.18fr
    0.82fr;

  gap: 72px;

  align-items: start;
}


/* -------------------------------------------------------
   HERO ÜBERSCHRIFT
------------------------------------------------------- */

.hero-copy {
  /*
   * Sicherheit gegen Clipping
   * innerhalb des Grid-Elements.
   */
  min-width: 0;

  overflow: visible;
}

.hero-copy h1 {
  overflow: visible;

  /*
   * Kleine Sicherheitszone für:
   *
   * Wissen weitergeben.
   * Praxis weiterdenken.
   *
   * insbesondere für Punkt und "s".
   */
  padding-right: 0.14em;
  padding-bottom: 0.07em;

  margin-right: -0.14em;
}

.hero-copy h1 span {
  /*
   * Inline-Block verhindert Clipping
   * beim Background-Clip.
   */
  display: inline-block;

  padding-right: 0.12em;
  padding-bottom: 0.05em;

  margin-right: -0.08em;

  background:
    linear-gradient(
      105deg,
      var(--green),
      var(--teal),
      var(--cyan)
    );

  -webkit-background-clip:
    text;

  background-clip:
    text;

  color: transparent;

  overflow: visible;

  -webkit-box-decoration-break:
    clone;

  box-decoration-break:
    clone;
}

.hero-lead {
  max-width: 700px;

  font-size:
    clamp(
      1.12rem,
      1.8vw,
      1.42rem
    );

  color: #4d626d;
}


/* -------------------------------------------------------
   HERO BUTTONS
------------------------------------------------------- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin:
    30px 0
    38px;
}

.button {
  display: inline-flex;

  justify-content: center;
  align-items: center;

  min-height: 50px;

  padding:
    0 22px;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 800;

  border:
    1px solid
    transparent;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform:
    translateY(-2px);
}

.button-primary {
  color: #fff;

  background:
    linear-gradient(
      115deg,
      var(--green),
      var(--teal),
      var(--cyan)
    );

  box-shadow:
    0 14px 28px
    rgba(
      0,
      151,
      215,
      0.18
    );
}

.button-ghost {
  border-color:
    rgba(
      23,
      51,
      72,
      0.18
    );

  background:
    rgba(
      255,
      255,
      255,
      0.6
    );

  color: var(--navy);
}

.button-ghost.light {
  border-color:
    rgba(
      255,
      255,
      255,
      0.30
    );

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  color: #fff;
}


/* -------------------------------------------------------
   HERO FACTS
------------------------------------------------------- */

.hero-facts {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 12px;

  max-width: 780px;
}

.hero-facts div {
  padding:
    16px 18px;

  border:
    1px solid
    rgba(
      23,
      51,
      72,
      0.08
    );

  border-radius: 18px;

  background:
    rgba(
      255,
      255,
      255,
      0.68
    );

  box-shadow:
    0 10px 28px
    rgba(
      23,
      51,
      72,
      0.05
    );
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  color: var(--navy);

  font-size: 1rem;
}

.hero-facts span {
  margin-top: 4px;

  color: var(--muted);

  font-size: 0.82rem;

  line-height: 1.35;
}


/* -------------------------------------------------------
   HERO ICON UND EKG
------------------------------------------------------- */

.hero-card {
  position: relative;
  align-self: start;
  margin-top: 42px;
}

.hero-logo-panel {
  min-height: 470px;

  display: grid;

  place-items: center;

  padding:
    46px
    42px
    118px;

  border:
    1px solid
    rgba(
      23,
      51,
      72,
      0.08
    );

  border-radius: 40px;

  background:
    linear-gradient(
      145deg,
      rgba(
        255,
        255,
        255,
        0.9
      ),
      rgba(
        240,
        248,
        249,
        0.72
      )
    );

  box-shadow:
    var(--shadow-md);

  position: relative;

  overflow: hidden;
}

.hero-logo-panel::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background:
    linear-gradient(
      120deg,
      rgba(
        114,
        210,
        63,
        0.18
      ),
      rgba(
        0,
        151,
        215,
        0.14
      )
    );

  filter:
    blur(4px);

  transform:
    translate(
      28%,
      -28%
    );
}

.hero-logo-panel img {
  position: relative;

  z-index: 2;
}

/*
 * icon.svg bewusst größer.
 */
.hero-logo-panel .hero-icon {
  width:
    min(
      68%,
      280px
    );

  max-height: 280px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 16px 28px
      rgba(
        23,
        51,
        72,
        0.10
      )
    );
}

.pulse-line {
  position: absolute;

  left: 7%;
  right: 7%;

  bottom: 32px;

  height: 94px;

  opacity: 0.96;

  z-index: 3;

  overflow: hidden;
}

.pulse-line svg {
  width: 100%;
  height: 100%;

  display: block;

  overflow: hidden;
}

/*
 * Keine eigene CSS-Zeichenanimation mehr.
 *
 * Die Monitoranimation übernimmt app.js.
 */
.pulse-line path {
  fill: none;

  stroke:
    url(#pulseGradient);

  stroke-width: 4.6;

  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: 1;

  animation: none;

  vector-effect:
    non-scaling-stroke;
}


/* -------------------------------------------------------
   ÜBER MICH
------------------------------------------------------- */

.about-grid {
  display: grid;

  grid-template-columns:
    0.9fr
    1.1fr;

  gap: 86px;

  align-items: center;
}

.portrait-stack {
  position: relative;

  min-height: 640px;
}

.portrait {
  margin: 0;

  overflow: hidden;

  background: #dfe9ec;

  box-shadow:
    var(--shadow-md);
}

.portrait img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.portrait-main {
  width: 76%;
  height: 600px;

  border-radius: 36px;
}

.portrait-small {
  position: absolute;

  right: 0;
  bottom: 26px;

  width: 42%;

  aspect-ratio:
    4 / 5;

  border:
    8px solid
    var(--surface-soft);

  border-radius: 26px;
}

.about-copy p {
  color: #4d616b;

  font-size: 1.03rem;
}

.about-callout {
  margin-top: 26px;

  padding:
    22px 24px;

  display: flex;

  gap: 14px;

  align-items:
    flex-start;

  border:
    1px solid
    rgba(
      0,
      151,
      215,
      0.14
    );

  border-radius: 20px;

  background: #fff;

  box-shadow:
    var(--shadow-sm);
}

.about-callout p {
  margin: 0;
}

.callout-dot {
  width: 12px;
  height: 12px;

  flex: 0 0 auto;

  margin-top: 8px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--green),
      var(--cyan)
    );

  box-shadow:
    0 0 0 7px
    rgba(
      0,
      151,
      215,
      0.07
    );
}


/* -------------------------------------------------------
   TIMELINE
------------------------------------------------------- */

.timeline-section {
  background: #fff;
}

.timeline {
  position: relative;

  max-width: 920px;

  margin: 0 auto;

  padding: 2px 0;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 50%;

  top: 20px;
  bottom: 20px;

  width: 3px;

  transform:
    translateX(-50%);

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      var(--cyan),
      var(--teal),
      var(--green)
    );

  opacity: 0.6;
}

.timeline-start,
.timeline-end {
  position: relative;

  z-index: 2;

  display: flex;

  justify-content: center;

  margin:
    2px 0 10px;
}

.timeline-start span,
.timeline-end span {
  padding:
    7px 17px;

  border-radius: 999px;

  color: #fff;

  font-size: 0.80rem;

  font-weight: 900;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  background:
    var(--navy);

  box-shadow:
    0 8px 22px
    rgba(
      23,
      51,
      72,
      0.16
    );
}

.timeline-end {
  margin:
    10px 0 0;
}

.timeline-end span {
  background:
    linear-gradient(
      110deg,
      var(--green),
      var(--teal),
      var(--cyan)
    );
}

/*
 * Bewusst kompakter als zuvor.
 */
.timeline-item {
  width: 50%;

  position: relative;

  padding:
    0
    34px
    5px
    0;
}

.timeline-item:nth-of-type(even) {
  margin-left: 50%;

  padding:
    0
    0
    5px
    34px;
}

.timeline-dot {
  position: absolute;

  top: 12px;

  right: -6px;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  background:
    var(--surface);

  border:
    3px solid
    var(--cyan);

  box-shadow:
    0 0 0 5px
    rgba(
      0,
      151,
      215,
      0.07
    );
}

.timeline-item:nth-of-type(even)
.timeline-dot {
  right: auto;

  left: -6px;
}

.timeline-card {
  min-height: 44px;

  padding:
    10px 14px;

  border:
    1px solid
    var(--line);

  border-radius: 15px;

  background: #fff;

  box-shadow:
    0 6px 18px
    rgba(
      23,
      51,
      72,
      0.045
    );

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.timeline-card:hover {
  transform:
    translateY(-2px);

  box-shadow:
    var(--shadow-sm);
}

.timeline-card h3 {
  margin: 0;

  font-size: 0.94rem;

  line-height: 1.23;
}

.timeline-card p {
  margin:
    3px 0 0;

  color: var(--muted);

  font-size: 0.81rem;

  line-height: 1.35;
}

.timeline-year {
  display: inline-block;

  margin-bottom: 2px;

  color: var(--cyan);

  font-size: 0.70rem;

  font-weight: 900;

  letter-spacing: 0.10em;
}


/* -------------------------------------------------------
   AUS- UND FORTBILDUNG
------------------------------------------------------- */

.training-section {
  background:
    linear-gradient(
      155deg,
      #0f2637 0%,
      #173348 55%,
      #173f55 100%
    );

  color:
    rgba(
      255,
      255,
      255,
      0.82
    );
}

.training-section::before {
  content: "";

  position: absolute;

  inset:
    auto
    -15%
    -35%
    auto;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(
        0,
        151,
        215,
        0.18
      ),
      transparent 66%
    );
}

.training-brand {
  max-width: 760px;

  margin-bottom: 52px;

  padding:
    24px 28px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );

  border-radius: 24px;

  background:
    var(--navy-deep);

  box-shadow:
    0 18px 46px
    rgba(
      0,
      0,
      0,
      0.22
    );
}

.training-grid {
  position: relative;

  z-index: 2;
}

.training-intro {
  max-width: 760px;

  margin-bottom: 42px;
}

.training-intro h2 {
  color: #fff;
}

.training-intro p {
  color:
    rgba(
      255,
      255,
      255,
      0.72
    );
}

.training-section .eyebrow {
  color: #70d4ef;
}

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 18px;
}

.service-card {
  padding:
    26px 24px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );

  border-radius: 22px;

  background:
    rgba(
      255,
      255,
      255,
      0.055
    );

  backdrop-filter:
    blur(8px);

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.service-card:hover {
  transform:
    translateY(-4px);

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );
}

.service-card > span {
  display: block;

  margin-bottom: 28px;

  color: #67d7e9;

  font-size: 0.77rem;

  font-weight: 900;

  letter-spacing: 0.12em;
}

.service-card h3 {
  color: #fff;

  font-size: 1.2rem;
}

.service-card p {
  margin: 0;

  color:
    rgba(
      255,
      255,
      255,
      0.68
    );
}


/* -------------------------------------------------------
   GRAFIKDESIGN
------------------------------------------------------- */

.design-grid {
  display: grid;

  grid-template-columns:
    1fr
    0.9fr;

  gap: 72px;

  align-items: center;
}

.design-copy p {
  color: #4d616b;
}

.design-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 24px;
}

.design-tags span {
  padding:
    8px 12px;

  border:
    1px solid
    rgba(
      23,
      51,
      72,
      0.11
    );

  border-radius: 999px;

  background: #fff;

  color: var(--navy);

  font-size: 0.82rem;

  font-weight: 750;
}

.design-visual {
  margin: 0;

  padding: 22px;

  border:
    1px solid
    var(--line);

  border-radius: 30px;

  background: #fff;

  box-shadow:
    var(--shadow-md);
}

.design-visual img {
  width: 100%;

  border-radius: 18px;
}


/* -------------------------------------------------------
   EHRENAMT
------------------------------------------------------- */

.volunteer-section {
  background: #fff;
}

.volunteer-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 20px;
}

.volunteer-card {
  display: grid;

  grid-template-columns:
    112px
    1fr;

  gap: 22px;

  align-items: center;

  padding: 24px;

  border:
    1px solid
    var(--line);

  border-radius: 24px;

  background: #fff;

  text-decoration: none;

  box-shadow:
    0 10px 30px
    rgba(
      23,
      51,
      72,
      0.05
    );

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.volunteer-card:hover {
  transform:
    translateY(-4px);

  box-shadow:
    var(--shadow-md);

  border-color:
    rgba(
      0,
      151,
      215,
      0.22
    );
}

.volunteer-logo {
  aspect-ratio: 1;

  display: grid;

  place-items: center;

  padding: 12px;

  border-radius: 18px;

  background:
    var(--surface-soft);
}

.volunteer-logo img {
  max-height: 86px;

  object-fit: contain;
}

.volunteer-card h3 {
  margin-bottom: 8px;
}

.volunteer-card p {
  color: var(--muted);

  font-size: 0.9rem;

  line-height: 1.5;
}

.volunteer-card span {
  color: var(--cyan);

  font-size: 0.8rem;

  font-weight: 850;
}


/* -------------------------------------------------------
   MITGLIEDSCHAFTEN
------------------------------------------------------- */

.membership-section {
  background:
    var(--surface-soft);
}

.bvbrw-feature {
  display: grid;

  grid-template-columns:
    300px
    1fr;

  gap: 38px;

  align-items: center;

  margin-bottom: 34px;

  padding: 28px;

  border:
    1px solid
    var(--line);

  border-radius: 28px;

  background: #fff;

  box-shadow:
    var(--shadow-sm);
}

.bvbrw-photo {
  width: 100%;

  aspect-ratio:
    1 / 1;

  object-fit: cover;

  border-radius: 22px;

  background: #e8eff2;
}

.bvbrw-feature h3 {
  font-size:
    clamp(
      1.6rem,
      3vw,
      2.6rem
    );

  margin-bottom: 12px;
}

.bvbrw-feature
p:not(.eyebrow) {
  color: var(--muted);
}

.text-link {
  color: var(--cyan);

  font-weight: 850;

  text-decoration: none;
}

.logo-wall {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 16px;
}

.logo-card {
  min-height: 190px;

  display: grid;

  place-items: center;

  align-content: center;

  gap: 18px;

  padding: 26px;

  border:
    1px solid
    var(--line);

  border-radius: 22px;

  background: #fff;

  text-decoration: none;

  box-shadow:
    0 8px 26px
    rgba(
      23,
      51,
      72,
      0.04
    );

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.logo-card:hover {
  transform:
    translateY(-4px);

  box-shadow:
    var(--shadow-sm);

  border-color:
    rgba(
      0,
      151,
      215,
      0.22
    );
}

.logo-card img {
  max-width: 180px;
  max-height: 95px;

  object-fit: contain;

  filter:
    saturate(0.92);
}

.logo-card span {
  color: var(--muted);

  font-size: 0.78rem;

  font-weight: 850;
}


/* -------------------------------------------------------
   KONTAKT
------------------------------------------------------- */

.contact-section {
  background: #fff;
}

.contact-card {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  gap: 34px;

  padding: 56px;

  border-radius: 34px;

  color:
    rgba(
      255,
      255,
      255,
      0.78
    );

  background:
    linear-gradient(
      125deg,
      var(--navy-deep),
      var(--navy),
      #1f526a
    );

  box-shadow:
    var(--shadow-md);

  position: relative;

  overflow: hidden;
}

.contact-card::after {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  right: -100px;
  top: -150px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      rgba(
        114,
        210,
        63,
        0.34
      ),
      rgba(
        0,
        151,
        215,
        0.30
      )
    );

  filter:
    blur(4px);
}

.contact-card > * {
  position: relative;

  z-index: 2;
}

.contact-card h2 {
  color: #fff;

  max-width: 760px;
}

.contact-card p {
  max-width: 760px;

  margin-bottom: 0;
}

.contact-actions {
  flex:
    0 0 auto;

  display: flex;

  gap: 10px;

  flex-wrap: wrap;
}


/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

.site-footer {
  padding:
    38px 0;

  background:
    var(--navy-deep);

  color:
    rgba(
      255,
      255,
      255,
      0.70
    );
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1fr
    auto
    auto;

  gap: 30px;

  align-items: center;
}

.footer-brand img {
  width: 170px;

  max-height: 52px;

  object-fit: contain;

  object-position:
    left center;

  filter:
    brightness(0)
    invert(1);

  opacity: 0.94;
}

.footer-brand p {
  margin:
    8px 0 0;

  font-size: 0.82rem;
}

.footer-links {
  display: flex;

  gap: 18px;
}

.footer-links a {
  color: #fff;

  text-decoration: none;

  font-size: 0.86rem;
}

.footer-copy {
  margin: 0;

  font-size: 0.82rem;
}


/* -------------------------------------------------------
   IMPRESSUM UND DATENSCHUTZ
------------------------------------------------------- */

.legal-page {
  background:
    var(--surface-soft);

  min-height: 100vh;
}

.legal-hero {
  padding:
    calc(
      var(--header-h) + 70px
    )
    0
    38px;
}

.legal-hero h1 {
  font-size:
    clamp(
      2.5rem,
      5vw,
      4.8rem
    );
}

.legal-content {
  padding:
    0 0 90px;
}

.legal-card {
  max-width: 900px;

  padding: 44px;

  border:
    1px solid
    var(--line);

  border-radius: 28px;

  background: #fff;

  box-shadow:
    var(--shadow-sm);

  scroll-margin-top:
    calc(
      var(--header-h) + 24px
    );
}

.legal-card h2 {
  margin-top: 34px;

  font-size: 1.5rem;

  letter-spacing:
    -0.02em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #4d616b;
}

.legal-intro {
  max-width: 720px;

  color: var(--muted);

  font-size: 1.05rem;
}

.legal-card-spaced {
  margin-top: 28px;
}

.legal-card a {
  color: var(--cyan);

  text-underline-offset: 3px;
}

.legal-warning {
  margin:
    0 0 26px;

  padding:
    18px 20px;

  border-radius: 16px;

  border:
    1px solid
    #f0cc75;

  background:
    #fff9e8;

  color:
    #6b5728;
}

.placeholder {
  display: inline-block;

  padding:
    2px 7px;

  border-radius: 6px;

  background:
    #fff1b8;

  color:
    #584411;

  font-weight: 800;
}


/* -------------------------------------------------------
   REVEAL ANIMATION
------------------------------------------------------- */

.reveal {
  opacity: 0;

  transform:
    translateY(24px);

  transition:
    opacity
    0.7s
    cubic-bezier(
      0.2,
      0.7,
      0.2,
      1
    ),
    transform
    0.7s
    cubic-bezier(
      0.2,
      0.7,
      0.2,
      1
    );
}

.reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);
}

.reveal-delay {
  transition-delay:
    0.12s;
}


/* -------------------------------------------------------
   TABLET / KLEINER DESKTOP
------------------------------------------------------- */

@media
(max-width: 1080px) {

  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .hero-grid {
    grid-template-columns:
      1fr
      0.72fr;

    gap: 40px;
  }

  .service-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .volunteer-grid {
    grid-template-columns:
      1fr;
  }

  .volunteer-card {
    grid-template-columns:
      100px
      1fr;
  }
}


/* -------------------------------------------------------
   TABLET / MOBILE NAVIGATION
------------------------------------------------------- */

@media
(max-width: 900px) {

  :root {
    --header-h: 74px;
  }

  .menu-toggle {
    display: block;

    margin-left: auto;
  }

  .main-nav {
    position: fixed;

    top: 74px;

    left: 16px;
    right: 16px;

    display: grid;

    gap: 4px;

    padding: 16px;

    border:
      1px solid
      var(--line);

    border-radius: 20px;

    background:
      rgba(
        255,
        255,
        255,
        0.98
      );

    box-shadow:
      var(--shadow-md);

    transform:
      translateY(-18px);

    opacity: 0;

    pointer-events: none;

    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .site-header.scrolled
  .main-nav {
    top: 70px;
  }

  .main-nav.open {
    opacity: 1;

    transform:
      translateY(0);

    pointer-events: auto;
  }

  .main-nav a {
    padding:
      11px 13px;

    border-radius: 12px;

    font-size: 0.95rem;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background:
      var(--surface-soft);
  }

  .main-nav .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;

    padding-top:
      calc(
        var(--header-h) + 48px
      );
  }

  .hero-grid {
    grid-template-columns:
      1fr;
  }

  .hero-card {
    max-width: 620px;

    width: 100%;
  }

  .hero-logo-panel {
    min-height: 370px;
  }

  .about-grid,
  .design-grid {
    grid-template-columns:
      1fr;

    gap: 46px;
  }

  .portrait-stack {
    min-height: 560px;

    max-width: 650px;
  }

  .portrait-main {
    height: 520px;
  }

  .bvbrw-feature {
    grid-template-columns:
      220px
      1fr;
  }

  .logo-wall {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .contact-card {
    align-items:
      flex-start;

    flex-direction: column;

    padding: 42px;
  }

  .footer-grid {
    grid-template-columns:
      1fr;
  }
}


/* -------------------------------------------------------
   SMARTPHONE
------------------------------------------------------- */

@media
(max-width: 680px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--container)
      );
  }

  .section {
    padding:
      78px 0;
  }

  .brand img {
    width: 145px;
  }

  h1 {
    font-size:
      clamp(
        2.75rem,
        15vw,
        4.8rem
      );

    letter-spacing:
      -0.035em;
  }

  h2 {
    font-size:
      clamp(
        2rem,
        10vw,
        3.3rem
      );
  }

  /*
   * Zusätzlicher Schutz vor Clipping
   * auf kleinen Displays.
   */
  .hero-copy h1 {
    line-height: 1.06;

    padding-right: 0.16em;
    padding-bottom: 0.08em;

    margin-right: -0.12em;
  }

  .hero-copy h1 span {
    padding-right: 0.14em;

    margin-right: -0.08em;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(
          255,
          255,
          255,
          0.97
        ),
        rgba(
          255,
          255,
          255,
          0.88
        )
      );
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-logo-panel {
    min-height: 320px;

    padding:
      28px
      24px
      94px;

    border-radius: 28px;
  }

  /*
   * icon.svg auch mobil größer.
   */
  .hero-logo-panel
  .hero-icon {
    width:
      min(
        62%,
        195px
      );

    max-height: 195px;
  }

  .pulse-line {
    left: 5%;
    right: 5%;

    bottom: 22px;

    height: 78px;
  }

  .hero-facts {
    grid-template-columns:
      1fr;
  }

  .hero-actions
  .button {
    width: 100%;
  }

  .portrait-stack {
    min-height: 460px;
  }

  .portrait-main {
    width: 84%;

    height: 430px;

    border-radius: 26px;
  }

  .portrait-small {
    width: 43%;

    border-width: 5px;

    border-radius: 20px;
  }

  /*
   * Timeline mobil.
   */
  .timeline::before {
    left: 10px;

    transform: none;
  }

  .timeline-start,
  .timeline-end {
    justify-content:
      flex-start;

    padding-left: 0;
  }

  .timeline-start span,
  .timeline-end span {
    margin-left: 0;
  }

  .timeline-item,
  .timeline-item:nth-of-type(even) {
    width: 100%;

    margin-left: 0;

    padding:
      0
      0
      5px
      34px;
  }

  .timeline-dot,
  .timeline-item:nth-of-type(even)
  .timeline-dot {
    left: 5px;

    right: auto;
  }

  .timeline-card {
    border-radius: 15px;

    padding:
      10px 13px;
  }

  .training-brand {
    padding:
      15px 18px;

    border-radius: 18px;
  }

  .service-grid {
    grid-template-columns:
      1fr;
  }

  .volunteer-card {
    grid-template-columns:
      78px
      1fr;

    padding: 18px;

    gap: 16px;
  }

  .volunteer-logo {
    padding: 8px;
  }

  .bvbrw-feature {
    grid-template-columns:
      1fr;

    padding: 20px;
  }

  .bvbrw-photo {
    max-width: 250px;
  }

  .logo-wall {
    grid-template-columns:
      1fr
      1fr;

    gap: 10px;
  }

  .logo-card {
    min-height: 150px;

    padding: 18px;
  }

  .logo-card img {
    max-width: 130px;

    max-height: 72px;
  }

  .contact-card {
    padding:
      30px 24px;

    border-radius: 26px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions
  .button {
    width: 100%;
  }

  .legal-card {
    padding:
      26px 22px;

    border-radius: 22px;
  }
}


/* -------------------------------------------------------
   SEHR KLEINE SMARTPHONES
------------------------------------------------------- */

@media
(max-width: 420px) {

  h1 {
    font-size:
      clamp(
        2.55rem,
        14.5vw,
        3.7rem
      );

    letter-spacing:
      -0.03em;
  }

  .hero-copy h1 {
    line-height: 1.07;

    padding-right: 0.18em;
  }

  .hero-copy h1 span {
    padding-right: 0.16em;
  }

  .hero-logo-panel {
    min-height: 290px;
  }

  .hero-logo-panel
  .hero-icon {
    width:
      min(
        64%,
        180px
      );
  }

  .logo-wall {
    grid-template-columns:
      1fr;
  }
}


/* -------------------------------------------------------
   REDUCED MOTION
------------------------------------------------------- */

@media
(prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }
}


/* -------------------------------------------------------
   NAVIGATION AUF IMPRESSUM / DATENSCHUTZ
------------------------------------------------------- */

.legal-nav {
  display:
    flex !important;

  opacity:
    1 !important;

  pointer-events:
    auto !important;

  position:
    static !important;

  transform:
    none !important;

  background:
    none !important;

  border:
    0 !important;

  box-shadow:
    none !important;

  padding:
    0 !important;
}


@media
(max-width: 900px) {

  .legal-nav {
    display:
      flex !important;

    flex-direction: row;

    gap: 8px;

    margin-left: auto;
  }

  .legal-nav a {
    padding:
      9px 10px;

    font-size: 0.86rem;
  }
}


@media
(max-width: 520px) {

  .legal-nav
  a:first-child {
    display: none;
  }
}