/* ========================================================================= */
/* --- 1. FARB-DEFINITIONEN (Farbschema Altwarmbüchen: Modern & Regional) --- */
/* ========================================================================= */
:root {
    --primary-color: #005A9C;      /* Dunkles Petrolblau (Hauptfarbe, Header, Buttons) */
    --secondary-color: #00A896;    /* Frisches Türkis/Grün (Akzentfarbe, Links, Hover) */
    --background-color: #F9F9F9;   /* Hintergrundfarbe (Sehr helles Grau) */
    --card-background: #FFFFFF;    /* Karten-Hintergrund */
    --text-color: #333333;         /* Haupt-Textfarbe */
    --light-text: #666666;         /* Sekundär-Textfarbe */
    --border-color: #E0E0E0;       /* Allgemeine Rahmenfarbe */
    --error-bg: #F8D7DA;           /* Roter Hintergrund für Fehlermeldungen */
    --success-bg: #D4EDDA;         /* Grüner Hintergrund für Erfolgsmeldungen */
}

/* ========================================================================= */
/* --- 2. GRUNDLAGEN (Typografie & Layout) --- */
/* ========================================================================= */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Alle Hauptüberschriften */
h1, h2, h3 {
    color: var(--primary-color);
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

main {
    max-width: 1100px;
    margin: 30px auto; /* Zentriert den Inhalt und gibt oben/unten Abstand */
    padding: 0 20px;
    min-height: 70vh; 
}

/* ========================================================================= */
/* --- 3. HEADER & NAVIGATION --- */
/* ========================================================================= */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.8em;
    font-weight: 700;
}

header .logo a {
    color: white !important;
    text-decoration: none;
}

header nav a {
    color: white; 
    text-decoration: none;
    margin-left: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95em;
    font-weight: 500;
}

header nav a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Spezielle Admin-Links */
header nav a[style*="f7a000"] { /* Gewerbe-Admin, Pinnwand-Admin */
    color: #FFEB3B !important; /* Helles Gelb als Warnung */
    font-weight: bold;
}
header nav a[style*="f7a000"]:hover {
    background-color: rgba(255, 235, 59, 0.2);
}
header nav a[style*="FFCDD2"] { /* Logout */
    background-color: #CC3333;
    padding: 8px 15px;
}
header nav a[style*="FFCDD2"]:hover {
    background-color: #AA1111;
}

/* ========================================================================= */
/* --- 4. BUTTONS & LINKS (Wichtig für Formulare) --- */
/* ========================================================================= */
a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: #00457A; /* Dunklerer Ton */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn.secondary:hover {
    background-color: #007F70;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================================================= */
/* --- 5. KARTEN & CONTENT-STRUKTUREN --- */
/* ========================================================================= */

/* Generelle Content-Boxen (z.B. auf der Startseite) */
.card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

/* --- Gewerbeverzeichnis Struktur --- */
.kategorie-titel {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    margin-top: 35px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 1.6em;
}

.gewerbe-eintrag {
    background-color: var(--card-background);
    border-left: 5px solid var(--primary-color); /* Akzent-Linie */
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.gewerbe-eintrag h3 {
    color: var(--primary-color);
    font-size: 1.25em;
    margin-bottom: 5px;
}
.homepage-link {
    font-weight: bold;
}

/* --- Pinnwand Design --- */
.pinnwand-beitrag { 
    background-color: var(--card-background);
    border-left: 5px solid var(--secondary-color); 
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.pinnwand-beitrag h2 {
    color: var(--text-color);
    font-size: 1.5em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.beitrag-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--light-text);
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    margin-top: 10px;
}

/* ========================================================================= */
/* --- 6. FORMS & MESSAGES (Formulare und Rückmeldungen) --- */
/* ========================================================================= */

.form-container {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    margin: 30px auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-container label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}
input[type="text"], 
input[type="password"], 
input[type="url"], 
textarea, 
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(0, 168, 150, 0.3);
    outline: none;
}
textarea {
    resize: vertical;
}

/* Nachrichten-Boxen (Success, Error, Hinweis) */
.success-message, .error-message, .eingabe-hinweis {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.success-message {
    background-color: var(--success-bg);
    color: #155724; /* Dunkelgrün */
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: var(--error-bg);
    color: #721c24; /* Dunkelrot */
    border: 1px solid #f5c6cb;
}

.eingabe-hinweis {
    background-color: #E3F2FD; /* Hellblau */
    border: 1px solid #BBDEFB;
    color: var(--text-color);
    text-align: center;
}
.eingabe-hinweis .btn {
    margin-left: 15px;
}

/* ========================================================================= */
/* --- 7. FOOTER --- */
/* ========================================================================= */
footer {
    background-color: #EFEFEF; 
    color: var(--light-text);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}


/* ========================================================================= */
/* --- 8. ADMIN SPEZIFISCHE STILE --- */
/* ========================================================================= */
.pinnwand-admin-eintrag, .eintrag-admin {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: none;
}
.aktiv { 
    border-left: 5px solid #4CAF50 !important; 
    background-color: #F0FFF0 !important; /* Sehr helles Grün */
} 
.inaktiv { 
    border-left: 5px solid #FF9800 !important; 
    background-color: #FFF8E1 !important; /* Sehr helles Orange */
} 
.eintrag-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}
.action-link { margin-right: 15px; font-weight: bold; }