
/* Home */

body {
    background-color: #f8f9fa; /* Ein ganz helles Grau lässt die weißen Karten besser wirken */
}

* Abgerundete Kacheln für die Startseite */
.rounded-4 {
    border-radius: 1.25rem !important;
}

/* Die Schnellzugriff-Buttons */
.btn-outline-dark {
    transition: all 0.2s ease;
    color: #212529;
}

.btn-outline-dark:active {
    transform: scale(0.95);
    background-color: #f8f9fa !important;
}

 /* Lures */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-primary.rounded-pill {
    background-color: #0d6efd !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

    /* Ein kleiner Effekt, falls man doch mal am PC klickt */
    .btn-primary.rounded-pill:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.badge.bg-light {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    background-color: #ffffff !important;
}

.lure-item-container {
    display: flex !important;
    /* Sorgt dafür, dass Bild und Textbereich die gleiche Höhe einnehmen */
    align-items: stretch !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #eee !important;
    min-height: 90px !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 8px !important;
}

/* Der graue Kasten für das Bild */
.lure-image-box {
    width: 75px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
    background: #f8f9fa !important; /* Sehr helles Grau */
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Kleines Padding, damit das Bild nicht direkt an die Kante stößt */
    padding: 2px !important;
    overflow: hidden !important;
}

/* Das eigentliche Bild (Köder oder Placeholder) */
.lure-image-box img {
    /* Verhindert, dass das Bild über die 75px hinausgeht */
    max-width: 100% !important;
    max-height: 100% !important;
    /* Behält Proportionen bei und zeigt das ganze Bild (kein Anschnitt!) */
    object-fit: contain !important;
    /* Entfernt alle Geister-Ränder und Standard-Browser-Styles */
    border: 0 !important;
    border-style: none !important;
    outline: none !important;
    /* Sorgt dafür, dass weiße Bildhintergründe mit dem grauen Kasten verschmelzen */
    mix-blend-mode: multiply;
    /* Zentrierungshilfe */
    display: block !important;
}

.lure-text-box {
    /* Nimmt den gesamten Platz rechts neben dem Bild ein */
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    /* Zentriert die drei Textzeilen vertikal neben dem Bild */
    justify-content: center !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
}

/* Verhindert, dass die Zeilen ineinander rutschen */
.lure-main-line, .lure-brand-subline, .lure-specs-line {
    width: 100% !important;
    display: block !important;
}

.lure-model-name {
    font-size: 0.95rem !important; /* Leicht verkleinert für Mobil */
    line-height: 1.2 !important;
}

.lure-brand-subline {
    font-size: 0.8rem !important;
    color: #666 !important;
    margin: 1px 0 !important;
}

.lure-specs-line {
    font-size: 0.75rem !important;
    white-space: nowrap; /* Verhindert hässliche Umbrüche bei Specs */
}

.lure-settings-btn {
    position: absolute !important;
    top: 5px !important;
    right: 8px !important;
    padding: 5px; /* Größere Klickfläche für Finger */
    font-size: 1.1rem !important;
}

/* Der Badge-Container */
.fish-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    /* Rundung abschwächen: Statt pill-shape (50px) nutzen wir jetzt einen dezenten Radius */
    border-radius: 6px;
    padding: 2px 8px 2px 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

/* Optimierung der Fisch-Bilder */
.fish-icon {
    width: 24px; /* Feste Breite */
    height: 16px; /* Feste Höhe passend zur typischen Fischform */
    /* Das wichtigste: Verhindert Stauchung */
    object-fit: contain;
    /* Verbessert die Schärfe bei kleinen PNGs */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin-right: 6px;
}

.fish-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

/* Kleiner Effekt beim Drüberfahren */
.fish-badge:hover {
    border-color: #0d6efd;
    background-color: #fff;
}

/* Container für das Fisch-Icon */
.fish-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Hellgrauer Hintergrund */
    border-radius: 50%; /* Macht es kreisrund */
    border: 2px solid #dee2e6;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    overflow: hidden; /* Damit das Bild nicht über den Kreis ragt */
    padding: 10px; /* Sicherheitsabstand zum Rand */
}

    /* Hover-Effekt: Das Icon "lebt" ein bisschen */
    .fish-icon-container:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-color: #0d6efd; /* Bootstrap Primary Blue */
    }

/* Dropdown-Menü Optik */
.dropdown-menu {
    border-radius: 12px;
    font-size: 0.9rem;
    min-width: 180px;
}

.dropdown-item {
    transition: background 0.2s;
}

    .dropdown-item:active {
        background-color: #f8f9fa;
        color: inherit;
    }

/* Die Navbar bleibt stabil */
.navbar {
    height: 60px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #eee !important;
}

/* Der Container für das Logo */
.logo-holder {
    display: flex;
    align-items: center;
    height: 60px;
    margin-left: 5px;
    overflow: visible;
}

/* Das Logo-Bild anpassen */
.overhanging-logo {
    height: 48px;
    width: auto;
    display: block;
    background-color: transparent; /* Falls du auf transparentes PNG/SVG wechselst */
    image-rendering: -webkit-optimize-contrast;
}

/* Die Icons rechts ohne Hintergrund */
.btn-fb-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none;
    color: #333;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.btn-fb-action:hover {
    color: #0d6efd;
    transform: scale(1.1);
}

/* Die seitliche Action-Leiste */
.border-start.bg-light-subtle {
    background-color: #fcfcfc !important; /* Ganz leichter Grauton für die Leiste */
    width: 50px;
}

/* Verhindert Fokus-Ringe bei Klick */
.btn-fb-action:focus, .btn-close:focus {
    box-shadow: none;
    outline: none;
}

.action-icon {
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #6c757d; /* Standardgrau */
}

    .action-icon:hover {
        transform: scale(1.15);
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* Spezifische Farben für die Icons */
    .action-icon.text-primary:hover {
        color: #0d6efd !important;
    }

    .action-icon.text-success:hover {
        color: #198754 !important;
    }

    .action-icon.text-muted:hover {
        color: #212529 !important;
    }

/* Fisch-Badges (Kompakt & Scharf) */
.fish-badge-mini {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px; /* Deine gewünschte flachere Rundung */
    padding: 2px 8px 2px 4px;
    transition: all 0.2s ease;
}

.fish-icon-mini {
    width: 20px;
    height: 14px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast; /* Verhindert das Matschige */
    margin-right: 5px;
}

.fish-badge-mini span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

/* Textbegrenzung für Notizen */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em; /* Hält die Karten auf gleicher Höhe */
}

/* Hover-Effekt für die ganze Karte */
.card.shadow-sm {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card.shadow-sm:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    }

/* Die Karte als Container */
.spot-card {
    overflow: hidden !important; /* Schneidet das Bild an den abgerundeten Ecken der Card ab */
    border: 1px solid #eee;
    padding: 0 !important; /* Verhindert Lücken zwischen Rand und Inhalt */
}

.spot-card:hover .spot-card-image {
    width: 220px;
}

.spot-card-image::before {
    content: "";
    position: absolute;
    inset: 0; /* Deckt das ganze Bild ab */
    /* Erzeugt einen weichen weißen Schein von außen nach innen */
    background: radial-gradient(circle, rgba(255,255,255,0) 50%, rgba(255,255,255,0.2) 100%);
    z-index: 1;
}

.spot-card {
    cursor: pointer;
    outline: none;
}

    /* Verringert den Innenabstand im Textbereich */
    .spot-card .card-body {
        padding: 10px 15px !important; /* Oben/Unten 10px, Links/Rechts 15px */
    }

    /* Verringert den Abstand zwischen Name und Gewässer-Info */
    .spot-card h5 {
        margin-bottom: 2px !important;
        font-size: 1.1rem; /* Optional: Schrift etwas kleiner für Mobile */
    }

    /* Verringert den Abstand unter den Notizen/Fisch-Pills */
    .spot-card p.text-muted {
        margin-bottom: 8px !important;
    }

/* Damit die Card selbst nicht zu flach ist */
.spot-card .d-flex.flex-row {
    min-height: 150px; /* Gleiche Höhe wie das Bild */
}

/* Standard für Handy (Hochformat) */
.spot-card-image {
    width: 80px; /* Schmaler auf dem Handy */
    min-width: 80px;
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Wir machen den Übergang auf dem Handy kürzer */
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* Für größere Bildschirme (Tablet/PC) machen wir sie wieder breiter */
@media (min-width: 576px) {
    .spot-card-image {
        width: 200px;
        min-width: 200px;
        /* Hier der weichere Übergang für große Bilder */
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to left, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    }
}

/* Die versteckte Aktionsleiste */
.spot-actions-overlay {
    position: absolute;
    right: -60px; /* Standardmäßig versteckt */
    top: 0;
    bottom: 0;
    width: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 20;
    border-left: 1px solid #eee;
}

/* Erscheint beim Hover über die Karte */
.spot-card:hover .spot-actions-overlay {
    right: 0;
}

.spot-card:active .spot-actions-overlay,
.spot-card:focus-within .spot-actions-overlay {
    right: 0;
}

/* Mini-Fisch-Pillen */
.fish-pill {
    background: #ffffff !important;
    border: 1px solid #eee;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.timeline-container {
    padding-bottom: 80px; /* Platz für eine spätere Navigation unten */
}

.lure-card-mini {
    height: 70px;
    cursor: pointer;
}

.action-bar a {
    font-size: 1.1rem;
    padding: 5px;
    transition: opacity 0.2s;
}

    .action-bar a:hover {
        opacity: 0.7;
    }

/* Wenn die Klasse 'show-actions' aktiv ist, schiebt sich die Bar rein */
.show-actions .action-bar {
    transform: translateX(0) !important;
}