﻿:root {
  --bg: #f4f4ef;
  --surface: #ffffff;
  --surface-alt: #f0f2ee;
  --ink: #172226;
  --muted: #5b676c;
  --brand: #cb5f00;
  --brand-dark: #8f3e00;
  --clay: #a44916;
  --accent: #1e4c62;
  --ring: #8db8cb;
  --radius: 18px;
  --shadow: 0 14px 32px rgba(16, 32, 40, 0.12);
  --container: min(1120px, 92vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(203, 95, 0, 0.15), transparent 40%),
    radial-gradient(circle at 15% 30%, rgba(30, 76, 98, 0.12), transparent 45%),
    var(--bg);
  line-height: 1.5;
  position: relative;
}

/* Subtile, handwerkliche Ziegelkonturen im Seitenhintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 24px 24px, transparent 17px, rgba(118, 62, 30, 0.12) 17px 18px, transparent 18px),
    radial-gradient(circle at 48px 24px, transparent 17px, rgba(118, 62, 30, 0.08) 17px 18px, transparent 18px);
  background-size: 48px 26px, 48px 26px;
  background-position: 0 0, 24px 13px;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 34, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1rem;
}

.brand img { width: 220px; }
.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.main-nav a:hover { color: var(--brand-dark); }

.menu-toggle {
  display: none;
  border: 1px solid rgba(23, 34, 38, 0.2);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}


.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(10, 20, 26, 0.84) 22%, rgba(10, 20, 26, 0.38) 74%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 28px);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 6rem 0 5rem;
  max-width: 680px;
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7ebf3;
}

h1, h2, h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; margin-top: 0.25rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.66rem 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.emergency {
  position: absolute;
  right: clamp(1rem, 5vw, 3rem);
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--clay);
}

.emergency img { width: 84px; }
.emergency p { margin: 0; line-height: 1.35; }
.emergency-title { font-weight: 700; color: var(--brand-dark); }
.emergency a { text-decoration: none; font-weight: 700; }

.section { padding: 4.4rem 0; }
.section-alt { background: linear-gradient(180deg, #f9f7f2 0%, #ecf0f1 100%); }
.section-accent { background: linear-gradient(90deg, #1e4c62 0%, #295d76 100%); color: #eff6f9; }
.section-lead { max-width: 760px; color: var(--muted); margin-top: 0; }
.section-accent p { max-width: 840px; }

.service-grid,
.roof-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2rem; }
.roof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2rem; }
.contact-grid { grid-template-columns: 1.2fr 1fr; }

.card,
.roof-card,
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  border-top: 3px solid rgba(164, 73, 22, 0.25);
}

.roof-card img {
  border-radius: 12px;
  width: min(100%, 224px);
  height: auto;
  max-height: 167px;
  object-fit: contain;
  margin: 0 auto 0.7rem;
  image-rendering: -webkit-optimize-contrast;
}

.site-footer {
  border-top: 1px solid rgba(23, 34, 38, 0.1);
  background: #fff;
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .service-grid,
  .roof-grid,
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emergency { position: static; margin: 1rem auto 0; width: fit-content; }
  .hero { padding-bottom: 1.5rem; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 4vw;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(23, 34, 38, 0.08);
    box-shadow: var(--shadow);
    padding: 0.8rem;
    min-width: 180px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .hero-content { padding: 4rem 0 2rem; }
  .service-grid,
  .roof-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner a { margin-left: 0; margin-right: 1rem; }
}



.roof-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roof-card:hover,
.roof-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 32, 40, 0.18);
}

.roof-card:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.roof-hint {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.roof-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 14, 18, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.roof-overlay[hidden] { display: none; }

.roof-overlay-panel {
  width: min(640px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  border-top: 5px solid var(--brand);
  position: relative;
}

.roof-overlay-panel h3 { margin-right: 2rem; }
.roof-overlay-panel p { margin-bottom: 0; color: var(--ink); }

.roof-overlay-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.roof-overlay-close:hover { background: #dfe5e8; }
