/* ==========================================================
   Mietpark — eigene Seiten je Geraet (ab 20.08.2026)
   ----------------------------------------------------------
   Ergaenzt style.css, ersetzt es nicht. Die Detailansicht selbst
   (.detail-grid, .spec-table, .price-card, .inquire-btn) nutzt
   bewusst dieselben Klassen wie das Katalog-Fenster auf der
   Startseite — dadurch sehen die neuen Seiten aus wie der Rest
   der Seite, ohne dass die Gestaltung doppelt gepflegt werden muss.
   ========================================================== */

/* Die Startseite rastet beim Scrollen von Abschnitt zu Abschnitt
   (scroll-snap-type: y mandatory). Auf einer normalen Textseite
   fuehrt das dazu, dass man an der Geraetetabelle vorbeispringt. */
html:has(body.mp-seite),
body.mp-seite {
    scroll-snap-type: none !important;
    height: auto;
    min-height: 100vh;
}
body.mp-seite footer { scroll-snap-align: none; padding-bottom: 60px; }

/* ── Kopfleiste mit Brotkrumen ───────────────────────────── */
.mp-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 24px;
    border-bottom: 1px solid var(--glass-border);
}
.mp-logo img { height: 34px; width: auto; display: block; }

.mp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    color: var(--text-secondary, #93a1b5);
}
.mp-crumbs li + li::before { content: "›"; margin-right: 8px; opacity: 0.5; }
.mp-crumbs a { color: var(--accent); text-decoration: none; }
.mp-crumbs a:hover { text-decoration: underline; }
.mp-crumbs [aria-current="page"] { opacity: 0.75; }

/* ── Uebersichtsseite ────────────────────────────────────── */
.mp-h1 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.12;
    margin: 46px 24px 16px;
    letter-spacing: -0.02em;
}
.mp-intro {
    max-width: 62ch;
    margin: 0 24px 46px;
    color: var(--text-secondary, #93a1b5);
}
.mp-cat { margin: 0 24px 52px; }
.mp-cat h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.mp-cat-desc { color: var(--text-secondary, #93a1b5); margin-bottom: 20px; }

.mp-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.mp-card a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--accent-glow-soft, rgba(255,255,255,0.03));
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.mp-card a:hover {
    border-color: var(--accent, #4db8ff);
    transform: translateY(-2px);
}
.mp-card-name  { font-weight: 600; letter-spacing: -0.01em; }
.mp-card-desc  { font-size: 0.88rem; color: var(--text-secondary, #93a1b5); flex: 1; }
.mp-card-price { font-size: 0.88rem; color: var(--accent, #4db8ff); font-weight: 600; }

/* ── Geraeteseite ────────────────────────────────────────── */
.mp-detail { margin: 46px 24px; }
.mp-detail .detail-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

.mp-related {
    margin: 0 24px 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}
.mp-related h2 { font-size: 1.1rem; margin-bottom: 14px; }
.mp-related ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.mp-related a {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--accent, #4db8ff);
    text-decoration: none;
    font-size: 0.88rem;
}
.mp-related a:hover { border-color: var(--accent, #4db8ff); }

body.mp-seite footer .footer-bottom a { color: var(--accent, #4db8ff); text-decoration: none; }
body.mp-seite footer .footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .mp-bar { gap: 14px; padding: 16px; }
    .mp-h1, .mp-intro, .mp-cat, .mp-detail, .mp-related { margin-left: 16px; margin-right: 16px; }
}

/* "Abbildung ähnlich" unter dem Produktfoto. Die Katalogeinträge sind
   Gerätetypen, keine festen Modelle — ohne diesen Hinweis wäre das Foto
   eine Zusage auf genau dieses Gerät. */
.mp-bildhinweis {
    margin: 10px 2px 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary, #93a1b5);
}
/* Freisteller nicht beschneiden: object-fit:cover würde bei einem hohen
   Stativ oder einer breiten Traverse das Gerät anschneiden. */
.mp-detail .detail-image { background: #fff; border-radius: 16px; }

/* WICHTIG: style.css gibt allen <section>-Elementen der Startseite
   display:flex (für das seitenweise Scrollen). Die geerbte Regel stellte
   Überschrift und Geräteliste NEBENEINANDER statt untereinander.
   Deshalb hier ausdrücklich zurücksetzen. */
body.mp-seite section,
.mp-related,
.mp-cat {
    display: block;
    min-height: 0;
    height: auto;

    /* width:100% PLUS seitlicher Rand ergibt zusammen mehr als der Platz
       hergibt — die Kachelspalte rechts lief 24px aus dem Bild.
       "auto" laesst den Rand vom Platz abgehen, statt ihn draufzurechnen. */
    width: auto;

    /* Die Startseite braucht 160/190px Innenabstand fuer ihr seitenweises
       Scrollen. Auf einer Textseite reisst das Loecher zwischen die
       Abschnitte. Komplett zuruecksetzen; die Abstaende kommen aus den
       margin-Angaben der einzelnen Regeln. */
    padding: 0;
    justify-content: normal;
    align-items: normal;
}
