/* =========================================================
   Pasteur Edge – Stylesheet
   Struktur: Reset/Basis · Layout · Komponenten · Utilities · Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS-Variablen
   --------------------------------------------------------- */
:root {
  --color-bg:          #070d1a;
  --color-bg-alt:      #0d1730;
  --color-surface:     #111e35;
  --color-border:      #1a2e50;
  --color-blue:        #1a8fff;
  --color-blue-bright: #00c3ff;
  --color-blue-dark:   #0d5fa6;
  --color-text:        #d0dcea;
  --color-text-muted:  #7a95b8;
  --color-white:       #ffffff;

  --font-sans:   'Segoe UI', Arial, sans-serif;
  --font-mono:   'Courier New', monospace;

  --radius:      6px;
  --radius-lg:   12px;
  --transition:  0.25s ease;

  --max-width:   1160px;
  --nav-height:  72px;
}

/* ---------------------------------------------------------
   2. Reset / Basis
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  color: var(--color-blue-bright);
}

ul {
  list-style: none;
}

/* ---------------------------------------------------------
   3. Layout-Helfer
   --------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* ---------------------------------------------------------
   4. Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-height);
  background: rgba(7, 13, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__list a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--color-blue-bright);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-blue);
  border-radius: var(--radius);
  color: var(--color-blue) !important;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--color-blue);
  color: var(--color-white) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------------------------------------------------------
   5. Hero
   --------------------------------------------------------- */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding-block-start: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/background.png');
  background-size: cover;
  background-position: center center;
  filter: brightness(0.52);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 40%, rgba(13, 95, 166, 0.2), transparent 45%),
    linear-gradient(105deg, rgba(7, 13, 26, 0.72) 30%, rgba(7, 13, 26, 0.45) 55%, rgba(7, 13, 26, 0.8) 100%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__brand {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.hero__signet {
  width: 100%;
  min-width: 140px;
  max-width: 250px;
  flex: 0 1 42%;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.hero__wordmark {
  width: 100%;
  min-width: 190px;
  max-width: 340px;
  flex: 1 1 58%;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.hero__content {
  position: relative;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

.hero__content--panel {
  background: rgba(8, 18, 35, 0.7);
  border: 1px solid rgba(80, 143, 216, 0.32);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.35rem, 2vw, 2.1rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue-bright);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--color-blue-bright);
}

.hero__desc {
  font-size: 1.1rem;
  color: #dbe8f8;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------------------------------------------------------
   6. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--color-blue-bright);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn--primary:hover {
  background: var(--color-blue-bright);
  border-color: var(--color-blue-bright);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.35);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue-bright);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  box-shadow: none;
}

/* ---------------------------------------------------------
   7. Abschnitts-Überschriften
   --------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
}

.section-header__desc {
  margin-top: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ---------------------------------------------------------
   8. Leistungs-Karten
   --------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 0 24px rgba(26, 143, 255, 0.15);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--color-blue-bright);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.card__text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   9. Über uns
   --------------------------------------------------------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about__img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
}

.about__text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about__text p:last-of-type {
  margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------
   10. Kontakt-Bereich
   --------------------------------------------------------- */
.contact__inner {
  max-width: 640px;
  margin-inline: auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__label .required {
  color: var(--color-blue-bright);
  margin-left: 0.2em;
}

.form__input,
.form__textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26, 143, 255, 0.2);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

.form__status {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form__status--success {
  background: rgba(0, 195, 100, 0.12);
  border: 1px solid rgba(0, 195, 100, 0.4);
  color: #4ddfaa;
  display: block;
}

.form__status--error {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff8080;
  display: block;
}

/* ---------------------------------------------------------
   11. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: 2.5rem;
  text-align: center;
}

.site-footer__logo {
  height: 36px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-footer__nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.site-footer__nav a:hover {
  color: var(--color-blue-bright);
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   12. Rechtstexte
   --------------------------------------------------------- */
.legal {
  padding-top: calc(var(--nav-height) + 2rem);
}

.legal__content {
  max-width: 880px;
  margin-inline: auto;
}

.legal__content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.legal__content h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--color-white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal__content p,
.legal__content li {
  color: var(--color-text);
}

.legal__content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal__content a {
  color: var(--color-blue-bright);
}

/* ---------------------------------------------------------
   13. Utilities
   --------------------------------------------------------- */
.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;
}

/* ---------------------------------------------------------
  14. Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 2rem 3.5rem;
  }

  .hero__brand {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__img-wrap {
    order: -1;
  }

  .about__img-wrap img {
    height: 280px;
  }
}

@media (max-width: 700px) {
  .hero__content--panel {
    padding: 1.2rem;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    inset-block-start: var(--nav-height);
    inset-inline: 0;
    background: rgba(7, 13, 26, 0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section {
    padding-block: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
