/* Design-Update 2026-09 (Vorlage: messe.lifta.de/index.html vom 29.09.2026)
   Wird nach main.css geladen und überschreibt nur Optik.
   Markup, Klassen und validation.js bleiben unverändert. */

/* ---------- Schrift: Source Sans 3 als Variable Font ---------- */
@font-face {
  font-family: 'Source Sans';
  src: url("../webfonts/SourceSans3-VariableFont_wght.woff2") format("woff2-variations"),
       url("../webfonts/SourceSans3-VariableFont_wght.woff2") format("woff2"),
       url("../webfonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans';
  src: url("../webfonts/SourceSans3-Italic-VariableFont_wght.woff2") format("woff2-variations"),
       url("../webfonts/SourceSans3-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #1A2B60;
  --dark: #002B45;
  --wine: #7b0a31;
  --wine-hover: #91003c;
  --grey: #7c8694;
  --error: #c00d0d;
}

body {
  padding: 0;
  overflow: visible;
  line-height: 1.6;
  font-family: "Source Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
header {
  left: 0;
}

nav {
  padding: 0 40px;
}

nav .logo svg {
  display: block;
  height: 44px;
  width: auto;
}

/* ---------- Formularbereich ---------- */
header + section.primary-background {
  margin-top: 80px;
  padding: 80px 40px;
}

.container.small {
  max-width: 100%;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 32px;
}

.pop-up h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dark);
}

form label {
  font-size: 1rem;
}

form .input > label.d-block {
  margin-bottom: 8px;
}

/* Mindestens 16px verhindert das automatische Hineinzoomen auf iPad und Android */
form input[type="text"],
form input[type="email"],
form input[type="date"],
form select {
  font-size: 16px;
  min-height: 52px;
}

form textarea {
  font-size: 16px;
}

form select {
  font-weight: 300;
}

form ::placeholder {
  color: var(--grey);
  opacity: 1;
}

/* main.css schaltet alle Outlines ab, für Tastaturbedienung wieder einblenden */
form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px;
}

/* Radio und Checkbox: Tap-Fläche mindestens 44px für die Tablet-Bedienung */
form .input.radio,
form .input.checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  min-height: 44px;
}

form .input.radio input,
form .input.checkbox input {
  margin: 0;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--wine);
  cursor: pointer;
}

form .input.radio label,
form .input.checkbox label {
  flex: 1;
  margin: 0;
  padding: 10px 0;
  line-height: 1.35;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .12);
}

/* Fehlermeldungen, die validation.js hinter das Feld setzt */
.error-message {
  display: block;
  color: #fff;
  margin-top: 8px;
}

form .input.checkbox .error-message {
  flex-basis: 100%;
}

/* ---------- Buttons ---------- */
.btn-inverted {
  background: var(--wine);
}

.btn-inverted:hover {
  background: var(--wine-hover);
}

/* ---------- Pop-up ---------- */
.pop-up {
  width: min(420px, calc(100% - 32px));
  z-index: 100;
}

.pop-up p {
  margin: 0;
}

@media (max-width: 768px) {
  nav {
    padding: 0 16px;
  }

  /* Die Abstands-Klassen aus main.css setzen !important, daher hier ebenso */
  header + section.primary-background {
    padding: 48px 16px !important;
  }

  .container.small {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Pflicht-Gruppen (Branche, Gesprächsthemen) und Sendefehler */
[data-validate-group] > .error-message {
  margin-top: 0;
}

.btn-inverted:disabled {
  opacity: .6;
  cursor: wait;
}
