/* ===== Eigene Formulare – Aussehen angelehnt an Google Forms ===== */
:root {
  /* Farben der Hub-Startseite (site.css, Farbschema „Fresh Startup“) */
  --gf-accent: #009e8e; --gf-ink: #10233f; --gf-navy: #071a2f; --gf-cyan: #22d3b6; --gf-muted: #617286;
  --gf-line: rgba(16,35,63,.11); --gf-red: #d93025;
  --gf-band: linear-gradient(90deg, #22d3b6 0%, #7c5cff 48%, #635bff 100%);
}
*, *::before, *::after { box-sizing: border-box; }
body.gf {
  margin: 0; min-height: 100vh; color: var(--gf-ink);
  font: 14px/1.5 Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 16% 22%, rgba(34,211,182,.28) 0%, transparent 31%),
    radial-gradient(circle at 82% 16%, rgba(99,91,255,.22) 0%, transparent 34%),
    radial-gradient(circle at 68% 82%, rgba(142,232,111,.18) 0%, transparent 34%),
    linear-gradient(135deg, #f8fffb 0%, #e9fbf5 34%, #f4ecff 66%, #fff2eb 100%) fixed;
}
.gf-wrap { width: min(640px, 100%); margin: 0 auto; padding: 12px 16px 40px; }
.gf-preview { background: #fff4e5; border: 1px solid #f5c77e; color: #7a4304; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.gf-banner { border-radius: 8px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 4 / 1; background: var(--gf-accent); }
.gf-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gf-card { background: #fff; border: 1px solid var(--gf-line); border-radius: 8px; padding: 24px; margin-bottom: 12px; position: relative; }
.gf-head { padding-top: 32px; overflow: hidden; }
.gf-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--gf-band); }
.gf-head h1 { font-size: 32px; font-weight: 400; line-height: 1.25; margin: 0 0 12px; }
.gf-rt p { margin: 0 0 .9em; }
.gf-rt a, .gf-help a, .gf-label a, .gf-sectext a, .gf-done a { color: var(--gf-accent); }
.gf-reqnote { color: var(--gf-red); font-size: 14px; margin: 16px -24px -8px; padding: 12px 24px 0; border-top: 1px solid var(--gf-line); }

.gf-section { padding-top: 0; overflow: hidden; }
.gf-section-bar { margin: 0 -24px 18px; padding: 8px 24px; background: var(--gf-navy); color: #fff; font-size: 13px; font-weight: 500; box-shadow: inset 0 -3px 0 var(--gf-cyan); }
.gf-section h2 { font-size: 20px; font-weight: 400; margin: 0 0 8px; }
.gf-sectext { color: var(--gf-ink); }

.gf-label { font-size: 16px; line-height: 1.5; letter-spacing: .1px; }
.gf-star { color: var(--gf-red); }
.gf-help { color: var(--gf-muted); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.gf-input {
  display: block; width: 100%; margin-top: 16px; font: inherit; font-size: 14px; color: var(--gf-ink);
  border: 0; border-bottom: 1px solid var(--gf-line); padding: 6px 0; background: transparent; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gf-input:focus { border-bottom-color: var(--gf-accent); box-shadow: 0 1px 0 var(--gf-accent); }
.gf-q .gf-input:not(.gf-other-text) { max-width: 50%; }
.gf-q .gf-input.gf-date { max-width: 220px; }
.gf-q .gf-area { max-width: 100%; resize: none; overflow: hidden; min-height: 34px; }
@media (max-width: 600px) { .gf-q .gf-input:not(.gf-other-text) { max-width: 100%; } }

.gf-choices { margin-top: 12px; display: flex; flex-direction: column; }
.gf-choice { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; position: relative; }
.gf-choice > input[type=radio], .gf-choice > input[type=checkbox] { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.gf-dot, .gf-box { flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid var(--gf-muted); display: grid; place-items: center; transition: border-color .15s; }
.gf-dot { border-radius: 50%; }
.gf-box { border-radius: 2px; }
.gf-choice input:checked + .gf-dot { border-color: var(--gf-accent); }
.gf-choice input:checked + .gf-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gf-accent); }
.gf-choice input:checked + .gf-box { border-color: var(--gf-accent); background: var(--gf-accent); }
.gf-choice input:checked + .gf-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.gf-choice input:focus-visible + .gf-dot, .gf-choice input:focus-visible + .gf-box { outline: 2px solid var(--gf-accent); outline-offset: 3px; }
.gf-other .gf-other-text { margin-top: 0; flex: 1; }
.gf-image { padding: 0; overflow: hidden; margin: 0 0 12px; }
.gf-image img { display: block; width: 100%; height: auto; }
.gf-image figcaption { padding: 10px 24px 14px; color: var(--gf-muted); font-size: 12px; }
.gf-select { margin-top: 16px; font: inherit; padding: 8px 12px; border: 1px solid var(--gf-line); border-radius: 4px; background: #fff; min-width: 200px; }

.gf-err { display: none; color: var(--gf-red); font-size: 12px; margin: 12px 0 0; }
.gf-q.has-error { border-color: var(--gf-red); }
.gf-q.has-error .gf-err { display: flex; align-items: center; gap: 8px; }
.gf-q.has-error .gf-err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gf-red); color: #fff; font-weight: 700; font-size: 11px; }
.gf-alert { background: #fce8e6; border: 1px solid #f5b7b1; color: #a50e0e; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }

.gf-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.gf-buttons { display: flex; gap: 12px; }
.gf-btn { font: 500 14px Roboto, Arial, sans-serif; letter-spacing: .25px; border-radius: 4px; padding: 9px 24px; cursor: pointer; border: 0; }
.gf-send, .gf-next { background: var(--gf-navy); color: #fff; }
.gf-send:hover, .gf-next:hover { background: var(--gf-accent); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.gf-back { background: #fff; color: var(--gf-ink); border: 1px solid var(--gf-line); }
.gf-send:disabled { opacity: .6; cursor: default; }
.gf-progress { display: flex; align-items: center; gap: 10px; color: var(--gf-muted); font-size: 12px; }
.gf-bar { width: 160px; height: 10px; border-radius: 5px; background: rgba(16,35,63,.1); overflow: hidden; }
.gf-bar span { display: block; height: 100%; background: var(--gf-band); width: 0; transition: width .2s; }
.gf-clear { background: none; border: 0; color: var(--gf-accent); font: 500 14px Roboto, Arial, sans-serif; cursor: pointer; padding: 9px 8px; }
.gf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gf-foot { text-align: center; color: var(--gf-muted); font-size: 12px; margin-top: 24px; }
.gf-foot a { color: var(--gf-muted); }
[hidden] { display: none !important; }
/* Ohne JavaScript sind alle Seiten untereinander sichtbar; mit JavaScript immer nur eine */
.gf-js .gf-step:not(.on) { display: none; }
