:root {
  --bg: #f4f7fb;
  --bg-alt: #e9f1fb;
  --text: #0f1b2d;
  --muted: #4e6a8b;
  --accent: #2e74c9;
  --accent-soft: rgba(46, 116, 201, 0.14);
  --card: #ffffff;
  --border: rgba(15, 27, 45, 0.08);
  --radius: 18px;
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav.nav-de {
  display: none;
}

body[data-lang="de"] .nav.nav-en {
  display: none;
}

body[data-lang="de"] .nav.nav-de {
  display: flex;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.hero {
  padding: 110px 0 80px;
  background: radial-gradient(circle at top right, rgba(46, 116, 201, 0.22), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

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

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.hero-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.hero-card h3 {
  margin: 12px 0 10px;
}

.hero-card ul {
  margin-top: 12px;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.hero-meta a {
  color: var(--accent);
}

.hero-media {
  background: linear-gradient(135deg, rgba(46, 116, 201, 0.16), rgba(255, 255, 255, 0.6));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media-inner {
  text-align: center;
  color: var(--muted);
}

.hero-media-inner span {
  display: inline-block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.lang-group[data-lang="de"] {
  display: none;
}

body[data-lang="de"] .lang-group[data-lang="en"] {
  display: none;
}

body[data-lang="de"] .lang-group[data-lang="de"] {
  display: block;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 36px;
  max-width: 680px;
}

.section-header p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
}

.timeline {
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step span {
  font-weight: 700;
  color: var(--accent);
}

.contact {
  background: linear-gradient(120deg, rgba(46, 116, 201, 0.16), rgba(255, 255, 255, 0.6));
}

.contact-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: center;
}

.contact-card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 10px;
}

.contact-value {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.site-footer {
  padding: 32px 0 50px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 12px;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.impressum {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.impressum-title {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}

.partner-logos {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 18px 22px;
  align-items: center;
  justify-items: center;
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}

.partner-logos img {
  width: 100%;
  max-width: 180px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(0.05);
  opacity: 0.92;
}

.partner-logos img:hover {
  opacity: 1;
}

@media (min-width: 720px) {
  .partner-logos {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    max-width: 780px;
  }
}

@media (min-width: 1024px) {
  .partner-logos {
    grid-template-columns: repeat(9, minmax(90px, 1fr));
    max-width: none;
  }
}

.demo-form {
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  font-weight: 600;
  color: var(--text);
}

.demo-form label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}

.demo-form label.checkbox input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  line-height: 1.3;
}

.demo-form select {
  min-height: 46px;
}

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

.form-group {
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.form-group legend {
  font-weight: 700;
  color: var(--text);
  padding: 0;
  margin: 0 0 8px;
  background: transparent;
  line-height: 1.2;
}

.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}

.checkbox input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.form-status.error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.form-status.success {
  background: #efe;
  color: #383;
  border: 1px solid #cfc;
}

.error-message {
  color: #c33;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-message::before {
  content: '⚠';
  font-size: 14px;
}

input.error,
select.error,
textarea.error {
  border-color: #c33;
  background: #fff8f8;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
  outline-color: #c33;
  box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.1);
}

.form-field {
  position: relative;
}

.date-range {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.date-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.date-range-inputs span {
  color: var(--muted);
  font-weight: 600;
}

.date-range-inputs input {
  min-width: 0;
  width: 100%;
}

@media (max-width: 520px) {
  .date-range-inputs {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .date-range-inputs span {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 0.9rem;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-media {
    min-height: 200px;
  }

  .section {
    padding: 60px 0;
  }
}
