/* Ergänzungen zum Original-Template (template.css bleibt unverändert). */

/* ---------- Schriften: lokal eingebunden (das alte Template nannte sie nur, lud sie aber nicht) ---------- */
@font-face { font-family: 'Droid Serif'; font-style: normal; font-weight: 400; font-display: swap; src: local('Droid Serif'), url('../fonts/droid-serif-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Droid Serif'; font-style: italic; font-weight: 400; font-display: swap; src: local('Droid Serif Italic'), url('../fonts/droid-serif-latin-400italic.woff2') format('woff2'); }
@font-face { font-family: 'Droid Serif'; font-style: normal; font-weight: 700; font-display: swap; src: local('Droid Serif Bold'), url('../fonts/droid-serif-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Droid Serif'; font-style: italic; font-weight: 700; font-display: swap; src: local('Droid Serif Bold Italic'), url('../fonts/droid-serif-latin-700italic.woff2') format('woff2'); }
@font-face { font-family: 'Droid Sans'; font-style: normal; font-weight: 400; font-display: swap; src: local('Droid Sans'), url('../fonts/droid-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Droid Sans'; font-style: normal; font-weight: 700; font-display: swap; src: local('Droid Sans Bold'), url('../fonts/droid-sans-latin-700.woff2') format('woff2'); }

/* ---------- Slider Startseite ---------- */
.psslider { position: relative; margin: 0 10px; aspect-ratio: 1190 / 270; background: #000; overflow: hidden; }
.psslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.psslide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.psslide img, .psslide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.psslider-pag { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 4px 6px; line-height: 0; }
.psslider-pag button { width: 16px; height: 16px; margin: 6px; padding: 0; border: 2px solid #fff; border-radius: 0; background: #b7b7b7; cursor: pointer; }
.psslider-pag button.is-active { background: #d1060c; }
.psslider-pag button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Auf dem Handy ohne Slider */
@media (max-width: 767px) { #slider { display: none; } }

/* ---------- Formulare ---------- */
.psform { margin: 10px 0 20px; }
.psform-row { margin-bottom: 8px; }
.psform-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 480px) { .psform-2 { grid-template-columns: 1fr; gap: 8px; } }
.psform input[type="text"], .psform input[type="email"], .psform input[type="tel"], .psform input[type="date"], .psform textarea {
  display: block; width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 2px; background: #fff; color: #333;
  font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; line-height: 1.4; }
.psform textarea { resize: vertical; }
.psform input:focus, .psform textarea:focus { outline: none; border-color: #cc1719; box-shadow: 0 0 0 2px rgba(204, 23, 25, 0.2); }
.psform ::placeholder { color: #777; opacity: 1; }
.psform .is-invalid { border-color: #cc1719; background: #fff6f6; }
.psform-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.psform-date label { display: block; margin-bottom: 2px; color: #777; }
.psform-check { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.psform-check input { flex: none; width: 16px; height: 16px; margin-top: 4px; }
.psform-check label { flex: 1; min-width: 0; }
.psform-check .psform-error { flex-basis: 100%; }
.psform-req { color: #cc1719; }
.psform-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.psform-error { margin-top: 3px; color: #cc1719; font-size: 1.2rem; }
.psform-msg, .psform-done { margin: 12px 0; padding: 10px 14px; border-radius: 2px; }
.psform-msg-error { border: 1px solid #cc1719; background: #fff6f6; color: #a01113; }
.psform-done { border: 1px solid #5a9a3c; background: #f3faef; color: #2f5d1c; }
.psform input[type="submit"] { font-size: 1.6rem; padding: 0.6em 1.4em; }
.psform input[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.psform-noscript { color: #a01113; }

/* ---------- Kleinigkeiten ---------- */
#content img { max-width: 100%; height: auto; }
.blog [class^="leading-"] { clear: both; }
.mean-container a.meanmenu-reveal.meanclose { text-align: right; }
@media (prefers-reduced-motion: reduce) { .psslide, .psslide.is-active { transition: none; } }

/* ---------- Feinschliff Inhalte ---------- */
#content h3 { color: #d10a11; }
#content .moduletable > h3 { color: inherit; }
#content h3 .fa { width: 1.2em; color: #d10a11; }
#content h1 + h2 { margin-top: -4px; }
#content p, #content li { line-height: 1.6; }
#content ul { margin: 0 0 12px 1.4em; }

/* Artikel: Bild links, Text daneben, sauber abgeschlossen */
#content .blog [class^="leading-"], #content .item-page > div { display: flow-root; }
#content .blog [class^="leading-"] + [class^="leading-"] { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3e3e3; }
#content img.ps-float { float: left; height: auto; margin: 4px 22px 12px 0; }
#content p:has(> img.ps-float:only-child) { margin: 0; }
@media (max-width: 600px) {
  #content img.ps-float { float: none; display: block; width: auto !important; max-width: 70%; margin: 4px 0 14px; }
}

/* Startseite: Ansprechpartner */
.ps-person { width: 330px; max-width: 100%; margin: 18px 0 10px; }
.ps-person img { display: block; width: 100%; height: auto; }
.ps-person figcaption { background: #cc1719; color: #fff; font-weight: bold; text-align: center; padding: 5px 8px; }

/* Kontakt: Adressblock */
.ps-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 16px 0 8px; padding: 16px 20px; background: #f6f6f6; border-left: 3px solid #cc1719; }
.ps-contact p { margin: 0 0 10px; }
@media (max-width: 600px) { .ps-contact { grid-template-columns: 1fr; } }

/* Stellenangebote */
.ps-center { text-align: center; }
.ps-job { display: flex; gap: 24px; align-items: center; justify-content: center; margin: 16px 0 24px; }
.ps-job-img img { display: block; width: 200px; max-width: 100%; height: auto; }
.ps-job-text h3 { margin: 10px 0 4px; }
@media (max-width: 600px) { .ps-job { flex-direction: column; align-items: flex-start; } .ps-job-img { align-self: center; } }

/* Häufige Fragen */
.ps-center-img-wrap { margin: 6px 0 18px; }
.ps-center-img-wrap img { width: 40%; max-width: 300px; height: auto; }
.ps-red { color: #d10a11; }
/* Datumsfelder: auf iOS sonst ohne Höhe, solange leer */
.psform input[type="date"] { min-height: 2.9em; -webkit-appearance: none; appearance: none; }

/* ---------- Walzenauswahl Datum (Touchgeräte) ---------- */
.psform input.pswheel-input { cursor: pointer; background: #fff; caret-color: transparent; }
.pswheel-sheet { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.pswheel-sheet.is-open { visibility: visible; }
.pswheel-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.2s; }
.pswheel-sheet.is-open .pswheel-backdrop { opacity: 1; }
.pswheel-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 12px 12px 0 0; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.25s ease; font-family: Arial, Helvetica, sans-serif; }
.pswheel-sheet.is-open .pswheel-panel { transform: none; }
.pswheel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 1.6rem; color: #333; }
.pswheel-head button { border: 0; background: none; padding: 8px 4px; font-size: 1.6rem; color: #666; cursor: pointer; }
.pswheel-head .pswheel-ok { padding: 9px 18px; border-radius: 6px; background: #cc1719; color: #fff; font-weight: bold; box-shadow: 0 2px 6px rgba(204, 23, 25, 0.35); }
.pswheel-head .pswheel-ok:active { background: #a50f12; }
.pswheel-cols { position: relative; display: grid; grid-template-columns: 1fr 1.7fr 1.2fr; gap: 4px; height: 200px; margin-top: 10px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.pswheel-band { position: absolute; left: 0; right: 0; top: 80px; height: 40px; border-radius: 8px; background: #f3f3f3; pointer-events: none; }
.pswheel { position: relative; height: 200px; }
.pswheel-list { position: relative; height: 200px; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; padding: 80px 0; box-sizing: border-box; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.pswheel-list::-webkit-scrollbar { display: none; }
.pswheel-item { height: 40px; line-height: 40px; text-align: center; scroll-snap-align: center; font-size: 1.9rem; color: #888; user-select: none; cursor: pointer; }
.pswheel-item.is-sel { color: #222; font-weight: bold; }
html.pswheel-lock, html.pswheel-lock body { overflow: hidden; }
