/* =========================================================
   GRUNDEINSTELLUNGEN
   Farben, Schrift und allgemeines Seitenlayout
   ========================================================= */

:root {
  --blue: #063b68;
  --red: #df2f35;
  --cream: #f5f1e9;
  --light: #eaf7ff;
  --line: #d8e0e5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--blue);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin: auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0 0 20px;
}


/* =========================================================
   HEADER – DESKTOP
   Einheitlicher Kopfbereich der GM Unternehmensberatung
   ========================================================= */

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 44px);
  border-bottom: 1px solid #edf0f2;
  background: #fff;
}


/* Marke / Firmenname
   --------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-size: 39px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-text {
  font-size: 15px;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
  color: #526d82;
}


/* Hauptnavigation
   --------------------------------------------------------- */

.site-header nav {
  display: flex;
  gap: 38px;
  align-self: stretch;
}

.site-header nav a {
  display: flex;
  align-items: center;
  font-size: 14px;
  position: relative;
}

.site-header nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}


/* =========================================================
   HERO
   Persönlicher Einstieg und Portrait
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 500px;
}

.hero-copy {
  padding: 38px 5vw 34px 5.8vw;
}

.hero h1 {
  font-size: 47px;
  line-height: 1.02;
  font-weight: 400;
  margin: 0 0 7px;
  letter-spacing: -1.3px;
}

.hero h2 {
  font-size: 25px;
  font-weight: 400;
  margin: 0 0 22px;
}

.hero-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.43;
  max-width: 565px;
  margin: 0 0 14px;
}


/* Portrait
   --------------------------------------------------------- */

.hero-portrait {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf0f3, #dbe6eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}


/* Leitbegriffe auf dem Portrait
   --------------------------------------------------------- */

.hero-words {
  position: absolute;
  left: 24px;
  top: 95px;
  border-left: 2px solid var(--red);
  padding-left: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 2.3px;
}


/* Portrait-Platzhalter
   --------------------------------------------------------- */

.portrait-placeholder {
  width: 62%;
  height: 72%;
  border: 1px dashed #8ba0af;
  background: rgba(255, 255, 255, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: #627b8e;
}

.portrait-placeholder strong {
  font-size: 14px;
  letter-spacing: 2.4px;
  color: var(--blue);
}

.portrait-placeholder span {
  font-size: 21px;
  line-height: 1.3;
}

.portrait-placeholder small {
  font-size: 12px;
}


/* =========================================================
   MEIN WEG – VIER PERSPEKTIVEN
   ========================================================= */

.perspectives {
  background: var(--cream);
  padding: 30px 5.8vw 36px;
}

.perspectives h2,
.drive h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 24px;
}

.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.four article {
  padding: 0 28px;
  border-right: 1px solid #cfd7dc;
}

.four article:first-child {
  padding-left: 0;
}

.four article:last-child {
  border-right: 0;
  padding-right: 0;
}

.icon {
  font-size: 37px;
  height: 48px;
}

.four h3 {
  font-size: 18px;
  line-height: 1.18;
  font-weight: 400;
  margin: 7px 0 22px;
  position: relative;
}

.four h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 34px;
  height: 2px;
  background: var(--red);
}

.four p,
.drive-copy > p {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
}


/* =========================================================
   WAS MICH ANTREIBT
   Bild und persönliches Beratungsverständnis
   ========================================================= */

.drive {
  display: grid;
  grid-template-columns: 49% 51%;
  min-height: 400px;
}


/* Bildbereich
   --------------------------------------------------------- */

.drive-image {
  min-height: 390px;
  background-image: url("ueber mich-unternehmensberatung-haltung.webp");
  background-size: cover;
  background-position: center;
}


/* Textbereich
   --------------------------------------------------------- */

.drive-copy {
  padding: 28px 5vw 25px 3.8vw;
}

.drive-copy h2 {
  margin-bottom: 10px;
}


/* Optionale Elemente
   --------------------------------------------------------- */

.image-copy {
  position: absolute;
  left: 12%;
  top: 18%;
  border-left: 2px solid var(--red);
  padding-left: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 2;
}

.signature {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 28px;
  margin-top: 18px;
}

.name {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

.role {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.quote {
  background: var(--cream);
  text-align: center;
  padding: 22px 20px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
}


/* =========================================================
   CALL TO ACTION
   Einladung zum persönlichen Austausch
   ========================================================= */

.cta {
  background: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px max(5.8vw, 55px);
}

.cta .eyebrow {
  margin-bottom: 13px;
}

.cta h2 {
  font-size: 27px;
  font-weight: 400;
  margin: 0 0 4px;
}

.cta p:last-child {
  margin: 0;
  font-size: 14px;
}

.button {
  background: var(--red);
  color: #fff;
  padding: 16px 28px;
  font-size: 14px;
  white-space: nowrap;
}


/* =========================================================
   FOOTER
   Grunddefinitionen – Ergänzungen in footer.css
   ========================================================= */

footer {
  min-height: 150px;
  background: linear-gradient(#063b68, #022d51);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.3fr 1fr;
  align-items: center;
  padding: 0 max(5.8vw, 55px);
  gap: 28px;
  font-size: 12px;
}

footer > div {
  padding-left: 22px;
  border-left: 2px solid var(--red);
}

footer > div:first-child {
  border: 0;
  padding-left: 0;
}

.foot-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.foot-brand strong {
  font-size: 36px;
}

.foot-brand span {
  font-size: 11px;
  letter-spacing: 2px;
}

.foot-brand small {
  letter-spacing: 0;
  font-size: 11px;
}


/* =========================================================
   NAVIGATION – BERATUNG DROPDOWN
   ========================================================= */

.menu-dropdown {
  position: relative;
  display: block;
}

.menu-dropdown summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown-arrow {
  font-size: .78em;
  margin-left: 4px;
}

.submenu {
  display: none;
  position: absolute;
  z-index: 100;
  top: calc(100% - 1px);
  left: -18px;
  min-width: 245px;
  background: #fff;
  border: 1px solid #e5eaee;
  box-shadow: 0 10px 28px rgba(11, 52, 84, .14);
  padding: 8px 0;
}

.submenu a {
  display: block !important;
  padding: 11px 18px !important;
  white-space: nowrap;
  border: 0 !important;
  color: #0b3454 !important;
  text-decoration: none !important;
}

.submenu a:hover,
.submenu a:focus,
.submenu a.current-subpage {
  background: #f3eee6;
  color: #cf2e2e !important;
}

.menu-dropdown[open] .submenu {
  display: block;
}

.menu-dropdown.active > summary {
  border-bottom: 2px solid #d32f2f;
}


/* Header-Ausrichtung
   --------------------------------------------------------- */

.site-header nav > .menu-dropdown {
  align-self: stretch;
}

.site-header nav > .menu-dropdown > summary {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  position: relative;
  padding: 0;
}

.site-header nav > .menu-dropdown.active > summary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red, #d32f2f);
}


/* Kompatibilität mit anderen Navigationstemplates
   --------------------------------------------------------- */

.menu > .menu-dropdown {
  align-self: stretch;
}

.menu > .menu-dropdown > summary {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.main-nav > .menu-dropdown {
  align-self: stretch;
}

.main-nav > .menu-dropdown > summary {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  position: relative;
}

.main-nav > .menu-dropdown.active > summary {
  border-bottom: 3px solid var(--red, #d32f2f);
}


/* Dropdown bei Maus / Tastatur auf Desktop
   --------------------------------------------------------- */

@media (min-width: 821px) {

  .menu-dropdown:hover .submenu,
  .menu-dropdown:focus-within .submenu {
    display: block;
  }

}


/* =========================================================
   TABLET / KLEINERE DESKTOPS BIS 900 PX
   ========================================================= */

@media (max-width: 900px) {

  .site-header {
    padding: 0 20px;
  }

  .site-header nav {
    gap: 14px;
  }


  /* Hero und Antrieb
     ------------------------------------------------------- */

  .hero,
  .drive {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .hero-portrait {
    min-height: 390px;
  }


  /* Vier Perspektiven
     ------------------------------------------------------- */

  .four {
    grid-template-columns: 1fr 1fr;
  }

  .four article {
    padding: 20px;
    border-bottom: 1px solid #cfd7dc;
  }

  .perspectives {
    padding-left: 24px;
    padding-right: 24px;
  }


  /* Was mich antreibt
     ------------------------------------------------------- */

  .drive-copy {
    padding: 28px 24px;
  }


  /* Call to Action
     ------------------------------------------------------- */

  .cta {
    gap: 20px;
    padding: 28px 24px;
  }


  /* Footer
     ------------------------------------------------------- */

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 30px 24px;
  }

}


/* =========================================================
   MOBILE BIS 820 PX
   Beratung-Untermenü vollständig im Viewport
   ========================================================= */

@media (max-width: 820px) {

  .main-nav .menu-dropdown,
  .site-header .menu-dropdown,
  .menu-dropdown {
    position: static !important;
  }

  .main-nav .menu-dropdown .submenu,
  .site-header .menu-dropdown .submenu,
  .menu-dropdown .submenu {
    position: fixed !important;
    top: 72px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 10000 !important;
  }


  /* Einheitliche Darstellung aller Untermenüpunkte
     ------------------------------------------------------- */

  .submenu {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  .submenu > a,
  .menu-dropdown .submenu > a,
  .main-nav .menu-dropdown .submenu > a,
  .site-header .menu-dropdown .submenu > a,
  .menu .menu-dropdown .submenu > a,
  .submenu > a:first-child,
  .submenu > a.current-subpage {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 18px !important;
    margin: 0 !important;
    text-indent: 0 !important;
    transform: none !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;

    white-space: normal !important;
    border: 0 !important;
    text-decoration: none !important;
  }

}


/* =========================================================
   MOBILE BIS 650 PX
   Einheitlicher Header und Seitenlayout
   ========================================================= */

@media screen and (max-width: 650px) {

  .site-header {
    height: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }


  /* Marke / Firmenname
     ------------------------------------------------------- */

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-text {
    display: block !important;
    text-align: left;
  }

  .brand-text strong {
    display: block;
    font-size: 13px;
    line-height: 1.15;
  }

  .brand-text small {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
  }


  /* Navigation
     ------------------------------------------------------- */

  .site-header nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px 16px;
  }

  .site-header nav a {
    display: flex;
  }

  .site-header nav a,
  .site-header nav > .menu-dropdown > summary {
    font-size: 12px;
    padding: 3px 0;
  }


  /* Hero
     ------------------------------------------------------- */

  .hero h1 {
    font-size: 38px;
  }


  /* Vier Perspektiven
     ------------------------------------------------------- */

  .four {
    grid-template-columns: 1fr;
  }


  /* Call to Action
     ------------------------------------------------------- */

  .cta {
    display: block;
  }

  .button {
    display: inline-block;
    margin-top: 20px;
  }


  /* Footer
     ------------------------------------------------------- */

  footer {
    grid-template-columns: 1fr;
  }

}