/* Unterseiten: Kopfband und Inhaltsstil im Rahmen der neuen Startseite */

.page-hero {
  background:
    radial-gradient(1000px 420px at 88% -20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; padding: 84px 0 64px;
}
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }

.page-body {
  padding: 64px 0 88px;
  /* Gleicher Rot-Schimmer wie auf der Startseite (.tint in style.css) */
  background:
    radial-gradient(circle at 92% 0%, rgba(184, 22, 28, 0.13), transparent 58%),
    radial-gradient(circle at 0% 100%, rgba(184, 22, 28, 0.07), transparent 50%),
    #fbf8f7;
}
.prose { max-width: 860px; color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.prose > * + * { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.25; color: var(--ink); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.22rem; font-weight: 700; margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.6em 0 0.4em; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--red); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose address { font-style: normal; }

/* Bilder und Icons */
.prose figure { margin: 0 0 1.4em; }
.prose img { height: auto; max-width: 100%; }
.prose img[src$=".svg"] { width: 64px; height: 64px; margin-bottom: 14px; }
.prose .image_container img:not([src$=".svg"]) { border-radius: 14px; }
.prose .float_above { float: none; }

/* Abschnitte mit Icon-Blöcken (Leistungen) */
.prose .eigenschaften > div > div { margin-bottom: 26px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Mehrere Kacheln nebeneinander: drei pro Reihe, Logo, Überschrift, kurzer Text, „Mehr dazu“ */
.prose .eigenschaften > div:has(> div + div) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin: 0 0 42px; }
.prose .eigenschaften > div:has(> div + div) > div { margin: 0; display: flex; flex-direction: column; background: #fff; }
.prose .eigenschaften > div:has(> div + div) > div > .ce_text { flex: 0 0 auto; }
.prose .eigenschaften > div:has(> div + div) h3 { font-size: 1.08rem; margin: 0.2em 0 0.4em; }
.prose .eigenschaften > div:has(> div + div) p { font-size: 0.92rem; line-height: 1.55; margin: 0 0 0.8em; }
.prose .eigenschaften > div:has(> div + div) p:last-child { margin-bottom: 0; }
.prose .eigenschaften > div:has(> div + div) img[src$=".svg"] { width: 52px; height: 52px; margin-bottom: 10px; }
.prose .eigenschaften > div:has(> div + div) a.more { font-size: 0.9rem; }
/* Einleitung steht im HTML vor den Kacheln */
.prose .einleitung h2 { margin-top: 0; }
.prose .eigenschaften.normal { margin-top: 42px; }
@media (max-width: 1000px) { .prose .eigenschaften > div:has(> div + div) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .prose .eigenschaften > div:has(> div + div) { grid-template-columns: 1fr; gap: 14px; } }

/* Aufklappbare Details (Contao-Overlay) */
.prose details.overlayBox { margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.prose details.overlayBox > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--red); }
.prose details.overlayBox > summary::-webkit-details-marker { display: none; }
.prose details.overlayBox > summary::after { content: " +"; }
.prose details.overlayBox[open] > summary::after { content: " –"; }
.prose details.overlayBox > .summaryDetail { padding: 0 18px 18px; }
.prose details.overlayBox > summary .summaryMore p { margin: 0; }

/* Details als Modal (Beispiel: <details class="overlayBox" data-modal>, Skript assets/js/modal.js) */
.prose details.overlayBox.is-modal { margin: 0.4em 0 0; border: 0; background: none; }
.prose details.overlayBox.is-modal > summary { padding: 0; font-size: 0.9rem; }
.prose details.overlayBox.is-modal > summary .summaryMore { display: inline; }
.prose details.overlayBox.is-modal > summary::after { content: " →"; }
.prose details.overlayBox.is-modal[open] > summary::after { content: " →"; }

dialog.detail-modal {
  width: min(620px, 92vw); max-height: 86vh; padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(30, 31, 34, 0.35);
  overflow: hidden;
}
dialog.detail-modal::backdrop { background: rgba(30, 31, 34, 0.55); }
.detail-modal-body { padding: 34px 36px 32px; max-height: 86vh; overflow-y: auto; font-size: 0.98rem; line-height: 1.65; }
.detail-modal-body h2 { margin: 0 0 0.6em; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; line-height: 1.25; padding-right: 36px; }
.detail-modal-body p { margin: 0 0 1em; }
.detail-modal-body p:last-child { margin-bottom: 0; }
.detail-modal-close {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 1;
}
.detail-modal-close:hover { background: var(--red-tint); color: var(--red); }
body:has(dialog.detail-modal[open]) { overflow: hidden; }
@media (max-width: 700px) { .detail-modal-body { padding: 28px 22px 24px; } }

/* Tabellen */
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--bg-soft); }

/* Kontaktkarten */
.contact-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.contact-card .cc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.contact-card .cc-item h2 { margin: 0 0 8px; font-size: 1rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card .cc-item p, .contact-card .cc-item address { margin: 0; font-size: 1.05rem; }
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; } }

/* Hinweisfeld (statt Formular) */
.notice { background: var(--red-tint); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: 10px; margin: 1.6em 0; }
.notice p { margin: 0; }

/* Kontakt-Banner aus der Startseite im Inhalt */
.prose .kontakt-banner { background: var(--footer-red); color: #fff; padding: 28px; border-radius: var(--radius); margin: 2em 0; }
.prose .kontakt-banner h2 { color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.prose .kontakt-banner a { color: #fff; }

/* Referenzen als Kacheln */
.prose .ref-grid { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prose .ref-grid li { margin: 0; }
.prose .ref-tile a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); font-weight: 400; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.prose .ref-tile a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30, 31, 34, 0.14); border-color: #f0c9ca; text-decoration: none; }
.prose .ref-img { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.prose .ref-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; border-radius: 0; }
.prose .ref-text { display: block; padding: 14px 16px 16px; }
.prose .ref-name { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--ink); }
.prose .ref-place { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
@media (max-width: 1000px) { .prose .ref-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .prose .ref-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

@media (max-width: 760px) {
  .page-hero { padding: 64px 0 48px; }
  .page-body { padding: 44px 0 64px; }
}
