@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;700;900&display=swap');

:root {
    --bg-main:      #F8F7F4;
    --bg-surface:   #F0EDE8;
    --bg-card:      #FFFFFF;
    --accent-navy:  #1B3A6B;
    --accent-gold:  #C9A84C;
    --accent-gold-dark: #A8862A;
    --text-primary: #1A1A2E;
    --text-muted:   #6B7280;
    --text-light:   #9CA3AF;
    --border:       #E8E4DD;
    --border-hover: #C9A84C;
    --shadow-sm:    0 1px 3px rgba(26,26,46,0.08);
    --shadow-md:    0 4px 16px rgba(26,26,46,0.10);
    --shadow-lg:    0 12px 40px rgba(26,26,46,0.12);
    --shadow-xl:    0 24px 60px rgba(26,26,46,0.14);
}

*, *::before, *::after { box-sizing: border-box; }

/* Custom key cursor */
body {
    cursor: url('../images/icons8-key.svg') 8 8, auto;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ===== LIGHT CARD (replaces glassmorphism) ===== */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* Exception: glass-panel with explicit inline background keeps it */
.glass-panel[style*="background"] {
    background: revert !important;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201,168,76,0.3);
}

/* ===== BACKGROUND ===== */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: var(--bg-main);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #A8862A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--accent-gold);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-16px); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-navy); }

/* ===== NAVIGATION ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Nav wrapper override — Tailwind glass-panel is now white */
header .glass-panel {
    background: rgba(248, 247, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== DESKTOP DROPDOWN ===== */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    line-height: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}
.nav-dropdown-btn:hover { color: var(--accent-navy); }

.nav-chevron { transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 300;
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--accent-navy);
    background: rgba(27,58,107,0.06);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-card);
    z-index: 200;
    flex-direction: column;
    overflow-y: auto;
    padding: 80px 48px 48px;
}

.mobile-menu.open {
    display: flex;
    animation: fadeSlideIn 0.3s ease forwards;
}

.mobile-menu-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-top: 8px;
    margin-bottom: 12px;
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.mobile-menu a.nav-sub {
    display: block;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}
.mobile-menu a.nav-sub:hover { color: var(--accent-navy); }

.mobile-menu a:not(.nav-sub):not(.btn-primary) {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 0;
}
.mobile-menu a:not(.nav-sub):not(.btn-primary):hover { color: var(--accent-navy); }

.mobile-menu .btn-primary {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 24px;
}

.mobile-menu-close {
    position: absolute;
    top: 24px; right: 24px;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
}

@media (max-width: 1023px) {
    .hamburger { display: flex; }
}

/* ===== SECTIONS ===== */
section { padding: 100px 0; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-gold);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-gold-dark);
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(201,168,76,0.35);
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--text-primary);
    border-radius: 9999px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(201,168,76,0.05);
}

/* ===== SERVICE CARD LINK ===== */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}
.service-link:hover { gap: 14px; }

/* ===== FAQ ===== */
details summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ===== WERTERMITTLUNG STEPS ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.step-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.4s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(201,168,76,0.35);
}

.step-dot.done {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #ffffff;
}

.step-line {
    width: 48px; height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

.step-line.done { background: var(--accent-gold); }

.wert-step { display: none; }
.wert-step.active { display: block; animation: fadeSlideIn 0.4s ease; }

.type-card {
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.type-card:hover, .type-card.selected {
    border-color: var(--accent-gold);
    background: rgba(201,168,76,0.05);
}

.type-card.selected i { color: var(--accent-gold); }

.wert-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

.wert-input:focus { border-color: var(--accent-gold); }
.wert-input option { background: var(--bg-card); color: var(--text-primary); }

.wert-label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.feature-toggle {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    display: flex; align-items: center; gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.feature-toggle.selected {
    border-color: var(--accent-gold);
    background: rgba(201,168,76,0.05);
    color: var(--accent-gold);
}

.feature-toggle input[type="checkbox"] { display: none; }

.result-value {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--accent-gold);
    line-height: 1;
}

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
    padding: 160px 24px 80px;
    text-align: center;
}

/* ===== IMAGE PLACEHOLDERS ===== */
.img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .stat-number { font-size: 2.5rem; }
    .glass-panel { border-radius: 16px; }
    .glass-card  { border-radius: 16px; }
    h1 { font-size: 3rem !important; letter-spacing: -1px !important; }
    h2 { font-size: 2.5rem !important; }
    .step-indicator { gap: 0; }
    .step-line { width: 28px; }
    .result-value { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.4rem !important; }
    h2 { font-size: 2rem !important; }
    .step-dot { width: 32px; height: 32px; font-size: 11px; }
    .step-line { width: 20px; }
}

/* ===== TAILWIND OVERRIDES – Renk dönüşümleri ===== */

/* Text colors */
.text-white { color: var(--text-primary) !important; }

/* Keep white text on dark/image overlay backgrounds */
[class*="bg-blue-6"] .text-white,
[class*="bg-blue-9"] .text-white,
.bg-blue-600\/90 .text-white,
[style*="from-black"] ~ * .text-white,
.absolute.inset-0 + div .text-white,
footer .text-white { color: #ffffff !important; }

/* Image overlay text – always white (dark gradient underneath) */
.absolute.bottom-0 .text-white,
.absolute.left-0 .text-white { color: #ffffff !important; }

.text-gray-100, .text-gray-200 { color: var(--text-primary) !important; }
.text-gray-300 { color: #374151 !important; }
.text-gray-400 { color: var(--text-muted) !important; }
.text-gray-500 { color: var(--text-light) !important; }
.text-gray-600 { color: #9CA3AF !important; }

/* Blue → Gold */
.text-blue-400 { color: var(--accent-gold) !important; }
.text-blue-300 { color: #C9A84C !important; }
.text-blue-500 { color: var(--accent-gold) !important; }
.text-blue-600 { color: var(--accent-gold-dark) !important; }

/* Backgrounds */
.bg-white\/\[0\.01\] { background-color: var(--bg-surface) !important; }
.bg-white\/5  { background-color: rgba(201,168,76,0.04) !important; }
.bg-white\/10 { background-color: rgba(201,168,76,0.07) !important; }

.bg-blue-600  { background-color: var(--accent-gold) !important; color: #fff !important; }
.bg-blue-500\/10, .bg-blue-600\/10, .bg-blue-600\/5 {
    background-color: rgba(201,168,76,0.07) !important;
}
.bg-blue-950\/40 { background-color: rgba(201,168,76,0.06) !important; }
.bg-blue-500\/20 { background-color: rgba(201,168,76,0.10) !important; }

/* Borders */
.border-white\/5  { border-color: var(--border) !important; }
.border-white\/8  { border-color: var(--border) !important; }
.border-white\/10 { border-color: var(--border) !important; }
.border-white\/20 { border-color: var(--border) !important; }
.border-y.border-white\/5 { border-color: var(--border) !important; }

.border-blue-500\/20, .border-blue-500\/30 {
    border-color: rgba(201,168,76,0.25) !important;
}

/* Hover overrides */
.hover\:text-blue-400:hover  { color: var(--accent-gold) !important; }
.hover\:text-blue-300:hover  { color: var(--accent-gold-dark) !important; }
.hover\:bg-blue-600:hover    { background-color: var(--accent-gold-dark) !important; }
.hover\:bg-blue-500\/20:hover { background-color: rgba(201,168,76,0.12) !important; }
.hover\:bg-white\/5:hover    { background-color: rgba(201,168,76,0.04) !important; }

/* Nav active */
.nav-dropdown-btn.text-blue-400 { color: var(--accent-gold) !important; }
a.text-blue-400               { color: var(--accent-gold) !important; }

/* Gold accent stays gold */
.text-yellow-400, .text-yellow-500 { color: var(--accent-gold) !important; }

/* Animate-pulse skeleton → light */
.animate-pulse .bg-white\/10 { background-color: var(--bg-surface) !important; }

/* Stats border */
.border-y { border-color: var(--border) !important; }

/* Inline dark backgrounds in cards/sections */
[style*="background:linear-gradient(135deg,#0f172a"] {
    background: linear-gradient(135deg, var(--bg-surface), var(--border)) !important;
}

/* Kontakt button in nav (bg-white text-black) */
header .bg-white.text-black {
    background-color: var(--accent-gold) !important;
    color: #ffffff !important;
}
header .bg-white.text-black:hover {
    background-color: var(--accent-gold-dark) !important;
}

/* FAQ / details sections */
details { border-color: var(--border) !important; }
details summary { color: var(--text-primary) !important; }
details p, details div { color: var(--text-muted) !important; }

/* Gold accent overrides kept for decorative elements */
.accent-gold { color: var(--accent-gold) !important; }
.bg-accent-gold { background-color: var(--accent-gold) !important; }

/* Stat number primary color */
.stat-number.text-blue-500 { color: var(--accent-gold) !important; }
.stat-number { color: var(--accent-gold) !important; }

/* ===== FOOTER – dark navy for contrast ===== */
footer {
    background: #0A0A0A !important;
    border-top: none !important;
}

footer .text-white,
footer h3.text-white {
    color: #ffffff !important;
}

footer .text-gray-500 { color: #94A3B8 !important; }
footer .text-gray-700 { color: #64748B !important; }
footer a.hover\:text-blue-500:hover { color: var(--accent-gold) !important; }
footer .border-white\/5 { border-color: rgba(255,255,255,0.08) !important; }
footer .border-t { border-color: rgba(255,255,255,0.08) !important; }
footer .glass-panel {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(255,255,255,0.12) !important;
}
footer .text-blue-400 { color: var(--accent-gold) !important; }

/* ===== Keep white text inside navy/blue backgrounds ===== */
.bg-blue-600\/90,
[style*="bg-blue-6"] {
    color: #ffffff !important;
}

/* Explicitly re-white text inside navy panels */
.bg-blue-600 .text-white,
[class*="bg-blue-6"] .text-white {
    color: #ffffff !important;
}

/* CTA section panel – navy background with white text */
.glass-panel.bg-blue-600\/10 .text-white,
.glass-panel [class*="bg-blue-6"] .text-white {
    color: #ffffff !important;
}

/* Agent stat card overlay stays white */
.glass-panel.shadow-2xl.text-white,
.glass-panel.shadow-2xl.text-white * {
    color: #ffffff !important;
}

/* Step "05" circle stays white */
.bg-blue-600.rounded-3xl.text-white {
    color: #ffffff !important;
}

/* Progress bar stays gold */
.bg-blue-600.rounded-full { background-color: var(--accent-gold) !important; }

/* Decorative background blur circles – very subtle */
.bg-blue-600\/10.rounded-full { background-color: rgba(201,168,76,0.06) !important; }

/* Inline fallback card for property image */
/* Handled via CSS for the JS-generated content */

/* CTA Wertermittlung panel */
.glass-panel.bg-blue-600\/10 {
    background: rgba(201,168,76,0.06) !important;
    border-color: rgba(201,168,76,0.20) !important;
}

/* Telefon CTA text in contact section */
a.text-white.hover\:text-blue-500 { color: var(--text-primary) !important; }
a.hover\:text-blue-500:hover { color: var(--accent-gold) !important; }
