/* FreiDeCa Gasprüfung 4.0 – gleiche Formensprache wie „Abbruch & Entsorgung“, dazu das Gelb des Prüfhefts */
.fdg {
  --t: #14231b; --t2: #1f3328; --moos: #637f45; --moos-h: #a9c08a; --salbei: #e4e9da; --kalk: #f2efe8;
  --linie: #cdd5c0; --text: #17231c; --mute: #56645b; --gelb: #f2c230; --gelb-h: #fbeeb8; --err: #a8321f; --wa: #1f9d55;
  --r: 12px; --rl: 22px;
  color: var(--text); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.fdg *, .fdg *::before, .fdg *::after { box-sizing: border-box; }
.fdg [hidden] { display: none !important; }
.fdg > * + * { margin-top: clamp(2.75rem, 7vw, 5rem); }
.fdg h1, .fdg h2, .fdg h3 { color: inherit; font-family: inherit; margin: 0; }
.fdg h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.fdg h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 800; }
.fdg p { margin: 0; }
.fdg img { max-width: 100%; height: auto; display: block; }
.fdg a { color: var(--moos); }
.fdg :focus-visible { outline: 3px solid var(--moos); outline-offset: 3px; }
.fdg .fdg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.fdg .fdg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .8rem 1.35rem; border-radius: var(--r); border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; transition: background-color .15s, border-color .15s, color .15s; }
.fdg .fdg-btn--primary { background: var(--moos); color: #fff; }
.fdg .fdg-btn--primary:hover { background: #56713a; color: #fff; }
.fdg .fdg-btn--wa { background: var(--wa); color: #fff; }
.fdg .fdg-btn--wa:hover { background: #188747; color: #fff; }
.fdg .fdg-btn--ghost { background: transparent; color: var(--t); border-color: var(--linie); }
.fdg .fdg-btn--ghost:hover { border-color: var(--t); color: var(--t); background: transparent; }
.fdg .fdg-btn[disabled] { opacity: .6; cursor: progress; }
.fdg .fdg-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--moos); text-decoration: underline; text-underline-offset: 3px; }
.fdg .fdg-link svg { width: 16px; height: 16px; }

/* Hero */
.fdg-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.fdg .fdg-hero__title { font-size: clamp(2.4rem, 6.6vw, 4.6rem); line-height: .96; font-weight: 900; text-transform: uppercase; color: var(--t); }
.fdg-hero__title span { display: block; }
.fdg-hero__title span + span { color: var(--moos); }
.fdg .fdg-hero__claim { margin-top: 1rem; font-weight: 800; font-size: 1.1rem; color: var(--t); }
.fdg .fdg-hero__lead { margin-top: .6rem; color: var(--mute); max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.fdg-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.fdg .fdg-contact { margin-top: 1.1rem; color: var(--t); }
.fdg-hero__media { position: relative; margin: 0; max-width: 440px; justify-self: end; width: 100%; }
.fdg-hero__media img { width: 100%; aspect-ratio: 406 / 440; object-fit: cover; border-radius: var(--rl); border: 3px solid var(--t); }
.fdg-hero__media figcaption { margin-top: .6rem; font-size: .88rem; color: var(--mute); text-align: center; }
.fdg-price { position: absolute; left: -22px; bottom: 44px; transform: rotate(-6deg); background: var(--gelb); color: var(--t); border-radius: 16px; padding: .7rem 1.1rem .75rem; text-align: center; box-shadow: 0 10px 24px rgba(20,35,27,.25); line-height: 1.05; border: 3px solid var(--t); }
.fdg-price small { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.fdg-price strong { display: block; font-size: 2.3rem; font-weight: 900; margin: .1rem 0; }

/* Fälligkeit */
.fdg-due { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; background: var(--t); color: #fff; border-radius: calc(var(--rl) + 6px); padding: clamp(1.4rem, 4vw, 2.6rem); align-items: center; }
.fdg-due__info p { margin-top: .7rem; color: rgba(255,255,255,.8); }
.fdg-due__calc { background: var(--t2); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1.25rem 1.3rem; }
.fdg .fdg-due__q { font-weight: 800; font-size: 1.08rem; }
.fdg .fdg-due__help { color: rgba(255,255,255,.7); font-size: .92rem; margin: .1rem 0 .8rem; }
.fdg-due__row, .fdg-inline { display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; }
.fdg select { width: 100%; min-height: 50px; padding: .6rem .8rem; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--linie); border-radius: var(--r); }
.fdg-due__result:empty { display: none; }
.fdg-due__result { margin-top: 1rem; border-radius: 14px; padding: 1rem 1.1rem; background: var(--salbei); color: var(--t); }
.fdg-due__result.is-soon { background: var(--gelb-h); }
.fdg-due__result.is-over { background: #f6d9d2; }
.fdg-due__result strong { display: block; font-size: 1.1rem; }
.fdg-due__result p { margin-top: .3rem; font-size: .95rem; }
.fdg-due__result .fdg-btn { margin-top: .8rem; min-height: 44px; padding: .6rem 1rem; }

/* Prüfheft */
.fdg-heft { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.fdg-heft__intro > p { margin-top: .7rem; color: var(--mute); max-width: 34em; }
.fdg-heft__intro h3 { margin-top: 1.6rem; }
.fdg-ready { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.fdg-ready li { position: relative; padding-left: 1.4rem; margin: 0; }
.fdg-ready li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--gelb); box-shadow: inset 0 0 0 2px var(--t); }
.fdg-heft__book { position: relative; background: var(--gelb); color: var(--t); border-radius: 8px 18px 18px 8px; padding: 1.4rem 1.4rem 1.6rem 1.9rem; box-shadow: inset 10px 0 0 rgba(20,35,27,.12), 0 18px 40px rgba(20,35,27,.18); transform: rotate(1.2deg); }
.fdg-heft__head { border-bottom: 2px solid var(--t); padding-bottom: .7rem; margin-bottom: .6rem; }
.fdg-heft__head span { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .05em; }
.fdg-heft__head strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.fdg-heft__list { list-style: none; margin: 0; padding: 0; }
.fdg-heft__list li { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px dashed rgba(20,35,27,.35); margin: 0; }
.fdg-heft__list li:last-child { border-bottom: 0; }
.fdg-heft__list strong { display: block; line-height: 1.25; }
.fdg-heft__list small { display: block; font-size: .88rem; opacity: .8; }
.fdg-tick { flex: none; width: 26px; height: 26px; border: 2px solid var(--t); border-radius: 6px; background: #fff8dd; display: grid; place-items: center; }
.fdg-tick svg { width: 20px; height: 20px; fill: none; stroke: var(--moos); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 0; }
.fdg-heft__stamp { position: absolute; right: -14px; bottom: -22px; width: 118px; height: 118px; border-radius: 50%; border: 4px solid var(--moos); color: var(--moos); background: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-14deg); line-height: 1.05; font-weight: 900; text-transform: uppercase; box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), inset 0 0 0 6px var(--moos); }
.fdg-heft__stamp span { font-size: .72rem; letter-spacing: .06em; }
.fdg-heft__stamp b { font-size: 1.15rem; margin: .15rem 0; }
/* Der eine Moment: Häkchen setzen sich nacheinander, dann landet der Stempel */
.fdg-heft__book.will-animate .fdg-tick svg { stroke-dashoffset: 22; }
.fdg-heft__book.will-animate .fdg-heft__stamp { opacity: 0; transform: rotate(-14deg) scale(1.8); }
.fdg-heft__book.is-visible .fdg-tick svg { animation: fdgTick .35s ease forwards; animation-delay: calc(var(--i) * .22s + .15s); }
.fdg-heft__book.is-visible .fdg-heft__stamp { animation: fdgStamp .35s cubic-bezier(.3,1.6,.6,1) forwards; animation-delay: 1.65s; }
@keyframes fdgTick { to { stroke-dashoffset: 0; } }
@keyframes fdgStamp { to { opacity: 1; transform: rotate(-14deg) scale(1); } }

/* Sammeltermine */
.fdg .fdg-termine__lead { margin-top: .6rem; color: var(--mute); max-width: 44em; }
.fdg-termine__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.fdg-termin { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; background: var(--salbei); border: 1px solid var(--linie); border-radius: var(--rl); padding: 1.1rem; }
.fdg-termin.is-closed { opacity: .65; }
.fdg-termin__date { width: 64px; border-radius: 12px; background: var(--t); color: #fff; text-align: center; padding: .45rem 0 .5rem; align-self: start; }
.fdg-termin__date b { display: block; font-size: 1.7rem; line-height: 1; font-weight: 900; }
.fdg-termin__date span { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase; color: var(--gelb); }
.fdg-termin__body p { font-size: .95rem; color: var(--mute); margin-top: .15rem; }
.fdg .fdg-termin__meta { font-weight: 700; color: var(--t); margin-top: .45rem; }
.fdg .fdg-termin__note { font-style: italic; }
.fdg .fdg-termin__btn { grid-column: 1 / -1; margin-top: .4rem; }

/* Ablauf */
.fdg-steps ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; }
.fdg-steps li { counter-increment: s; position: relative; padding-top: 3.4rem; margin: 0; }
.fdg-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--moos); }
.fdg-steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3.6rem; right: -1.25rem; height: 2px; background: var(--linie); }
.fdg-steps li:last-child::after { display: none; }
.fdg-steps p { margin-top: .35rem; color: var(--mute); }

/* Formular */
.fdg-form-wrap { background: var(--kalk); border-radius: calc(var(--rl) + 6px); padding: clamp(1.25rem, 4vw, 2.75rem); scroll-margin-top: 90px; }
.fdg .fdg-form-head h1, .fdg .fdg-form-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 800; line-height: 1.12; }
.fdg-form-head p { margin-top: .5rem; color: var(--mute); }
.fdg-form { margin-top: 1.25rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--rl); padding: clamp(1.1rem, 3.5vw, 2rem); }
.fdg-field { margin-top: 1.2rem; }
.fdg-form > .fdg-hp + .fdg-field { margin-top: 0; }
.fdg .fdg-label { display: block; font-weight: 800; color: var(--t); margin: 0 0 .4rem; font-size: 1rem; }
.fdg-req, .fdg-opt { font-weight: 600; font-size: .78rem; color: var(--mute); margin-left: .35rem; white-space: nowrap; }
.fdg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin-top: 1.2rem; }
.fdg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fdg-grid > .fdg-field { margin-top: 0; margin-bottom: .6rem; }
.fdg .fdg-form input[type="text"], .fdg .fdg-form input[type="tel"], .fdg .fdg-form input[type="email"], .fdg .fdg-form textarea {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--linie); border-radius: var(--r); box-shadow: none;
}
.fdg .fdg-form textarea { min-height: 96px; resize: vertical; }
.fdg .fdg-form input:focus, .fdg .fdg-form textarea:focus, .fdg select:focus { outline: none; border-color: var(--moos); box-shadow: 0 0 0 3px rgba(99,127,69,.2); }
.fdg [aria-invalid="true"] { border-color: var(--err) !important; }
.fdg-error { color: var(--err); font-weight: 700; font-size: .9rem; margin-top: .35rem !important; }
.fdg-error:empty { display: none; }
.fdg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fdg-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.fdg-choices--tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.fdg-choices--list { flex-direction: column; }
.fdg-art { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.fdg .fdg-choice { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400; }
.fdg .fdg-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fdg-choice > span { display: flex; align-items: center; gap: .5rem; min-height: 46px; height: 100%; padding: .6rem .95rem; border: 1.5px solid var(--linie); border-radius: var(--r); background: #fff; font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--text); transition: background-color .15s, border-color .15s, color .15s; }
.fdg-choice:hover > span { border-color: var(--moos); }
.fdg-choice input:focus-visible + span { outline: 3px solid var(--moos); outline-offset: 2px; }
.fdg-choice input:checked + span { background: var(--t); border-color: var(--t); color: #fff; }
.fdg-choices--tiles .fdg-choice > span { flex-direction: column; justify-content: center; text-align: center; min-height: 104px; }
.fdg-ico { width: 56px; height: 36px; color: var(--moos); }
.fdg-choice input:checked + span .fdg-ico { color: var(--moos-h); }
.fdg-choice--card > span { flex-direction: column; align-items: flex-start; padding: .9rem 1rem; }
.fdg-choice--card small { font-weight: 400; font-size: .88rem; color: var(--mute); }
.fdg-choice--card input:checked + span small { color: rgba(255,255,255,.8); }

.fdg .fdg-check { display: flex; gap: .7rem; align-items: flex-start; margin: 0; cursor: pointer; font-weight: 400; }
.fdg .fdg-check input { width: 22px; height: 22px; flex: none; margin: .1rem 0 0; accent-color: var(--moos); }
.fdg-remind { background: var(--gelb-h); border-radius: var(--r); padding: .9rem 1rem; }

.fdg-submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); flex-wrap: wrap; }
.fdg-submit__price small { display: block; font-size: .85rem; color: var(--mute); }
.fdg-submit__price strong { display: block; font-size: 1.7rem; font-weight: 900; color: var(--t); line-height: 1.1; }
.fdg-submit__price strong span { font-size: .9rem; font-weight: 700; }
.fdg .fdg-submit__btn { min-width: 15rem; min-height: 56px; font-size: 1.05rem; }
.fdg-status { margin-top: .8rem !important; font-weight: 700; }
.fdg-status.is-error { color: var(--err); }
.fdg .fdg-alt { margin-top: 1rem; font-size: .95rem; color: var(--mute); text-align: center; }
.fdg-done { margin-top: 1.25rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--rl); padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; outline: none; }
.fdg-done svg { color: var(--moos); margin: 0 auto; }
.fdg-done h3 { font-size: 1.5rem; margin-top: .6rem; }
.fdg-done p { margin: .6rem auto 0 !important; color: var(--mute); max-width: 36em; }
.fdg-done strong { color: var(--t); font-size: 1.15rem; white-space: nowrap; }
.fdg-done .fdg-btn { margin-top: 1.1rem; }

/* FAQ */
.fdg-faq h2 { margin-bottom: 1rem; }
.fdg-faq details { border-bottom: 1px solid var(--linie); }
.fdg-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 800; font-size: 1.05rem; color: var(--t); }
.fdg-faq summary::-webkit-details-marker { display: none; }
.fdg-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--salbei); display: grid; place-items: center; font-weight: 900; transition: transform .2s; }
.fdg-faq details[open] summary::after { transform: rotate(45deg); }
.fdg-faq details p { padding: 0 2.5rem 1.1rem 0; color: var(--mute); max-width: 46em; }

/* Platzbetreiber */
.fdg-owner { background: var(--salbei); border-radius: calc(var(--rl) + 6px); padding: clamp(1.4rem, 4vw, 2.75rem); }
.fdg-owner__head > p { margin-top: .8rem; color: var(--mute); max-width: 44em; }
.fdg-owner__head > p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.2rem; }
.fdg-owner__contact { color: var(--t); }
.fdg-owner__posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.fdg-poster { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; align-items: center; background: #fff; border-radius: var(--rl); padding: 1.1rem; }
.fdg-poster__img { position: relative; display: grid; place-items: center; aspect-ratio: 210 / 297; background: var(--kalk); border-radius: 4px; transform: rotate(-2deg); box-shadow: 0 10px 22px rgba(20,35,27,.2); text-decoration: none; color: var(--t); font-weight: 900; transition: transform .2s; }
.fdg-poster__img:hover { transform: rotate(0); }
.fdg-poster__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.fdg-poster__img::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--moos); box-shadow: 0 2px 4px rgba(0,0,0,.3); z-index: 1; }
.fdg-poster p { margin-top: .4rem; color: var(--mute); font-size: .95rem; }
.fdg .fdg-poster__dl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .9rem; font-size: .85rem; }
.fdg-poster--empty { border: 2px dashed var(--moos-h); background: rgba(255,255,255,.5); }
.fdg-poster--empty .fdg-poster__img { transform: none; box-shadow: none; border: 2px dashed var(--moos-h); font-size: .8rem; text-align: center; padding: .5rem; }
.fdg-poster--empty .fdg-poster__img::before { display: none; }

.fdg .fdg-legal { margin-top: 2rem; font-size: .8rem; color: var(--mute); max-width: 60em; }

/* Responsive */
@media (max-width: 960px) {
  .fdg-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .fdg-steps li:nth-child(2)::after { display: none; }
  .fdg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .fdg-hero, .fdg-due, .fdg-heft { grid-template-columns: 1fr; }
  .fdg-hero__media { order: -1; justify-self: center; max-width: 360px; }
  .fdg-price { left: 8px; bottom: 50px; }
  .fdg-hero__actions .fdg-btn { flex: 1 1 40%; padding-left: .8rem; padding-right: .8rem; }
  .fdg-hero__actions .fdg-btn--primary { flex-basis: 100%; }
  .fdg-heft__book { margin: 0 .5rem 1rem 0; }
}
@media (max-width: 560px) {
  .fdg-steps ol { grid-template-columns: 1fr; }
  .fdg-steps li { padding: 0 0 0 3.6rem; }
  .fdg-steps li::after { display: none; }
  .fdg-steps li::before { font-size: 2rem; }
  .fdg-choices--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdg-grid, .fdg-grid--3 { grid-template-columns: 1fr; }
  .fdg-submit { flex-direction: column; align-items: stretch; }
  .fdg .fdg-submit__btn { min-width: 0; width: 100%; }
  .fdg-poster { grid-template-columns: 110px 1fr; }
  .fdg-heft__stamp { width: 96px; height: 96px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .fdg *, .fdg *::before, .fdg *::after { animation: none !important; transition: none !important; }
  .fdg-heft__book.will-animate .fdg-tick svg { stroke-dashoffset: 0; }
  .fdg-heft__book.will-animate .fdg-heft__stamp { opacity: 1; transform: rotate(-14deg); }
}
