/* ==========================================================================
   Fiugeflomma GmbH – Übergangsseite
   Referenz: Figma-Artboard 1440 px
   ========================================================================== */

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-text: #3B4866;
  --color-icon: #364059;
  --color-bg: #FFFFFF;
  --color-footer: #F0F0F0;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --size-title: clamp(1.25rem, 0.75rem + 1.4vw, 1.875rem); /* 20 → 30 px */
  --size-body: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);       /* 16 → 18 px */

  --gutter: clamp(1.25rem, 5.4vw, 4.875rem);                  /* 20 → 78 px */
  --content-max: 820px;
  --container-max: 1920px;   /* ab hier zentriert, Hintergründe volle Breite */

  --flames-width: 37.4%;   /* 538 / 1440 */
  --arrow-duration: 2.4s;
}

/* Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  font-family: var(--font);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Page
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* Container (Inhalt begrenzt, Hintergründe laufen volle Breite)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__content {
  max-width: var(--content-max);
}

.hero__icon {
  width: 37px;
  height: 38px;
  margin-bottom: 2rem;
  animation: spin var(--arrow-duration) linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero__title {
  font-size: var(--size-title);
  font-weight: 700;
  line-height: 1.233; /* 37 / 30 */
  text-transform: uppercase;
}

.hero__text {
  margin-top: 1rem;
}

.button {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.5rem 1.75rem;
  border: 2px solid var(--color-text);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

/* Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: var(--color-footer);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.footer__logo {
  display: inline-block;
  max-width: 253px;
}

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

.footer__address {
  font-style: normal;
  line-height: 1.55;
}

.footer__address p + p {
  margin-top: 1.5em;
}

/* Flames (decorative, hinter Hero und Footer)
   -------------------------------------------------------------------------- */
.flames {
  position: absolute;
  z-index: 1;
  top: -2%;
  /* am rechten Rand des Containers, nicht des Viewports */
  right: max(0px, calc((100% - var(--container-max)) / 2));
  width: min(var(--flames-width), 718px);
  height: 104%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

/* Animation
   -------------------------------------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__icon {
    animation: none;
  }
  .button {
    transition: none;
  }
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero__content {
    max-width: 58%;
  }
  .flames {
    width: 40%;
  }
}

@media (max-width: 767px) {
  .hero {
    align-items: flex-start;
    padding-top: clamp(2.5rem, 10vw, 4rem);
    /* Platz für die Flammen unten rechts */
    padding-bottom: 30vw;
  }

  .hero__icon {
    width: 30px;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .hero__content {
    max-width: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__logo {
    max-width: 180px;
  }

  .flames {
    top: auto;
    bottom: -3%;
    right: -22%;
    width: auto;
    height: 110vw;
    object-position: right bottom;
  }
}
