/* ==========================================================================
   format-X GmbH - oeffentliche Vor-Login-Seiten im Design-System "v2" (public-forms.css)
   Wird NUR von views/layout_top.php eingebunden, und nur im oeffentlichen Zweig ($fxPublic: weder eingebettet noch
   Mitarbeiter-Login) - dort traegt <body> die Klasse fxp-public. Interne (eingeloggte) Seiten sehen diese Datei nie.
   Seiten: login, quote_sign, request, general_request, fotobox_request, kita_request, remote_support_request,
   booking_request, service_request, booking, ticket, device_report, customer_portal, wiki, tools, book, survey,
   unsubscribe, agb, datenschutz, impressum.
   Aufbau wie public/assets/site/shop.css: Tokens (plain :root fuer theme-unabhaengige Werte!), Kopf/Navigation, Hero,
   Fuss (aus site.css uebernommen, gekapselt) - danach eigene Abschnitte fuer Inhaltsspalte, Formularelemente,
   Karten, Tabellen, Meldungen und Rechtstexte. Das alte Inline-CSS der Mitarbeiter-Oberflaeche (layout_top.php) bleibt
   darunter bestehen und wird hier ueber hoehere Selektor-Staerke (body.fxp-public ...) ueberschrieben.
   Rein Darstellung: kein Formular, kein Feldname, keine Aktion wird hier beruehrt.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
/* Selektor-Staerke bewusst (0,2,0) wie die Hell/Dunkel-Bloecke im Inline-CSS von shop_layout_top.php, damit diese Datei
   (steht danach) sie in jedem Fall ueberstimmt. */
:root {
  /* Theme-unabhaengige Tokens: muessen in JEDEM Theme-Zustand gelten (auch data-theme="dark"). */
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-font: var(--font);
  --radius: 18px; --radius-sm: 12px;
  --gutter: 20px; --maxw: 1160px; --header-h: 64px;
}
:root:not([data-theme="dark"]) {
  --ink: #14140F; --paper: #F3F4F0; --signal: #A3CCAB; --deep: #053D38;
  --bg: #F6F7F3; --bg-soft: #ECEEE7; --bg-alt: #ECEEE7; --surface: #FFFFFF; --surface-hover: #F1F3EC;
  --text: #14140F; --muted: #565A4E; --muted-soft: #8A8E80; --border: #D6D9CE;
  --link: #2D6A5E; --accent: #053D38; --focus: #2D6A5E;
  --btn-bg: #053D38; --btn-fg: #F3F4F0;
  --primary: #053D38; --primary-dark: #0a5a52; --primary-soft: rgba(5, 61, 56, .1);
  --header-bg: rgba(246, 247, 243, .86); --topbar-bg: rgba(246, 247, 243, .86);
  --pub-shadow: 0 10px 30px rgba(20, 20, 15, .08);
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-font: var(--font);
  --radius: 18px; --radius-sm: 12px;
  --gutter: 20px; --maxw: 1160px; --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14140F; --bg-soft: #181914; --bg-alt: #181914; --surface: #1C1D18; --surface-hover: #24261F;
    --text: #F3F4F0; --muted: #A7AB9F; --muted-soft: #7C8073; --border: #2C2E26;
    --link: #A3CCAB; --accent: #A3CCAB; --focus: #A3CCAB;
    --btn-bg: #A3CCAB; --btn-fg: #14140F;
    --primary: #34675C; --primary-dark: #2a5249; --primary-soft: rgba(163, 204, 171, .14);
    --header-bg: rgba(20, 20, 15, .86); --topbar-bg: rgba(20, 20, 15, .86);
    --pub-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #14140F; --bg-soft: #181914; --bg-alt: #181914; --surface: #1C1D18; --surface-hover: #24261F;
  --text: #F3F4F0; --muted: #A7AB9F; --muted-soft: #7C8073; --border: #2C2E26;
  --link: #A3CCAB; --accent: #A3CCAB; --focus: #A3CCAB;
  --btn-bg: #A3CCAB; --btn-fg: #14140F;
  --primary: #34675C; --primary-dark: #2a5249; --primary-soft: rgba(163, 204, 171, .14);
  --header-bg: rgba(20, 20, 15, .86); --topbar-bg: rgba(20, 20, 15, .86);
  --pub-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* 2. BASIS ----------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--header-h) + 12px); scroll-behavior: smooth; }
body.fxp-public { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: clip; line-height: 1.55; }
body.fxp-public h1, body.fxp-public h2, body.fxp-public h3 { letter-spacing: -.02em; text-wrap: balance; }
body.fxp-public a { text-underline-offset: .18em; }
body.fxp-public :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
body.fxp-public .skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; }
body.fxp-public .skip-link:focus { top: 12px; }
body.fxp-public .container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
body.fxp-public .icon { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.fxp-public .eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1em; }
body.fxp-public .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* 3. KOPF / NAVIGATION (wie site.css 4a, gekapselt) ------------------------- */
body.fxp-public .site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); }
body.fxp-public .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
body.fxp-public .site-header__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
body.fxp-public .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; margin-right: auto; }
body.fxp-public .brand:hover { color: var(--text); }
body.fxp-public .brand svg.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); }
body.fxp-public .icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
body.fxp-public .icon-btn:hover { background: var(--surface); }
body.fxp-public .site-header .icon-btn .icon { width: 1.4rem; height: 1.4rem; }
body.fxp-public select.lang-switch { width: auto; height: 44px; padding: 0 10px; margin: 0; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 7.5rem; flex-shrink: 0; box-shadow: none; }
body.fxp-public select.lang-switch:hover { background: var(--surface); }
body.fxp-public select.lang-switch option { color: initial; }
body.fxp-public .nav { display: flex; flex-direction: column; gap: 4px; padding: 16px var(--gutter); }
body.fxp-public .nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
body.fxp-public .nav a:hover { background: var(--bg-alt); color: var(--text); }
body.fxp-public .nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
body.fxp-public .nav .btn { margin-top: 8px; background: var(--btn-bg); color: var(--btn-fg); text-align: center; justify-content: center; border-radius: 999px; padding: 12px 22px; }
body.fxp-public .nav .btn:hover { background: var(--btn-bg); color: var(--btn-fg); }
body.fxp-public .nav-toggle { display: none; }
body.fxp-public .nav-backdrop { display: none; }
.js body.fxp-public .nav-toggle { display: inline-grid; }
.js body.fxp-public .nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); padding-top: calc(var(--header-h) + 8px);
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--pub-shadow);
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; touch-action: pan-y; z-index: 60; overflow-y: auto;
}
.js body.fxp-public .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 55; }
.nav-open body.fxp-public .nav { transform: none; visibility: visible; }
.nav-open body.fxp-public .nav-backdrop { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-open body.fxp-public .site-header__inner > :not(.nav) { position: relative; z-index: 70; }
body.fxp-public .nav-more { position: relative; }
body.fxp-public .nav-more > summary { list-style: none; cursor: pointer; font-weight: 600; padding: 12px 14px; border-radius: 10px; color: var(--text); }
body.fxp-public .nav-more > summary::-webkit-details-marker { display: none; }
body.fxp-public .nav-more > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
body.fxp-public .nav-more > summary:hover { background: var(--bg-alt); }
body.fxp-public .nav-more[open] > summary { color: var(--accent); }
body.fxp-public .nav-more__list { display: flex; flex-direction: column; gap: 2px; padding: 0 0 0 10px; }
body.fxp-public .nav-more__list a { padding: 10px 14px; }
@media (min-width: 960px) {
  body.fxp-public .nav-toggle, .js body.fxp-public .nav-toggle { display: none; }
  .js body.fxp-public .nav, body.fxp-public .nav { position: static; flex-direction: row; align-items: center; gap: 2px; width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; transform: none; visibility: visible; overflow: visible; }
  body.fxp-public .nav a { padding: 8px 12px; font-size: .95rem; }
  body.fxp-public .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  body.fxp-public .nav .btn { margin: 0 0 0 8px; padding: 9px 16px; }
  .js body.fxp-public .nav-backdrop { display: none; }
  body.fxp-public .brand { margin-right: 0; }
  body.fxp-public .site-header__inner { justify-content: space-between; }
  body.fxp-public .site-header__inner .nav { margin-left: auto; }
  body.fxp-public .nav-more > summary { padding: 8px 12px; font-size: .95rem; }
  body.fxp-public .nav-more__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--pub-shadow); }
}

/* 4. HERO (kompakt, mit Header-Motiv) -------------------------------------------- */
body.fxp-public .page-hero { position: relative; isolation: isolate; overflow: hidden; background: #14140F; color: #F3F4F0; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4.5vw, 52px); }
body.fxp-public .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,20,15,.82) 0%, rgba(20,20,15,.45) 55%, rgba(20,20,15,.15) 100%); pointer-events: none; }
body.fxp-public .page-hero .eyebrow { color: #A3CCAB; }
body.fxp-public .page-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 .35em; color: #F3F4F0; }
body.fxp-public .page-hero h1 em { font-style: normal; color: #A3CCAB; }
body.fxp-public .page-hero p.lead { font-size: clamp(1.02rem, 2.4vw, 1.25rem); color: #D9DBD2; max-width: 36rem; margin: 0; }
body.fxp-public .page-hero__inner { position: relative; }
body.fxp-public .page-hero--compact { padding-block: clamp(22px, 3.5vw, 36px); }
body.fxp-public .page-hero--compact h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0; }
body.fxp-public .page-hero--compact .eyebrow { margin-bottom: .5em; }

/* 7. FUSS (wie site.css 4n) --------------------------------------------------- */
body.fxp-public .site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: 48px 28px; font-size: .95rem; color: var(--text); }
body.fxp-public .site-footer .muted { color: var(--muted); }
body.fxp-public .footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
body.fxp-public .footer-grid h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
body.fxp-public .footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
body.fxp-public .footer-grid a { color: var(--text); }
body.fxp-public .footer-grid a:hover { color: var(--accent); }
body.fxp-public .footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
body.fxp-public .footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
body.fxp-public .footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text); }
body.fxp-public .footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* Support-Chat-Widget: Inline-Optik bleibt, nur CI-Verlauf in beiden Modi (weisse Schrift darauf) */
body.fxp-public #shopSupportBubble { background: linear-gradient(150deg, #053D38, #34675C) !important; }
body.fxp-public #shopSupportPanel > div:first-child { background: linear-gradient(120deg, #053D38, #34675C) !important; }



/* 5. INHALTSSPALTE -------------------------------------------------------------------------------------------------- */
/* Breite kommt je Seite als --pub-w (views/layout_top.php, abgeleitet aus $publicContentMaxWidth, 560-1040px). */
body.fxp-public main#inhalt { display: block; min-height: 40vh; }
body.fxp-public .pub-content { width: min(var(--pub-w, 760px), 100% - 2 * var(--gutter)); max-width: none; margin: 0 auto; padding: clamp(24px, 4vw, 44px) 0 clamp(44px, 6vw, 84px); flex: none; }
body.fxp-public .pub-content > :first-child { margin-top: 0; }
body.fxp-public .pub-back { color: inherit; text-decoration: none; display: inline-block; min-height: 24px; padding: 4px 0; }
body.fxp-public .pub-back:hover { color: #F3F4F0; text-decoration: underline; }
body.fxp-public .page-hero .eyebrow a { color: #A3CCAB; }
body.fxp-public .pub-staff { margin: 2rem 0 0; text-align: center; font-size: .9rem; }
body.fxp-public .pub-staff a { color: var(--muted); }
body.fxp-public .pub-staff a:hover { color: var(--accent); }

/* 6. TYPOGRAFIE ------------------------------------------------------------------------------------------------------ */
body.fxp-public { font-size: 1.0625rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; }
body.fxp-public button, body.fxp-public input, body.fxp-public select, body.fxp-public textarea { font-family: inherit; }
body.fxp-public .pub-content h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
body.fxp-public .pub-content h2 { font-size: clamp(1.25rem, 2.8vw, 1.6rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .6em; text-wrap: balance; }
body.fxp-public .pub-content h3 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
body.fxp-public .pub-content p { line-height: 1.6; }
body.fxp-public .pub-content a:not(.btn) { color: var(--link); text-underline-offset: .18em; }
body.fxp-public .pub-content a:not(.btn):hover { color: var(--accent); }
body.fxp-public .pub-content .muted, body.fxp-public .pub-content small { color: var(--muted); }
body.fxp-public .pub-content hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
body.fxp-public .pub-content code, body.fxp-public .pub-content pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
body.fxp-public .pub-content code { background: var(--bg-alt); border-radius: 6px; padding: .1em .4em; }
body.fxp-public .pub-content pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; }
body.fxp-public .pub-content details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem 1rem; background: var(--surface); }
body.fxp-public .pub-content details > summary { cursor: pointer; font-weight: 600; }

/* 7. KARTEN ---------------------------------------------------------------------------------------------------------- */
body.fxp-public .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
body.fxp-public .card > h2:first-child, body.fxp-public .card > h3:first-child { margin-top: 0; }
/* Schmale Einzel-Karten (z.B. Portal-Anmeldung mit max-width:420px) mittig in der breiten Spalte */
body.fxp-public .pub-content > .card[style*="max-width"] { margin-inline: auto; }
body.fxp-public .grid2 { gap: 0 1.25rem; }
body.fxp-public .grid3 { gap: 0 1.25rem; }
@media (max-width: 700px) {
  body.fxp-public .grid2, body.fxp-public .grid3 { grid-template-columns: minmax(0, 1fr); }
}

/* 8. FORMULARE ------------------------------------------------------------------------------------------------------- */
body.fxp-public .pub-content label { display: block; margin: 1rem 0 .35rem; font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4; }
body.fxp-public .pub-content label.muted { color: var(--muted); font-weight: 500; }
body.fxp-public .pub-content label:has(> input[type="checkbox"]), body.fxp-public .pub-content label:has(> input[type="radio"]) { display: flex; align-items: flex-start; gap: .6em; font-weight: 500; margin: .7rem 0; }
body.fxp-public .pub-content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.fxp-public .pub-content select, body.fxp-public .pub-content textarea {
  width: 100%; font-size: 1rem; line-height: 1.4; min-height: 46px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background-color: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease; }
body.fxp-public .pub-content textarea { line-height: 1.5; min-height: 110px; resize: vertical; }
body.fxp-public .pub-content input::placeholder, body.fxp-public .pub-content textarea::placeholder { color: var(--muted-soft); opacity: 1; }
body.fxp-public .pub-content input:focus, body.fxp-public .pub-content select:focus, body.fxp-public .pub-content textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--primary-soft); }
body.fxp-public .pub-content input:focus-visible, body.fxp-public .pub-content select:focus-visible, body.fxp-public .pub-content textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; box-shadow: none; }
body.fxp-public .pub-content input:disabled, body.fxp-public .pub-content select:disabled, body.fxp-public .pub-content textarea:disabled { opacity: .6; cursor: not-allowed; background: var(--bg-alt); }
body.fxp-public .pub-content input[type="checkbox"], body.fxp-public .pub-content input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; margin: .2em 0 0; flex: none; accent-color: var(--accent); }
body.fxp-public .pub-content input[type="file"] { width: 100%; font-size: .95rem; padding: 10px; border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-alt); color: var(--text); }
body.fxp-public .pub-content input[type="file"]::file-selector-button { font: inherit; font-weight: 700; font-size: .9rem; margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; }
body.fxp-public .pub-content input[type="range"] { width: 100%; accent-color: var(--accent); }
body.fxp-public .pub-content select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238A8E80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
body.fxp-public .pub-content select[multiple] { padding: 6px; }
/* Natives Datums-Symbol: color-scheme (siehe Tokens) faerbt es im Dunkelmodus bereits hell - die alte invert(1)-Regel des
   Mitarbeiter-CSS wuerde es sonst wieder dunkel (= unsichtbar) machen. */
:root[data-theme="dark"] body.fxp-public input[type="date"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] body.fxp-public input[type="time"]::-webkit-calendar-picker-indicator,
:root[data-theme="dark"] body.fxp-public input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: none; }
body.fxp-public .pub-content form .right, body.fxp-public .pub-content .right { text-align: right; }

/* Eigene Auswahlfelder mit Suche (assets/search-select.js) uebernehmen die Feldoptik */
body.fxp-public .ss-wrap input, body.fxp-public .ss-input { border-radius: 12px; }

/* 8b. Formular-Abschnitte, Pflichtfeld-Stern, Hilfetexte (Feinschliff 09.10.2026; reine Gliederung, keine Feldaenderung) */
body.fxp-public .pub-content fieldset.pub-fieldset { border: 0; padding: 0; margin: 1.75rem 0 0; min-width: 0; }
body.fxp-public .pub-content fieldset.pub-fieldset:first-of-type { margin-top: 1rem; }
body.fxp-public .pub-content fieldset.pub-fieldset > legend { padding: 0 0 .15rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.25; }
body.fxp-public .pub-content .pub-hint { margin: .1rem 0 .5rem; font-size: .9rem; line-height: 1.5; color: var(--muted); }
body.fxp-public .pub-content .pub-reqnote { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); }
body.fxp-public .pub-content .req { color: var(--red-text); font-weight: 700; margin-left: .15em; text-decoration: none; }
body.fxp-public .pub-content .pub-submit { margin-top: 1.5rem; }
body.fxp-public .pub-content .pub-submit .pub-hint { margin-top: .75rem; }

body.fxp-public .pub-content--narrow > .card { max-width: 480px; margin-inline: auto; }

/* 9. BUTTONS --------------------------------------------------------------------------------------------------------- */
body.fxp-public .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; box-shadow: none; cursor: pointer; transition: filter .15s, box-shadow .2s, transform .15s, border-color .2s, background .2s; }
body.fxp-public a.btn, body.fxp-public a.btn:hover { text-decoration: none; }
body.fxp-public .btn:hover { background: var(--btn-bg); color: var(--btn-fg); filter: brightness(1.08); box-shadow: var(--pub-shadow); transform: translateY(-1px); }
body.fxp-public .btn:active { transform: translateY(0); }
body.fxp-public .btn.secondary { background: transparent; color: var(--text); border: 2px solid var(--border); padding: 10px 20px; filter: none; }
body.fxp-public .btn.secondary:hover { background: var(--surface); color: var(--text); border-color: var(--accent); box-shadow: none; transform: none; }
body.fxp-public .btn.danger { background: var(--red); border-color: transparent; color: #fff; }
body.fxp-public .btn.danger:hover { background: var(--red); color: #fff; }
body.fxp-public .btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 999px; }
body.fxp-public .btn.secondary.small, body.fxp-public .btn.small.secondary { padding: 6px 12px; }
body.fxp-public .btn[disabled], body.fxp-public .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
body.fxp-public .pub-content button:not(.btn):not([class*="ss-"]):not([data-passkey]) { font-family: inherit; }

/* 10. TABELLEN ------------------------------------------------------------------------------------------------------- */
body.fxp-public .pub-content table { background: transparent; }
body.fxp-public .pub-content th, body.fxp-public .pub-content td { font-size: .95rem; line-height: 1.5; padding: 12px 14px; border-bottom: 1px solid var(--border); }
body.fxp-public .pub-content th { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: transparent; }
body.fxp-public .pub-content tbody tr:hover td { background: var(--bg-alt); }
body.fxp-public .card table { border-radius: var(--radius-sm); }

/* 11. MELDUNGEN / BADGES --------------------------------------------------------------------------------------------- */
body.fxp-public .flash { padding: 14px 18px; border-radius: 12px; margin: 0 0 20px; font-size: 1rem; font-weight: 500; line-height: 1.5; box-shadow: none; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
body.fxp-public .flash.success { background: var(--green-soft); color: var(--green-text); border-color: color-mix(in srgb, var(--green-text) 30%, transparent); }
body.fxp-public .flash.error { background: var(--red-soft); color: var(--red-text); border-color: color-mix(in srgb, var(--red-text) 30%, transparent); }
body.fxp-public .badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; line-height: 1.4; border-radius: 999px; }

/* 12. RECHTSTEXTE / LESETEXTE (agb, datenschutz, impressum) --------------------------------------------------------- */
body.fxp-public .pub-prose { max-width: 70ch; margin-inline: auto; }
body.fxp-public .pub-prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 2em 0 .5em; padding-top: .2em; }
body.fxp-public .pub-prose h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
body.fxp-public .pub-prose h2:first-child, body.fxp-public .pub-prose h3:first-child { margin-top: 0; }
body.fxp-public .pub-prose p, body.fxp-public .pub-prose li { line-height: 1.7; }
body.fxp-public .pub-prose ul, body.fxp-public .pub-prose ol { padding-left: 1.4em; }
body.fxp-public .pub-prose li { margin: .35em 0; }

/* Inhaltsuebersicht langer Rechtstexte (publicProseHtml() in src/Core/helpers.php) */
body.fxp-public .pub-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.6rem; font-size: .95rem; }
body.fxp-public .pub-toc strong { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
body.fxp-public .pub-toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 2rem; }
body.fxp-public .pub-toc li { margin: .2em 0; break-inside: avoid; }
body.fxp-public .pub-prose h2[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Abschnitte in Formularen: <h3> im Formular wird zur klaren Abschnittsueberschrift (Kontaktdaten, Wunschzeitraum, ...) */
body.fxp-public .pub-content form h3 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--border); }
body.fxp-public .pub-content form h3:first-child, body.fxp-public .pub-content form > :first-child h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* Wiederholt die Karte den Seitentitel (steht bereits gross im Kopfbereich), blendet ein kleines Skript in layout_bottom.php die doppelte Ueberschrift aus */
body.fxp-public .pub-dup-title { display: none; }

/* 13. UNTERSCHRIFT-FELD (quote_sign) --------------------------------------------------------------------------------- */
/* Die Unterschrift wird dunkel auf hellem Grund gezeichnet - Feld bleibt daher in beiden Modi hell. */
body.fxp-public .pub-content canvas { max-width: 100%; border: 1px dashed var(--muted-soft); border-radius: 12px; background: #FFFFFF; touch-action: none; }

/* 14. RESPONSIV / BEWEGUNG ------------------------------------------------------------------------------------------- */
@media (max-width: 560px) {
  body.fxp-public .pub-content .card { padding: 16px; }
  body.fxp-public .btn { width: auto; }
}
body.fxp-public .pub-content img, body.fxp-public .pub-content video, body.fxp-public .pub-content iframe { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.fxp-public .btn:hover { transform: none; }
}
