/* ─────────────────────────────────────────────────────────────
   MPT Photovoltaik — geteiltes CSS
   Wird auf jeder Seite eingebunden. Enthält die selbst-gehostete
   Schrift (DSGVO: KEIN Google-Fonts-Hotlink) sowie geteilte Tokens.
   Seitenspezifische Komponenten-Styles bleiben pro Seite inline.
   ───────────────────────────────────────────────────────────── */

/* ── Inter, selbst gehostet (assets/fonts/) — Latin-Subset ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-900-normal.woff2') format('woff2');
}

/* Fallback-Stack, falls die Schrift (noch) nicht geladen ist */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   Geteiltes Chrome — Header, Footer, Buttons, Container.
   Wird von den SSI-Includes auf JEDER Seite gebraucht.
   ───────────────────────────────────────────────────────────── */
:root {
  --navy:   #0D1B4B;
  --orange: #F47B20;
  --green:  #2D7A4F;
  --light:  #F4F6FB;
  --gray:   #6B7280;
  --white:  #FFFFFF;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(13,27,75,0.10);
}

/* Accessibility: Sprunglink */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 50px;
  border: 2px solid var(--orange);
  cursor: pointer; transition: all .2s;
}
.btn-primary:hover { background: #d96b16; border-color: #d96b16; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 50px;
  border: 2px solid var(--navy);
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Scroll-Animation */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* HEADER / NAV */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13,27,75,0.08);
}
header nav { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.logo { display: flex; align-items: center; }
.logo img.logo-img { height: 70px; width: auto; display: block; }
.logo-text .brand { font-size: 21px; font-weight: 900; color: var(--navy); letter-spacing: -0.5px; }
.logo-text .brand em { color: var(--orange); font-style: normal; }
.logo-text .tagline { font-size: 9px; font-weight: 600; color: var(--gray); letter-spacing: 1.4px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--navy); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  background: var(--white); padding: 12px 24px 20px;
  border-top: 1px solid #eee;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid #f0f0f0; color: var(--navy); }

/* FOOTER */
footer { background: var(--navy); color: var(--white); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; align-items: start; }
.footer-brand .brand { font-size: 20px; font-weight: 900; color: var(--white); }
.footer-brand .brand em { color: var(--orange); font-style: normal; }
.footer-brand .tagline { font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 1.4px; text-transform: uppercase; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-top: 14px; max-width: 300px; }
.footer-address { font-style: normal; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.95; }
.footer-address a { color: rgba(255,255,255,0.7); transition: color .2s; }
.footer-address a:hover { color: var(--orange); }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color .2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 16px; transition: color .2s; }
.footer-bottom a:hover { color: var(--orange); }

/* Responsive Chrome */
@media (max-width: 960px) {
  .nav-links, header > nav > a.btn-primary { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Honeypot-Feld (Spamschutz) — für Menschen unsichtbar */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* FAQ (AEO) */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--light); border: 1px solid #e3e8f3; border-radius: 12px;
  padding: 4px 22px; transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--orange); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-size: 16px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; color: var(--orange); font-weight: 400; flex-shrink: 0; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 18px; font-size: 15px; color: var(--gray); line-height: 1.7; }
