/* ============================================================
   FreshFrame – Anfrageformular
   Modul 307 | MMA24cL | Levi Steiner
   ============================================================ */

/* ── Variablen ─────────────────────────────────────────────── */
:root {
  --fresh-teal: #00a897;
  --deep-teal: #0a7870;
  --charcoal: #231e1f;
  --slate-green: #273330;
  --off-white: #fefefe;
  --light-gray: #d2d2d2;
  --mid-gray: #9e9999;
  --warm-gray: #635e5e;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --shadow-soft: 0 12px 32px rgba(35, 30, 31, 0.08);
  --transition: 0.2s ease;
}
/* AB HIER QUELLE 1
/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--charcoal);
  color: var(--off-white);
  line-height: 1.6;
}

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

/* Alle Eingabefelder erben Poppins */
input,
select,
textarea,
button,
output {
  font-family: "Poppins", sans-serif;
}

/* ── Layout ────────────────────────────────────────────────── */
.page-wrapper {
  width: min(100% - 1.5rem, 1100px);
  margin: 0 auto;
  padding: 1.5rem 0.75rem 2.5rem;
  min-height: 100vh;
  background-color: var(--charcoal);
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  margin-bottom: 1.5rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg,
.brand-mark img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.eyebrow {
  margin: 0 0 0.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fresh-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--off-white);
}

.intro {
  margin: 0;
  color: var(--light-gray);
  max-width: 55ch;
  font-size: 0.95rem;
}

/* ── Gestaltungselement: Header-Badges ─────────────────────── */
.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warm-gray);
  background-color: #ffffff;
  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.badge:hover {
  border-color: var(--fresh-teal);
  color: var(--deep-teal);
  background-color: rgba(0, 168, 151, 0.06);
}

.badge-accent {
  border-color: var(--fresh-teal);
  color: var(--deep-teal);
  background-color: rgba(0, 168, 151, 0.08);
  font-weight: 600;
}

/* ── Formular-Card ─────────────────────────────────────────── */
.form-card {
  background-color: #2e2b2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
}

/* ── Fieldsets / Gruppen ───────────────────────────────────── */
.form-group {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background-color: #2b2829;
  transition: border-color var(--transition);
}

.form-group:focus-within {
  border-color: rgba(0, 168, 151, 0.35);
}

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

.form-group legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-white);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fresh-teal), var(--deep-teal));
  flex-shrink: 0;
}

/* ── Felder ────────────────────────────────────────────────── */
.form-field {
  margin-bottom: 1rem;
}

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

label,
.label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--off-white);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background-color: #2e2b2c;
  color: var(--off-white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--mid-gray);
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fresh-teal);
  box-shadow: 0 0 0 4px rgba(0, 168, 151, 0.16);
  background-color: #343132;
}

/* ── Date Input Styling ────────────────────────────────────── */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(100%) saturate(5) hue-rotate(147deg) brightness(0.95);
  cursor: pointer;
}

input[type="date"]::-webkit-outer-spin-button,
input[type="date"]::-webkit-inner-spin-button {
  display: none;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23635e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

/* ── Zwei-Spalten-Layout ───────────────────────────────────── */
.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* ── Radio Option Cards ────────────────────────────────────── */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background-color: #2e2b2c;
  cursor: pointer;
  transition:
    border-color var(--transition),
    transform var(--transition),
    background-color var(--transition);
  font-size: 0.9rem;
  color: var(--off-white);
}

.option-card:hover {
  border-color: var(--fresh-teal);
  background-color: rgba(0, 168, 151, 0.1);
}

.option-card:has(input:checked) {
  border-color: var(--fresh-teal);
  background-color: rgba(0, 168, 151, 0.18);
  color: var(--off-white);
  font-weight: 500;
}

/* ── Inline Radio Buttons (Kontaktart) ─────────────────────── */
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background-color: #2e2b2c;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--off-white);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.inline-option:hover {
  border-color: var(--fresh-teal);
  background-color: rgba(0, 168, 151, 0.1);
}

.inline-option:has(input:checked) {
  border-color: var(--fresh-teal);
  background-color: rgba(0, 168, 151, 0.18);
  color: var(--off-white);
  font-weight: 600;
}

/* ── Checkboxes ────────────────────────────────────────────── */
.checkbox-field {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--off-white);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--fresh-teal);
  cursor: pointer;
}

.consent span {
  color: var(--light-gray);
  line-height: 1.5;
}

/* ── Range Slider ──────────────────────────────────────────── */
.range-wrap {
  padding-top: 0.25rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.range-label {
  font-size: 0.82rem;
  color: var(--mid-gray);
}

output#budget-output {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-teal);
  background-color: rgba(0, 168, 151, 0.1);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 168, 151, 0.25);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--fresh-teal);
  cursor: pointer;
  height: 1.2rem;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fresh-teal), var(--deep-teal));
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 8px rgba(0, 168, 151, 0.14);
  margin-top: -0.3rem;
}

input[type="range"]::-moz-range-track {
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

input[type="range"]::-moz-range-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fresh-teal), var(--deep-teal));
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 8px rgba(0, 168, 151, 0.14);
}

/* ── File Input ────────────────────────────────────────────── */
input[type="file"] {
  width: 100%;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--off-white);
  background-color: #2e2b2c;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--fresh-teal);
  box-shadow: 0 0 0 4px rgba(0, 168, 151, 0.16);
}

input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
  cursor: pointer;
  border: none;
  background-color: var(--fresh-teal);
  color: var(--off-white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover {
  background-color: var(--deep-teal);
}

/* ── Form Actions ──────────────────────────────────────────── */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
}

button[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--fresh-teal), var(--deep-teal));
  color: var(--off-white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 120, 112, 0.28);
}

.button-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.95rem 2rem;
  background: transparent;
  color: var(--off-white);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition);
}

.button-secondary:hover {
  border-color: var(--fresh-teal);
  color: var(--fresh-teal);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--light-gray);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--deep-teal);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 639px) {
  .page-wrapper {
    padding: 1.25rem 0.75rem 2rem;
  }

  .header-badges {
    justify-content: center;
  }

  .brand {
    gap: 0.75rem;
  }

  .form-card {
    padding: 1.5rem 1rem;
  }

  .form-group {
    padding: 1rem;
  }

  .option-row {
    flex-direction: column;
    align-items: stretch;
  }

  .option-card,
  .inline-option {
    width: 100%;
    min-width: 0;
  }

  .range-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  output#budget-output {
    width: auto;
  }

  .form-actions {
    gap: 1rem;
    align-items: stretch;
  }

  button[type="submit"] {
    width: 100%;
  }

  .footer-links {
    justify-content: center;
  }
}

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

@media (min-width: 760px) {
  .page-wrapper {
    width: min(100% - 4rem, 1100px);
    padding-top: 2.5rem;
  }

  .form-card {
    padding: 2rem;
  }

  .form-group {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .two-column {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-actions {
    flex-direction: row;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Responsive: Desktop ───────────────────────────────────── */
@media (min-width: 980px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .intro {
    justify-self: end;
    text-align: right;
  }

  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}




/* QUELLE 1 ENDE