/* Wagner Bedachung — Stylesheet */
:root {
  --background: hsl(210 15% 97%);
  --foreground: hsl(215 25% 12%);
  --muted: hsl(215 15% 45%);
  --primary: hsl(12 65% 48%);
  --primary-foreground: hsl(210 15% 97%);
  --border: hsl(215 25% 12% / 0.12);
  --stone-surface: hsl(30 20% 94%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

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

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 248, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; background: var(--foreground);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark::before {
  content: ""; width: 16px; height: 16px;
  border-top: 2px solid var(--background);
  border-left: 2px solid var(--background);
  transform: rotate(-45deg) translateY(4px);
}
.logo-text {
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.05em; font-size: 20px;
}
.logo-text span { color: var(--primary); }
.nav-links { display: none; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  padding: 10px 20px; background: var(--foreground); color: var(--background) !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary) !important; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--border); }
.hero-inner { padding: 96px 0 128px; display: grid; gap: 48px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 2fr 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; background: hsl(12 65% 48% / 0.1); color: var(--primary);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
  border-radius: 9999px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--primary); border-radius: 9999px; }

h1.display {
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.9;
  text-transform: uppercase; font-size: clamp(48px, 9vw, 128px);
  margin: 32px 0;
}
.display em { color: var(--primary); font-style: italic; }
.lead { max-width: 48ch; font-size: 18px; color: var(--muted); }

.hero-img {
  aspect-ratio: 3/4; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.hero-img:hover img { transform: scale(1.05); }

.hero-line {
  position: absolute; bottom: 0; left: 0; height: 1px; background: var(--primary);
  animation: grow 1.2s var(--ease) both;
}
.reveal { animation: slide-up 0.8s var(--ease) both; }
.reveal-2 { animation: slide-up 0.8s var(--ease) 0.2s both; }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes grow { from { width: 0; } to { width: 100%; } }

/* Sections */
section { padding: 96px 0; }
.section-bordered { border-bottom: 1px solid var(--border); }
.section-head {
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: baseline; gap: 16px; margin-bottom: 64px;
}
@media (min-width: 768px) { .section-head { flex-direction: row; } }
.section-head h2 {
  font-size: 36px; font-weight: 900; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; }

/* Service grid */
.grid-services {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
@media (min-width: 768px) { .grid-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-services { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--background); padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: background 0.2s;
}
.card:hover { background: var(--stone-surface); }
.card .num { font-family: "JetBrains Mono", monospace; color: var(--primary); font-size: 14px; }
.card h3 { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.card p { font-size: 14px; color: var(--muted); }
.card .more {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  padding-top: 16px; transition: color 0.2s;
}
.card:hover .more { color: var(--primary); }
.card .more span { font-size: 18px; }

/* Referenz */
.ref-img { aspect-ratio: 16/9; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }
.ref-img img { width: 100%; height: 100%; object-fit: cover; }

/* CTA */
.cta {
  background: var(--primary); padding: 48px 32px; position: relative; overflow: hidden;
}
@media (min-width: 1024px) { .cta { padding: 96px; } }
.cta::after {
  content: ""; position: absolute; top: 0; right: 0; width: 256px; height: 256px;
  background: rgba(255,255,255,0.1); transform: translate(50%, -50%) rotate(45deg);
  pointer-events: none;
}
.cta-grid {
  position: relative; z-index: 10; display: grid; gap: 48px;
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta h2 {
  color: var(--primary-foreground); font-size: clamp(32px, 5vw, 48px);
  font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase;
}
.cta p { color: rgba(244,246,248,0.8); font-weight: 500; margin-top: 24px; }
.cta-buttons { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; justify-content: flex-end; } }
.btn {
  padding: 20px 32px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 14px; text-align: center;
  transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
}
.btn-light { background: var(--background); color: var(--foreground); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.btn-light:hover { background: var(--stone-surface); }
.btn-outline { background: transparent; color: var(--background); border-color: var(--background); }
.btn-outline:hover { background: var(--background); color: var(--primary); }

/* Dark section (Über uns auf Startseite + Geschichte) */
.dark-section { background: var(--foreground); color: var(--background); padding: 96px 0; }
.dark-grid {
  display: grid; gap: 64px; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .dark-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.dark-section h2 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1; text-transform: uppercase;
}
.dark-section h2 span { color: var(--primary); }
.dark-section .lead { color: #a8a29e; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding-top: 48px; border-top: 1px solid #292524; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat-num { font-size: 36px; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: #78716c; margin-top: 8px; }
.dark-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dark-images .img-wrap { aspect-ratio: 4/5; overflow: hidden; }
.dark-images .img-wrap:nth-child(2) { margin-top: 48px; }
.dark-images img { width: 100%; height: 100%; object-fit: cover; }

/* Über-uns Seite extras */
.about-hero-meta {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em;
}
.region-grid { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .region-grid { grid-template-columns: 1fr 1fr; } }
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.15em; list-style: none; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 32px; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-brand { display: flex; align-items: center; gap: 12px; opacity: 0.6; }
.footer-brand .logo-mark { width: 24px; height: 24px; }
.footer-brand .logo-mark::before { display: none; }
.footer-brand span { font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; font-size: 14px; }
.footer-links { display: flex; gap: 32px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.footer-links a:hover { color: var(--foreground); }
.footer-copy { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted); }

/* Utility */
.text-primary { color: var(--primary); }
.italic { font-style: italic; }
