/* Übersicht "Meine Motorräder" (seiten/meine-motorraeder.php) */

.mm-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.mm-kopf h1 { margin: 0 0 6px; }
.mm-kopf p { margin: 0; max-width: 560px; color: var(--text-muted); font-size: 14px; }
.mm-kopf__aktionen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.mm-karte {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; padding: 16px;
    border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
}
@media (min-width: 720px) {
    .mm-karte { grid-template-columns: auto 260px minmax(0, 1fr); align-items: stretch; padding-left: 12px; }
}
.mm-sort { align-self: center; flex-direction: column; }

.mm-bild { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bg-input); aspect-ratio: 4 / 3; }
.mm-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-bild__platz { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: 44px; opacity: .5; }
.mm-bild__badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 8px;
    background: rgba(13, 15, 18, .72); border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px);
}

.mm-inhalt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mm-inhalt h2 { margin: 0; font-size: 20px; }
.mm-inhalt h2 a { color: inherit; text-decoration: none; }
.mm-inhalt h2 a:hover { color: var(--accent); }
.mm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-pills span { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 12px; }
.mm-beschreibung { margin: 0; color: var(--text-muted); font-size: 14px; }

.mm-schnell { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mm-schnell a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; text-decoration: none; }
.mm-schnell a i { color: var(--accent); }
.mm-schnell a:hover { color: var(--text); }

/* Diskrete Aktionen: Umriss statt Vollfläche */
.mm-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mm-aktionen form { margin: 0; }
.mm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px;
    border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text-muted);
    font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mm-btn:hover { border-color: var(--text-muted); color: var(--text); background: rgba(255, 255, 255, .04); }
.mm-btn--haupt { border-color: rgba(57, 189, 0, .45); color: var(--accent); }
.mm-btn--haupt:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.mm-btn--gefahr:hover { border-color: var(--danger); color: var(--danger); background: rgba(229, 72, 77, .1); }

.mm-neu {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; text-align: center;
    border: 2px dashed var(--border); border-radius: 16px; color: var(--text-muted); text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.mm-neu i { font-size: 26px; margin-bottom: 4px; }
.mm-neu strong { color: var(--text); font-size: 16px; }
.mm-neu:hover { border-color: var(--accent); background: var(--accent-glow); }

.mm-pills span { display: inline-flex; align-items: center; gap: 5px; }
.mm-pills__punkt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }

/* Mobil: Bild links, Name und Pills rechts daneben; Beschreibung, Schnellzugriffe und Buttons darunter */
@media (max-width: 719px) {
    .mm-karte { grid-template-columns: 108px minmax(0, 1fr); gap: 10px 14px; padding: 12px; }
    .mm-inhalt { display: contents; }
    .mm-bild { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 1; align-self: start; }
    .mm-bild__badge { top: 6px; left: 6px; padding: 2px 6px; font-size: 10px; }
    .mm-inhalt h2 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; padding-right: 64px; font-size: 17px; }
    .mm-pills { grid-column: 2; grid-row: 2; align-self: start; gap: 6px; }
    .mm-pills span { padding: 3px 9px; }
    .mm-beschreibung, .mm-schnell, .mm-aktionen { grid-column: 1 / -1; }
    .mm-aktionen .mm-btn { flex: 1 1 auto; }
    .mm-aktionen form { flex: 1 1 auto; display: flex; }
    .mm-aktionen form .mm-btn { flex: 1; }
    /* Sortierpfeile als kleine Leiste oben rechts statt eigener Spalte */
    .mm-sort { position: absolute; top: 10px; right: 10px; flex-direction: row; gap: 4px; align-self: auto; }
}

/* Profil › Bikes (seiten/profil.php): gleiche Karte ohne Sortierspalte */
@media (min-width: 720px) { .mm-karte--profil { grid-template-columns: 260px minmax(0, 1fr); padding-left: 16px; } }
.mm-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-mini img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.mm-karte--profil .mm-bild img { cursor: zoom-in; }
@media (min-width: 720px) { .mm-karte--profil { column-gap: 24px; } .mm-karte--profil .mm-bild { margin-right: 8px; } }

/* Aufgeklappte Technische Daten machen die Zeile höher: das Bild darf dann weder mitwachsen noch die Spalte sprengen (aspect-ratio) */
.mm-karte--profil .mm-bild { align-self: start; min-width: 0; width: 100%; }
