/* =============================================================================
   Iceman Charity – statische Website
   Eigenes Stylesheet, kein Framework. Farb- und Typo-Werte sind aus dem
   Original-Theme uebernommen, das Layout ist mit Grid/Flexbox neu gebaut.
============================================================================= */

/* -----------------------------------------------------------------------------
   Schriften – lokal eingebunden, keine Requests zu Google Fonts
-------------------------------------------------------------------------------- */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300 700; /* Variable Font */
  font-display: swap;
  src: url('../fonts/roboto-condensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/roboto-condensed-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -----------------------------------------------------------------------------
   Design-Tokens
-------------------------------------------------------------------------------- */
:root {
  --blue: #253b8d;
  --blue-dark: #1a2a65;
  --red: #e61c2a;
  --red-dark: #a8131d;
  --red-hover: #ba1520;

  --ink: #333;
  --ink-muted: #777;
  --line: #e2e2e2;
  --bg: #fff;
  --bg-alt: #f5f5f5;
  --hero-bg: #1a1c28;

  --font-head: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --header-h: 70px;
  --container: 1170px;
  --radius: 5px;
  --shadow-card: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* -----------------------------------------------------------------------------
   Basis
-------------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

/* Sichtbarer Fokus fuer Tastaturnutzung */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

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

.lead {
  font-size: 1.1875rem; /* 19px wie im Original */
  line-height: 1.5;
}

/* Nur fuer Screenreader */
.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;
}

/* Sprungmarke */
.skip-link {
  position: absolute;
  left: 15px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* Abschnittstitel mit roter Linie darunter */
.section-title {
  margin: 0 0 20px;
  font-size: 1.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  margin: 20px auto 0;
  background-color: var(--red);
}

.section-title--left::after {
  margin-left: 0;
  width: 150px;
}

.text-center {
  text-align: center;
}

/* -----------------------------------------------------------------------------
   Buttons
-------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn .icon {
  flex: none;
}

.btn--primary {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.btn--donation {
  background-color: var(--red);
  border-color: var(--red);
  color: #fff;
  border-radius: 12px;
}

.btn--donation:hover,
.btn--donation:focus-visible {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
  border-radius: 12px;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: #fff;
  color: var(--red);
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 10px 20px;
}

.btn--block {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn--block + .btn--block {
  margin-top: 6px;
}

.btn--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
  color: #fff;
}

.btn--facebook:hover,
.btn--facebook:focus-visible {
  background-color: #2d4373;
  border-color: #2d4373;
  color: #fff;
}

.btn--x {
  background-color: #111;
  border-color: #111;
  color: #fff;
}

.btn--x:hover,
.btn--x:focus-visible {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

.btn--whatsapp {
  background-color: #1ebea5;
  border-color: #1ebea5;
  color: #fff;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background-color: #17927f;
  border-color: #17927f;
  color: #fff;
}

/* -----------------------------------------------------------------------------
   Header / Navigation
-------------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 -1px 0 rgba(0, 0, 0, 0.06);
  font-family: var(--font-head);
  font-size: 0.9375rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.125rem;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand img {
  max-height: 50px;
  width: auto;
}

/* Burger-Button, nur mobil sichtbar */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #555;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  color: var(--ink);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  text-decoration: none;
}

/* Hervorgehobener Spenden-Eintrag */
.main-nav .nav-highlight a {
  background-color: var(--red);
  color: #fff;
  border-radius: 4px;
}

.main-nav .nav-highlight a:hover,
.main-nav .nav-highlight a:focus-visible {
  background-color: var(--red-hover);
  color: #fff;
}

/* Mobil: Panel unter dem Header */
@media (max-width: 991px) {
  .main-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .main-nav[data-open='true'] {
    display: block;
  }

  .main-nav > ul {
    padding: 8px 15px 16px;
  }

  .main-nav > ul > li > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-highlight a {
    margin-top: 10px;
    padding: 12px 16px;
    border-bottom: 0;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .main-nav > ul > li > a {
    padding: 8px 12px;
    border-radius: 4px;
  }
}

/* -----------------------------------------------------------------------------
   Seitenkopf der Unterseiten
-------------------------------------------------------------------------------- */
.page-header {
  display: flex;
  align-items: center;
  min-height: 30vh;
  padding: 40px 0;
  color: #fff;
  background-image:
    linear-gradient(to left, rgba(230, 28, 42, 0.7), rgba(37, 59, 141, 0.7)),
    url('../img/hero-donation-kids.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: 2.25rem;
}

.page-header .lead {
  margin: 0;
}

.breadcrumb {
  background-color: var(--bg-alt);
  font-size: 0.8125rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '/';
  padding: 0 5px;
  color: #ccc;
}

.breadcrumb a {
  color: var(--ink);
}

.breadcrumb a:hover {
  color: var(--red);
}

/* -----------------------------------------------------------------------------
   Hero
-------------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 46px 0 29px;
  color: #fff;
  text-align: center;
  background-color: var(--hero-bg);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-donation-kids.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 400;
  color: #fff;
}

.hero h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  margin: 18px auto 14px;
  background-color: rgba(255, 255, 255, 0.35);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Rotierende Slogans */
.slogans {
  position: relative;
  height: 2.2em;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}

.slogans li {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slogans li.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Ohne JS bzw. bei reduzierter Bewegung: erster Slogan steht fest */
.no-js .slogans li:first-child,
.slogans li:only-child {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .hero {
    padding: 93px 0 58px;
  }

  .slogans {
    font-size: 1.75rem;
  }
}

@media (min-width: 992px) {
  .hero {
    padding: 186px 0 114px;
  }

  .hero h1 {
    font-size: 2.625rem;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }
}

/* -----------------------------------------------------------------------------
   Intro-Abschnitte
-------------------------------------------------------------------------------- */
.intro {
  padding: 30px 0;
}

.intro__narrow {
  max-width: 940px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .intro {
    padding: 70px 0 34px;
  }
}

/* Medienpaar: Video + Bild */
.media-pair {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

@media (min-width: 992px) {
  .media-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.media-frame > video,
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------------------------------------------
   Teaser mit Portraitbild
-------------------------------------------------------------------------------- */
.teaser {
  position: relative;
  text-align: center;
}

.teaser__text .btn {
  margin: 15px 0 30px;
}

.teaser__image {
  position: static;
  padding: 120px 0;
  background: url('../img/volker-capito-founder.jpg') no-repeat center center;
  background-size: cover;
}

.teaser__caption {
  display: inline-block;
  margin: 40px;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: var(--font-head);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  color: #fff;
}

.teaser__caption span {
  font-weight: 300;
}

@media (min-width: 768px) {
  .teaser {
    padding: 45px 0;
    text-align: left;
  }

  .teaser__text {
    width: 45%;
  }

  .teaser__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    padding: 0;
    display: flex;
    align-items: flex-end;
  }
}

/* -----------------------------------------------------------------------------
   Projekte
-------------------------------------------------------------------------------- */
.projects {
  padding: 50px 0;
  background-color: var(--bg-alt);
}

.projects__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 40px 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* Der Infoblock ueberlappt das Bild – wie im Original */
.project-card__info {
  position: relative;
  width: 80%;
  margin: -30px 10% 0;
  padding: 20px 10px 10px;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.9375rem;
  flex: 1 0 auto;
}

.project-card__title {
  font-size: 1.3125rem;
  margin: 0 0 14px;
}

.project-card__info p {
  text-align: left;
  margin-bottom: 10px;
}

.project-card__footer {
  display: flex;
}

.project-card__footer a {
  flex: 1;
  padding: 0.618em 0;
  color: #fff;
  font-family: var(--font-head);
  text-transform: uppercase;
  text-align: center;
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}

.project-card__footer a:hover,
.project-card__footer a:focus-visible {
  background: #fff;
  color: var(--blue);
  text-decoration: none;
}

.project-card__footer .link-more {
  background-image: linear-gradient(to right, var(--blue) 0%, var(--blue-dark) 100%);
}

/* -----------------------------------------------------------------------------
   Unterseiten: Textspalte mit Teaser-Leiste
-------------------------------------------------------------------------------- */
.section {
  padding: 50px 0;
}

.page-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 767px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content h2 {
  margin-top: 30px;
  font-size: 1.5rem;
}

.page-content h3 {
  margin-top: 24px;
  font-size: 1.25rem;
}

.title-underline {
  position: relative;
  padding-bottom: 0.667em;
  margin-bottom: 0.667em;
}

.title-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background-color: var(--line);
}

.entry-thumbnail {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: var(--radius);
}

/* Bild mit Beschreibung im Projekttext */
.media-block {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
  margin-bottom: 24px;
}

.media-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.media-block p {
  margin: 0;
}

@media (max-width: 575px) {
  .media-block {
    grid-template-columns: 1fr;
  }
}

/* Adress- und Bankangaben nebeneinander */
.info-columns {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-columns img {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: var(--radius);
}

.info-columns h2 {
  margin-top: 0;
}

/* Teaser-Leiste */
.sidebar {
  display: grid;
  gap: 24px;
}

.sidebar__item {
  padding: 7px;
  background-color: #f6f7f8;
  border: 1px solid #e9eaed;
  border-radius: var(--radius);
}

.sidebar__inner {
  padding: 12px;
  background-color: #fff;
}

.sidebar__item h2 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-size: 1.3125rem;
  border-bottom: 1px solid #e9eaed;
}

.sidebar__item p {
  font-size: 0.9375rem;
}

/* -----------------------------------------------------------------------------
   Sponsoren & Unterstuetzer
-------------------------------------------------------------------------------- */
.sponsors {
  padding: 60px 0;
  background-color: var(--bg-alt);
}

.sponsors .icon-heart {
  color: var(--red);
  vertical-align: -0.1em;
}

.sponsors__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  place-items: center;
}

.sponsors__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  padding: 24px 36px;
  background-color: #fff;
  border-radius: 16px;
}

.sponsors__item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
}

.supporters {
  padding: 60px 0;
  background-color: #fff;
}

.supporters__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  place-items: center;
}

.supporters__grid img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
}

/* -----------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--blue-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__top {
  padding: 40px 0;
}

.site-footer__grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h2 {
  color: #fff;
  font-size: 1.3125rem;
  margin-bottom: 20px;
}

.site-footer__portrait {
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.site-footer__sub {
  background-color: rgba(0, 0, 0, 0.2);
}

.site-footer__sub .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
}

.social-links {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

/* -----------------------------------------------------------------------------
   Bewegung reduzieren, wenn das System es verlangt
-------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   Druck
-------------------------------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .hero__background {
    display: none !important;
  }

  body {
    padding-top: 0;
    color: #000;
  }
}
