/* Website von MES.Plot im Layout der MES-Produktseiten (Richtlinie Produktwebsites): Basis-Layout Klar, Kunden-Layout wie
   MES.Keep und MES.News – Einstieg mit Farbverlauf in den Farben des Logos, links Überschrift, Text und Buttons, rechts
   das Karussell; darunter helle Karten mit Bild, Titel und Kurzzeile. Nur für die Seiten außerhalb der App
   (Views/Shared/_Website.cshtml); App, Anmeldung, Hilfe und Verwaltung behalten css/site.css.
   Farben: Corporate Design (MES Blau, Akzent, Signal) und Logo (#033bd9 → #0c74d6 → #04996f, Türkis #12d8c4). */
:root {
    --akzent: #0c74d6;
    --karte-radius: 1rem;
    --karte-grund: #f1f5fb;
    --karte-linie: #dbe4f1;
    --mes-dunkel: #0d1b4c;
}

/* ---------- Kopf: Logo, Sprachen, „App öffnen“ als Knopf rechts im Menü ---------- */
.marke-logo img { height: 44px; width: auto; }
.hauptmenue .menue-anmelden { border: 2px solid var(--akzent); border-radius: 999px; padding: 4px 16px; color: var(--akzent); font-weight: 600; }
.hauptmenue .menue-anmelden:hover { background: var(--akzent); color: var(--akzent-text); border-bottom-color: var(--akzent); }
.hauptmenue .sprachen a { border-bottom: 1px solid var(--linie); padding: 2px 8px; }

/* ---------- Einstieg der Startseite ---------- */
.vorlage-startseite .held { background: linear-gradient(135deg, #033bd9, #0c74d6 55%, #04996f); border-bottom: 0; color: #ffffff; }
.vorlage-startseite .held h1 { color: #ffffff; }
.vorlage-startseite .held-text { color: rgba(255, 255, 255, 0.94); font-size: 1.1em; }
.vorlage-startseite .held-geteilt { padding: 56px 0 64px; }
.vorlage-startseite .held-geteilt .held-inhalt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.vorlage-startseite .held-geteilt h1 { font-size: 2.5em; line-height: 1.12; margin: 0 0 18px; }
.vorlage-startseite .held-geteilt h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; background: #12d8c4; border-radius: 2px; }
.vorlage-startseite .held-vorspann { margin: 0 0 10px; font-weight: 600; letter-spacing: 0.02em; color: #bff4ec; }
.vorlage-startseite .held .bloecke { gap: 12px; align-items: center; }
.vorlage-startseite .held-links .block { flex: 0 0 auto; margin: 0; }
.vorlage-startseite .held-links .block-text { flex-basis: 100%; color: rgba(255, 255, 255, 0.94); }
.vorlage-startseite .held-links .block-text ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; padding: 0; font-size: 0.9em; }
.vorlage-startseite .held-links .block-text li { border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 2px 12px; }
.vorlage-startseite .held-links .knopf { background: #ffffff; color: #033bd9; border: 2px solid #ffffff; border-radius: 999px; padding: 10px 24px; }
.vorlage-startseite .held-links .block-button ~ .block-button .knopf { background: transparent; color: #ffffff; }
.vorlage-startseite .held-links .knopf:focus-visible { outline: 3px solid #12d8c4; outline-offset: 3px; }
.vorlage-startseite .held-rechts .block { flex-basis: 100%; margin: 0; }
.vorlage-startseite .held-rechts .karussell { box-shadow: 0 18px 48px rgba(0, 20, 60, 0.35); }
/* Grafiken nicht beschneiden: ganzes Bild auf Weiß */
.karussell-bild img { object-fit: contain; background: #ffffff; }

/* ---------- Karten: Bild mit Text in ⅓-Breite, die ganze Karte führt zur Auswertung ---------- */
.block-bildmittext.breite-drittel {
    --farbe: var(--akzent);
    position: relative; flex-grow: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px;
    margin-bottom: 20px; border-radius: var(--karte-radius); background: var(--karte-grund); border: 1px solid var(--karte-linie);
    color: #1f2937; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.block-bildmittext.breite-drittel:hover { border-color: var(--farbe); box-shadow: 0 8px 24px rgba(0, 20, 60, 0.10); }
.block-bildmittext.breite-drittel > figure { flex: none; margin: 0; }
.block-bildmittext.breite-drittel img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 8px; border-radius: 10px; background: #ffffff; }
.block-bildmittext.breite-drittel .text { min-width: 0; margin: 0; line-height: 1.45; }
.block-bildmittext.breite-drittel p { margin: 0; }
.breite-drittel strong { display: block; margin-bottom: 4px; font-size: 1.1em; color: var(--farbe); }
.hinweis-demo { color: var(--gedimmt); font-size: 0.88em; }

/* ---------- Fläche mit zwei Spalten ---------- */
.flaeche { background: var(--flaeche); border-top: 1px solid var(--linie); padding: var(--abstand) 0 calc(var(--abstand) - 24px); margin-top: 16px; }
.block-text ul.merkmale { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.block-text ul.merkmale li { background: #ffffff; border: 1px solid var(--linie); border-radius: 999px; padding: 4px 14px; font-size: 0.92em; }

/* Schritte als nummerierte Leiter (wie die Prüfstufen bei MES.Keep) */
.stufen { list-style: none; counter-reset: stufe; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.stufen li { counter-increment: stufe; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 14px; border-radius: 10px; background: #ffffff; border: 1px solid var(--karte-linie); }
.stufen li::before { content: counter(stufe); grid-row: span 2; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #0c74d6; color: #ffffff; font-weight: 700; }
.stufen strong { display: block; }
.stufen span { color: #4b5563; font-size: 0.95em; }

/* Häkchenliste */
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
    background: #04996f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Häufige Fragen */
.faq details { background: #ffffff; border: 1px solid var(--karte-linie); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4em; color: var(--akzent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #4b5563; }

/* Anfrage: Karte mit Akzent in MES Signal */
.anfrage { padding: 20px 22px; border-radius: var(--karte-radius); background: #ffffff; border: 1px solid var(--karte-linie); border-top: 4px solid #ff8a3d; }
.anfrage h2 { margin-top: 0; }
.knopf { border-radius: 999px; margin: 4px 8px 4px 0; }
.knopf-zweit { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); padding: 8px 20px; }

/* ---------- Unterseiten (Auswertungen, Datenprüfung, Zitieren, Datenschutz, Impressum) ----------
   Gleiche Bausteine wie bisher, im Aussehen der MES-Seiten. */
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.muted, .note { color: var(--gedimmt); }
.note { font-size: 0.85em; margin-top: 14px; }
.section { padding: var(--abstand) 0; }
.section.soft { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.section-lead, .lead { color: var(--gedimmt); max-width: 46em; }
.lead { font-size: 1.12em; }
.card { background: #ffffff; border: 1px solid var(--karte-linie); border-radius: var(--karte-radius); }
.page-head { background: linear-gradient(180deg, var(--flaeche), var(--grund)); border-bottom: 1px solid var(--linie); padding: var(--abstand) 0 32px; }
.page-head h1 { margin-top: 0; }
.page-head h1::after, .section h2::after, .prose h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; background: var(--akzent); border-radius: 2px; }
.cta-band h2::after, .plot-row h2::after, .anfrage h2::after { content: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { padding: 4px 14px; border-radius: 999px; background: #ffffff; border: 1px solid var(--karte-linie); text-decoration: none; color: #1f2937; font-size: 0.9em; }
.chips a:hover { border-color: var(--akzent); color: var(--akzent); }

.btn { display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--akzent); background: var(--akzent); color: #ffffff; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost, .btn-small { background: transparent; color: var(--akzent); }
.btn-small { padding: 4px 14px; font-size: 0.85em; }
.btn-light { background: #ffffff; border-color: #ffffff; color: #033bd9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: " →"; }

.plot-detail { padding: 48px 0; border-bottom: 1px solid var(--linie); scroll-margin-top: 80px; }
.plot-detail:nth-of-type(even) { background: var(--flaeche); }
.plot-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.plot-row figure { margin: 0; padding: 16px; }
.plot-row figure img { display: block; }
.plot-row h2 { margin-top: 0; color: var(--mes-dunkel); }
.plot-row .tagline { font-size: 1.08em; color: var(--gedimmt); }
.plot-row h3 { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.07em; color: #0055aa; margin: 1.4em 0 0.3em; }
.plot-row p { margin-bottom: 0.6em; }
figcaption { font-size: 0.8em; color: var(--gedimmt); margin-top: 8px; text-align: center; }
.encoding { padding-left: 1.2em; margin: 0; }
.ref { font-size: 0.9em; color: var(--gedimmt); margin-top: 1.4em; }
.ref span { font-weight: 600; }
.help-link a { font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.table-wrap { overflow-x: auto; }
table.checks { width: 100%; border-collapse: collapse; }
.checks th, .checks td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.checks thead th { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gedimmt); background: var(--flaeche); }
.checks tbody th { width: 30%; font-weight: 600; }
.limits { padding-left: 1.2em; }
.limits li { margin-bottom: 10px; }
.copy-box { padding: 18px 20px; margin: 14px 0 32px; display: flex; gap: 18px; align-items: flex-start; }
.copy-box p { margin: 0; flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 0.88em; line-height: 1.65; }
.refs { padding-left: 1.4em; }
.refs li { margin-bottom: 14px; font-size: 0.95em; }
.refs .for { display: block; font-size: 0.78em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #0055aa; }
.notice { display: inline-block; background: #fff4ec; border: 1px solid #ffc9a3; padding: 8px 14px; border-radius: 9px; font-size: 0.9em; }
.imprint dt { font-weight: 600; margin-top: 18px; }
.imprint dd { margin: 4px 0 0; color: var(--gedimmt); }

/* Band am Ende einer Unterseite: Verlauf wie im Einstieg */
.cta-band { background: linear-gradient(135deg, #033bd9, #0c74d6 55%, #04996f); color: #ffffff; padding: 40px 0; }
.cta-band h2 { margin: 0; color: #ffffff; font-size: 1.4em; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band .btn { background: #ffffff; border-color: #ffffff; color: #033bd9; }

/* Fuß: Hinweis zu Enrichr und Version */
.fuss-hinweis { flex-basis: 100%; margin: 0; font-size: 0.85em; }

@media (max-width: 960px) {
    .vorlage-startseite .held-geteilt .held-inhalt { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .vorlage-startseite .held-geteilt h1 { font-size: 2.1em; }
    .plot-row, .two-col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 800px) {
    .marke-logo img { height: 36px; }
    .copy-box { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .block-bildmittext.breite-drittel { transition: none; }
}
