:root {
  --ink: #333F49;
  --cream: #F2EEE5;
  --moss: #6DA82E;
  --moss-dark: #517D22;
  --line: #D9D4C8;
  --stone: #E9E4D8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Fixierter Header */
header.wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  position: sticky;
  top: 0;
  background: var(--cream);
  /* Dehnt den Hintergrund blickdicht auf die volle Bildschirmbreite aus */
  box-shadow: -50vw 0 0 0 var(--cream), 50vw 0 0 0 var(--cream);
  z-index: 100;
}

.logo { height: 48px; display: block; }

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  margin-left: 32px;
}

nav a:hover { color: var(--moss-dark); }
a.inline { color: var(--moss-dark); text-decoration: none; }
a.inline:hover { text-decoration: underline; }

/* Startseite Sektionen */
.hero { background: var(--ink); color: var(--cream); padding: 96px 0 88px; }
.hero .wrap { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { color: var(--cream); font-size: clamp(38px, 5.5vw, 60px); line-height: 1.08; max-width: 14ch; }
.hero p.lead { max-width: 46ch; font-size: 18px; color: #D9DED6; }
.hero .meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: #B9C4B9; }
.hero .meta div { border-top: 1px solid #4C5A63; padding-top: 10px; min-width: 160px; }

.sektion { padding: 96px 0; }
.sektion-stone { background: var(--stone); }
.sektion-cream { background: var(--cream); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; }
.section-head p { max-width: 40ch; color: #4A554E; font-size: 15px; }
.section-head p.wide { max-width: 70ch; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.card { background: var(--cream); padding: 36px 28px; }
.card h3 { font-size: 21px; margin-bottom: 14px; }
.card p { font-size: 15px; color: #4A554E; }

.saeulen-technik { margin-top: 56px; }
.saeulen-technik h3 { font-size: 24px; margin-bottom: 12px; }
.saeulen-technik p { max-width: 70ch; color: #4A554E; font-size: 16px; }

.geschichte .wrap { max-width: 760px; margin: 0 auto; }
.geschichte h2 { font-size: 34px; margin-bottom: 24px; }
.geschichte p { font-size: 16.5px; color: #4A554E; margin-bottom: 16px; }

/* Unterseiten Aufbau */
main.wrap { max-width: 760px; padding-top: 24px; padding-bottom: 96px; }
main h1 { font-size: 34px; margin-bottom: 48px; }
.stand { color: #6B7680; font-size: 14px; margin-bottom: 48px; margin-top: -36px; }
section { margin-bottom: 40px; }
section h2 { font-size: 21px; margin-bottom: 14px; }
section p { margin-bottom: 24px; color: #3A4650; }
section ul { margin: 12px 0 24px 20px; color: #3A4650; }
section ul li { margin-bottom: 4px; }
section address { font-style: normal; color: #3A4650; }

/* Footer Startseite */
footer { background: var(--ink); color: var(--cream); padding: 72px 0 40px; }
.kontakt-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #445A4E; }
footer h2 { color: var(--cream); font-size: 28px; margin-bottom: 16px; max-width: 16ch; }
footer .kontakt-details p { color: #C7D0C4; font-size: 15px; margin-bottom: 6px; }
footer .kontakt-details .label { font-size: 12px; color: #8FA091; margin-top: 18px; margin-bottom: 4px; }
footer .kontakt-details a { color: var(--cream); text-decoration: none; }
footer .kontakt-details a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: #7D8F80; flex-wrap: wrap; gap: 8px; }

/* Footer Unterseiten */
footer.footer-sub { padding: 32px 0; font-size: 14px; color: #C7D0C4; }
footer.footer-sub a { color: var(--cream); text-decoration: none; }
footer.footer-sub a:hover { text-decoration: underline; }

/* Mobile Anpassungen */
@media (max-width: 760px) {
  header.wrap { 
    flex-direction: column; 
    gap: 16px; 
    padding-top: 16px; 
    padding-bottom: 16px; 
  }
  nav { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 12px; 
  }
  nav a { margin-left: 0; font-size: 14px; }
  
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .sektion { padding: 64px 0; }
}