/* ==========================================================================
   ISICS Modern Burgundy Theme
   ========================================================================== */

:root {
    /* Farbpalette */
    --primary: #722f37;          /* Edles Weinrot / Burgunder */
    --primary-hover: #58232a;    /* Dunkleres Weinrot für Hover-Effekte */
    --primary-light: #f8f1f2;    /* Sehr helles Weinrot für Hintergründe */
    --accent: #b85042;           /* Sanftes Korallen-Rot für Akzente */
    
    --bg-body: #f4f5f7;          /* Moderner, leicht kühler Hintergrund */
    --bg-card: #ffffff;          /* Kartenhintergrund */
    
    --text-dark: #1e293b;        /* Haupttext (Dunkelgrau/Blau) */
    --text-muted: #64748b;       /* Nebentext / Subtitles */
    --border-color: #e2e8f0;     /* Dezente Rahmen */
    
    /* Schatten & Abstände */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(114, 47, 55, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

/* Base Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 0rem;
}

/* ==========================================================================
   Moderner Header mit Glassmorphism-Effekt
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(114, 47, 55, 0.95); /* Transparentes Weinrot */
    backdrop-filter: blur(10px);                  /* Unschärfe-Effekt */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 1.0rem;
    font-weight: 400; /* Hier stand vorher 00 */
    letter-spacing: 0.5px;
}

/* Navigation */
nav {
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Layout & Karten (Cards)
   ========================================================================== */
.container {
    max-width: 950px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1.5rem;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Typografie */
h2, h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    color: #334155;
}

small {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Formulare, Labels & Titel (Strikt Linksbündig & Untereinander)
   ========================================================================== */

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start; /* Strikte Linksausrichtung für alle untergeordneten Elemente */
    text-align: left;
}

/* Beschriftungen über den Eingabefeldern (Benutzername, Passwort, Titel, etc.) */
label, 
.form-label {
    display: block;
    width: 100%;
    text-align: left !important; /* Erzwingt die Linksbündigkeit */
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Eingabefelder selbst */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.15);
}

/* Unterüberschriften innerhalb von Formular-Karten */
.card h2, 
.card h3 {
    text-align: left !important;
    width: 100%;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Spezifische Elemente (Karte & Bilder)
   ========================================================================== */
#map {
    height: 420px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.card img {
    border-radius: 8px;
    transition: filter 0.2s ease;
}

/* Formular-Grid für das Blog-Suchfeld */
.card form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.card form input,
.card form select {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.card form .btn {
    height: 45px;
}

/* Responsive Anpassung für Mobilgeräte */
@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        text-align: center;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }
}
/* ==========================================================================
   Fußzeile (Footer)
   ========================================================================== */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 1.75rem 1.5rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 950px;
    margin: 0 auto;
}

footer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin-bottom: 0;
    text-align: center;
}
/* Profilbilder Styling */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.container div[style*="line-height: 1.8"], 
.article-body p, 
.container p {
    text-indent: 0 !important;
}

/* Globale Entschärfung jeglicher Texteinrückungen in Absätzen */
p {
    text-indent: 0 !important;
}