/* ============================================================
   Mein Makler® Partnerportal — Startseite
   CI: Dunkelblau #005096 · Hellblau #008cd2 · Orange #f09100
   Font: Open Sans (Light 300, Regular 400, Semibold 600, Bold 700)
   ============================================================ */

:root {
    /* Farben */
    --mm-blue-dark:  #005096;
    --mm-blue-light: #008cd2;
    --mm-orange:     #f09100;

    --mm-white:      #ffffff;
    --mm-bg:         #f6fafd;
    --mm-bg-soft:    #eef4fa;
    --mm-surface:    #ffffff;

    --mm-text:       #12233a;
    --mm-text-muted: #607287;
    --mm-border:     #dbe6ef;

    /* Typografie */
    --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Helvetica, Arial, sans-serif;

    /* Radius & Schatten */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0, 80, 150, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 80, 150, 0.08);
    --shadow-lg: 0 24px 70px rgba(0, 80, 150, 0.14);

    /* Motion */
    --duration: 220ms;
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 72px;
    --container:     1200px;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--mm-text);
    background: var(--mm-white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }

a  { color: var(--mm-blue-dark); text-decoration: none;
     transition: color var(--duration) var(--ease); }
a:hover { color: var(--mm-blue-light); }

button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem);
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mm-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}
.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    color: var(--mm-blue-dark);
}
.brand:hover { color: var(--mm-blue-dark); }
.brand-mark {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}
.brand-r {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 0.05em;
    color: var(--mm-blue-light);
    font-weight: 600;
}
.brand-claim {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--mm-text-muted);
    margin-top: 5px;
    letter-spacing: 0.02em;
}

.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mm-text-muted);
}
.nav-link:hover { color: var(--mm-blue-dark); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 90% 60% at 100% 0%,
            rgba(0, 140, 210, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 0% 100%,
            rgba(0, 80, 150, 0.06) 0%, transparent 55%),
        var(--mm-bg);
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: auto -12% -30% auto;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle,
        rgba(0, 140, 210, 0.09), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 5vw, 5rem);
    grid-template-columns: 1fr;
    align-items: center;
    z-index: 1;
}
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-copy { max-width: 560px; }
.hero-eyebrow {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 140, 210, 0.12);
    color: var(--mm-blue-dark);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    font-weight: 700;
    color: var(--mm-text);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--mm-blue-light); }
.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    font-weight: 400;
    color: var(--mm-text-muted);
    margin: 0 0 2.25rem;
    max-width: 500px;
    line-height: 1.6;
}

/* Feature-Liste */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.15rem;
}
.hero-features li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.hero-features .feature-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border-radius: 50%;
    background: rgba(0, 140, 210, 0.12);
    position: relative;
}
.hero-features .feature-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mm-blue-light);
    transform: translate(-50%, -50%);
}
.hero-features strong {
    display: block;
    color: var(--mm-text);
    font-weight: 600;
    font-size: 0.9875rem;
    margin-bottom: 0.15rem;
    letter-spacing: -0.005em;
}
.hero-features span {
    color: var(--mm-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ---------- Login-Karte ---------- */
.login-card {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-lg);
    justify-self: end;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--mm-blue-dark) 0%,
        var(--mm-blue-light) 100%);
}

@media (max-width: 959px) {
    .login-card { justify-self: stretch; max-width: 100%; }
}

.card-head { margin-bottom: 1.75rem; }
.card-head h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mm-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}
.card-head p {
    margin: 0;
    color: var(--mm-text-muted);
    font-size: 0.9rem;
}

.login-form { display: grid; gap: 1rem; }
.login-form > label { display: grid; gap: 0.4rem; }
.login-form > label > span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mm-text);
    letter-spacing: 0.01em;
}
.login-form input[type=email],
.login-form input[type=password] {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--mm-border);
    border-radius: var(--radius-md);
    background: var(--mm-white);
    color: var(--mm-text);
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    width: 100%;
}
.login-form input::placeholder { color: #a3b1c2; }
.login-form input:focus {
    outline: none;
    border-color: var(--mm-blue-light);
    box-shadow: 0 0 0 3px rgba(0, 140, 210, 0.15);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.remember {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    color: var(--mm-text-muted);
    font-weight: 400;
    user-select: none;
}
.remember input {
    accent-color: var(--mm-blue-dark);
    width: 15px;
    height: 15px;
}
.forgot { color: var(--mm-blue-dark); font-weight: 600; }
.forgot:hover { color: var(--mm-blue-light); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--mm-blue-dark);
    color: var(--mm-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.95rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    margin-top: 0.5rem;
}
.btn-primary:hover {
    background: var(--mm-blue-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 80, 150, 0.22);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary:focus-visible {
    outline: 3px solid rgba(0, 140, 210, 0.35);
    outline-offset: 2px;
}
.btn-arrow { transition: transform var(--duration) var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.form-message {
    margin-top: 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
}
.form-message.is-info {
    background: rgba(0, 140, 210, 0.08);
    color: var(--mm-blue-dark);
    border: 1px solid rgba(0, 140, 210, 0.20);
}
.form-message.is-error {
    background: rgba(240, 145, 0, 0.08);
    color: var(--mm-orange);
    border: 1px solid rgba(240, 145, 0, 0.25);
}

.card-foot {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mm-border);
    text-align: center;
}
.card-foot p {
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
    color: var(--mm-text-muted);
}
.link-arrow {
    color: var(--mm-blue-dark);
    font-weight: 600;
    font-size: 0.925rem;
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    transition: gap var(--duration) var(--ease),
                color var(--duration) var(--ease);
}
.link-arrow:hover { gap: 0.55rem; color: var(--mm-blue-light); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--mm-white);
    border-top: 1px solid var(--mm-border);
    padding: 1.25rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--mm-text-muted);
}
.foot-copy { margin: 0; }
.foot-nav {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}
.foot-nav a { color: var(--mm-text-muted); font-weight: 400; }
.foot-nav a:hover { color: var(--mm-blue-dark); }
.foot-locations { color: var(--mm-text); font-weight: 400; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
