:root {
  /* Hauptfarben passend zum Logo */

  --color-bg: #f5f2ec;
  --color-surface: #ffffff;

  --color-text: #221d2e;
  --color-muted: #6d6678;

  --color-border: #ddd6cf;

  /* Hauptfarbe aus dem Logo */
  --color-primary: #433694;

  /* Dunklere Version */
  --color-primary-dark: #2f246d;

  /* Kupfer/Orange aus dem Logo */
  --color-accent: #c77b4d;

  /* Dunkler Hintergrund */
  --color-charcoal: #1d1835;

  --shadow-soft: 0 18px 45px rgba(29, 24, 53, 0.12);

  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--color-charcoal);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

/* Kopfbereich und responsive Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(216, 222, 215, 0.86);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-charcoal);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: min(310px, 48vw);
  height: auto;
  max-height: 112px;
  object-fit: contain;
  transform: translateX(-28px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: #e8eee8;
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-charcoal);
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-7px);
}

.nav-toggle-bars::after {
  transform: translateY(5px);
}

/* Startseiten-Hero mit lokalem Bild-Asset */
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-charcoal);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 33, 29, 0.88), rgba(21, 33, 29, 0.58) 42%, rgba(21, 33, 29, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: max(16px, calc((100vw - var(--container)) / 2));
  color: #fff;
  padding-block: 96px 128px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.04;
}

.hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

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

.hero-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-primary-dark);
}

.button-secondary {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-charcoal);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-primary);
}

/* Wiederverwendbare Inhaltsbereiche */
.section {
  padding: 84px 0;
}

.section-muted {
  background: #edf1ea;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section h2,
.page-hero h1,
.legal-content h2,
.contact-panel h2 {
  color: var(--color-charcoal);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.rich-text p,
.legal-content p {
  color: var(--color-muted);
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.project-card,
.contact-form,
.contact-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card {
  padding: 26px;
}

.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: #e4efe8;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.service-card h3,
.project-body h2 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.service-card p,
.project-body p,
.contact-panel p {
  color: var(--color-muted);
}

.cta-band {
  background: var(--color-charcoal);
  color: #fff;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-content h2,
.cta-content p {
  margin-top: 0;
  color: #fff;
}

.page-hero {
  padding: 92px 0 56px;
  background: linear-gradient(135deg, #edf1ea, #fff8ed);
  border-bottom: 1px solid var(--color-border);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-media {
  display: grid;
  min-height: 210px;
  place-items: center;
  background: linear-gradient(135deg, #dfe7dd, #f8efe2);
  color: var(--color-muted);
  font-weight: 800;
}

.project-body {
  padding: 24px;
}

.project-tag {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Kontaktseite */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.contact-form,
.contact-panel {
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bfc9c1;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--color-text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 85, 0.22);
  border-color: var(--color-primary);
}

.form-note {
  margin: 16px 0 0;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.map-placeholder {
  display: grid;
  min-height: 220px;
  margin-top: 24px;
  place-items: center;
  border: 1px dashed #9aa89f;
  border-radius: var(--radius);
  background: #edf1ea;
  color: var(--color-muted);
  font-weight: 800;
  text-align: center;
}

.map-embed {
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.error-message {
  display: block;
  min-height: 1.2em;
  margin-top: 0.35rem;
  color: #b00020;
  font-size: 0.9rem;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-row a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

input.error,
textarea.error {
  border-color: #b00020;
}

input.success,
textarea.success {
  border-color: #2f6f55;
}

/* Rechtliche Inhaltsseiten */
.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.45rem;
}

.legal-warning {
  padding: 16px;
  border-left: 4px solid var(--color-accent);
  background: rgba(201, 130, 46, 0.12);
  color: var(--color-charcoal) !important;
}

.site-footer {
  padding: 48px 0 24px;
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.82);
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 52px;
}

.footer-column h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.25;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}

.footer-column p {
  max-width: 320px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

/* Cookie-Hinweis, der per JavaScript nach Auswahl ausgeblendet wird */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(560px, calc(100% - 40px));
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--color-muted);
}



@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 124px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(21, 33, 29, 0.88), rgba(21, 33, 29, 0.58));
  }

  .hero-content {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    padding-block: 76px 104px;
  }

  .split,
  .contact-layout,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(250px, 68vw);
    max-height: 96px;
    transform: translateX(-40px);
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 64px 0 42px;
  }

  .hero-actions,
  .cookie-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-form,
  .contact-panel,
  .service-card,
  .project-body {
    padding: 22px;
  }

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


}
.project-showcase {
  display: grid;
  gap: 42px;
}

.project-group {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.project-group-text {
  padding: 28px 28px 18px;
}

.project-group-text h2 {
  margin: 0 0 10px;
}

.project-group-text p:last-child {
  max-width: 760px;
  color: var(--color-muted);
}

.slider {
  position: relative;
  padding: 0 54px 32px;
}

.slider-window {
  overflow: hidden;
  padding: 10px 0;
}

.slider-track {
  display: flex;
  gap: 18px;
  transition: transform 1.1s ease-in-out;
  will-change: transform;
}

.slider-track img {
  flex: 0 0 42%;
  width: 42%;
  max-width: none;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(21, 33, 29, 0.14);
  background: #edf1ea;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.35rem;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
}


.slider-btn:hover {
  background: var(--color-primary-dark);
}

.slider-prev {
  left: 8px;
}

.slider-next {
  right: 8px;
}

@media (max-width: 860px) {
  .slider {
    padding: 0 44px 28px;
  }

  .slider-track img {
  flex-basis: 70%;
  height: 420px;
 }
}

@media (max-width: 520px) {
  .project-group-text {
    padding: 22px 22px 14px;
  }

  .slider {
    padding: 0 38px 24px;
  }

  .slider-track {
    gap: 12px;
  }

  .slider-track img {
  flex-basis: 82%;
  height: 340px;
  }

 .slider-btn {
  width: 30px;
  height: 30px;
  font-size: 1.15rem;
  line-height: 30px;
 }
}