/* Grundlayout */
html, body {
  height: 100%;
}

body {
  margin: 0 !important;          /* kein margin oben (und generell) */
  background-color: #f6f6f6;      /* Seitenhintergrund */
  color: #000;
  font-family: Manrope,sans-serif;
}

/* Zentrierter Container */
.container {
  width: 1364px;
  margin: 0 auto !important;      /* kein top margin, zentriert */
  padding: 0px;                /* vom Auftraggeber gewünscht */
}

/* Oberer Balken – Flexbox, Link unten ausrichten */
.top-bar {
  width: 310px;
  height: 100px;
  background-color: #22594b;
  display: flex;                   /* Flex aktiviert */
  justify-content: center;         /* horizontal mittig */
  align-items: flex-end;           /* vertikal nach unten */
  margin-top: 0 !important;        /* kein margin oben */
}

/* Link im Balken */
.top-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600 !important;
  font-size: 2rem !important;
  line-height: 1;                  /* saubere vertikale Ausrichtung */
  padding-bottom: 15px;          /* optisch an den unteren Rand */
  letter-spacing: 0.5px;
}

.top-bar a:hover	{
	color: #3B9E85;
}

/* Haupttitel */
.main-title {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 200px !important;
  line-height: 0.9 !important;
  margin-top: 50px;               /* wie zuvor gewünscht */
}

/* Untertitel */
.subtitle {
  margin-top: 150px;
  font-size: 1.4rem;
}

.subtitle a {
  color: #22594b;
  text-decoration: none;
  font-weight: 600;
}

.subtitle a:hover {
  text-decoration: underline;
  color: #3B9E85;
}

/* Logo */
.logo {
  text-align: left;
  margin-top: 80px;
}


.logo img {
  width: 310px;
  height: auto;
}

/* ===========================
   TABLET (768px – 1024px)
   =========================== */
@media (min-width: 768px) and (max-width: 1024px) {

  .container {
    width: 100%;
    padding: 16px;
  }

  .top-bar {
    width: 280px;
    height: 90px;
  }

  .top-bar a {
    font-size: 1.6rem !important;   /* ~25–26px */
    padding-bottom: 12px;
  }

  .logo {
    margin-top: 60px;
    text-align: left;
  }

  .logo img {
    width: 260px;
    height: auto;
  }

  .main-title {
    font-size: 120px !important;
    line-height: 0.95 !important;
    margin-top: 40px;
    word-wrap: break-word;
    hyphens: auto;
  }

  .subtitle {
    margin-top: 80px;
    font-size: 1.1rem;
  }
}

/* ===========================
   MOBIL (bis 767px)
   =========================== */
@media (max-width: 767px) {

  html, body {
    overflow-x: hidden; /* verhindert horizontales Scrollen */
  }

  .container {
    width: 100%;
    padding: 16px;
  }

  /* Top-Bar auf 50% Breite */
  .top-bar {
    width: 50%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0 auto; /* zentriert */
    padding: 0;
  }

  .top-bar a {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding-bottom: 10px;
    text-align: center;
    white-space: nowrap;
  }

  /* Logo auf 50% Breite */
  .logo {
    text-align: center;
    margin-top: 24px;
  }

  .logo img {
    width: 50%;
    height: auto;
    max-width: 300px; /* Sicherheit gegen zu große Bilder */
  }

  /* Haupttitel */
  .main-title {
    font-size: clamp(40px, 12vw, 80px) !important;
    line-height: 1 !important;
    margin-top: 24px;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    hyphens: auto;
  }

  /* Untertitel – halbe Schriftgröße des Titels */
  .subtitle {
    margin-top: 24px;
    font-size: calc(clamp(40px, 12vw, 80px) / 2); /* Hälfte der Titelgröße */
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    white-space: normal;
    hyphens: auto;
  }

  .subtitle a {
    color: #22594b;
    text-decoration: none;
    font-weight: 600;
  }

  .subtitle a:hover {
    text-decoration: underline;
    color: #3B9E85;
  }
}

