/* Landingpage Potentialanalyse (/pa/). Baut auf style.css auf und nutzt nur deren :root-Variablen (BLE-Styleguide).
   Schriften: Überschriften Montserrat, Text Arial. Größen bewusst wenige: h1, h2, h3, Lead, Text, Klein. */
[hidden] { display: none !important; }
.lp { font-size: 17px; }
.lp p { margin: 0 0 .8em; }
.lp h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); font-weight: 700; margin-bottom: .3em; }
.lp h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; }
.lp h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .35em; }
.lp-lead { font-size: 1.125rem; }
.lp-klein { font-size: .875rem; }
.lp-mitte { text-align: center; }

/* Kopfzeile */
.lp-head { background: #fff; border-bottom: 1px solid var(--border); }
.lp-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.lp-head img { height: 40px; width: auto; }
.lp-head__tel { font-weight: 700; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.lp-head__tel span { font-weight: 400; color: var(--text); }
@media (max-width: 420px) { .lp-head__tel span { display: none; } }

/* Hero */
.lp-hero { position: relative; background: linear-gradient(180deg, var(--green-10) 0%, var(--blue-10) 100%); padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 64px); }
.lp-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "kopf box" "liste box"; grid-template-rows: auto 1fr; gap: 0 48px; align-items: start; }
.lp-hero__kopf { grid-area: kopf; }
.lp-hero__liste { grid-area: liste; }
.lp-box { grid-area: box; }
.lp-hero .lp-lead { max-width: 32em; margin-bottom: 0; }
.lp-empfehlung { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: .875rem; font-weight: 700; color: var(--heading); margin: 0 0 14px !important; }

/* Haken-Listen */
.lp-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; }
.lp-checks svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--accent); color: #fff; }

/* Formularbox */
.lp-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; scroll-margin-top: 16px; }
.lp-preis { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.lp-preis p { margin: 0; }
.lp-preis__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.lp-marke { background: var(--accent); color: #000; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.lp-preis__zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lp-preis__wert { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; line-height: 1.15; color: var(--heading); }
.lp-preis__alt { font-size: 1.125rem; }
.lp-laedt .lp-preis { visibility: hidden; }
/* Gutscheincode: zurückhaltend unter dem Preis, das Feld öffnet sich erst auf Klick */
.lp-gutschein { margin-top: 8px; }
.lp-gutschein__auf { font-size: .875rem; }
.lp-gutschein__feld { margin: 4px 0 0; }
.lp-gutschein__feld input { text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; }
.lp-gutschein__feld.ist-ok input { padding-right: 42px; }
.lp-preis__wert.ist-neu { animation: preis-neu .45s ease-out; }
@keyframes preis-neu { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.lp-preis__wert { display: inline-block; transform-origin: left center; }

.feld { display: grid; gap: 4px; margin-bottom: 12px; }
.feld label { font-weight: 700; font-size: .95rem; }
.feld input, .feld textarea { font: inherit; padding: 12px; border: 1px solid #9D9D9C; border-radius: 8px; width: 100%; background: #fff; color: var(--text); }
.feld textarea { padding: 10px 12px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.feld small { font-size: .875rem; font-weight: 400; }
.haken { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; font-size: .875rem; line-height: 1.45; margin: 4px 0 16px; align-items: start; cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
/* Beauftragung: Auftragssatz, Sonderpreis-Hinweis, Pflicht-Haken AGB/Datenschutz/Widerruf */
.lp-auftrag { background: var(--blue-10); border-radius: 8px; padding: 12px 14px; margin: 6px 0 14px; }
.lp-auftrag p { margin: 0; }
.lp-auftrag__satz { font-weight: 700; }
.lp-auftrag__preis { font-size: .9rem; margin-top: 4px !important; }
.haken__titel { font-weight: 700; font-size: .95rem; margin: 0 0 6px !important; }
.versteckt { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.lp .btn { font-weight: 700; }
.lp .btn--voll { width: 100%; font-size: 1.1rem; padding: 15px 20px; }
.lp .btn--lg { font-size: 1.1rem; padding: 15px 32px; }
.btn[disabled] { opacity: .65; cursor: wait; }
.fehler { color: var(--signal-red); font-size: .95rem; font-weight: 700; margin: 0 0 12px !important; }

.lp-sicher { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: .875rem; }
.lp-sicher li { display: flex; align-items: center; gap: 8px; }
.lp-sicher svg { flex: none; width: 18px; height: 18px; color: var(--accent); }

/* Schritte nach der Anmeldung */
.schritt h2 { font-size: 1.375rem; margin-bottom: .4em; }
.schritt h2:focus { outline: none; }
.btn-klein { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.wege { display: grid; gap: 8px; margin: 0 0 12px; border: 0; padding: 0; }
.wege legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.weg { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid #9D9D9C; border-radius: 8px; padding: 11px 12px; cursor: pointer; }
.weg input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.weg:has(input:checked) { border-color: var(--primary); background: var(--blue-10); font-weight: 700; }
.upload { display: block; border: 2px dashed var(--primary); border-radius: 8px; padding: 14px; text-align: center; font-weight: 700; color: var(--primary); cursor: pointer; position: relative; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.dateiname { font-size: .875rem; overflow-wrap: anywhere; }


/* Abschnitte */
.lp-sec { padding: clamp(44px, 7vw, 72px) 0; }
.lp-sec--hell { background: var(--bg-soft); }
.lp-eng { max-width: 860px; margin: 0 auto; }

.lp-schritte { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-schritte li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.lp-schritte p { margin: 0; }
.lp-nr { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; margin-bottom: 14px; }

/* Enthaltene Bausteine */
.lp #inhalt .lp-lead { margin-bottom: 20px; }
.inhalt { border-top: 1px solid var(--border); }
.inhalt details { border-bottom: 1px solid var(--border); }
.inhalt summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 30px; position: relative; font-weight: 700; font-size: 1.05rem; }
.inhalt summary::-webkit-details-marker { display: none; }
.inhalt summary::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.inhalt summary::after { content: ""; position: absolute; right: 8px; top: 21px; width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .15s; }
.inhalt details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.inhalt summary:hover { color: var(--primary); }
.inhalt__body { padding: 0 0 22px 30px; display: grid; gap: 12px; }
.inhalt__body > * { min-width: 0; }
.inhalt__body p { margin: 0; }
.inhalt__body ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.inhalt__unter { margin: 10px 0 0; }
.beispiel-titel { font-size: .875rem; font-weight: 700; color: var(--heading); margin: 4px 0 -6px !important; }
.tab-wrap { overflow-x: auto; }
.lp table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.lp th, .lp td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--border); }
.lp th { font-weight: 700; font-size: .875rem; }
.lp td:nth-child(2) { font-variant-numeric: tabular-nums; }
.lp-note { margin-top: 16px; }

/* Abschluss */
.lp-schluss { background: linear-gradient(160deg, var(--green-15) 0%, var(--blue-10) 100%); }
.lp-schluss .btn { margin: 8px 0 18px; }
.lp-schluss .lp-klein { margin: 0; }

.lp-foot { border-top: 1px solid var(--border); padding: 24px 0; font-size: .875rem; }
.lp-foot a { color: var(--text); }
.lp-foot nav a { color: var(--primary); margin-right: 16px; }

@media (max-width: 860px) {
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "box" "liste"; grid-template-rows: auto; }
  .lp-box { margin-top: 22px; padding: 20px; }
  .lp-hero__liste { margin-top: 28px; }
  .lp-schritte { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lp-schritte li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 18px; box-shadow: none; }
  .lp-nr { grid-row: span 2; margin: 0; }
  .lp-schritte h3 { margin: 6px 0 2px; }
  .inhalt__body { padding-left: 0; }
}
@media (max-width: 380px) {
  .lp h1 { font-size: 1.95rem; }
}

/* Rückmeldung direkt am Feld */
.feld input { transition: border-color .2s ease, background-color .2s ease; }
.feld.ist-ok input {
  border-color: var(--accent); padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363B32E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
}
.feld input[aria-invalid="true"] { border-color: var(--signal-red); }

/* Kurzer Satz unter dem Feld: grüner Haken (Grün nur als Akzent, Text schwarz) bzw. Hinweis in Rot */
.feld__info { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; line-height: 1.4; margin: 4px 0 0 !important; color: var(--text); }
.feld__info::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.feld__info--fehler { color: var(--signal-red); font-weight: 700; }
.feld__info--fehler::before { background: var(--signal-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 17.5v.5'/%3E%3C/svg%3E") no-repeat center / 14px; }
.feld__info.ist-neu { animation: info-rein .3s ease-out; }
@keyframes info-rein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Nach der Anmeldung: freiwillige Optionen, bewusst zurückhaltend */
.lp-optional { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.lp-optional__titel { font-size: .9rem; font-weight: 700; margin: 0 0 2px !important; }
.lp-option {
  display: grid; gap: 1px; width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--primary); text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 11px 40px 11px 14px; cursor: pointer; position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.lp-option span { font-weight: 400; font-size: .85rem; color: var(--text); }
.lp-option::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -5px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); transition: transform .2s ease;
}
.lp-option:hover { border-color: var(--primary); background: var(--blue-10); color: var(--primary); }
.lp-option[aria-expanded="true"] { border-color: var(--primary); background: var(--blue-10); }
.lp-option[aria-expanded="true"]::after { transform: rotate(45deg); }
#angemeldet + #flaechen:not([hidden]) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Haken zeichnet sich (Danke-Popup und Abschluss) */
.lp-fertig__haken svg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: haken-zeichnen .5s .15s ease-out forwards; }
.lp-fertig__haken { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; padding: 11px; margin: 0 0 14px; animation: haken-auf .35s ease-out; }
.lp-fertig__haken svg { width: 30px; height: 30px; }
@keyframes haken-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes haken-auf { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Abschluss: Zeitleiste „So geht es weiter" */
.lp-zeitleiste { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: zl; }
.lp-zeitleiste li { counter-increment: zl; position: relative; padding: 0 0 14px 40px; }
.lp-zeitleiste li::before { content: counter(zl); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.lp-zeitleiste li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--border); }

/* Bausteine öffnen sich weich (wo der Browser es kann) */
@supports (interpolate-size: allow-keywords) {
  .inhalt { interpolate-size: allow-keywords; }
  .inhalt details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .inhalt details[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-fertig__haken, .feld__info.ist-neu, .lp-preis__wert.ist-neu { animation: none; }
  .lp-fertig__haken svg path { animation: none; stroke-dashoffset: 0; }
  .feld input, .lp-option, .lp-option::after { transition: none; }
  .inhalt details::details-content { transition: none; }
}

/* Seite /widerruf (Widerrufsfunktion): schmale Formularbox im Layout der Rechtsseiten */
.widerruf .box { max-width: 560px; }
.widerruf .box h2 { margin-top: 0; }
