/* ==========================================================
   Goldschmidt Italia Banner – vollständige CSS-Datei
   Stand: V10g – kein Leerraum durch justify-content auf Mobile
   ========================================================== */

/* Hausschrift URWGrotesk */
@font-face {
  font-family: 'URWGrotesk';
  src: url('fonts/URW-URWGrotesk-Lig.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'URWGrotesk';
  src: url('fonts/URW-URWGrotesk-Med.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* kein Scrollen */
  background: #fff;
  font-family: "URWGrotesk", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111;
}

/* ===== Banner-Grundlayout ===== */
.banner {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.banner-header {
  position: fixed;
  top: 2vw;
  left: 5vw;
  z-index: 100;
}

.logo {
  height: clamp(28px, 3vw, 48px);
  width: auto;
}

/* ===== Hauptinhalt ===== */
.banner-content {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Desktop mittig */
  padding: 8vh 7vw 7vh 9vw;
  overflow: hidden;
}

/* ===== Textblock ===== */
.text-block {
  z-index: 1;
  max-width: min(50vw, 75%);
  display: block;
}

/* ===== Headline SVG ===== */
.text-block > svg:first-child {
  width: clamp(200px, 28vw, 420px);
  height: auto;
  display: block;
  margin-bottom: clamp(12px, 1.2vw, 18px);
}

.text-block h1 {
  display: block;
  white-space: nowrap;
  background: #dc001f;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  padding: clamp(6px, 0.7vw, 10px) clamp(8px, 1vw, 14px);
  margin-top: 0;
  margin-bottom: clamp(4px, 0.4vw, 6px);
  font-size: clamp(16px, 2vw, 32px);
  line-height: 1.3;
  width: fit-content;
}

.text-block h1:last-of-type {
  margin-bottom: clamp(12px, 1.2vw, 18px);
}

.text-block h2 {
  font-family: 'URWGrotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #dc001f;
  margin-top: clamp(24px, 2.5vw, 36px);
  margin-bottom: clamp(8px, 1vw, 12px);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.text-block p {
  font-family: 'URWGrotesk', sans-serif;
  font-size: 28px;
  line-height: 1.6;
  color: #000;
  margin-bottom: clamp(16px, 1.8vw, 24px);
  font-weight: 300;
}

/* ===== CTA-Bereich ===== */
.cta-group {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== Button SVG ===== */
.link-svg {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.link-svg svg {
  width: clamp(160px, 22vw, 340px);
  height: auto;
  display: block;
}

.link-svg:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.cta-note {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

/* ===== CTA-Links ===== */
.link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0.3rem 0.35rem 1.2rem;
  border-radius: 50px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
}

.link .icon-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  padding: 0;
  margin: -4px -4px;
}

.link .arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #000;
  fill: #000;
}

.link.primary {
  background: #dc001f;
  color: #fff;
}
.link.primary:hover {
  background: #b00019;
}

.link.secondary {
  background: #fff;
  color: #dc001f;
  border: 2px solid #dc001f;
}
.link.secondary:hover {
  background: #dc001f;
  color: #fff;
}

/* ===== Rechte Grafik (Network + GOL) ===== */
.right-graphic {
  position: absolute;
  right: -8vw;
  bottom: -10vw;
  width: 50vw;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;

  display: flex;
  align-items: center;
  justify-content: center;
}

.network,
.right-graphic > svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Tablet ===== */
@media (max-width: 1280px) {
  .banner-header {
    top: 3vw;
    left: 4vw;
  }

  .logo { height: 40px; }

  .banner-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 110px 7vw 4vh !important;
  }

  .text-block {
    max-width: 60%;
    margin-top: 0;
  }

  .right-graphic {
    right: -10vw;
    bottom: -12vw;
    width: 62vw;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .banner-header {
    top: 3vw;
    left: 5vw;
  }

  .logo { height: 26px; }

  .banner-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 60px 6vw 3vh 6vw;
  }

  .text-block {
    max-width: 50%;
    margin-top: 0;
  }

  .text-block > svg:first-child {
    width: clamp(180px, 42vw, 320px);
  }

  .link-svg svg {
    width: clamp(140px, 34vw, 250px);
  }

  .text-block h1 {
    font-size: clamp(14px, 4vw, 22px);
  }

  .text-block h2 {
    font-size: 18px;
    margin-top: clamp(20px, 3vw, 28px);
  }

  .text-block p {
    font-size: 18px;
  }

  .cta {
    margin-top: 1rem;
  }

  .link {
    font-size: 0.85rem;
    padding: 0.3rem 0.25rem 0.3rem 1rem;
    gap: 10px;
    letter-spacing: 0.08em;
  }

  .link .icon-arrow {
    width: 38px;
    height: 38px;
    margin: -3px -3px;
  }

  .link .arrow {
    width: 20px;
    height: 20px;
  }

  .right-graphic {
    right: -12vw;
    bottom: -15vw;
    width: 75vw;
    opacity: 0.8;
  }
}

/* ===== Pixel 7 / 412 px ===== */
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
  .banner    { height: 100dvh; }
}

@media (max-width: 480px) {
  .banner-header { top: 2vw; left: 5vw; }
  .logo { height: 24px; }

  .banner-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 55px 5.5vw 2vh;
  }

  .text-block {
    margin-top: 0;
  }

  .text-block > svg:first-child {
    width: clamp(150px, 48vw, 260px);
  }

  .link-svg svg {
    width: clamp(120px, 40vw, 210px);
  }

  .text-block h1 {
    font-size: clamp(13px, 3.8vw, 18px);
    padding: 6px 10px;
  }

  .text-block h2 {
    font-size: 16px;
    margin-top: clamp(18px, 2.5vw, 24px);
  }

  .text-block p {
    font-size: 16px;
    line-height: 1.5;
  }

  .cta { margin-top: 0.8rem; }
  .link {
    font-size: 0.8rem;
    padding: 0.28rem 0.2rem 0.28rem 0.9rem;
    gap: 8px;
    letter-spacing: 0.08em;
  }

  .link .icon-arrow {
    width: 34px;
    height: 34px;
    margin: -2px -2px;
  }

  .link .arrow {
    width: 18px;
    height: 18px;
  }

  .right-graphic {
    right: -15vw;
    bottom: -18vw;
    width: 87vw;
    opacity: 0.75;
  }
}

/* ===== Very Small Screens (320px) ===== */
@media (max-width: 360px) {
  .banner-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 50px 5vw 2vh;
  }

  .text-block {
    margin-top: 0;
  }

  .text-block > svg:first-child {
    width: clamp(130px, 52vw, 210px);
  }

  .link-svg svg {
    width: clamp(100px, 45vw, 180px);
  }

  .text-block h1 {
    font-size: 12px;
    padding: 5px 8px;
  }

  .text-block h2 {
    font-size: 11px;
    margin-top: 16px;
  }

  .text-block p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .link {
    font-size: 0.75rem;
    padding: 0.25rem 0.18rem 0.25rem 0.85rem;
    gap: 6px;
    letter-spacing: 0.08em;
  }

  .link .icon-arrow {
    width: 30px;
    height: 30px;
    margin: -2px -2px;
  }

  .link .arrow {
    width: 16px;
    height: 16px;
  }

  .right-graphic {
    right: -18vw;
    bottom: -20vw;
    width: 93vw;
    opacity: 0.7;
  }
}

/* ===== Safe Area Fix ===== */
@supports (padding: max(0px)) {
  .banner-content {
    padding-bottom: max(1vh, env(safe-area-inset-bottom));
  }
}
