/* =========================================================
   GRUNDEINSTELLUNGEN
   Farben, Schrift und allgemeines Seitenlayout
   ========================================================= */

:root {
  --blue: #063b68;
  --red: #df2f35;
  --light: #eef8fc;
  --warm: #f8f6f1;
  --line: #d8e0e5;
  --text: #063b68;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0 0 18px;
}


/* =========================================================
   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);
}


/* =========================================================
   EINSTIEG
   Einführung in die Impulse und Themen
   ========================================================= */

.intro {
  padding: 64px 0 58px;
  max-width: 1050px;
  margin: auto;
}

.intro h1,
.perspective h2,
.section-head h2,
.cta h2 {
  font-weight: 400;
  letter-spacing: -.6px;
}

.intro h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 24px;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  max-width: 900px;
  margin: 0;
}


/* =========================================================
   MEINE PERSPEKTIVE
   Das Unternehmen als Ausgangspunkt
   ========================================================= */

.perspective {
  background: var(--light);
  padding: 48px max(8vw, 70px);
}

.perspective-inner {
  max-width: 1050px;
  margin: auto;
}

.perspective h2 {
  font-size: 32px;
  margin: 0 0 26px;
}

.perspective-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.perspective-copy p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}


/* =========================================================
   THEMEN
   Drei zentrale Fragestellungen für Unternehmen
   ========================================================= */

.topics,
.principles {
  max-width: 1180px;
  margin: auto;
  padding: 56px max(3vw, 24px);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 31px;
  margin: 0;
}


/* Themenkarten
   --------------------------------------------------------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.topic-card {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.topic-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.topic-body {
  padding: 24px;
}

.num {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
}

.topic-card h3 {
  font-size: 21px;
  margin: 10px 0 15px;
}

.topic-card h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.topic-card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.topic-card a {
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   VIER GEDANKEN FÜR DIE PRAXIS
   Grundsätze für Veränderung und Unternehmensentwicklung
   ========================================================= */

.principles {
  padding-top: 22px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-grid > div {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.principle-grid > div:first-child {
  padding-left: 0;
}

.principle-grid > div:last-child {
  border-right: 0;
}

.principle-grid h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.principle-grid p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}


/* =========================================================
   CALL TO ACTION
   Einladung zum Austausch
   ========================================================= */

.cta {
  background: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px max(8vw, 70px);
  gap: 35px;
}

.cta h2 {
  font-size: 29px;
  margin: 0 0 7px;
}

.cta p:last-child {
  font-size: 14px;
  margin: 0;
}

.button {
  background: var(--red);
  color: #fff;
  padding: 15px 27px;
  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;
}

footer a {
  color: #fff;
}


/* =========================================================
   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;
}


/* Untermenü
   --------------------------------------------------------- */

.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 {
    height: auto;
    padding: 16px 22px;
  }

  .site-header nav {
    gap: 16px;
  }


  /* Einstieg
     ------------------------------------------------------- */

  .intro {
    padding: 48px 28px;
  }

  .intro h1 {
    font-size: 40px;
  }


  /* Perspektive
     ------------------------------------------------------- */

  .perspective {
    padding: 40px 28px;
  }

  .perspective-copy {
    grid-template-columns: 1fr;
  }


  /* Themenkarten
     ------------------------------------------------------- */

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    display: grid;
    grid-template-columns: 38% 62%;
  }

  .topic-card img {
    height: 100%;
    min-height: 245px;
  }


  /* Praxisgedanken
     ------------------------------------------------------- */

  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principle-grid > div {
    border-bottom: 1px solid var(--line);
  }


  /* Call to Action
     ------------------------------------------------------- */

  .cta {
    padding: 30px 28px;
  }


  /* 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;
  }


  /* Einstieg
     ------------------------------------------------------- */

  .intro {
    padding: 38px 22px;
  }

  .intro h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }


  /* Perspektive
     ------------------------------------------------------- */

  .perspective {
    padding: 34px 22px;
  }

  .perspective h2 {
    font-size: 27px;
  }


  /* Themen
     ------------------------------------------------------- */

  .topics,
  .principles {
    padding: 42px 22px;
  }

  .topic-card {
    display: block;
  }

  .topic-card img {
    height: 190px;
    min-height: 0;
  }


  /* Praxisgedanken
     ------------------------------------------------------- */

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid > div,
  .principle-grid > div:first-child {
    padding: 20px 0;
    border-right: 0;
  }


  /* Call to Action
     ------------------------------------------------------- */

  .cta {
    display: block;
    padding: 30px 22px;
  }

  .button {
    display: inline-block;
    margin-top: 20px;
  }


  /* Footer
     ------------------------------------------------------- */

  footer {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 20px;
  }

  footer > div {
    border-left: 2px solid var(--red);
    padding-left: 16px;
  }

  .foot-brand {
    border-left: 0;
    padding-left: 0;
  }

}