/* NeuerLook – globales Layout (alle Marketing-Seiten) */

:root {
  --nl-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --nl-ink: #0c1222;
  --nl-ink-muted: #475569;
  --nl-surface: #f1f5f9;
  --nl-white: #ffffff;
  --nl-navy: #0b1530;
  --nl-navy-soft: #152a4a;
  --nl-ice: #b8d4f0;
  --nl-accent: #14b8a6;
  --nl-accent-hover: #0d9488;
  --nl-blue: #3b82f6;
  --nl-border: #e2e8f0;
  --nl-radius: 12px;
  --nl-radius-lg: 16px;
  --nl-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --nl-container: min(1680px, calc(100vw - 2 * var(--nl-gutter)));
  --nl-gutter: clamp(20px, 2.5vw, 40px);
  --nl-header-h: 64px;
  --nl-section-y: clamp(48px, 8vw, 88px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--nl-font);
  color: var(--nl-ink);
  background: var(--nl-surface);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--nl-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nl-header-h);
  background: rgba(11, 21, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--nl-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--nl-container);
  margin: 0 auto;
  padding: 0 var(--nl-gutter);
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(200px, 58vw);
}

.brand-logo--on-light {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-logo--on-light img {
  height: 56px;
  max-width: 100%;
}

.brand-logo__suffix {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .brand-logo img {
    height: 34px;
  }

  .brand-logo__suffix {
    display: none;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--nl-white);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a.active {
  background: rgba(20, 184, 166, 0.2);
  color: var(--nl-white);
}

.site-nav__cta {
  background: var(--nl-accent) !important;
  color: #042f2e !important;
  margin-left: 4px;
}

.site-nav__cta:hover {
  background: var(--nl-accent-hover) !important;
  text-decoration: none !important;
}

/* Main – Standardseiten */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--nl-section-y) var(--nl-gutter);
}

.page-landing .site-main {
  max-width: none;
  padding: 0;
}

/* Footer */
.site-footer {
  background: var(--nl-navy);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(24px, 4vw, 32px) var(--nl-gutter);
}

.site-footer__inner {
  max-width: var(--nl-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.8125rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--nl-ice);
  text-decoration: none;
}

.site-footer__consent {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__consent:hover {
  color: var(--nl-ice);
}

/* Consent-Banner (Google Analytics) */
.nl-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  padding: 16px var(--nl-gutter);
  background: rgba(11, 21, 48, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.nl-consent[hidden] {
  display: none !important;
}

.nl-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.nl-consent__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.nl-consent__text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin: 0;
}

.nl-consent__text a {
  color: var(--nl-ice);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nl-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.nl-consent__decline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nl-consent__decline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 639px) {
  .nl-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nl-consent__actions {
    width: 100%;
  }

  .nl-consent__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Standard-Inhaltsseiten */
.hero {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.625rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--nl-ink);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--nl-ink-muted);
  max-width: 42rem;
  line-height: 1.55;
}

.page-contact .site-main {
  max-width: 640px;
}

.card {
  background: var(--nl-white);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--nl-shadow);
}

.prose h2 {
  font-size: 1.375rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--nl-ink);
  font-weight: 800;
}

.prose h3 {
  font-size: 1.0625rem;
  margin: 1.25rem 0 0.5rem;
  font-weight: 700;
}

.prose p {
  margin-bottom: 0.75rem;
  color: var(--nl-ink-muted);
}

.prose ul,
.prose ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
  color: var(--nl-ink-muted);
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Buttons (global) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--nl-accent);
  color: #042f2e;
}

.btn--primary:hover {
  background: var(--nl-accent-hover);
  color: #042f2e;
}

.btn--block {
  width: 100%;
}

/* Fallback für einfache .btn ohne Modifikator */
.site-main .btn:not(.btn--ghost):not(.btn--dark) {
  background: var(--nl-accent);
  color: #042f2e;
}

.site-main .btn:not(.btn--ghost):not(.btn--dark):hover {
  background: var(--nl-accent-hover);
  color: #042f2e;
}

/* Formulare */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nl-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--nl-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--nl-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--nl-accent);
}

.form-consent span {
  display: inline;
  font-size: 0.875rem;
  color: var(--nl-ink-muted);
  line-height: 1.5;
}

.form-msg {
  margin-top: 4px;
  font-size: 0.875rem;
}

.form-msg.ok { color: #059669; }
.form-msg.err { color: #dc2626; }

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid--2 .form-span-2 {
    grid-column: 1 / -1;
  }
}

/* Mobile: Hamburger-Menü */
@media (max-width: 767px) {
  .site-header__inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--nl-gutter));
    right: calc(-1 * var(--nl-gutter));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--nl-gutter) 16px;
    background: rgba(11, 21, 48, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

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

  .site-nav a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 14px;
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: 4px;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  :root {
    --nl-header-h: 72px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    padding: 10px 14px;
    font-size: 0.9375rem;
  }
}
