/* ==========================================================================
   Schriften
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("Archivo-Light.woff2") format("woff2"),
       url("Archivo-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("Archivo-Bold.woff2") format("woff2"),
       url("Archivo-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Basis
   ========================================================================== */

:root {
  --bg: #353535;
  --text: #ffffff;
  --red: #ff0000;
  --gutter: clamp(20px, 6.25vw, 91px);  /* Abstand bis Text, im Layout ~91px */
  --icon-gap: 20px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "logo  illu"
    "text  illu";
  padding-top: clamp(32px, 16vh, 130px);
}

/* Logo – weiße Fläche bündig am linken Rand */
.logo {
  grid-area: logo;
  justify-self: start;
  align-self: start;
  background: #fff;
  width: clamp(240px, 27vw, 393px);
  padding: clamp(10px, 1vw, 15px) clamp(16px, 1.8vw, 26px) clamp(10px, 1vw, 15px) var(--gutter);
}

.logo img {
  width: 100%;
}

/* Textbereich */
.content {
  grid-area: text;
  align-self: start;
  padding: clamp(48px, 12vh, 100px) var(--gutter) 64px;
  padding-left: calc(var(--gutter) + clamp(36px, 3.2vw, 46px) + var(--icon-gap));
  max-width: 720px;
}

.headline {
  position: relative;
  margin: 0 0 clamp(20px, 3.5vh, 30px);
  font-weight: 700;
  font-size: clamp(30px, 3.1vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Rote Striche hängen links vor der Headline */
.headline__icon {
  position: absolute;
  top: 0.18em;
  right: calc(100% + var(--icon-gap));
  width: clamp(36px, 3.2vw, 46px);
}

.intro {
  margin: 0 0 clamp(36px, 6vh, 52px);
  font-weight: 700;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.4;
}

.contact {
  font-style: normal;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.4;
}

.contact__title {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: inherit;
}

.contact p {
  margin: 0;
}

/* Illustration – Leiter und Pylon unten rechts */
.illustration {
  grid-area: illu;
  position: absolute;
  right: clamp(24px, 4.5vw, 66px);
  bottom: clamp(24px, 5.5vh, 46px);
  height: calc(100% - clamp(16px, 2.5vh, 20px) - clamp(24px, 5.5vh, 46px));
  max-width: 46vw;
  aspect-ratio: 748 / 993;
}

.illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Zeilenumbrüche im Intro nur, wenn genug Platz ist */
@media (max-width: 1200px) {
  .intro {
    max-width: 30em;
  }

  .intro br {
    display: none;
  }
}

/* Tablet & Smartphone: einspaltig, Illustration unter dem Text */
@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "logo"
      "text"
      "illu";
    padding-top: 48px;
  }

  .content {
    max-width: none;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .illustration {
    position: static;
    justify-self: center;
    align-self: end;
    width: min(80%, 420px);
    height: auto;
    max-width: none;
    margin-bottom: 48px;
  }

  .illustration img {
    height: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --icon-gap: 14px;
  }

  .page {
    padding-top: 32px;
  }

  .content {
    /* Striche sitzen auf kleinen Displays über der Headline */
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-top: 44px;
  }

  .headline__icon {
    position: static;
    width: 40px;
    margin-bottom: 16px;
  }

  .illustration {
    width: 78%;
  }
}

/* Querformat mit geringer Höhe (z. B. Smartphone quer) */
@media (max-height: 520px) and (min-width: 901px) {
  .page {
    padding-top: 24px;
  }

  .content {
    padding-top: 32px;
  }
}
