/* ============================================================
   Trockenbau + Baumontagen Thomas Benz – zentrales Stylesheet
   Schriften: lokal gehostet (kein Google-Fonts-CDN, DSGVO-konform)
   ============================================================ */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
}

/* ---------- Basis ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #1a1a1a;
  --black-soft: #2a2a2a;
  --yellow: #FFC72C;
  --yellow-dark: #E5B11F;
  --blue: #4A9EDB;
  --gray-50: #f8f8f6;
  --gray-100: #f0efeb;
  --gray-200: #e2e1dc;
  --gray-500: #888;
  --gray-700: #555;
  --gray-800: #333;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* Sticky-Header nicht über Anker-Ziele legen */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--black);
  background: white;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .display {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 800px; margin: 0 auto; padding: 0 28px; }

/* Unsichtbare Labels für Screenreader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.header {
  background: var(--black);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--yellow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
}
.logo-circle {
  width: 50px; height: 50px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--black);
  font-style: italic;
}
.logo-text { line-height: 1.1; }
.logo-text .top {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
}
.logo-text .bottom {
  font-size: 13px;
  color: var(--yellow);
  font-style: italic;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}
nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--yellow); }
.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: white; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  background: var(--black);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-circle {
  position: absolute;
  right: -100px; top: -60px;
  width: 420px; height: 420px;
  background: var(--yellow);
  border-radius: 50%;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 72px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.hero h1 .accent { color: var(--yellow); }
.hero-sub {
  font-size: 19px;
  color: #d0d0d0;
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover { background: white; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Stats ---------- */
.stats {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 0 20px; }
.stat-item:not(:last-child) { border-right: 1px solid var(--gray-200); }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: var(--black);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Sektionen ---------- */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 48px;
  color: var(--black);
  margin-bottom: 16px;
}
.section-underline {
  width: 60px; height: 4px;
  background: var(--yellow);
  margin: 0 auto;
}

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-top-color: var(--blue);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--black);
  color: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--black);
}
.service-card p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Referenzen ---------- */
.references { background: var(--gray-50); }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ref-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.ref-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}
.ref-body { padding: 18px 22px 22px; }
.ref-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ref-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}
.ref-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ---------- Ablauf (So läuft Ihr Projekt) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 26px;
  position: relative;
}
.process-number {
  width: 44px; height: 44px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  margin-bottom: 18px;
}
.process-step h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}
.process-step p {
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ---------- CTA-Banner ---------- */
.cta-banner {
  background: var(--yellow);
  padding: 48px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: 36px;
  color: var(--black);
  margin-bottom: 6px;
}
.cta-text p { color: var(--black); font-size: 16px; opacity: 0.8; }
.cta-buttons { display: flex; gap: 10px; }
.btn-dark {
  background: var(--black);
  color: white;
}
.btn-dark:hover { background: var(--black-soft); transform: translateY(-2px); }

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content .section-eyebrow { text-align: left; }
.about-content h2 {
  font-size: 48px;
  margin-bottom: 24px;
  text-align: left;
}
.about-underline {
  width: 60px; height: 4px;
  background: var(--yellow);
  margin-bottom: 24px;
}
.about-content p {
  font-size: 17px;
  color: var(--gray-700);
  margin-bottom: 18px;
  line-height: 1.75;
}
.about-features { list-style: none; margin-top: 24px; }
.about-features li {
  padding: 8px 0;
  padding-left: 32px;
  position: relative;
  font-size: 16px;
  color: var(--gray-800);
}
.about-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 22px; height: 22px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  top: 11px;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.about-img-accent {
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: var(--yellow);
  border-radius: 50%;
  z-index: -1;
}

/* ---------- Kontakt ---------- */
.contact { background: var(--black); color: white; }
.contact .section-title { color: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(255,199,44,0.15);
  color: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item .label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-item .value {
  font-size: 17px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.contact-item .value:hover { color: var(--yellow); }

.contact-form { background: var(--black-soft); padding: 32px; border-radius: 12px; }
.contact-form h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid #444;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: white; }
.form-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.form-hint a { color: var(--yellow); }

/* ---------- Unterseiten: Page-Header + Inhalt ---------- */
.page-header {
  background: var(--black);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header-circle {
  position: absolute;
  right: -100px; top: -60px;
  width: 320px; height: 320px;
  background: var(--yellow);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.95;
}
.page-header-inner { position: relative; z-index: 2; }
.page-header h1 {
  font-size: 64px;
  letter-spacing: 1px;
  color: white;
}
.page-header h1 .accent { color: var(--yellow); }
.breadcrumb {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.content { padding: 70px 0 90px; }
.content h2 {
  font-size: 32px;
  margin: 40px 0 16px;
  color: var(--black);
  border-left: 4px solid var(--yellow);
  padding-left: 16px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--black);
}
.content p {
  margin-bottom: 14px;
  color: var(--gray-800);
  line-height: 1.75;
}
.content ul {
  margin: 10px 0 20px 24px;
  color: var(--gray-800);
}
.content ul li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.content a {
  color: var(--blue);
  text-decoration: underline;
}
.content a:hover { color: var(--yellow-dark); }

.info-card {
  background: var(--gray-50);
  border-left: 4px solid var(--yellow);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 24px 0;
}
.info-card p { margin-bottom: 6px; }
.info-card strong { display: inline-block; min-width: 140px; color: var(--gray-700); }

/* ---------- Footer ---------- */
footer {
  background: #0a0a0a;
  color: #999;
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  border-top: 3px solid var(--yellow);
}
footer a { color: var(--yellow); text-decoration: none; margin: 0 10px; }
footer a:hover { color: white; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid #333;
  }
  nav ul.open { display: flex; }
  nav li { padding: 0; }
  nav a { display: block; padding: 12px 28px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 17px; }
  .section-title, .about-content h2 { font-size: 36px; }
  .services-grid, .ref-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--gray-200); padding-bottom: 20px; }
  .about, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero-circle { width: 280px; height: 280px; right: -120px; top: -80px; opacity: 0.5; }
  section { padding: 60px 0; }
  .page-header { padding: 60px 0 40px; }
  .page-header h1 { font-size: 44px; }
  .content { padding: 50px 0 70px; }
  .content h2 { font-size: 26px; }
  .page-header-circle { width: 220px; height: 220px; opacity: 0.5; }
}

@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}
