/* 
  Design: Inspired by the sandstone quarries and forest landscapes 
  of northern Saarland. Earthy, grounded palette with sharp geometry 
  referencing paving stonework — the company's core trade.

  Typography: "Crimson Pro" for editorial warmth in headings,
  "DM Sans" for clean body text. Both embedded locally would be ideal,
  but since no CDN and no local fonts provided, we use a curated 
  system stack with personality.
*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette: extracted from Saarland sandstone + Schaumberg forest */
  --stone-light: hsl(38, 35%, 93%);
  --stone-mid: hsl(34, 28%, 82%);
  --stone-dark: hsl(30, 22%, 68%);
  --forest: hsl(152, 32%, 28%);
  --forest-deep: hsl(155, 38%, 18%);
  --earth: hsl(24, 40%, 32%);
  --earth-light: hsl(26, 35%, 45%);
  --ink: hsl(210, 18%, 18%);
  --ink-soft: hsl(210, 12%, 40%);
  --white-warm: hsl(40, 25%, 97%);
  --accent: hsl(38, 65%, 55%);

  --font-heading: 'Georgia', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1080px;
  --gap: 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white-warm);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ───────── HEADER / NAV ───────── */

header {
  background: var(--forest-deep);
  color: var(--stone-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--stone-light);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  color: hsl(38, 20%, 78%);
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

nav a:hover,
nav a:focus {
  background: hsla(38, 35%, 93%, 0.12);
  color: var(--white-warm);
  text-decoration: none;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid hsl(38, 20%, 78%);
  color: hsl(38, 20%, 78%);
  padding: 0.3rem 0.6rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 3px;
  line-height: 1;
}

/* ───────── HERO ───────── */

.hero {
  background: var(--forest-deep);
  color: var(--stone-light);
  padding: 4rem var(--gap) 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) 40px,
    transparent 40px,
    transparent 44px
  );
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 700;
  max-width: 700px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.7;
  color: hsl(38, 18%, 75%);
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: hsl(38, 70%, 62%);
  text-decoration: none;
}

/* ───────── SECTIONS ───────── */

section {
  padding: 3.5rem var(--gap);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--forest);
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section-text {
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* ───────── LEISTUNGEN ───────── */

.leistungen {
  background: var(--stone-light);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.leistung-card {
  background: var(--white-warm);
  border: 1px solid var(--stone-mid);
  padding: 1.5rem;
  border-radius: 3px;
  position: relative;
  transition: border-color 0.25s;
}

.leistung-card:hover {
  border-color: var(--forest);
}

.leistung-card::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.leistung-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.leistung-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ───────── ÜBER UNS ───────── */

.ueber-uns {
  background: var(--white-warm);
}

.ueber-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ueber-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.ueber-facts {
  background: var(--forest-deep);
  color: var(--stone-light);
  padding: 2rem;
  border-radius: 3px;
}

.ueber-facts h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid hsla(38, 20%, 78%, 0.15);
  font-size: 0.9rem;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-label {
  color: hsl(38, 18%, 68%);
}

.fact-value {
  font-weight: 700;
  text-align: right;
}

/* ───────── ÖFFNUNGSZEITEN ───────── */

.zeiten {
  background: var(--stone-light);
}

.zeiten-table {
  max-width: 480px;
}

.zeiten-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--stone-mid);
  font-size: 0.95rem;
}

.zeiten-row:last-child {
  border-bottom: none;
}

.zeiten-day {
  font-weight: 600;
}

.zeiten-time {
  color: var(--ink-soft);
}

.zeiten-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ───────── KONTAKT ───────── */

.kontakt {
  background: var(--white-warm);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.kontakt-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.kontakt-detail {
  margin-bottom: 1.5rem;
}

.kontakt-detail p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.kontakt-detail a {
  color: var(--forest);
  font-weight: 600;
}

.kontakt-map-placeholder {
  background: var(--stone-light);
  border: 1px solid var(--stone-mid);
  border-radius: 3px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.kontakt-map-placeholder .map-icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* ───────── FOOTER ───────── */

footer {
  background: var(--ink);
  color: hsl(38, 15%, 60%);
  padding: 2rem var(--gap);
  font-size: 0.825rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: hsl(38, 15%, 60%);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ───────── LEGAL PAGES (Impressum / Datenschutz) ───────── */

.legal-page {
  padding: 3rem var(--gap) 4rem;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.legal-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.legal-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-inner p,
.legal-inner ul {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.legal-inner ul {
  padding-left: 1.25rem;
}

.legal-inner li {
  margin-bottom: 0.35rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--forest);
  font-weight: 600;
}

/* ───────── RESPONSIVE ───────── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  nav ul.open {
    display: flex;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  nav a {
    display: block;
    padding: 0.5rem 0.65rem;
  }

  .hero {
    padding: 2.5rem var(--gap) 2.25rem;
  }

  section {
    padding: 2.5rem var(--gap);
  }

  .ueber-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .leistungen-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.35rem;
  }
}
