/* ===== Mobile-First CSS für Begehungsberichte ===== */

:root {
    --touch-target: 48px;
}

body {
    background-color: #f5f6fa;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.login-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ===== Navbar ===== */
.navbar {
    min-height: 56px;
    padding: 0.5rem 1rem;
}

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

/* ===== Cards ===== */
.card {
    border-radius: 12px;
    border: 1px solid #e0e4ef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ===== Forms / Touch Targets ===== */
.form-control,
.form-select {
    min-height: var(--touch-target);
    border-radius: 10px;
    font-size: 1rem;
    border: 1.5px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-select-lg {
    font-size: 1.05rem;
    padding: 0.6rem 1rem;
}

textarea.form-control {
    min-height: 100px;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    font-weight: 500;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    min-height: 38px;
    font-size: 0.875rem;
    padding: 0 0.75rem;
}

.btn-xs {
    min-height: 32px;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    border-radius: 6px;
}

.btn-lg {
    font-size: 1.1rem;
    min-height: 54px;
}

/* ===== Mangel Form ===== */
.mangel-header {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e4ef;
}

/* ===== Begehung Detail ===== */
.mangel-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.mangel-thumb-placeholder {
    width: 80px;
    height: 80px;
    background: #f0f2f5;
    flex-shrink: 0;
}

/* ===== Photo Preview ===== */
#photoPreview img {
    border: 2px solid #1a73e8;
    padding: 2px;
}

/* ===== List Group ===== */
.list-group-item {
    border-radius: 0 !important;
    padding: 0.75rem 1rem;
}

.list-group-item-action {
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ===== Tabs ===== */
.nav-tabs .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
}

/* ===== Badges ===== */
.badge {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
    border-radius: 6px;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
}

/* ===== Utilities ===== */
.min-width-0 {
    min-width: 0;
}

/* ===== Large screen tweaks ===== */
@media (min-width: 576px) {
    .container-fluid {
        max-width: 640px;
        margin: 0 auto;
    }
}
