/* ============================================================
   Brand Consult GmbH — style.css
   ============================================================ */

/* === 1. CSS Custom Properties === */
:root {
  --color-bg:          #14526e;
  --color-bg-mid:      #1a6b8a;
  --color-bg-light:    #1f7ea1;
  --color-accent:      #2aafd3;
  --color-white:       #ffffff;
  --color-subtitle:    #8aa8b4;
  --color-text:        #e8f4f8;
  --color-footer-bg:   #0d3344;
  --color-footer-text: #8aa8b4;
  --color-divider:     #1f5f7a;
  --color-nav-hover:   #0f3f55;
  --color-nav-active:  #0d3f57;
  --color-header-bg:   #0f3e54;

  --font-heading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --max-width:   1140px;
  --sidebar-w:   240px;
  --nav-h:       44px;
  --header-h:    auto;
}

/* === 2. Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* === 3. Layout Shell === */
.site-wrapper {
  width: 100%;
  max-width: var(--max-width);
  background-color: var(--color-bg);
  border: 2px solid #4a7a96;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === 4. Header / Logo === */
.site-header {
  background-color: #ffffff;
  height: 95px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 28px;
  border-bottom: 2px solid var(--color-divider);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.logo__img {
  width: 340px;
  height: auto;
  display: block;
  margin-top: -42px;
}

.logo__subtitle-bar {
  background-color: #4a6e7e;
  padding: 3px 8px;
  display: inline-block;
}

.logo__subtitle {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: #c8d8df;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* === 5. Primary Navigation === */
.nav-primary {
  background-color: var(--color-bg);
  border-bottom: 3px solid var(--color-accent);
}

.nav-primary__list {
  display: flex;
  align-items: stretch;
}

.nav-primary__link {
  display: block;
  padding: 0 28px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-primary__link:hover {
  background-color: var(--color-nav-hover);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

.nav-primary__link--active {
  background-color: var(--color-nav-active);
  border-bottom-color: var(--color-white);
}

/* === 6. Two-Column Page Body === */
.page-body {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* === 7. Sidebar === */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background-color: var(--color-nav-active);
  overflow: hidden;
  position: relative;
}

.sidebar__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) brightness(0.75);
}

.sidebar__placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(
    180deg,
    #0d3d54 0%,
    #1a5c78 30%,
    #12475f 60%,
    #0a2e3d 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

/* === 8. Main Content === */
.content {
  flex: 1;
  padding: 24px 40px 36px;
  background-color: var(--color-bg);
}

/* Page title (for sub-pages) */
.content__page-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-divider);
  display: none; /* hidden — nav already indicates current page */
}

/* === 9. Profil Sections === */
.profile-section {
  padding: 14px 0 10px;
}

.profile-section__heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.profile-section__subtitle {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.5;
}

.profile-section__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 6px;
  max-width: 100%;
}

.read-more {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-subtitle);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.read-more:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 2px 0;
}

/* === 10. Sub-tab Navigation (Geschäftsführung) === */
.subtab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.subtab-nav__btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  background-color: var(--color-nav-hover);
  border: 1px solid var(--color-divider);
  padding: 7px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.subtab-nav__btn:hover {
  background-color: var(--color-bg-mid);
  color: var(--color-white);
}

.subtab-nav__btn--active {
  background-color: var(--color-bg-light);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* === 11. Biography (Geschäftsführung) === */
.bio__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.bio__credentials {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-subtitle);
  margin-bottom: 16px;
  font-style: italic;
}

.bio__roles {
  margin: 0;
  padding: 0;
}

.bio__role {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 6px 16px;
  padding: 11px 0;
  border-top: 1px solid var(--color-divider);
}

.bio__role-company {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  padding-top: 1px;
  line-height: 1.4;
}

.bio__role-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.65;
}

/* === 12. Footer === */
.site-footer {
  background-color: var(--color-footer-bg);
  padding: 12px 28px;
  text-align: right;
  border-top: 1px solid var(--color-divider);
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-footer-text);
}

.footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.site-footer a {
  color: var(--color-footer-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* === 13. Media Queries === */
@media (max-width: 768px) {
  .page-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 160px;
  }

  .sidebar__img {
    height: 160px;
    object-position: center 30%;
  }

  .sidebar__placeholder {
    min-height: 160px;
    height: 160px;
    align-items: center;
    padding: 0;
  }

  .nav-primary__list {
    flex-wrap: wrap;
  }

  .nav-primary__link {
    padding: 0 16px;
    font-size: 0.76rem;
  }

  .bio__role {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bio__role-company {
    font-size: 0.78rem;
  }

  .content {
    padding: 18px 18px 24px;
  }
}

@media (max-width: 480px) {
  .nav-primary__list {
    flex-direction: column;
  }

  .nav-primary__link {
    border-bottom: none;
    border-left: 3px solid transparent;
    height: 40px;
    line-height: 40px;
    margin-bottom: 0;
  }

  .nav-primary__link--active,
  .nav-primary__link:hover {
    border-left-color: var(--color-accent);
    border-bottom-color: transparent;
  }

  .logo__name {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .site-header {
    height: auto;
    padding: 14px 16px;
    justify-content: flex-start;
  }
}
