/* ============================================
   BodenXperts · Shared Stylesheet · v6 (4 Seiten)
   Look: Modern, handwerklich-technisch, Sans-Serif
   ============================================ */

/* Schriften: System-Sans-Stack mit Inter-Vorzug.
   Bei Bedarf später Inter als WOFF2 unter assets/fonts/ ablegen
   und @font-face hier einkommentieren. */
/*
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Inter.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono.woff2') format('woff2-variations');
}
*/

:root {
  /* Dunkle Bereiche (Hero, Topbar, Footer) */
  --bg: #161616;
  --bg-2: #1F1F1F;
  --bg-deep: #0A0A0A;

  /* Helle Flächen */
  --surface: #FAFAFA;
  --surface-warm: #F3F2EE;
  --surface-deep: #E8E8E5;
  --white: #FFFFFF;

  /* Text */
  --ink: #161616;
  --ink-soft: #404040;
  --muted: #7A7A7A;

  /* Linien */
  --line: #D8D8D5;
  --line-soft: #ECEAE5;

  /* Akzent: Schlüter-Orange als handwerklich-technischer Akzent.
     Dunkle Variante für Hover, hellere für Background-Tints. */
  --accent: #E85D1F;
  --accent-hover: #C44A14;
  --accent-soft: #FBE6D9;
  --accent-2: #A8A8A6;
  --accent-dark: #161616;

  /* Mono-Font Variable (optional) */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01' on, 'cv11' on;
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============ SCROLL PROGRESS BAR ============ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* ============ TOP BAR ============ */
.topbar {
  background: var(--bg-deep);
  color: var(--surface-warm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 16px 0;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
}
.topbar-left span,
.topbar-right a {
  color: inherit;
  opacity: 0.92;
  padding: 0 22px;
  position: relative;
  transition: opacity 0.2s;
}
.topbar-left span:first-child,
.topbar-right a:first-child { padding-left: 0; }
.topbar-left span:last-child,
.topbar-right a:last-child { padding-right: 0; }
.topbar-left span:not(:last-child)::after,
.topbar-right a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.22);
}
.topbar-right a:hover { opacity: 1; color: var(--accent-2); }
.topbar-trust {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 1 !important;
}

/* ============ HEADER (with active state) ============ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-mark { display: none; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-footer .logo-img {
  height: 30px;
}
/* Header-Logo: das neue Logo bringt seinen orangen Rahmen selbst mit,
   daher hier kein zusätzlicher CSS-Rahmen (sonst doppelt). */
header .logo {
  border: none;
  padding: 0;
}

nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
nav a {
  display: block;
  padding: 10px 18px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 3px;
  position: relative;
}
nav a:hover {
  color: var(--accent);
  background: var(--surface-warm);
}
/* ACTIVE STATE , current page highlighted */
nav a.active {
  color: var(--accent);
  background: var(--surface-warm);
  font-weight: 600;
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -33px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--accent);
}

.cta-btn {
  background: var(--ink);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--ink-soft); transform: translateY(-1px); }
.cta-btn.accent { background: var(--accent); color: var(--white); }
.cta-btn.accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta-btn.outline {
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
}
.cta-btn.outline:hover { background: var(--ink); color: var(--white); }
.cta-btn.outline-light {
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3);
}
.cta-btn.outline-light:hover {
  background: rgba(255,255,255,0.08); border-color: var(--white);
}

/* ============ PAGE INDICATOR BANNER (Breadcrumb) ============ */
.page-banner {
  background: var(--bg);
  color: var(--surface-warm);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 55%);
}
.page-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-weight: 500;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  display: inline;
  padding: 0;
}
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .current { color: var(--accent-2); }
.breadcrumb-sep { opacity: 0.4; }
.page-banner h1 {
  font-family: var(--font-sans);
  font-size: clamp(34px, 5vw, 60px);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.02;
  max-width: 900px;
}
.page-banner h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.page-banner .lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  line-height: 1.6;
}

/* ============ SECTIONS ============ */
section { padding: 100px 0; }
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 20px;
  max-width: 880px;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 740px;
  line-height: 1.65;
  margin-bottom: 60px;
}

/* ============ IMAGE PLACEHOLDERS ============ */
.img-placeholder {
  position: relative;
  background: var(--surface-warm);
  border: 1.5px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  border-radius: 2px;
  overflow: hidden;
}
.img-placeholder svg {
  width: 32px; height: 32px;
  opacity: 0.5;
}
.img-placeholder-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.img-placeholder-hint {
  font-size: 11px;
  opacity: 0.7;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 30px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 50px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 18px; }
.footer-brand .logo span { color: var(--accent-2); }
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  nav ul { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  section { padding: 70px 0; }
  .page-banner { padding: 50px 0 70px; }
  .topbar-inner, .header-inner, .section-inner, .page-banner-inner, .footer-inner {
    padding-left: 20px; padding-right: 20px;
  }
  .topbar-left span:nth-child(n+2) { display: none; }
  .topbar-right a:nth-child(2) { display: none; }
  .header-inner { padding: 16px 20px; }
  header .logo { padding: 0; }
  header .logo .logo-img { height: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Ganze Portfolio-Karte und Komplettpaket-Kasten klickbar */
a.portfolio-card, a.komplettpaket-box { text-decoration: none; color: inherit; cursor: pointer; }

/* ===== Datenschutz-Consent-Banner (cookielos, einmalige Bestätigung) ===== */
.ds-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: none; padding: 16px; }
.ds-consent.show { display: block; }
.ds-consent-inner { max-width: 1000px; margin: 0 auto; background: var(--ink); color: var(--surface-warm); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.28); padding: 18px 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ds-consent-text { font-size: 13px; line-height: 1.55; margin: 0; flex: 1 1 320px; color: var(--surface-warm); }
.ds-consent-text a { color: var(--accent); }
.ds-consent-btn { background: var(--accent); color: #fff; border: none; border-radius: 4px; padding: 12px 24px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ds-consent-btn:hover { background: var(--accent-hover); }
