/* README: Zentrale Theme-Variablen für Farben, Typografie und Spacing.
   Passen Sie diese Variablen an, um das Look & Feel der Seite zu ändern. */

:root {
  /* Theme-Farben (anpassbar) */
  --color-bg: #f5f7f8;
  --color-bg-alt: #ffffff;
  --color-bg-muted: #eef1f2;
  --color-primary: #050909; /* Sehr dunkles Grün/Schwarz – Hauptfarbe */
  --color-accent: #1a4b34;  /* Dunkelgrün – Akzentfarbe, kein Gold */
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;
  --color-border-strong: #111827;

  /* Feedbackfarben */
  --color-error: #b91c1c;
  --color-success: #166534;

  /* Typografie */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-max-width: 72rem; /* ~1152px */
  --radius-card: 0.75rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 6px 18px rgba(0, 0, 0, 0.05);
  --border-width-hairline: 1px;

  /* Transitions */
  --duration-fast: 150ms;
  --duration-normal: 220ms;
  --easing-standard: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Base Styles ===== */

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

html {
  scroll-behavior: smooth; /* Smooth scroll für moderne Browser */
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Bessere Fokus-Sichtbarkeit */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Hilfsklassen & Layout */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.section--standard {
  padding-block: var(--space-2xl);
}

.section--muted {
  padding-block: var(--space-2xl);
  background-color: var(--color-bg-muted);
}

.section__header {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.section__subtitle {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-inline: 1.25rem;
  padding-block: 0.7rem;
  border-radius: 999px;
  border: var(--border-width-hairline) solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--easing-standard),
    color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-standard),
    border-color var(--duration-normal) var(--easing-standard);
}

.button--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.button--primary:hover {
  transform: translateY(-1px);
  background-color: #000000;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.button--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.button--ghost {
  background-color: rgba(245, 247, 248, 0.1);
  color: #ffffff;
  /* border-color: var(--color-border-subtle); */
  font-size: 0.9rem; /* deutlich kleiner als Primary */
  padding-inline: 1.25rem; /* merklich schmaler */
  padding-block: 0.5rem; /* kompakter, aber noch gut klickbar */
}

.button--ghost:hover {
    transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

/* ===== Header & Navigation ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(14px);
  background-color: rgba(245, 247, 248, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: var(--space-md);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-header__brand-mark {
  width: 1.75rem;
  aspect-ratio: 1 / 1;
  border-radius: 0.6rem;
  background: radial-gradient(circle at 10% 10%, #1f2933, #050909);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.site-header__brand-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: 0.2rem;
  position: relative;
}

.site-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration-normal) var(--easing-standard);
}

.site-header__nav-link:hover {
  color: var(--color-text);
}

.site-header__nav-link:hover::after {
  width: 100%;
}

.site-header__nav-cta {
  display: none;
}

/* Mobile Menu Toggle */

.site-header__menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.22rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.site-header__menu-bar {
  width: 1.2rem;
  height: 1.5px;
  border-radius: 99px;
  background-color: #111827;
}

/* Mobile Navigation Behaviour */

@media (max-width: 767px) {
  .site-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 3.25rem;
    padding: 0.75rem var(--space-md) var(--space-md);
    background-color: rgba(245, 247, 248, 0.98);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity var(--duration-normal) var(--easing-standard),
      transform var(--duration-normal) var(--easing-standard);
  }

  .site-header__nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header__nav-list {
    flex-direction: column;
    width: 100%;
  }

  .site-header__nav-link {
    font-size: 1rem;
    padding-block: 0.4rem;
  }

  .site-header__nav-cta {
    display: inline-flex;
    width: 100%;
  }
}

/* Desktop: hide mobile toggle, show CTA */

@media (min-width: 768px) {
  .site-header__menu-toggle {
    display: none;
  }

  .site-header__nav-cta {
    display: inline-flex;
  }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(26, 75, 52, 0.16),
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(15, 23, 42, 0.32),
      #050909 80%
    );
  opacity: 0.85;
}

.hero__bg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__content {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero__text {
  max-width: 34rem;
  color: #f9fafb;
}

.hero__eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: var(--space-sm);
  color: rgba(209, 213, 219, 0.95);
}

.hero__heading {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

.hero__subtitle {
  font-size: 1.05rem;
  margin: 0 0 var(--space-lg);
  color: rgba(229, 231, 235, 0.95);
}

.hero__subtitle-highlight {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: rgba(209, 213, 219, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero__trust-note {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(209, 213, 219, 0.88);
}

/* ===== Services ===== */

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  transition:
    transform var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    border-color var(--duration-normal) var(--easing-standard),
    background-color var(--duration-normal) var(--easing-standard);
}

.service-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.9);
  background: radial-gradient(circle at 10% 0%, #1f2937, #050909);
  border: 1px solid rgba(148, 163, 184, 0.8);
  margin-bottom: var(--space-md);
}

.service-card__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.05rem;
  font-weight: 600;
}

.service-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(26, 75, 52, 0.7);
}

/* ===== About ===== */

.about {
  display: grid;
  gap: var(--space-xl);
  align-items: flex-start;
}

.about__content {
  max-width: 35rem;
}

.about__lead {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 1.02rem;
}

.about__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

.about__meta {
  display: grid;
  gap: var(--space-lg);
}

.about__stat {
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.about__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.about__stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about__badges {
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.04),
    rgba(245, 247, 248, 0.9)
  );
}

.about__badges-title {
  margin: 0 0 var(--space-sm);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about__badges-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about__badge {
  font-size: 0.8rem;
  padding-inline: 0.6rem;
  padding-block: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background-color: rgba(255, 255, 255, 0.84);
}

.about__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */

.contact__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: flex-start;
}

.contact__form-wrapper {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.form {
  display: grid;
  gap: var(--space-md);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form__required {
  margin-left: 0.2rem;
  color: var(--color-accent);
}

.form__input {
  font: inherit;
  padding-inline: 0.8rem;
  padding-block: 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid var(--color-border-subtle);
  background-color: #ffffff;
  transition:
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    background-color var(--duration-normal) var(--easing-standard);
}

.form__input--textarea {
  resize: vertical;
  min-height: 8rem;
}

.form__input:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(26, 75, 52, 0.2);
}

.form__field--error .form__input {
  border-color: var(--color-error);
  background-color: #fef2f2;
}

.form__field--success .form__input {
  border-color: var(--color-success);
  background-color: #f0fdf4;
}

.form__error {
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: var(--color-error);
  margin: 0;
}

.form__field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.form__checkbox-input {
  margin-top: 0.2rem;
}

.form__checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form__submit {
  margin-top: var(--space-sm);
  width: fit-content;
}

.form__success {
  min-height: 1.1rem;
  font-size: 0.9rem;
  margin: var(--space-sm) 0 0;
  color: var(--color-success);
}

/* Contact Info */

.contact__info-title {
  margin: 0 0 var(--space-sm);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact__list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.contact__item {
  display: grid;
  gap: 0.1rem;
}

.contact__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.contact__link {
  color: var(--color-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__text {
  margin: 0;
  font-size: 0.95rem;
}

.contact__note {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  background-color: #ffffff;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  justify-content: space-between;
  padding-block: var(--space-md);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer__link {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-text-muted);
}

.site-footer__link:hover {
  color: var(--color-text);
}

/* ===== Reveal on Scroll Animations ===== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 260ms var(--easing-standard),
    transform 260ms var(--easing-standard);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Breakpoints ===== */

/* Tablet >= 768px */

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-3xl);
  }

  .hero__heading {
    font-size: 2.5rem;
  }

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

  .about {
    grid-template-columns: 1.3fr 1fr;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
  }
}

/* Desktop >= 1024px */

@media (min-width: 1024px) {
  .hero__content {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .hero__heading {
    font-size: 3rem;
  }

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

/* Wide Desktop >= 1440px */

@media (min-width: 1440px) {
  :root {
    --container-max-width: 80rem; /* ~1280px */
  }

  .hero__heading {
    font-size: 3.25rem;
  }
}