/* ===========================================
   MICHAEL WIEMEIER – Sachverständigenbüro
   =========================================== */

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

:root {
  --navy:       #263246;
  --blue:       #025c7f;
  --blue-mid:   #4e66a6;
  --nav-link:   #83b6e1;
  --red:        #D83A3A;
  --white:      #ffffff;
  --gray-bg:    #f5f7fa;
  --gray-line:  #dde3ea;
  --text:       #3a3a3a;
  --text-muted: #868990;
  --font:       'Segoe UI', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ===========================================
   NAVIGATION
   =========================================== */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(38, 50, 70, 0.95);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Navigation-Links */
nav ul { list-style: none; }

.nav-links {
  display: flex;
  gap: 0;
}

.nav-links a {
  display: block;
  color: var(--nav-link);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-mid);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--nav-link); /* #83b6e1 hellblau */
  border-radius: 2px;
}

/* ===========================================
   HERO – Bild vollständig anzeigen
   =========================================== */
#hero {
  margin-top: 70px; /* Platz für fixe Navigation */
  position: relative;
  line-height: 0; /* Kein Whitespace unter img */
}

.hero-img-wrap {
  position: relative;
  display: block;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 2rem 7rem;
  gap: 1rem;
  line-height: 1.4; /* überschreibt geerbtes line-height: 0 vom img-wrap */
}

.hero-text h1 {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--blue-mid);
  line-height: 1.15;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  margin: 0;
}

.hero-divider {
  border: none;
  border-top: 2px solid var(--blue-mid);
  width: 80%;
  max-width: 500px;
  margin: 0;
  opacity: 0.8;
}

.hero-text .tagline {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--blue-mid);
  text-shadow: 1px 1px 3px rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  margin: 0;
}

/* Tagline: immer flex-column (Mobile), auf Desktop als Zeile */
.hero-text .tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

/* Desktop: Einzeiler mit Trennern via CSS */
@media (min-width: 901px) {
  .hero-text .tagline {
    flex-direction: row;
    gap: 0;
  }
  .tagline-item:not(:last-child)::after {
    content: '\00a0\2013\00a0'; /* &nbsp;–&nbsp; */
  }
}

@media (max-width: 900px) {
  .hero-text {
    padding-bottom: 3rem;
  }
}

/* ===========================================
   SECTIONS SHARED
   =========================================== */
section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-title-underline {
  width: 50px;
  height: 3px;
  background: var(--red);
  margin-bottom: 2.2rem;
}

.col-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

/* ===========================================
   ÜBERSICHT – 3-spaltig wie Original
   =========================================== */
#uebersicht {
  background: var(--white);
}

.uebersicht-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.uebersicht-col p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* Standard-Bullets hellblau für alle Inhaltslisten */
#uebersicht ul,
#biographie .bio-content-col ul {
  list-style: disc;
  padding-left: 1.3rem;
  color: var(--text-muted);
}

#uebersicht ul li,
#biographie .bio-content-col ul li {
  font-size: 1rem;
  padding: 0.2rem 0;
  line-height: 1.6;
}

/* Bullet-Farbe hellblau */
#uebersicht ul li::marker,
#biographie .bio-content-col ul li::marker {
  color: var(--nav-link);
}

/* ===========================================
   BIOGRAPHIE
   =========================================== */
#biographie {
  background: var(--gray-bg);
}

.bio-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.bio-photo {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 3px 16px rgba(38,50,70,0.15);
  display: block;
}

.bio-name-box {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
  width: 100%;
}

.bio-name-box strong {
  font-size: 0.97rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* --- Chronologie --- */
.chrono-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.chrono-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-line);
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

.chrono-list li:first-child {
  border-top: 1px solid var(--gray-line);
}

.chrono-year {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
}

/* ===========================================
   KONTAKT
   =========================================== */
#kontakt {
  background: var(--white);
}

.kontakt-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 500px;
}

.kontakt-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.kontakt-block a {
  color: var(--blue);
}

.kontakt-closing {
  font-weight: 600;
  color: var(--navy) !important;
  font-size: 1.05rem !important;
  margin-top: 0.5rem;
}

/* ===========================================
   FOOTER
   =========================================== */
#footer {
  background: var(--navy);
  padding: 1.8rem 1.5rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===========================================
   IMPRESSUM / DATENSCHUTZ
   =========================================== */
.legal-page {
  padding-top: 70px;
  min-height: 100vh;
}

.legal-header {
  background: var(--navy);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.legal-header h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.5rem;
}

.legal-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.3rem 0 0.3rem;
}

.legal-body p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-body a { color: var(--blue); }

.legal-back {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2rem;
  text-decoration: none;
}
.legal-back:hover {
  text-decoration: underline;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 900px) {
  .uebersicht-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bio-photo-col {
    flex-direction: row;
    align-items: flex-start;
  }
  .bio-photo { max-width: 180px; }
  .bio-name-box { max-width: 180px; flex-shrink: 0; }
}

@media (max-width: 640px) {
  nav ul.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    background: rgba(38,50,70,0.97);
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.1rem;
  }
  nav ul.nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .uebersicht-grid { grid-template-columns: 1fr; }

  .bio-photo-col {
    flex-direction: column;
    align-items: center;
  }
  .bio-photo, .bio-name-box { max-width: 220px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .chrono-list li { flex-direction: column; gap: 0.2rem; }
  .chrono-year { min-width: auto; }
}
