/* Hinschauen fürs Klima – One-Pager (ein Viewport, keine vertikale Scrollbar)
   Palette nach klimavoracht.de (Theme „klima-vor-acht“): */
:root {
  --paper:  #FCF8EC;
  --ink:    #052B8E;
  --signal: #FFC04E;
  --leaf:   #2ADCBA;
  --blue:   #317FE3;
  --tile:   #FFFFFF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-700.woff2") format("woff2");
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Alles in einer Viewport-Höhe; unter sehr niedrigen Fenstern scrollt es
   als Fallback, statt Inhalte abzuschneiden. */
.page {
  width: 100%;
  max-width: 1360px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(0.75rem, 2.5vh, 2rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Kopfbereich */
.hero {
  text-align: center;
  margin-bottom: clamp(0.75rem, 2.5vh, 1.75rem);
}
.hero__title {
  font-size: clamp(1.75rem, 4.2vh, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}
.hero__title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.3rem;
  background: var(--signal);
  border-radius: 999px;
  margin: 0.9rem auto 0;
}
.hero__lead {
  font-size: clamp(1rem, 1.9vh, 1.35rem);
  font-weight: 600;
  margin: 0;
}

.block { margin-top: clamp(0.75rem, 2.4vh, 1.9rem); }

/* Hauptsponsoren (groß, verlinkt) */
.sponsors-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 3.5rem);
}
.sponsor-main { display: block; }
.sponsor-main img {
  height: clamp(56px, 10vh, 112px);
  width: auto;
}
.sponsor-main,
.ews-link,
.tile--link {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sponsor-main:hover,
.ews-link:hover,
.tile--link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}
.sponsor-main:focus-visible,
.ews-link:focus-visible,
.tile--link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}
.ews-link { display: block; }

/* EWS Schönau – etwas kleiner */
.sponsor-ews {
  display: block;
  margin: 0 auto;
  height: clamp(70px, 13vh, 148px);
  width: auto;
}

/* Weitere Sponsoren + KLIMA° vor acht */
.sponsors-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.tile {
  background: var(--tile);
  border-radius: 12px;
  min-height: clamp(64px, 9vh, 100px);
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
}
.tile img {
  max-height: clamp(40px, 6.5vh, 60px);
  max-width: 170px;
  width: auto;
  height: auto;
}
.tile--link img { max-width: 250px; }
.tile--link { color: inherit; }
a.tile--link { text-decoration: none; }

/* Hinweis unten */
.note {
  margin-top: clamp(1rem, 3vh, 2.5rem);
  padding-top: clamp(0.75rem, 2vh, 1.5rem);
  text-align: center;
  font-size: large;
  font-weight: 600;
}
.note p { margin: 0; }

.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;
}

@media (max-width: 480px) {
  .page { padding-inline: 1rem; }
  .hero { margin-bottom: clamp(0.5rem, 1.8vh, 1rem); }
  .hero__title { font-size: clamp(1.5rem, 4vh, 2rem); margin-bottom: 0.6rem; }
  .hero__title::after { margin-top: 0.6rem; }
  .block { margin-top: clamp(0.6rem, 1.8vh, 1.2rem); }
  .sponsors-main { gap: clamp(1rem, 3vh, 1.5rem); }
  .sponsor-main img { height: clamp(48px, 8.5vh, 72px); }
  .sponsor-ews { height: clamp(60px, 10.5vh, 96px); }
  .tile {
    min-height: clamp(52px, 7vh, 68px);
    min-width: 120px;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
  }
  .tile img { max-height: clamp(34px, 5vh, 44px); max-width: 120px; }
  .tile--link img { max-width: 150px; }
  .note { margin-top: clamp(0.75rem, 2vh, 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
