/* =====================================================================
   Immobilienverwaltung Lofink – gemeinsames Stylesheet (Startseite + FAQ)
   Markenfarben: Navy #005484 · Akzent #1884b4 · Hell #60b4d8
   ===================================================================== */

:root {
    --navy: #005484;
    --navy-dark: #003d61;
    --accent: #1884b4;
    --light: #60b4d8;
    --light-bg: #eaf4f9;
    --text: #1f2a33;
    --muted: #4f5b66;
    --bg: #f4f7f9;
    --white: #ffffff;
    --border: #dde5eb;
    --radius: 12px;
    --header-h: 64px;
    --shadow: 0 4px 14px rgba(0, 46, 74, 0.08);
    --shadow-hover: 0 10px 28px rgba(0, 46, 74, 0.14);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip-Link: erscheint nur bei Tastaturbedienung */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px; border-radius: 999px;
    font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--light-bg); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light-bg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn svg { flex-shrink: 0; }

.link-button {
    background: none; border: none; padding: 0; cursor: pointer;
    color: inherit; text-decoration: none; text-align: left;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.site-header nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: var(--header-h);
}
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; justify-self: center; }
.nav-links a {
    color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500;
    padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--light); }
.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.portal-icon { color: var(--accent); }

.mobile-menu-toggle {
    display: none; justify-self: end; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; font-size: 26px; color: var(--navy); border-radius: 8px;
}
.mobile-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: #fff; padding: 12px 20px 20px; box-shadow: 0 8px 16px rgba(0,0,0,.1);
    display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.btn) {
    color: var(--text); text-decoration: none; font-size: 17px; padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 10px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; text-align: center; isolation: isolate;
    min-height: 88vh; display: flex; align-items: center; justify-content: center;
    padding: calc(var(--header-h) + 48px) 0 96px;
}
.hero-media, .hero-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(160deg, rgba(0, 61, 97, 0.82) 0%, rgba(0, 84, 132, 0.62) 55%, rgba(24, 132, 180, 0.45) 100%);
}
.hero-content { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.hero-eyebrow {
    display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #d4ecf7; margin-bottom: 14px;
}
.hero h1 { font-size: 50px; font-weight: 700; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.hero-lead { font-size: 21px; color: rgba(255,255,255,.95); max-width: 720px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-actions .btn { min-width: 210px; }
.trust-list {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
    font-size: 15px; color: rgba(255,255,255,.95);
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list svg { color: var(--light); flex-shrink: 0; }

.scroll-down {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    color: #fff; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    animation: bounce 2.4s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -12px); }
    60% { transform: translate(-50%, -6px); }
}

/* ---------- Sektionen allgemein ---------- */
.section { padding: 88px 0; }
.section-white { background: #fff; }
.section-title { text-align: center; font-size: 34px; line-height: 1.2; color: var(--text); margin-bottom: 14px; }
.section-title::after {
    content: ''; display: block; width: 56px; height: 4px; border-radius: 2px;
    background: var(--light); margin: 16px auto 0;
}
.section-intro { text-align: center; color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 auto 48px; }

/* ---------- Vorteile ---------- */
.advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto 40px; }
.advantage-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
    border-top: 4px solid var(--light); transition: transform .25s ease, box-shadow .25s ease;
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.advantage-icon {
    width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.advantage-card h3 { font-size: 19px; margin-bottom: 10px; }
.advantage-card p { color: var(--muted); }
.advantages-conclusion { text-align: center; font-size: 18px; font-weight: 500; }
.advantages-conclusion p { margin-bottom: 20px; }

/* ---------- Leistungen ---------- */
.services-grid { display: flex; flex-direction: column; gap: 28px; max-width: 1000px; margin: 0 auto; }
.service-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.service-card-header { padding: 22px 26px 0; border-left: 5px solid var(--navy); }
.service-title { font-size: 24px; color: var(--navy); }
.service-content { padding: 12px 26px 26px; }
.service-content > p { color: var(--muted); font-size: 16px; }
.accordion-hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tasks-accordion { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-heading { font-size: inherit; font-weight: inherit; }
.accordion-header {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 15px 18px; min-height: 52px; background: var(--bg); border: none; cursor: pointer;
    font-size: 16px; font-weight: 600; color: var(--text); text-align: left; transition: background-color .2s;
}
.accordion-header:hover { background: var(--light-bg); }
.accordion-arrow { font-size: 12px; color: var(--accent); transition: transform .3s ease; }
.accordion-header[aria-expanded="true"] { background: var(--light-bg); color: var(--navy); }
.accordion-header[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); }
.accordion-content { padding: 18px 20px 8px; background: #fff; }
.accordion-content h5 { font-size: 15px; color: var(--navy); margin: 4px 0 8px; }
.accordion-content ul { padding-left: 20px; margin-bottom: 14px; }
.accordion-content li { margin-bottom: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- Eigentümerportal ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto 36px; }
.portal-feature { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.portal-feature .feature-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--light-bg); color: var(--navy);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.portal-feature h3 { font-size: 17px; margin-bottom: 6px; }
.portal-feature p { color: var(--muted); font-size: 15px; }
.portal-note {
    max-width: 760px; margin: 0 auto 28px; text-align: center; font-size: 17px;
    background: var(--light-bg); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px 22px;
}
.portal-cta { text-align: center; }

/* ---------- Über mich ---------- */
.about-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: 34px; line-height: 1.2; margin-bottom: 22px; }
.about-text p { margin-bottom: 16px; color: var(--muted); font-size: 17px; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 460px; justify-self: center; }
.about-image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Abschluss-CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--accent) 100%); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 620px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer { background: #10283a; color: #fff; padding: 56px 0 28px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 36px; }
.footer-heading { font-size: 17px; font-weight: 600; margin-bottom: 14px; color: #fff; }
.footer-column p, .footer-column a, .footer-column .link-button { color: #b9c7d2; font-size: 15px; margin-bottom: 8px; display: block; }
.footer-column a, .footer-column .link-button { text-decoration: none; width: fit-content; }
.footer-column a:hover, .footer-column .link-button:hover { color: #fff; text-decoration: underline; }
.copyright { color: #b9c7d2; font-size: 14px; text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(9, 26, 38, 0.6); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: #fff; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
    border-radius: var(--radius); padding: 28px; position: relative;
    transform: translateY(16px); transition: transform .25s ease;
}
.modal-wide { max-width: 860px; }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
    background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 8px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal h2 { margin: 0 40px 20px; font-size: 24px; text-align: center; }
.modal h3 { font-size: 18px; margin: 22px 0 10px; color: var(--navy); }
.modal h4 { font-size: 16px; margin: 16px 0 6px; }
.modal p { margin-bottom: 12px; }
.modal div ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.modal div ul li { margin-bottom: 8px; line-height: 1.5; }
.modal div ul ul { list-style: circle; margin: 5px 0; }

/* ---------- Formular ---------- */
.required-note { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #b8c4cd; border-radius: 8px;
    font-size: 16px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(96, 180, 216, .45);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); cursor: pointer; }
.checkbox-row label { font-weight: 400; margin: 0; cursor: pointer; }
.honeypot { display: none !important; }
.submit-btn { width: 100%; margin-top: 8px; border-radius: 8px; }
.submit-btn:disabled { opacity: .7; cursor: wait; }
.form-group input.error, .form-group textarea.error, .form-group select.error { border-color: #c62828; }
.error-message { color: #c62828; font-size: 14px; margin-top: 4px; }
.success-message { background: #1e7d3a; color: #fff; padding: 12px; border-radius: 8px; margin-top: 16px; text-align: center; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001; background: #fff; color: var(--text);
    padding: 20px; box-shadow: 0 -4px 16px rgba(0,0,0,.12); font-size: 14px; display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.cookie-banner-header { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cookie-banner-text { flex: 1; }
.cookie-banner .link-button { color: var(--navy); text-decoration: underline; display: inline; }

/* ---------- FAQ-Seite ---------- */
.faq-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--accent) 100%); padding: calc(var(--header-h) + 56px) 0 52px; text-align: center; color: #fff; }
.faq-hero h1 { font-size: 38px; line-height: 1.2; margin-bottom: 12px; }
.faq-hero p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 600px; margin: 0 auto; }
.faq-content { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.faq-intro { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.faq-category { margin-bottom: 40px; }
.category-title {
    display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--navy); margin-bottom: 14px;
}
.category-title::before { content: ''; width: 4px; height: 18px; background: var(--light); border-radius: 2px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; transition: box-shadow .2s; }
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 20px; background: none; border: none; cursor: pointer; text-align: left;
    font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4;
}
.faq-arrow {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--accent);
    transition: transform .3s, background .2s, color .2s;
}
.faq-question[aria-expanded="true"] { color: var(--navy); }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); background: var(--accent); color: #fff; }
.faq-answer { padding: 16px 20px 20px; font-size: 16px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); }
.cert-badge {
    display: inline-flex; align-items: center; gap: 6px; background: var(--light-bg); color: var(--navy);
    font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-top: 10px;
}
.faq-cta { background: var(--navy); border-radius: var(--radius); padding: 36px 28px; text-align: center; margin-top: 48px; color: #fff; }
.faq-cta h2 { font-size: 22px; margin-bottom: 8px; }
.faq-cta p { color: rgba(255,255,255,.88); margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .hero h1 { font-size: 40px; }
    .hero-lead { font-size: 19px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .about-content { gap: 36px; }
}
@media (max-width: 860px) {
    .nav-links, .nav-actions { display: none; }
    .site-header nav { display: flex; justify-content: space-between; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .logo img { height: 34px; }
}
@media (min-width: 861px) {
    .mobile-menu { display: none !important; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 80px; }
    .hero h1 { font-size: 34px; }
    .hero-lead { font-size: 17px; }
    .hero-actions .btn { width: 100%; max-width: 320px; }
    .trust-list { flex-direction: column; align-items: center; font-size: 14px; }
    .section-title, .about-text h2 { font-size: 28px; }
    .section-intro { font-size: 16px; margin-bottom: 36px; }
    .about-content { grid-template-columns: 1fr; }
    .about-image { order: -1; max-width: 320px; }
    .service-card-header { padding: 18px 18px 0; }
    .service-content { padding: 10px 18px 20px; }
    .service-title { font-size: 21px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-column a, .footer-column .link-button { margin-left: auto; margin-right: auto; }
    .cookie-banner-content { flex-direction: column; align-items: stretch; text-align: center; }
    .cta-band h2 { font-size: 26px; }
    .faq-hero h1 { font-size: 28px; }
    .faq-hero p { font-size: 16px; }
}
@media (max-width: 560px) {
    .portal-grid { grid-template-columns: 1fr; }
    .modal { padding: 22px 18px; }
    .modal h2 { font-size: 21px; }
    .hero h1 { font-size: 30px; }
}

/* Weniger Bewegung, wenn im Betriebssystem eingestellt */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
