/* ============================================================
   fiedler.immo – Stylesheet
   Farben: Dunkelblau #1a2e44 | Gold #c9a96e | Weiß #ffffff
   ============================================================ */

/* --- Reset & Basis -------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue:      #1a2e44;
    --blue-dark: #111e2d;
    --blue-mid:  #243d5a;
    --gold:      #c9a96e;
    --gold-light:#dfc08f;
    --white:     #ffffff;
    --gray-light:#f5f5f3;
    --gray:      #9aa3ad;
    --text:      #2c3e50;
    --radius:    6px;
    --shadow:    0 4px 20px rgba(0,0,0,0.10);
    --transition:0.25s ease;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation ----------------------------------------------------------- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--blue);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.nav-logo span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero ----------------------------------------------------------------- */
#hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    color: var(--white);
    padding: 7rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content { position: relative; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(201,169,110,0.15);
    border: 1px solid rgba(201,169,110,0.35);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
#hero h1 em {
    font-style: normal;
    color: var(--gold);
}

#hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    margin: 0 auto 2.25rem;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--blue-dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,169,110,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Section allgemein ---------------------------------------------------- */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

/* --- Über mich ------------------------------------------------------------ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.about-text p {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.75rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(201,169,110,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.highlight-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.1rem;
}

.highlight-item span {
    font-size: 0.85rem;
    color: var(--gray);
}

.about-visual {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: var(--white);
    text-align: center;
}

.about-visual .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.25rem 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
}

.about-visual p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* --- Kontaktformular ------------------------------------------------------ */
.form-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 0.4rem;
}

.form-group label .req {
    color: var(--gold);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #dde3ea;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa3ad' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Honeypot – versteckt */
.hp-field { display: none !important; }

.form-privacy {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.form-privacy a { color: var(--gold); }

#form-status {
    display: none;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

#form-status.success {
    background: #edfcf0;
    color: #1a7a3a;
    border: 1px solid #b0e9be;
    display: block;
}

#form-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: block;
}

/* --- Mietangebote --------------------------------------------------------- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.property-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}

.property-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}

.property-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8edf2, #d0d8e4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #b0bec5;
}

.property-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.3rem;
}

.property-location {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.9rem;
}

.property-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.property-meta-item {
    font-size: 0.82rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-rent {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue);
    margin-top: auto;
    margin-bottom: 1rem;
}
.property-rent small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray);
}

.property-desc {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.btn-blue {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-blue:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

/* --- Footer --------------------------------------------------------------- */
#footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.65);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.9rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-col address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* --- Cookie-Banner -------------------------------------------------------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--blue-dark);
    color: rgba(255,255,255,0.85);
    border-top: 2px solid var(--gold);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

#cookie-banner p { flex: 1; min-width: 220px; }
#cookie-banner a { color: var(--gold); text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--gold);
    color: var(--blue-dark);
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--gold-light); }

.btn-cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}
.btn-cookie-decline:hover {
    border-color: rgba(255,255,255,0.55);
    color: var(--white);
}

/* --- Impressum / Datenschutz Seiten --------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue);
    margin: 2rem 0 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.legal-content p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
}
.legal-content ul li { margin-bottom: 0.3rem; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--blue-dark);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    #navbar { position: relative; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    #hero { padding: 5rem 0 4rem; }
    .section { padding: 3.5rem 0; }
    .form-card { padding: 1.75rem 1.25rem; }

    #cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr; }
}
