
:root {
  --color-accent: #ffffff;
  --color-signal: #000000;
  --background-transition: linear-gradient(180deg, #fe2b24 0%, #ff6100 100%);
  --content-width: 720px;
  --hero-width: 920px;
  --color-title: #ffffff;
  --color-black: black;
  --color-white: white;
  font-size: 18px;
}

html {
  scroll-behavior: smooth;
  background: transparent;
  overflow-x: hidden;
}

@font-face {
  font-family: Cygrotesk;
  src: url("fonts/Schrift Lauftext CyGrotesk-KeyRegular.woff2") format("woff2"),
    url("assets/fonts/Schrift Lauftext CyGrotesk-KeyRegular.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Cygrotesk;
  src: url("fonts/Schrift Titel CyGrotesk-KeyBold.woff2") format("woff2"),
    url("fonts/Schrift Titel CyGrotesk-KeyBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  background: var(--background-transition);
  transition: background 300ms ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Cygrotesk;
  min-height: 100vh;
  color: var(--color-white);
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
}

h1 {
  font-size: 92px;
  line-height: 1;
  color: var(--color-title);
}

header section > h1 {
  margin-bottom: 1.5rem;
}

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

h2 {
  font-size: 25px;
  color: var(--color-title);
  margin-top: 2.5rem;
}

h3 {
  margin-top: 2.5rem;
}

.campaign-title {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0;
}

.campaign-title-text {
  display: inline-block;
}

.campaign-title-arrow {
  width: 3.2em;
  height: auto;
  flex: 0 0 auto;
  transform: translateY(0.1em);
}

h2 a {
  text-decoration: underline;
  color: var(--color-white);
}

p {
  line-height: 1.5;
}

.content-section {
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}

.support-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.support-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.support-column p {
  flex: 1 1 auto;
  line-height: 1.5;
}

.support-column a {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  margin-bottom: 3rem;
}

.support-column a button {
  width: 100%;
  margin: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.progress-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 0.6rem;
  padding-bottom: 1.6rem;
}

.progress-meta {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 0.35rem;
  font-weight: bold;
}

#progress-label {
  text-align: center;
}

.progress-track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.progress-countdown {
  text-align: center;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  margin-top: 2.5rem;
}

.progress-track {
  width: auto;
  flex: 1 1 auto;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: 0;
}

#progress-percent {
  min-width: 3ch;
  text-align: right;
  font-weight: bold;
}

#progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #121212 0%, #3a3a3a 100%);
  transition: width 300ms ease;
}

.primary-cta {
  text-align: center;
  margin: 1.5rem 0 1.5rem 0;
}

.intro-text-start {
  text-align: center;
  margin-top: 1.5rem;
}

main {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
}

main > * {
  max-width: var(--content-width);
}

header {
  width: 100%;
  background: transparent;
  color: var(--color-title);
  text-transform: uppercase;
  font-family: Cygrotesk;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  overflow-wrap: break-word;
  hyphens: auto;
}

header section {
  max-width: min(var(--hero-width), calc(100% - 3rem));
  padding-bottom: 0;
  z-index: 100;
  position: relative;
  isolation: isolate;
  height: 660px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

header section::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -68px;
  width: calc(100% + 240px);
  height: calc(100% + 16px);
  background-image: url("Sparschwein.png");
  background-repeat: no-repeat;
  background-size: auto 626px;
  background-position: right bottom;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1000px) {
  header {
    text-align: center;
  }
  header section {
    height: auto;
    padding-bottom: 0.5rem;
  }
  header section::after {
    position: static;
    order: 3;
    align-self: center;
    width: 100%;
    height: 350px;
    background-size: auto 500px;
    background-position: center -75px;
    margin-top: 0.35rem;
    margin-right: 0;
  }
  header section > h1 {
    order: 2;
    font-size: 60px;
    margin-bottom: 0;
  }
  header section > .campaign-title {
    order: 4;
    font-size: 20px;
    margin-top: 0.4rem;
    align-self: center;
    justify-content: center;
    text-align: center;
  }
  main {
    width: 90%;
  }
  .language-options {
    grid-template-columns: 1fr;
  }
  .donation-buttons {
    grid-template-columns: 1fr;
  }
  .donation-buttons .button-text {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .support-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  header section {
    height: auto;
  }
  header section::after {
    width: 100%;
    height: 250px;
    background-size: auto 350px;
    background-position: center -50px;
    margin-right: 0;
  }
  header section > h1 {
    font-size: 45px;
    margin-bottom: 0;
  }
  header section > .campaign-title {
    font-size: 15px;
    margin-top: 0.3rem;
    align-self: center;
    justify-content: center;
    text-align: center;
  }
  footer nav {
    flex-direction: column;
  }
}

footer {
  background-color: var(--color-accent);
  width: 100%;
  color: var(--color-black);
  margin: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

footer a {
  color: var(--color-black);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;        /* allow buttons to wrap to the next line */
  gap: 10px;              /* optional: space between buttons */
  justify-content: flex-start; /* align buttons to the start */
  margin-bottom: 1rem
}

.share-buttons button {
  flex: 1 1 auto;         /* allow buttons to shrink if needed */
  min-width: 120px;       /* optional: prevent buttons from being too small */
}

.donation-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin: 2rem 0 3.5rem;
}

.donation-buttons a {
  display: flex;
}

.donation-buttons button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

.donation-buttons .button-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.donation-buttons .donation-amount {
  font-size: 1.18em;
  line-height: 1;
  font-weight: 800;
}

.donation-buttons .donation-goodie {
  font-size: 0.88em;
  line-height: 1.2;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.language-options a {
  display: flex;
}

.language-options button {
  width: 100%;
  margin: 0;
}

button {
  background-color: #ffffff;
  color: var(--color-black);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  box-shadow: rgba(0, 0, 0, 0.5) 1px 3px 1px;
  cursor: pointer;
  transition: all linear 100ms;
	margin: 0.2rem;
}

.button-text {
  color: var(--color-black);
  font-weight: bold;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .button-text {
  background-image: var(--background-transition);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  }
}

button:hover {
  transform: scale(1.05);
  box-shadow: rgba(0, 0, 0, 0.5) 5px 3px 1px;
}

.lang-switch {
  align-self: flex-end;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.lang-switch a {
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.1;
}

.lang-switch a.active {
  color: var(--color-black);
  background: var(--color-white);
  border-color: var(--color-white);
}

.lang-switch a:hover {
  border-color: var(--color-white);
}

main section {
  width: 100%;
  max-width: var(--content-width);
}

#mehr-infos-div {
  text-align: center;
  padding: 2rem;
}

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