/* ================================================================
   Armin Diehl Werbung – Umfrage-Formular
   Design angelehnt an armindiehl-werbung.de
   ================================================================ */
:root {
  --brand-red:        #b11226;
  --brand-red-dark:   #8a0d1d;
  --brand-navy:       #02285a;
  --brand-navy-light: #1a4a8a;
  --bg-page:          #f4f5f7;
  --bg-topbar:        #eef0f4;
  --text-main:        #1b1f24;
  --text-muted:       #586070;
  --card-bg:          #ffffff;
  --border:           #d8dde5;
  --radius:           4px;
  --radius-card:      8px;
  --shadow:           0 2px 16px rgba(2, 40, 90, 0.09);
}

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Montserrat", "Gotham", "Segoe UI", "Calibri", sans-serif;
  line-height: 1.5;
}

/* ================================================================
   SITE HEADER – angelehnt an armindiehl-werbung.de
   ================================================================ */
.site-topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--brand-navy);
}

.site-topbar .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.site-topbar a {
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-topbar a:hover {
  color: var(--brand-red);
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brand-red);
  box-shadow: 0 2px 8px rgba(2, 40, 90, 0.07);
}

.site-header .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 54px;
  width: auto;
  display: block;
}

/* ================================================================
   PAGE CONTENT
   ================================================================ */
.page-content {
  max-width: 980px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.page-content.narrow {
  max-width: 720px;
  margin-top: 2.5rem;
}

/* ---- Page intro / title ---- */
.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro__eyebrow {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--brand-navy);
  font-weight: 700;
}

.page-intro p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
}

/* ---- Card ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* ---- Progress bar ---- */
.progress-wrap {
  background: #e9edf3;
  border-radius: 999px;
  overflow: hidden;
  height: 6px;
  margin-bottom: 1.5rem;
}

.progress {
  width: 20%;
  height: 100%;
  background: var(--brand-red);
  transition: width 240ms ease;
}

/* ---- Fieldset / Legend ---- */
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
}

legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-navy);
  padding: 0 0.5rem;
}

label {
  display: block;
  margin: 0.45rem 0;
  font-size: 0.94rem;
}

.checkbox {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
}

/* ---- Inputs ---- */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  border: 1px solid #c6cfdb;
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.94rem;
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.12);
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--brand-red);
  margin-right: 0.35rem;
}

/* ---- Conditional blocks ---- */
.conditional {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed #c0cad8;
  background: #f8f9fc;
}

/* ---- Hint text ---- */
.hint {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn-primary,
.btn-secondary {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-primary:hover {
  background: var(--brand-red-dark);
}

.btn-secondary {
  color: var(--brand-navy);
  background: #eef2f8;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #dfe5f0;
}

/* ----------------------------------------------------------------
   SITE FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.site-footer a:hover {
  color: var(--brand-red);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 720px) {
  .page-content {
    padding: 0 0.75rem;
    margin-top: 1.25rem;
  }

  .card {
    padding: 1rem;
  }

  fieldset {
    padding: 0.75rem 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
