/* ==================================================
   geodom.css – Grunddesign & individuelle Styles
   Projekt: geodom.de
   Autor: Thomas 😊
   ================================================== */

/*body::before {
    content: "🎨 CSS geladen!";
    display: block;
    padding: 0.5rem;
    background: #fef3c7;
    color: #92400e;
    text-align: center;
}*/

/* Layout-Grundfarbe */
body {
    background-color: #f9fafb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Tabellen */
table.table th, table.table td {
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Link-Style in Tabellen */
table a {
    text-decoration: none;
    color: #0d6efd;
}
table a:hover {
    text-decoration: underline;
}

/* Statusfarben */
.domain-free {
    background-color: #dcfce7 !important;
}

.domain-sale {
    background-color: #fef9c3 !important;
}

.domain-sale span {
    color: #ca8a04;
    font-weight: bold;
}

/* Suchformular */
#keyword_input {
    max-width: 350px;
}

/* Buttons */
.btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
}

.btn-primary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* Überschriften */
h4.fw-bold {
    color: #111827;
}

/* Hinweisboxen */
.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

/* Leichte Card-Rundung */
.card {
    border-radius: 0.5rem;
}

/* Abstände für Boxen */
.mb-4 {
    margin-bottom: 1.5rem !important;
}
   table.table-sm td, table.table-sm th {
        padding: 0.4rem 0.6rem !important;
    }
/* Statusfarben */
.status-connected {
    background-color: #f4f4f5 !important; /* sehr helles Grau */
    color: #4b5563; /* neutral grau */
}

.status-free {
    background-color: #d1fae5 !important; /* grünlich, klarer */
    color: #065f46;
}

.status-forsale {
    background-color: #fef9c3 !important; /* soft-gelb */
    color: #92400e;
}

.status-rgp {
  background-color: #fef2f2 !important;
  color: #991b1b;
  font-weight: bold;
  border-left: 4px solid #ef4444;
}


/* Domain-Link neutral statt blau */
.table td a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}
.table td a:hover {
    text-decoration: underline;
    color: #1f2937;
}

.navbar-brand {
  font-size: 1.1rem;
}

.card-body.py-1 {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

/* Tabellenstile für Domainsuche */

/* Sicherstellen, dass die Domain nicht umgebrochen wird und Tooltip aktivieren */
.domain-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

/* Zahlen rechtsbündig ausrichten */
.table td.text-end, 
.table th.text-end {
    text-align: right !important;
}

/* Konsistente Zellenhöhe für alle Zeilen */
.domain-table td, 
.domain-table th {
    vertical-align: middle;
    height: 46px;
}

/* Sicherstellen, dass das €-Level nicht umbricht */
.text-nowrap {
    white-space: nowrap !important;
}

/* Hover-Effekt für Zeilen verbessern */
.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Status-Darstellung verbessern */
.domain-status {
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.domain-status i {
    margin-right: 5px;
}

/* Tooltip-Stil anpassen */
[title] {
    position: relative;
    cursor: help;
}

/* Optimierung für kleine Bildschirme */
@media (max-width: 768px) {
    .domain-table th,
    .domain-table td {
        padding: 8px !important;
        font-size: 0.875rem;
    }
    
    .domain-table .domain-link {
        max-width: 150px;
    }
}