/* Login & Rechtliches – abgestimmt auf App-Design */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

.login-hero {
  background: linear-gradient(160deg, #0f3d28 0%, #1f7a4c 40%, #2d9a62 70%, #3cb371 100%);
  color: #fff;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -25%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.login-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 50%;
  height: 50%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.login-hero-inner { position: relative; z-index: 1; max-width: 440px; }

.login-logo {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.login-hero h1 {
  margin: 0 0 0.85rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.login-hero p {
  margin: 0 0 1.75rem;
  opacity: 0.92;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}

.login-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
}
.login-features li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.92rem;
  opacity: 0.95;
  font-weight: 500;
}
.login-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: #a7e8c0;
}

.login-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.login-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(180deg, #f8faf9 0%, #f0f4f2 100%);
}

.login-form-wrap {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid #eaefec;
  box-shadow: 0 12px 40px rgba(21, 32, 25, 0.08);
}

.login-form-wrap h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #152019;
  letter-spacing: -0.03em;
}

.login-form-wrap .subtitle {
  color: #6b7f74;
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.login-form label {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d4f45;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid #dce5e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: #1f7a4c;
  box-shadow: 0 0 0 4px rgba(31, 122, 76, 0.12);
}

.login-privacy {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.1rem 0 1.35rem;
  font-size: 0.78rem;
  color: #6b7f74;
  line-height: 1.45;
  padding: 0.85rem;
  background: #f6faf7;
  border-radius: 10px;
  border: 1px solid #eaefec;
}
.login-privacy input { margin-top: 0.15rem; flex-shrink: 0; accent-color: #1f7a4c; }
.login-privacy a { color: #1f7a4c; font-weight: 600; }

.btn-login {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #2d9a62 0%, #1f7a4c 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(31, 122, 76, 0.35);
}
.btn-login:hover {
  background: #18633e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 122, 76, 0.4);
}

.login-footer-links {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid #eaefec;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
}
.login-footer-links a {
  color: #6b7f74;
  text-decoration: none;
  font-weight: 500;
}
.login-footer-links a:hover { color: #1f7a4c; }

.login-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 4px solid;
}
.login-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #dc2626;
}

/* Rechtliche Seiten */
.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f8f6 0%, #eef2f0 100%);
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eaefec;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.legal-back {
  color: #1f7a4c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.legal-brand { font-weight: 700; color: #152019; }
.legal-main {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}
.legal-main .legal-doc {
  background: #fff;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  border: 1px solid #eaefec;
  box-shadow: 0 8px 30px rgba(21, 32, 25, 0.06);
}
.legal-doc h1 { margin-top: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.legal-doc h2 { font-size: 1.1rem; margin-top: 1.75rem; color: #1f7a4c; font-weight: 700; }
.legal-doc p, .legal-doc li { color: #3d4f45; line-height: 1.65; font-size: 0.95rem; }
.legal-meta { color: #6b7f74; font-size: 0.85rem; margin-bottom: 1.5rem; }
.legal-footer {
  padding: 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid #eaefec;
  background: #fff;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.85rem;
}
.legal-footer a { color: #6b7f74; text-decoration: none; font-weight: 500; }
.legal-footer a:hover { color: #1f7a4c; }

/* Angebot – öffentliche Annahme/Ablehnung */
.quote-response-page .legal-main { max-width: 480px; margin: 0 auto; }
.quote-response-box {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #eaefec;
  box-shadow: 0 8px 30px rgba(21, 32, 25, 0.08);
  text-align: center;
}
.quote-response-box h1 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 800; }
.quote-meta { text-align: left; background: #f8faf9; padding: 1rem; border-radius: 8px; margin: 1rem 0; line-height: 1.6; }
.quote-response-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.quote-response-form { text-align: left; margin-top: 1rem; }
.quote-response-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  font-family: inherit;
}
.quote-result.success { color: #1f7a4c; }
.quote-result.error { color: #dc2626; }
.quote-response-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.quote-response-box .btn-primary { background: #1f7a4c; color: #fff; }
.quote-response-box .btn-ghost { background: #f0f4f2; color: #3d4f45; }
.quote-response-box .btn-outline { background: #fff; border: 1px solid #dce5e0; }
.quote-response-box .btn-block { width: 100%; }
.quote-response-box .badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.quote-response-box .badge-angenommen { background: #e6f4ec; color: #1f7a4c; }
.quote-response-box .badge-abgelehnt { background: #fef2f2; color: #dc2626; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 2.5rem 1.75rem; min-height: auto; }
  .login-hero h1 { font-size: 1.5rem; }
  .login-features { display: none; }
  .login-form-wrap { box-shadow: none; border: none; background: transparent; padding: 1.5rem; }
}
