:root {
  --bg: #f7f7fb;
  --panel: rgba(255,255,255,0.88);
  --panel-solid: #ffffff;
  --text: #19202b;
  --muted: #647089;
  --line: #e6eaf2;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --danger: #d64545;
  --success: #0f9f6e;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,58,237,0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(79,70,229,0.10), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: linear-gradient(90deg, rgba(79,70,229,0.08), rgba(124,58,237,0.1)); border-bottom: 1px solid rgba(255,255,255,0.55); }
.topbar-inner, .nav-inner, .site-footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--muted); font-size: 0.92rem; }
.main-nav { position: sticky; top: 0; z-index: 1100; backdrop-filter: blur(18px); background: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(230,234,242,0.75); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a, .nav-cta { padding: 10px 14px; border-radius: 999px; color: var(--text); font-weight: 700; font-size: 0.96rem; }
.nav-links a:hover, .nav-links a.active, .nav-cta:hover { background: rgba(79,70,229,0.08); }
.nav-cta.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 28px rgba(79,70,229,0.22); }
.nav-cta.primary:hover { background: linear-gradient(135deg, #4338ca, #6d28d9); }
.auth-main { flex: 1; width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 42px 0 68px; }
.auth-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(380px, 1.28fr); gap: 24px; align-items: start; }
.auth-hero { position: sticky; top: 92px; border: 1px solid rgba(230,234,242,0.9); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.58)); box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08); padding: 24px; overflow: hidden; }
.auth-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; background: radial-gradient(circle, rgba(124,58,237,0.22), transparent 65%); }
.hero-logo { width: 112px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--accent); font-weight: 800; }
.auth-hero h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.04; letter-spacing: -0.045em; }
.auth-hero p { margin: 14px 0 0; color: var(--muted); line-height: 1.55; font-size: .98rem; }
.benefit-grid { display: grid; gap: 10px; margin-top: 20px; }
.benefit-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: rgba(255,255,255,0.68); border-radius: 16px; padding: 12px; font-size: .94rem; }
.benefit-card i { color: var(--accent); margin-top: 2px; }
.auth-card { border: 1px solid rgba(230,234,242,0.92); background: var(--panel); box-shadow: var(--shadow); border-radius: 32px; padding: clamp(22px, 3vw, 34px); backdrop-filter: blur(16px); }
.auth-card.narrow { max-width: 620px; margin: 0 auto; }
.card-head { text-align: center; margin-bottom: 26px; }
.card-head h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.035em; }
.card-head p { margin: 10px auto 0; color: var(--muted); line-height: 1.55; max-width: 560px; }
.auth-form { display: grid; gap: 16px; }
.auth-form.register-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.full-width, .auth-form .form-section, .auth-form .btn-submit, .auth-form .form-note, .auth-form .message { grid-column: 1 / -1; }
.form-section { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.72); padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-section[style*="display:none"] { display: none !important; }
.form-section-title { grid-column: 1 / -1; margin: 0 0 2px; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.field { display: grid; gap: 7px; }
.field.full-width { grid-column: 1 / -1; }
label { font-weight: 800; font-size: 0.92rem; color: var(--text); }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 1rem; background: #fff; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
input:focus, select:focus { border-color: rgba(79,70,229,0.65); box-shadow: 0 0 0 4px rgba(79,70,229,0.10); }
.btn-submit, .auth-button { width: 100%; border: 0; border-radius: 999px; padding: 14px 18px; font-weight: 900; font-size: 1rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 16px 34px rgba(79,70,229,0.24); transition: transform .2s ease, box-shadow .2s ease; }
.btn-submit:hover, .auth-button:hover { transform: translateY(-1px); box-shadow: 0 20px 40px rgba(79,70,229,0.29); }
.secondary-link { color: var(--accent); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.form-note { text-align: center; color: var(--muted); line-height: 1.55; }
.form-note p { margin: 8px 0; }
.message { border-radius: 18px; padding: 14px 16px; line-height: 1.55; }
.error { background: rgba(214,69,69,0.10); border: 1px solid rgba(214,69,69,0.28); color: #a62f2f; font-weight: 700; }
.success { background: rgba(15,159,110,0.10); border: 1px solid rgba(15,159,110,0.25); color: #08734f; font-weight: 700; }
.checkbox-group { display: grid; gap: 12px; }
.checkbox-group label, .checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.plz-ort-container { display: grid; grid-template-columns: 0.45fr 1fr; gap: 12px; }
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 44px; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: #647089; cursor: pointer; opacity: .55; transition: opacity .2s ease, fill .2s ease; }
.password-toggle.visible, .password-toggle:hover { opacity: 1; fill: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; font-weight: 800; margin: 4px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-login-wrap { width: 100%; display: flex; justify-content: center; min-height: 44px; }
.google-login-target { width: 100%; display: flex; justify-content: center; }
.google-login-target > div, .google-login-target iframe { margin: 0 auto !important; }
.google-login-fallback { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; background: #fff; color: var(--text); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.site-footer { padding: 30px 0 46px; text-align: center; color: var(--muted); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.footer-download { margin-bottom: 12px; }
.footer-download a { color: var(--accent); font-weight: 800; }
.footer-copy { margin: 0; font-size: .92rem; }
@media (max-width: 920px) { .auth-layout { grid-template-columns: 1fr; } .auth-hero { position: relative; top: auto; display: none; } .nav-links { display: none; } }
@media (max-width: 640px) { .topbar-inner { flex-direction: column; gap: 4px; } .auth-main { padding-top: 24px; } .auth-card, .auth-hero { border-radius: 24px; padding: 20px; } .auth-form.register-form, .form-section { grid-template-columns: 1fr; } .plz-ort-container { grid-template-columns: 1fr; } .nav-inner { min-height: 58px; } .brand img { height: 42px; } }
.social-login-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
}

.google-login-target {
  width: 360px;
  max-width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-login-target > div,
.google-login-target iframe {
  margin: 0 auto !important;
}

.apple-login-button {
  width: 360px;
  max-width: 100%;
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #3c4043;

  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  text-decoration: none;
  box-sizing: border-box;
}

.apple-login-button i {
  font-size: 18px;
  color: #000;
}

.apple-login-button:hover {
  background: #f8fafd;
  border-color: #d2d6dc;
}
.apple-login-button {
  height: 40px; /* Google ist effektiv ~40px hoch */
  padding: 0 12px;
}