/* ===========================
     MONA SANS – VARIABLE FONT
   =========================== */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/MonaSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;   /* Variable Font Bereich */
  font-style: normal;
}

/* ============ RESET ============ */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #141414;
  margin: 0;
  padding: 0;
}

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

/* ============ DESIGN TOKENS ============ */

:root {
  --schwarz: #141414;
  --weiss: #ffffff;
  --jade: #398471;
  --preussisch: #0c1d3a;
  --preussisch-light: #1e3442;

  --radius-lg: 40px;
  --radius-md: 16px;
  --shadow-soft: 0 4px 8px rgba(20, 20, 20, 0.15);

  /* Typografie-Variablen */
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-section-title: 32px;
  --font-size-card-title: 24px;
  --font-size-hero-title: 64px;
  --font-size-hero-subtitle: 32px;
}

/* ============ LAYOUT & TYPO ============ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero & Prozess sollen wie Services/Kontakt 80px Seitenabstand haben (auf Desktop) */
.hero > .container,
.section-process > .container,
.section-intro > .container {
  max-width: none;
  padding: 0 80px;
}

.section {
  padding: 80px 0;
}

.section-title {
  color: var(--schwarz);
  font-size: var(--font-size-section-title);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.section-title-light {
  color: var(--weiss);
}

.p-text {
  color: var(--schwarz);
  font-size: var(--font-size-body);
  line-height: 1.5;
  margin: 0;
}

.card-title {
  color: var(--schwarz);
  font-size: var(--font-size-card-title);
  font-weight: 700;
  margin: 0 0 8px;
}

.card-text {
  color: var(--schwarz);
  font-size: var(--font-size-body);
  line-height: 1.5;
  margin: 0;
}

.number-large {
  color: var(--jade);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.4;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-small {
  padding: 10px 18px;
  font-size: var(--font-size-small);
}

.btn-primary {
  background: var(--jade);
  color: var(--weiss);
  box-shadow: none;
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(57, 136, 117, 0.25); /* Jade, 50% */
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--weiss);
  color: var(--weiss);
}

.btn-outline:hover {
  background: var(--weiss);
  color: var(--preussisch);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.15); /* #141414, 15% */
  transform: translateY(-1px);
}

.btn-dark-outline {
  background: transparent;
  border: 1px solid var(--schwarz);
  color: var(--schwarz);
}

.btn-dark-outline:hover {
  background: var(--schwarz);
  color: var(--weiss);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.15); /* #141414, 15% */
  transform: translateY(-1px);
}

/* ============ HEADER ============ */

/* Header standard: oben kein Shadow */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--weiss);
  box-shadow: none;
  padding: 24px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

/* Header beim Scrollen */
.header.scrolled {
  box-shadow: 0 4px 8px rgba(20, 20, 20, 0.06);
}

.header__logo img {
  height: 40px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--schwarz);
  position: relative;
  padding-bottom: 2px;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Navigation: Underline-Slide bei Hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--jade);
  transition: width 0.2s ease;
}

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

/* Hamburger Button */

.header__toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--schwarz);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* X-Animation */
.header__toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* wenn offen, X ist weiß */
.header__toggle.is-open span {
  background: var(--weiss);
}

/* --- Anchor Offset: verhindert abgeschnittene Sektionen beim Ankerscrollen --- */
#hero,
#process,
#about,
#contact {
  scroll-margin-top: 120px; /* Höhe deines Sticky Headers */
}

#services {
  scroll-margin-top: 64px; /* Höhe deines Sticky Headers */
}

/* ============ HERO ============ */

.hero {
  padding: 0 0 40px;
}

.hero-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(12, 29, 58, 0.92) 50%,
    rgba(30, 52, 66, 0.92) 100%
  );

  padding: 300px 80px 80px;
  color: var(--weiss);
}

/* Wasser-Layer als statisches, responsives Background-Bild */
.hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image: url("img/wasser.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 1;
  pointer-events: none;
}

/* Inhalt liegt über dem Wasser */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.8s ease forwards;
  animation-delay: 0.15s;
}

.hero-title {
  color: var(--weiss);
  font-size: var(--font-size-hero-title);
  font-weight: 700;
  margin: 0 0 16px;
}

.hero-subtitle {
  color: var(--weiss);
  font-size: var(--font-size-hero-subtitle);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 24px;
}

/* ============ INTRO ============ */

.section-intro {
  background: var(--weiss);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* Container: bleibt fix, versteckt nur das Bild außenrum */
.intro-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Bild: bewegt sich innerhalb des Containers */
.intro-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.05s linear;
}

.section-headline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-headline-bar {
  width: 8px;
  border-radius: 100px;
  background: var(--preussisch);
  align-self: stretch;
}

.intro-actions {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

/* ============ SERVICES ============ */

.section-services {
  padding: 40px 80px 80px;
  background: var(--weiss);
}

.services-box {
  background: linear-gradient(180deg, var(--preussisch) 50%, var(--preussisch-light) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 80px;
  color: var(--weiss);
}

.services-header {
  text-align: center;
  margin-bottom: 40px;
}

.services-pill {
  display: block;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: var(--jade);
  margin: 12px auto 0;
}

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

.service-card {
  background: var(--weiss);
  color: var(--schwarz);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.service-card .card-title {
  margin: 0;
  line-height: 1.2;
}

.service-card .card-text {
  margin: 0;
}

.service-icon {
  width: 24px;
  height: 24px;
}

.services-cta {
  margin-top: 40px;
  text-align: center;
}

/* ============ PROCESS (ohne Hintergrundbild) ============ */

.section-process {
  background: var(--weiss);
  padding-top: 40px;
  padding-bottom: 120px;
}

.section-header.center {
  text-align: center;
}

.process-pill {
  display: block;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: var(--preussisch);
  margin: 12px auto 0;
}

.process-wrapper {
  margin-top: 40px;
}

/* Nur die Cards */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--weiss);
  box-shadow: var(--shadow-soft);
  border-radius: 10px;
  padding: 40px 32px;
  transition: box-shadow 0.2s ease;
}

/* QUOTE SECTION */

.quote-section {
  padding: 40px 80px 80px;
}

.quote-box {
  width: 100%;
  padding: 40px 80px;

  background-image:
    linear-gradient(180deg, rgba(12, 29, 58, 0.9) 50%, rgba(30, 52, 66, 0.9) 100%),
    url("img/wasser.jpg");

  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;

  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 128px;

  transition: background-position 0.06s linear;
}

.quote-text {
  color: var(--weiss);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  max-width: 1040px;
  margin: 0;
}

/* ============ ABOUT ============ */

.about-section {
  padding: 0px 80px 80px;
  text-align: center;
}

.about-section h2 {
  font-size: var(--font-size-section-title);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--schwarz);
}

.section-divider {
  width: 72px;
  height: 8px;
  background: var(--preussisch);
  border-radius: 999px;
  margin: 12px auto 0;
}

.about-text {
  max-width: 700px;
  margin: 32px auto 60px;
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--schwarz);
}

.team-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  width: 300px;
  background: var(--weiss);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
}

.team-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  transform-origin: center;
}

.team-card:hover .team-image img {
  transform: scale(1.06);
}

.team-content h3 {
  font-size: var(--font-size-card-title);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 4px;
}

.role {
  font-size: var(--font-size-body);
  color: var(--schwarz);
  margin-bottom: 20px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.team-socials img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.team-socials img:hover {
  opacity: 0.7;
}

.about-btn {
  margin-top: 60px;
}

/* ============ CONTACT ============ */

.contact-section {
  padding: 40px 80px;
}

.contact-card {
  background: linear-gradient(180deg, var(--preussisch) 50%, var(--preussisch-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  padding: 60px 80px;
  gap: 40px;
}

.contact-text {
  flex: 1;
  max-width: 480px;
}

.contact-text h2,
.contact-headline h2 {
  color: var(--weiss);
  font-size: var(--font-size-section-title);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-text p {
  color: var(--weiss);
  font-size: var(--font-size-body);
  line-height: 1.55;
  margin-bottom: 32px;
}

.contact-info a {
  color: var(--weiss);
}

.contact-info .info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-info img {
  width: 24px;
  height: 24px;
}

.contact-info p {
  color: var(--weiss);
  font-size: var(--font-size-body);
  margin: 0;
}

/* Headline mit Jade-Bar wie im Intro */
.contact-headline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.contact-bar {
  width: 8px;
  background: var(--jade);
  border-radius: 100px;
  align-self: stretch;
}

/* Kontaktformular */

.contact-form {
  flex: 1;
  background: var(--weiss);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--schwarz);
  font-family: inherit;
}

.contact-form input,
.contact-form textarea {
  font-size: var(--font-size-small);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--jade);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(57, 136, 117, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
  font-family: inherit;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #e6f7f3;
  color: #1b5f50;
  font-size: var(--font-size-body);
  border: 1px solid #398471;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ============ HOVER / CARD-INTERAKTIONEN ============ */

.service-card,
.team-card,
.step-card,
.contact-card,
.quote-box {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* leichte Lift-Animation für Cards */
.service-card:hover,
.step-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.15);
}

/* Kontaktkarte etwas stärker */
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.15);
}

/* ============ FOOTER ============ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 80px 64px;
  background: var(--weiss);
  box-shadow: 0 4px 8px rgba(20, 20, 20, 0.15);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  width: 70px;
}

.footer-address {
  font-size: var(--font-size-small);
  color: var(--schwarz);
  line-height: 1.6;
}

.footer-section {
  font-size: var(--font-size-small);
  color: var(--schwarz);
  line-height: 1.6;
  min-width: 150px;
}

.footer-section a {
  color: var(--schwarz);
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-socials img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-socials img:hover {
  opacity: 0.7;
}

.footer-socials a {
  display: none;
}

/* ============ LEGAL PAGES (Impressum & Datenschutz) ============ */

/* Desktop: 80px Seitenabstand wie die anderen großen Sektionen */
.legal-page {
  background: var(--weiss);
  padding: 80px 80px 96px;
}

/* Container wie bei Services/Kontakt */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Typo */
.legal-title {
  font-size: var(--font-size-hero-title);
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--schwarz);
}

.legal-subtitle {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--schwarz);
}

.legal-content {
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--schwarz);
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content a {
  color: var(--jade);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .header {
    padding: 16px 24px;
  }

  .header__toggle {
    display: block;
  }

  /* Vollbild-Menü */
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
      180deg,
      rgba(12, 29, 58, 1) 50%,
      rgba(30, 52, 66, 1) 100%
    );

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 24px;

    z-index: 1000;
    padding: 40px 24px;
    text-align: center;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav .nav-link {
    color: var(--weiss);
    font-size: 32px;
    font-weight: 600;
  }

  .header__nav .btn-primary.btn-small {
    background: var(--jade);
    width: 70%;
  }

  /* Toggle oben rechts fixieren */
  .header__toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
  }

  .hero-box {
    padding: 48px 32px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 22px;
    line-height: 1.4;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .section-services {
    padding: 40px 24px 64px;
  }

  .services-box {
    padding: 40px 24px;
  }

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    padding: 56px 24px;
  }

  .contact-card {
    padding: 32px 24px;
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    padding: 40px 24px;
  }

  /* Hero & Prozess: wie der Rest auf 24px Seitenabstand gehen */
  .hero > .container,
  .section-process > .container,
  .section-intro > .container {
    padding: 0 24px;
  }

  /* Legal: außen 24px, innen zusätzlich 24px */
  .legal-page {
    padding: 64px 24px 80px;
  }

  .legal-container {
    padding: 0 24px;
  }
}

@media (max-width: 800px) {
  .quote-section {
    padding: 32px 16px 56px;
  }

  .quote-box {
    padding: 24px 16px;
    height: auto;
  }

  .quote-text {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-box {
    height: 100vh;
    padding: 40px 24px;
    border-radius: 24px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    margin: 0;
    max-width: 90%;
  }

  .hero-actions {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .hero-title {
    font-size: 40px;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 24px;
  }

  .about-section {
    padding: 80px 24px 56px;
  }

  .footer-left {
    flex-direction: row;
  }

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

  .quote-section {
    display: none;
  }

  .legal-title {
    font-size: 28px;
  }

  .legal-subtitle {
    font-size: 18px;
  }
}

/* ========================= */
/*        ANIMATIONEN        */
/* ========================= */

/* Sanfte, langsame Reveal-Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Hover soll transform der Reveal-Animation überschreiben */
.reveal.reveal--visible.service-card:hover,
.reveal.reveal--visible.step-card:hover,
.reveal.reveal--visible.team-card:hover,
.reveal.reveal--visible.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.15);
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7. Respekt für Nutzer mit reduzierter Bewegung */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
