/* ============================================================
   gutachten-batteriespeicher.css
   CI-Farbe: #000066 | Hover: #F2CE00
   ============================================================ */

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

/* ---------- CSS-Variablen ---------- */
:root {
  --primary:       #000066;
  --primary-dark:  #000044;
  --primary-light: #1a1a99;
  --primary-bg:    #f0f0f8;
  --accent:        #F2CE00;
  --hover:         #F2CE00;
  --text:          #1a1a1a;
  --text-light:    #5a5a5a;
  --bg:            #ffffff;
  --bg-alt:        #f5f5f8;
  --bg-dark:       #00001a;
  --nav-bg:        #eaeaf5;
  --nav-border:    #c0c0e0;
  --border:        #d0d0e8;
  --white:         #ffffff;
  --shadow:        0 2px 16px rgba(0,0,102,0.08);
  --shadow-lg:     0 6px 32px rgba(0,0,102,0.14);
  --radius:        6px;
  --radius-lg:     12px;
  --transition:    0.28s ease;
  --font-head:     'Barlow Condensed', sans-serif;
  --font-body:     'Source Serif 4', serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--hover); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Utility ---------- */
.container       { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.text-center     { text-align: center; }
.bg-alt          { background: var(--bg-alt); }
.bg-dark         { background: var(--bg-dark); color: var(--white); }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--primary); color: var(--white);
  padding: 0.5rem 1rem; border-radius: var(--radius);
  z-index: 9999; font-family: var(--font-head);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   HEADER – zweizeilig
   ============================================================ */
.header-top {
  background: #ffffff;
  border-bottom: 1px solid var(--nav-border);
}
.header-top__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
}
.bdsf-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 1.5rem;
  border-right: 1px solid var(--nav-border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 2px solid var(--nav-border);
  box-shadow: 0 2px 12px rgba(0,0,102,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo__mark {
  width: 44px; height: 44px;
  background: var(--primary-dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__name {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
  line-height: 1;
}
.site-logo__claim {
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex; flex-wrap: wrap; gap: 0;
  list-style: none; padding: 0; margin: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.92rem; font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { background: var(--primary-bg); color: var(--primary-dark); }

/* Dropdown */
.nav-menu .dropdown-toggle::after { content: ' ▾'; font-size: 0.75em; opacity: 0.7; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  padding: 0.4rem 0;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-head);
  font-size: 0.9rem; font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--primary-bg); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.4rem; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--primary-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO – Split-Design: Bild volle Breite, transparente Box links
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../images/top.png');
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
}
/* Elegante transparente Content-Box links */
.hero__content {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
}
.hero__box {
  background: rgba(0, 0, 68, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2.5rem 2.8rem 2.5rem 2.2rem;
  max-width: 520px;
  box-shadow: 0 8px 40px rgba(0,0,50,0.35);
}
.hero__kicker {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero__lead {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  font-weight: 300;
  line-height: 1.65;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.72rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-dark); }
.btn--accent { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.btn--accent:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding: 0.75rem 0; font-size: 0.82rem; color: var(--text-light); font-family: var(--font-head); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 0.3rem; color: var(--primary); }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { color: var(--hover); }

/* ============================================================
   PAGE HEADER (Unterseiten)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--accent);
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header .lead { color: rgba(255,255,255,0.8); font-size: 1.05rem; font-weight: 300; max-width: 680px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }
.section__header { margin-bottom: 2.5rem; }
.section__header .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section__header h2 { margin-bottom: 0.75rem; }
.section__header p { color: var(--text-light); font-size: 1.05rem; max-width: 640px; }
.section__header--center { text-align: center; }
.section__header--center p { margin: 0 auto; }

.divider { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin: 1rem 0 1.5rem; }
.divider--center { margin: 1rem auto 1.5rem; }
.divider--accent { background: var(--accent); }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.card p  { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }
.card--highlight { border-color: var(--primary); border-left-width: 4px; }

/* ============================================================
   INFO-BOX
   ============================================================ */
.info-box {
  background: var(--bg-alt);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.info-box--accent { border-left-color: var(--accent); background: #fffbe6; }
.info-box h4 { margin-bottom: 0.4rem; }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 0.55rem 0 0.55rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
  font-family: var(--font-head);
}

/* ============================================================
   TWO-COLUMN
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col--60-40 { grid-template-columns: 3fr 2fr; }
.two-col--40-60 { grid-template-columns: 2fr 3fr; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { background: var(--primary); color: var(--white); font-family: var(--font-head); font-weight: 700; padding: 0.7rem 1rem; text-align: left; }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--bg-alt); }
tr:hover td { background: #e8e8f5; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--primary); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.accordion-btn::after { content: '+'; font-size: 1.4rem; }
.accordion-btn.open { background: var(--bg-alt); }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding: 0 1.4rem 1.2rem; color: var(--text-light); font-size: 0.97rem; }
.accordion-body.open { display: block; }

/* ============================================================
   PARTNER LINKS
   ============================================================ */
.partner-links { background: var(--bg-alt); padding: 2.5rem 0; border-top: 3px solid var(--primary); }
.partner-links__inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.partner-links h3 { color: var(--primary-dark); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 700; }
.partner-links__grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.partner-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--white); border: 1px solid var(--nav-border);
  color: var(--primary-dark);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.partner-link:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.partner-link::before { content: '→'; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--nav-bg); color: var(--text-light); padding: 3rem 0 0; font-size: 0.9rem; border-top: 2px solid var(--nav-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 2.5rem; }
.footer-col h4 { color: var(--primary-dark); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--text-light); font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary-dark); }
.footer-col p { color: var(--text-light); font-size: 0.85rem; line-height: 1.7; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--nav-border); padding: 1.2rem 1.5rem;
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-light);
}
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--primary-dark); }

/* ============================================================
   CONTENT LAYOUT (Sidebar)
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.sidebar-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; margin-bottom: 1.5rem; }
.sidebar-box h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; color: var(--primary); font-weight: 700; }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { margin-bottom: 0.4rem; }
.sidebar-box ul li a { font-size: 0.875rem; color: var(--text); }
.sidebar-box ul li a:hover { color: var(--primary); }
.sidebar-box--cta { background: var(--primary); color: var(--white); text-align: center; }
.sidebar-box--cta h4 { color: var(--accent); }
.sidebar-box--cta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1rem; }

/* ============================================================
   GUTACHTEN-SPEZIFISCH: Leistungsboxen
   ============================================================ */
.leistung-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.leistung-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.leistung-box__nr {
  font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 800;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.leistung-box h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.leistung-box p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .two-col, .two-col--60-40, .two-col--40-60 { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .bdsf-logo { display: none; }
  .nav-menu {
    display: none; flex-direction: column; width: 100%;
    background: var(--nav-bg); border-top: 1px solid var(--nav-border);
    padding: 0.5rem 0 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 0.7rem 1.5rem; }
  .dropdown-menu { position: static; border: none; box-shadow: none; padding-left: 1.5rem; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { width: 100%; flex-direction: column; align-items: stretch; }
  .hero { min-height: 380px; }
  .hero__box { max-width: 100%; border-radius: var(--radius-lg); border-left-width: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .btn { padding: 0.65rem 1.3rem; font-size: 0.88rem; }
  .hero__cta { flex-direction: column; }
  .hero__box { padding: 1.8rem 1.4rem; }
}

@media print {
  .site-header, .site-footer, .partner-links { display: none; }
  body { font-size: 12pt; color: #000; }
}
