/* ============================================================
   grundstücke.org — globales Stylesheet
   ============================================================
   Zieht alle gemeinsamen Styles aus den Einzelseiten zusammen.
   Seitenspezifische Styles (map, sidebar, dashboard-table,
   inserieren-formular etc.) bleiben in den jeweiligen Dateien
   inline. Hier nur das, was ÜBERALL gleich ist.
   ============================================================ */

:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --bg-color: #f4f7f6;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --border: #e0e6ed;
    --danger: #e74c3c;
    --warning: #f39c12;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
header {
    background: var(--white);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    position: sticky;
    top: 0;
    height: 70px;
}
.logo-link { display: flex; height: 100%; align-items: center; text-decoration: none; }
.logo-image { height: 45px; width: auto; object-fit: contain; }

nav { display: flex; gap: 25px; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
    cursor: pointer;
}
nav a:hover { color: var(--primary); }

.btn-register {
    background: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
}
.btn-register:hover { background: var(--primary-dark); color: var(--white); }

.btn-logout {
    border: 1px solid var(--danger);
    color: var(--danger) !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-logout:hover { background: var(--danger); color: var(--white) !important; }

/* ===== HINTERGRUND (Karten-Layer) ===== */
.seiten-hintergrund {
    background-image:
        linear-gradient(rgba(244, 247, 246, 0.75), rgba(244, 247, 246, 0.75)),
        url('/hintergrund-karte.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: calc(100vh - 70px);
    width: 100%;
}

/* ===== ALERT-BOXEN ===== */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}
.alert-error, .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-success, .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== FORMULARE ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46,204,113,0.2);
}

button,
.btn-primary {
    padding: 12px 25px;
    background: var(--primary);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    font-family: inherit;
}
button:hover,
.btn-primary:hover { background: var(--primary-dark); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-main);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--primary);
}
.footer-content { max-width: 900px; margin: 0 auto; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== RESPONSIVE DEFAULTS ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
}
