/* ============================================================
   BauEvidenz Theme — main.css
   Schrift: Barlow (Google Fonts) — keine Serifen
   Farben: Navy #1a3d5c · Blau #2d6a8f · Hellblau #e8f2f8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Barlow', Arial, Helvetica, sans-serif !important;
}

:root {
  --navy:    #1a3d5c;
  --blue:    #2d6a8f;
  --bl:      #3a85b0;
  --pale:    #e8f2f8;
  --white:   #ffffff;
  --off:     #f7fafc;
  --g100:    #f0f4f8;
  --g200:    #dce6ee;
  --tl:      #5a7080;
  --text:    #1e2d3a;
  --r:       6px;
  --rl:      12px;
  --shadow:  0 2px 16px rgba(26,61,92,.08);
  --shadow-lg: 0 8px 40px rgba(26,61,92,.14);
  --trans:   0.22s cubic-bezier(0.4,0,0.2,1);

  /* =====================================================
     LOGO-EINSTELLUNGEN — hier anpassen
     ===================================================== */

  /* Header: Icon-Höhe und Wortmarke-Höhe */
  --logo-header-icon-height:  58px;
  --logo-header-word-height:  26px;
  --logo-header-gap:          14px;   /* Abstand Icon ↔ Wortmarke */
  --logo-header-word-offset:  2px;    /* Feinabstimmung vertikal: + = tiefer, - = höher */

  /* Hero-Karte (Startseite): Icon und Wortmarke */
  --logo-hero-icon-height:    90px;
  --logo-hero-word-height:    26px;
  --logo-hero-gap:            10px;

  /* Footer: Icon und Wortmarke */
  --logo-footer-icon-height:  50px;
  --logo-footer-word-height:  20px;
  --logo-footer-gap:          8px;
  --logo-footer-word-offset:  0px;    /* Feinabstimmung vertikal */
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── TYPOGRAFIE — KEIN SERIF ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { line-height: 1.75; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g200);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: Icon + Wortmarke nebeneinander, Wortmarke vertikal zentriert */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--logo-header-gap);
  text-decoration: none;
}
.site-logo .logo-icon { height: var(--logo-header-icon-height); width: auto; display: block; }
.site-logo .logo-word { height: var(--logo-header-word-height); width: auto; display: block; margin-top: var(--logo-header-word-offset); }

/* Navigation */
nav.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav.main-nav a {
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tl);
  border-radius: var(--r);
  transition: color var(--trans), background var(--trans);
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--navy); background: var(--pale); }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--r) !important;
  padding: 6px 16px !important;
}
.nav-cta:hover { background: var(--blue) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--trans);
}

/* ── PAGE WRAPPER ── */
.page-content { padding-top: 76px; }

/* ── LAYOUT HELFER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--pale);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r);
  cursor: pointer;
  border: none;
  transition: all var(--trans);
}
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--pale); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.btn-outline  { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-dark     { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4d6b 55%, var(--blue) 100%);
  padding: 100px 0 80px;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: rgba(255,255,255,.3);
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: rgba(255,255,255,.62); }
.hero-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Logo Card */
.hero-logo-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--rl);
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo-card .hero-card-icon { height: var(--logo-hero-icon-height); width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: var(--logo-hero-gap); }
.hero-logo-card .hero-card-word { height: var(--logo-hero-word-height); width: auto; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 20px; }
.hero-logo-card .card-divider { width: 100%; height: 1px; background: rgba(255,255,255,.12); margin-bottom: 18px; }
.hero-logo-card .card-tag { font-size: .75rem; color: rgba(255,255,255,.45); text-align: center; line-height: 1.65; max-width: 210px; margin-bottom: 18px; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,.06);
  border-radius: var(--r);
  padding: 10px 8px;
}
.hero-stat-num { font-size: 1.3rem; font-weight: 700; color: #fff; }
.hero-stat-lbl { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── STRIP ── */
.stats-strip {
  background: var(--navy);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num { font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 4px; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 24px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-card:hover::after { transform: scaleX(1); }
.card-icon-wrap {
  width: 64px; height: 64px;
  background: var(--pale);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card-icon-wrap svg {
  width: 36px; height: 36px;
  stroke: var(--blue);
}

/* Größere Icons für Service-Rows auf Leistungsseite */
.service-icon-wrap {
  width: 64px; height: 64px;
  background: var(--pale);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.service-icon-wrap svg {
  width: 34px; height: 34px;
  stroke: var(--blue);
}

/* Visual Box Icon (Hero, Über uns etc.) */
.visual-box-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.15);
  border-radius: var(--rl);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-box-icon svg {
  width: 44px; height: 44px;
  stroke: rgba(255,255,255,.85);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { font-size: .85rem; color: var(--tl); line-height: 1.65; }

/* ── TWO COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.visual-box {
  border-radius: var(--rl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.visual-badge {
  position: absolute;
  bottom: -12px; right: -12px;
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.badge-num { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.badge-txt { font-size: 11px; font-weight: 500; color: var(--tl); }

.check-list { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .87rem;
  color: var(--tl);
  line-height: 1.65;
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--pale);
  color: var(--blue);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── VISION BOX ── */
.vision-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--rl);
  padding: 2.5rem;
  margin-top: 40px;
}
.vision-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.vision-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.vision-box p  { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.78; }

/* ── PAGE HERO (Unterseiten) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 80px 0 70px;
}
.page-hero .section-label { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero h1 em { font-style: italic; color: rgba(255,255,255,.65); }
.page-hero p { font-size: .92rem; color: rgba(255,255,255,.65); max-width: 520px; line-height: 1.8; }

/* ── SERVICES DETAIL ── */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem;
  background: var(--off);
  border-radius: var(--rl);
  border: 1px solid var(--g200);
  align-items: start;
  margin-bottom: 20px;
}
.service-row h2 { font-size: 1.25rem; text-align: left; margin-bottom: 8px; }
.service-img {
  border-radius: var(--rl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--blue);
  background: var(--pale);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── CTA BAR ── */
.cta-bar {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.cta-bar h2 { color: #fff; margin-bottom: 12px; }
.cta-bar p  { font-size: .92rem; color: rgba(255,255,255,.58); margin-bottom: 24px; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r);
}
.contact-icon {
  width: 38px; height: 38px;
  background: var(--pale);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-text strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--tl);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}
.contact-text span { font-size: .9rem; color: var(--navy); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.15rem; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--tl);
  margin-bottom: 5px;
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: .9rem;
  color: var(--text);
  background: var(--g100);
  border: 1px solid transparent;
  border-radius: var(--r);
  outline: none;
  transition: all var(--trans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,106,143,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  width: 100%;
  padding: 11px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-submit:hover { background: var(--blue); }

/* ── FOOTER ── */
.site-footer {
  background: #1e2d3a;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
/* Footer Logo: Icon + Wortmarke vertikal */
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--logo-footer-gap); margin-bottom: 14px; }
.footer-logo .footer-logo-icon { height: var(--logo-footer-icon-height); width: auto; filter: brightness(0) invert(1); opacity: .82; }
.footer-logo .footer-logo-word { height: var(--logo-footer-word-height); width: auto; filter: brightness(0) invert(1); opacity: .72; margin-top: var(--logo-footer-word-offset); }
.footer-desc { font-size: .82rem; line-height: 1.75; max-width: 240px; color: rgba(255,255,255,.42); }

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.42); transition: color var(--trans); }
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.28);
}

/* ── SOCIAL MEDIA ICONS ── */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  transition: all var(--trans);
  flex-shrink: 0;
}
.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.social-links a svg {
  width: 16px; height: 16px;
  fill: rgba(255,255,255,.7);
  display: block;
}
.social-links a:hover svg { fill: #fff; }

/* Social auf Kontaktseite (helle Version) */
.social-links-light a {
  background: var(--pale);
  border: 1px solid var(--g200);
}
.social-links-light a svg { fill: var(--blue); }
.social-links-light a:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.social-links-light a:hover svg { fill: #fff; }

/* ── FADE ANIMATIONEN ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--g200);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
  }
  nav.main-nav.open ul { flex-direction: column; gap: 4px; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-card { display: none; }
  .hero { min-height: auto; padding: 80px 0 60px; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-img { display: none; }
}
