:root {
  --bg: #f3f5f2;
  --ink: #1f2b24;
  --muted: #5c6b60;
  --accent: #2f6b4f;
  --border: #dde3dc;
  --card: #ffffff;
  --serif: "Source Serif Pro", "Charter", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Banner */
.banner {
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.01em;
}

/* Header */
header.site {
  position: relative;
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
}

.private-link {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--muted);
  opacity: 0.45;
  line-height: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.private-link:hover,
.private-link:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

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

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.header-btn {
  margin-left: 10px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.25;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero h1 .by {
  font-size: 0.5em;
  color: var(--muted);
}

.accent-letter {
  color: var(--accent);
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 3px;
}

.btn:hover {
  background: var(--accent);
}

/* Animated nav buttons (Produkte / Beratung / Über) */
.nav-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.nav-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 13px 26px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

button.nav-btn {
  appearance: none;
  background: none;
  font-family: var(--sans);
  cursor: pointer;
}

.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.nav-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 107, 79, 0.18);
}

.nav-btn:hover::before {
  transform: scaleX(1);
}

.nav-btn:hover span {
  color: #fff;
}

/* Sections */
section.block {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 12px;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 20px;
}

.lead {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Kontakt */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
}

.contact-list li:first-child {
  border-top: none;
}

.contact-list span {
  color: var(--muted);
  display: inline-block;
  min-width: 90px;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

footer.site a {
  color: var(--muted);
  text-decoration: underline;
  margin-right: 16px;
}

footer.site a:hover {
  color: var(--ink);
}

/* Legal page hero image */
.legal-hero {
  position: relative;
  height: 220px;
  background-image: url("media/Image/I_1_Impressum.jpeg");
  background-size: cover;
  background-position: center 60%;
  filter: grayscale(0.4) saturate(0.85) brightness(0.92);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), var(--bg) 96%);
}

/* Legal pages */
.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 32px 0 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
}

.legal p, .legal li {
  color: var(--ink);
  font-size: 16px;
}

.legal ul {
  padding-left: 20px;
}

/* Product cards (Produkte-Seite) with hover reveal */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0 40px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(47, 107, 79, 0.14);
}

.product-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 6px;
}

.product-tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.product-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}

.product-card:hover .product-detail,
.product-card:focus-within .product-detail {
  max-height: 400px;
  opacity: 1;
  margin-top: 16px;
}

.product-detail p {
  color: var(--ink);
  font-size: 15px;
  margin: 0 0 12px;
}

.product-detail p:last-child {
  margin-bottom: 0;
}

/* GerLoc-Logo neben der Überschrift */
.gerloc-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 8px;
}

.gerloc-title h1 {
  margin: 0;
}

.gerloc-logo-link {
  position: relative;
  display: inline-block;
  line-height: 0;
  border-radius: 4px;
}

.gerloc-logo {
  display: block;
  height: 32px;
  width: auto;
}

.gerloc-logo-animated {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gerloc-logo-static {
  transition: opacity 0.25s ease;
}

.gerloc-logo-link:hover .gerloc-logo-animated,
.gerloc-logo-link:focus-visible .gerloc-logo-animated {
  opacity: 1;
}

.gerloc-logo-link:hover .gerloc-logo-static,
.gerloc-logo-link:focus-visible .gerloc-logo-static {
  opacity: 0;
}

.hero .gerloc-logo-link {
  margin: 4px 0 24px;
}

/* GerLoc in 3D */
.model3d-actions {
  margin: 8px 0 32px;
}

.model3d {
  margin: 0 0 40px;
}

.model3d-cta {
  margin: 0 0 40px;
}

/* Insights post list */
.post-list {
  margin: 24px 0 40px;
}

.post-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.post-item:first-child {
  border-top: none;
  padding-top: 0;
}

.post-date {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.post-item h2 {
  font-size: 22px;
  margin: 0;
}

.post-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-item h2 a:hover {
  color: var(--accent);
}

/* Status badge (e.g. "In Arbeit") */
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  margin: 0 0 24px;
}

/* Sub-navigation (e.g. Über-Unterseite) */
.sub-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}

.sub-nav a {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
}

.sub-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s ease;
}

.sub-nav a:hover {
  color: var(--ink);
}

.sub-nav a:hover::after {
  right: 0;
}

/* Long-form body copy */
.prose p {
  max-width: 68ch;
  margin: 0 0 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin: 40px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
    max-width: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .legal-hero {
    height: 140px;
  }
}
