/* Veta Kietzmann – Kern-Layout */

:root {
  --color-bg: #f4f2ec;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-muted: #57534e;
  --color-accent: #2d6a4f;
  --color-accent-hover: #1b4332;
  --color-focus: #047857;
  --color-border: rgba(28, 25, 23, 0.1);
  --color-header-bg: rgba(255, 253, 248, 0.88);
  --color-footer-bg: #141c19;
  --color-footer-text: #e7e5e4;
  --radius: 12px;
  --radius-pill: 9999px;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-card: 0 8px 30px rgba(28, 25, 23, 0.07);
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --max-width: 72rem;
  --space: 1rem;
  --prose-wide: min(100%, 44rem);
  --bp-nav: 960px;
  --accent-rgb: 45, 106, 79;
  --fs-body: 1.0625rem;
  --fs-h1: clamp(1.55rem, 3.2vw, 2.1rem);
  --fs-h2: clamp(1.3rem, 2.6vw, 1.7rem);
}

@media (max-width: 639px) {
  :root {
    --fs-body: 1.03rem;
    --fs-h1: clamp(1.45rem, 5.8vw, 1.85rem);
    --fs-h2: clamp(1.22rem, 4.6vw, 1.5rem);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  --header-pad-y: 1.25rem;
  --header-inner-gap: 0.85rem;
  transition: box-shadow 0.35s ease;
}

.site-header--compact {
  --header-pad-y: 0.45rem;
  --header-inner-gap: 0.35rem;
  box-shadow: 0 1px 0 var(--color-border), 0 4px 18px rgba(28, 25, 23, 0.06);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--header-pad-y) var(--space) calc(var(--header-pad-y) * 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--header-inner-gap);
}

.site-header__brand-row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.site-logo--text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.site-logo--text[aria-current="page"] {
  color: var(--color-accent-hover);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav {
  width: 100%;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.15rem 0;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.65rem;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent-hover);
  background: rgba(var(--accent-rgb), 0.09);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent-hover);
  background: rgba(var(--accent-rgb), 0.18);
  font-weight: 600;
}

@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top: none;
    border-bottom: none;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open {
    max-height: 40vh;
    overflow: auto;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: 0.35rem;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
  }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.55rem 0.65rem;
  }
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--space) 4rem;
}

/* Prose */
.prose {
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: var(--prose-wide);
  margin-left: auto;
  margin-right: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.prose > *:first-child { margin-top: 0; }
.prose p { color: var(--color-muted); margin: 0 0 1.15em; }
.prose strong { color: var(--color-text); font-weight: 600; }

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--color-text);
  margin: 2.25rem 0 0.7em;
  display: flex;
  align-items: center;
}

.prose h2::before {
  content: "";
  display: block;
  width: 8px;
  height: 1.625em;
  background: var(--color-accent);
  border-radius: 9999px;
  flex: 0 0 auto;
  margin-right: 1.05rem;
}

.prose ul {
  margin: 0 0 1.15em;
  padding-left: 1.35rem;
  color: var(--color-muted);
}

.prose li { margin-bottom: 0.35em; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.page-kopf { text-align: center; margin-bottom: 0.25rem; }

.page-kopf h1 {
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 4vw, 2.48rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 0.35rem;
}

.fade-sep {
  display: block;
  width: 100%;
  height: 1px;
  margin: 1.35rem 0 1.45rem;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.22), transparent);
}

/* Kontakt-Kacheln (Startseite) */
.home-cta {
  background: rgba(var(--accent-rgb), 0.07);
  border-radius: var(--radius);
  padding: 1.65rem 1.4rem;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  margin-top: 2.5rem;
}

.home-cta h2 { margin-top: 0; border-left: 0; padding-left: 0; }
.home-cta h2::before { display: none; }

.home-cta__contact-intro {
  margin: 1rem 0 0;
  color: var(--color-muted);
}

.home-contact-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.home-contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 9rem;
  min-width: 9rem;
  max-width: 14rem;
  padding: 1.3rem 1.25rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #ecfdf5;
  background: linear-gradient(155deg, #1b4332 0%, #2d6a4f 42%, #1b4332 100%);
  border: 1px solid rgba(167, 243, 208, 0.15);
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-contact-tile:hover,
.home-contact-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(27, 67, 50, 0.42);
  color: #ecfdf5;
  text-decoration: none;
}

.home-contact-tile__label {
  font-weight: 700;
  font-size: 1rem;
  color: #ecfdf5;
}

.home-contact-tile__value {
  font-size: 0.82rem;
  color: rgba(236, 253, 245, 0.82);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.5rem var(--space) 2.75rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__intro {
  text-align: center;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.site-footer__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(231, 229, 228, 0.82);
}

.site-footer p { margin: 0.35rem 0; font-size: 0.92rem; color: rgba(231, 229, 228, 0.88); }

.site-footer__phone a {
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
}

.site-footer__web a {
  font-weight: 600;
  color: #a7f3d0 !important;
  text-decoration: none;
}

.site-footer__legal {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
  justify-content: center;
}

.site-footer__legal a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
}

.site-footer__legal a:hover { background: rgba(255, 255, 255, 0.1); }

.site-footer__copyright {
  margin-top: 1rem !important;
  font-size: 0.82rem !important;
  color: rgba(231, 229, 228, 0.65) !important;
}

@media (max-width: 959px) {
  .site-footer__intro { text-align: left; }
  .site-footer__legal { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .home-contact-tile { transition: none; }
}
