/* ==========================================================================
   Flugblatt-Feedback – Screen-Styles im aktiv & irma Look
   ========================================================================== */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #ee7203;
  --orange-dark: #cf6202;
  --orange-light: #fc8c28;
  --orange-tint: #fdf1e5;
  --blue: #00528a;
  --yellow: #fbca1c;
  --red: #df1b12;
  --green: #80a41c;

  --ink: #2b2725;
  --ink-soft: #58504a;
  --muted: #857c74;
  --line: #e7e1da;
  --paper: #ffffff;
  --bg: #f6f2ed;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(43, 39, 37, 0.06), 0 2px 8px rgba(43, 39, 37, 0.05);
  --shadow-m: 0 2px 6px rgba(43, 39, 37, 0.06), 0 14px 40px rgba(43, 39, 37, 0.1);
  --shadow-orange: 0 6px 18px rgba(238, 114, 3, 0.32);

  --font: 'Open Sans', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--blue);
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- Kopfbereich ---------------------------------------------------------- */

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__logo {
  width: 108px;
  flex: none;
  display: block;
}

.topbar__claim {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.topbar__claim strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #fff;
  padding: 30px 0 58px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -110px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(25px, 6.6vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero p {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  max-width: 46ch;
}

/* --- Karte --------------------------------------------------------------- */

main {
  flex: 1 0 auto;
  padding-bottom: 46px;
}

.card {
  background: var(--paper);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: 26px 20px 28px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

@media (min-width: 560px) {
  .card {
    padding: 34px 34px 36px;
  }
}

/* --- Formular ------------------------------------------------------------ */

.fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.fieldset:last-of-type {
  margin-bottom: 0;
}

.legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.input,
.textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* verhindert Auto-Zoom auf iOS */
  color: var(--ink);
  background: #fdfcfb;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
  color: #b6ada4;
}

.input:hover,
.textarea:hover {
  border-color: #d7cfc6;
}

.input:focus,
.textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(238, 114, 3, 0.16);
}

.field--error .input,
.field--error .textarea {
  border-color: var(--red);
  background: #fef6f5;
}

.field--error .input:focus,
.field--error .textarea:focus {
  box-shadow: 0 0 0 4px rgba(223, 27, 18, 0.14);
}

.error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
}

.hint {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}

/* --- Auswahl (Ja / Nein) -------------------------------------------------- */

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: center;
  background: #fdfcfb;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}

.choice__box svg {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: 0.45;
  transition: opacity 0.16s ease;
}

.choice input:hover + .choice__box {
  border-color: #d7cfc6;
}

.choice input:focus-visible + .choice__box {
  box-shadow: 0 0 0 4px rgba(238, 114, 3, 0.2);
}

.choice input:checked + .choice__box {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.choice input:checked + .choice__box svg {
  opacity: 1;
}

.choices--yesno .choice:first-child input:checked + .choice__box {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(128, 164, 28, 0.3);
}

.choices--yesno .choice:last-child input:checked + .choice__box {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 6px 18px rgba(223, 27, 18, 0.28);
}

/* Die neutrale Standardantwort soll nicht wie eine Aktion wirken. */
.choices--rueckruf .choice:last-child input:checked + .choice__box {
  background: #f1ece6;
  border-color: #ddd4c9;
  color: var(--ink);
  box-shadow: none;
}

.field--error .choice__box {
  border-color: var(--red);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  box-shadow: var(--shadow-orange);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 24px rgba(238, 114, 3, 0.38);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.btn--ghost {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--orange-tint);
  box-shadow: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.submit-row {
  margin-top: 26px;
}

/* --- Meldungen ----------------------------------------------------------- */

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fef6f5;
  border: 1px solid #f6c9c6;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: #9c1710;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

/* --- Datenschutzhinweis --------------------------------------------------- */

.privacy {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--orange-tint);
  border-radius: var(--radius-m);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.privacy a {
  color: var(--orange-dark);
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Danke-Seite ---------------------------------------------------------- */

.success {
  text-align: center;
  padding: 8px 4px 4px;
}

.success__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #9dc233 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(128, 164, 28, 0.34);
}

.success__icon svg {
  width: 42px;
  height: 42px;
  color: #fff;
}

.success h1 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.success p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.success .btn {
  margin-top: 26px;
}

/* --- Prosa (Datenschutz / Fehler) ----------------------------------------- */

.prose h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.prose h2 {
  margin: 26px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange-dark);
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 15px;
}

.prose ul {
  padding-left: 20px;
}

/* --- Fußbereich ----------------------------------------------------------- */

.footer {
  flex: none;
  padding: 22px 0 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__sep {
  margin: 0 8px;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
