/* =========================================================
   1. GRUNDLAGEN
   Farben, Schriften und allgemeine Seiteneinstellungen
   ========================================================= */

:root {
  --navy: #173b5b;
  --navy2: #0f2d47;
  --red: #c43d3d;
  --beige: #f3eee6;
  --paper: #fbfaf8;
  --ink: #17344d;
  --muted: #61717d;
  --line: #dce3e7;
  --max: 1180px;
  --radius: 3px;
  --font: "Aptos", "Aptos Display", "Calibri", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.62;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
}


/* =========================================================
   2. TYPOGRAFIE
   Überschriften und wiederkehrende Textelemente
   ========================================================= */

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 22px;
  font-weight: 400;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(44px, 5.4vw, 72px);
}

h2 {
  font-size: clamp(30px, 3.3vw, 42px);
}

h3 {
  font-size: 22px;
}

.kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 18px;
}

.lead,
.intro {
  font-size: 21px;
  max-width: 800px;
  color: var(--muted);
}


/* =========================================================
   3. HEADER
   Marke und Hauptnavigation
   ========================================================= */

.site-header {
  height: 88px;
  padding: 0 max(32px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}


/* Marke / Firmenname
   --------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}


/* Hauptnavigation
   --------------------------------------------------------- */

.main-nav {
  display: flex;
  gap: 29px;
  align-items: center;
}

.main-nav > a {
  text-decoration: none;
  font-size: 15px;
  padding: 33px 0 28px;
  border-bottom: 3px solid transparent;
}

.main-nav > a:hover,
.main-nav > a.active {
  border-color: var(--red);
}

.menu-toggle {
  display: none;
}


/* =========================================================
   4. DROPDOWN „BERATUNG“
   Untermenü der Hauptnavigation
   ========================================================= */

.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;
}


/* Positionierung im Header
   --------------------------------------------------------- */

.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);
}


/* 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;
}

@media (min-width: 821px) {

  .menu-dropdown:hover .submenu,
  .menu-dropdown:focus-within .submenu {
    display: block;
  }

}


/* =========================================================
   5. HERO
   Allgemeiner Seitenkopf
   ========================================================= */

.hero {
  padding: 92px 0 82px;
  background: #fff;
}

.hero.navy {
  background: var(--navy);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 72px;
  align-items: center;
}

.hero.navy .kicker {
  color: #f1b4b4;
}

.hero.navy .lead {
  color: #e7edf2;
}


/* Hero-Grafikelemente
   --------------------------------------------------------- */

.visual {
  height: 340px;
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .35);
}

.visual span {
  position: absolute;
  display: block;
  border: 1px solid currentColor;
  opacity: .32;
  transform: rotate(-10deg);
}

.visual span:nth-child(1) {
  width: 280px;
  height: 180px;
  right: 10px;
  top: 28px;
}

.visual span:nth-child(2) {
  width: 220px;
  height: 280px;
  right: 70px;
  top: 80px;
}

.visual span:nth-child(3) {
  width: 120px;
  height: 360px;
  right: 190px;
  top: -20px;
}

.visual-light {
  color: var(--navy);
}

.visual-navy {
  color: #fff;
}


/* =========================================================
   6. ALLGEMEINE INHALTSBEREICHE
   Sections, Karten und Inhaltsraster
   ========================================================= */

.section {
  padding: 92px 0;
  background: #fff;
}

.section.beige {
  background: var(--beige);
}


/* Karten und Raster
   --------------------------------------------------------- */

.cards,
.feature-grid,
.three {
  display: grid;
  gap: 26px;
  margin-top: 48px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.feature-grid > div,
.three > div {
  border-top: 2px solid var(--navy);
  padding: 28px 0 8px;
}

.card p,
.feature-grid p,
.three p {
  color: var(--muted);
}

.feature-grid h3,
.cards h3,
.three h3 {
  font-size: 22px;
  font-weight: 500;
}


/* Links und Buttons
   --------------------------------------------------------- */

.card .text-link,
.text-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  color: var(--red);
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 18px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 12px 19px;
  font-size: 16px;
}


/* Zweispaltige Inhalte
   --------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}


/* Zitate
   --------------------------------------------------------- */

.quote {
  border-left: 4px solid var(--red);
  padding-left: 28px;
}

.quote p {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.quote small {
  color: var(--muted);
}

blockquote {
  font-size: 28px;
  line-height: 1.35;
  border-left: 4px solid var(--red);
  margin: 42px 0;
  padding: 8px 0 8px 26px;
}


/* Hervorgehobene Inhalte
   --------------------------------------------------------- */

.callout {
  margin-top: 54px;
  padding: 26px 30px;
  border-left: 4px solid var(--red);
  background: var(--beige);
}

.three span {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}


/* =========================================================
   7. PROFIL / ÜBER MICH
   Allgemeine ältere Seitentemplates
   ========================================================= */

.profile-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 72px;
}

.portrait-placeholder {
  min-height: 560px;
  background: linear-gradient(145deg, #e9edf0, #d9e0e5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--navy);
}

.portrait-placeholder span {
  font-size: 24px;
}

.portrait-placeholder small {
  color: var(--muted);
  margin-top: 8px;
}

.profile-points h3 {
  margin-top: 30px;
}

.profile-points p {
  color: var(--muted);
}


/* =========================================================
   8. IMPULSE / ARTIKEL
   Allgemeine ältere Inhaltstemplates
   ========================================================= */

.impulse-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.impulse-list article > span {
  color: var(--red);
  font-weight: 700;
}

.impulse-list h2 {
  font-size: 36px;
  margin-bottom: 10px;
}


/* Artikel
   --------------------------------------------------------- */

.article {
  padding: 84px 0;
  background: #fff;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 78px;
}

.article h2 {
  font-size: 34px;
  margin-top: 55px;
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  max-width: 760px;
}

.article-points {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.article-points p {
  padding: 19px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}


/* Seitenspalte
   --------------------------------------------------------- */

aside {
  border-top: 2px solid var(--navy);
  padding-top: 24px;
  color: var(--muted);
  position: sticky;
  top: 120px;
  align-self: start;
}

aside hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}


/* =========================================================
   9. KONTAKTBEREICHE
   Allgemeine Kontaktdefinitionen älterer Templates
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .75fr;
  gap: 60px;
}

.contact-grid a {
  color: var(--red);
  text-decoration: none;
}

.contact-direct {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}

.contact-grid .country-title {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 24px;
  color: var(--navy);
}

.contact-grid .company-name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-grid .contact-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  font-weight: 600;
}

.contact-grid p {
  margin-top: 0;
}


/* =========================================================
   10. RECHTLICHE SEITEN
   Impressum und Datenschutz
   ========================================================= */

.narrow {
  max-width: 780px;
}

.legal h2 {
  margin-top: 2.2rem;
  margin-bottom: .65rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.legal p {
  margin: 0 0 1rem;
}

.legal a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* =========================================================
   11. FOOTER
   Grunddefinition – footer.css ergänzt das gemeinsame Design
   ========================================================= */

.site-footer {
  background: var(--navy2);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 52px max(32px, calc((100% - var(--max)) / 2));
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}


/* =========================================================
   12. TABLET / MOBILE BIS 820 PX
   ========================================================= */

@media (max-width: 820px) {

  /* Grundlagen
     ------------------------------------------------------- */

  body {
    font-size: 17px;
  }

  .wrap {
    width: min(100% - 36px, var(--max));
  }


  /* Header
     ------------------------------------------------------- */

  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
  }


  /* Hauptnavigation
     ------------------------------------------------------- */

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: #fff;
    padding: 18px 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 8px 0;
  }


  /* Beratung-Dropdown
     ------------------------------------------------------- */

  .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;
  }

  .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;
  }


  /* Hero und Inhalte
     ------------------------------------------------------- */

  .hero {
    padding: 64px 0;
  }

  .hero-grid,
  .split,
  .profile-grid,
  .article-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .visual {
    height: 190px;
  }

  .cards,
  .feature-grid,
  .three {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .article {
    padding: 64px 0;
  }

  aside {
    position: static;
  }


  /* Kontakt
     ------------------------------------------------------- */

  .contact-direct {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .contact-grid .country-title {
    font-size: 24px;
  }


  /* Footer
     ------------------------------------------------------- */

  .site-footer {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

}

/* =========================================================
   13. FINAL MOBILE HEADER
   Navigation wie auf den übrigen Seiten
   ========================================================= */

@media screen and (max-width: 820px) {

  .site-header {
    height: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-text {
    display: block !important;
    text-align: left;
  }

  .brand-text small {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
  }

  .menu-toggle {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
    position: static !important;
    width: 100%;
    padding: 0 !important;
    background: transparent;
    border: 0;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px 16px;
  }

  .main-nav > a,
  .main-nav > .menu-dropdown > summary {
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 0;
  }

  .main-nav > .menu-dropdown {
    align-self: auto;
  }

  .main-nav > .menu-dropdown > summary {
    height: auto;
  }
}