/* Sol Living — Portal Login
 * Editierbar für nicht-Entwickler:
 *   • Farben in :root unten
 *   • Hero-Bild austauschen: assets/img/hero.jpg ersetzen
 *   • Logo austauschen: assets/img/logo.png ersetzen
 *   • Texte/Telefon: in index.html
 */

:root {
  --bg:               #0A0506;
  --bg-card:          rgba(18,9,10,0.94);
  --text:             #EDE6E4;
  --text-soft:        #BDB5B0;
  --text-mute:        #948984;
  --text-faint:       #5C5450;
  --accent:           #FF5246;
  --accent-deep:      #C9342B;
  --accent-glow:      rgba(229,57,53,0.30);
  --border:           rgba(255,247,245,0.15);
  --border-soft:      rgba(255,247,245,0.08);
  --border-strong:    rgba(229,57,53,0.40);
}

* { margin:0; padding:0; box-sizing:border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ───── Hero & Atmosphäre ───── */
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    /* Bild kommt drüber wenn vorhanden (CSS-File-Test) */
    radial-gradient(ellipse at 20% 30%, rgba(229,57,53,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(58,12,16,0.6) 0%, transparent 70%),
    var(--bg);
}
.hero-bg.has-photo {
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.65) saturate(0.9);
}
.hero-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,5,6,0.55) 0%, rgba(10,5,6,0.75) 60%, rgba(10,5,6,0.92) 100%),
    linear-gradient(90deg,  rgba(10,5,6,0.70) 0%, rgba(10,5,6,0.35) 50%, rgba(10,5,6,0.60) 100%);
}
.sun-glow-outer {
  position: absolute; top: -25%; right: -8%;
  width: 1100px; height: 1100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.22) 0%, transparent 60%);
  filter: blur(80px); pointer-events: none; z-index: 2;
}
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───── Typografie-Helfer ───── */
.display     { font-family:'Inter',sans-serif; font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.serif-italic{ font-family:'Instrument Serif',serif; font-style: italic; font-weight: 400; }
.mono        { font-family:'JetBrains Mono',monospace; font-feature-settings:'tnum'; }

/* ───── Layout ───── */
.container { position: relative; min-height: 100vh; display: flex; flex-direction: column; z-index: 4; }
.topbar    { display: flex; align-items: center; justify-content: space-between; padding: 32px 48px; position: relative; z-index: 10; }
.logo-img  { height: 32px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(229,57,53,0.3)); }

.main {
  flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px;
  padding: 40px 80px 60px; align-items: center;
  max-width: 1700px; margin: 0 auto; width: 100%;
}

/* ───── Brand-Side ───── */
.brand-side h1 { font-size: clamp(48px, 7vw, 116px); color: #F5F1EE; margin-bottom: 32px; }
.brand-side h1 .accent {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em; display: inline-block;
}
.brand-side .body-text {
  font-size: 17px; line-height: 1.65; color: var(--text-soft);
  max-width: 580px; margin-bottom: 20px;
}
.brand-side .body-text strong { color: #F5F1EE; font-weight: 600; }
.brand-side .body-text em     { font-family:'Instrument Serif',serif; font-style:italic; color:#D6CFCC; font-weight:400; }

/* ───── USPs ───── */
.usps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: 0;
  margin: 36px 0 32px; padding: 24px 0;
  background: linear-gradient(135deg, rgba(20,8,10,0.55), rgba(15,6,7,0.4));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(229,57,53,0.25);
  border-bottom: 1px solid rgba(229,57,53,0.12);
  max-width: 720px; position: relative;
}
.usps::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(229,57,53,0.6);
}
.usp-card     { padding: 0 22px; display: flex; flex-direction: column; gap: 10px; }
.usp-card:first-child { padding-left: 4px; }
.usp-card:last-child  { padding-right: 4px; }
.usp-divider  { width: 1px; background: rgba(255,247,245,0.08); margin: 4px 0; }
.usp-icon-wrap{ width: 28px; height: 28px; display:flex; align-items:center; justify-content:center; color: #FF6B5C; margin-bottom: 2px; }
.usp-icon     { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(229,57,53,0.4)); }
.usp-title    { font-size: 14px; font-weight: 700; color: #F5F1EE; line-height: 1.2; }
.usp-text     { font-size: 12px; line-height: 1.5; color: var(--text-mute); }
.usp-text strong { color: #D6CFCC; font-weight: 600; }

/* ───── Tagline ───── */
.tagline { border-left: 3px solid var(--accent-deep); padding-left: 18px; margin: 28px 0 32px; max-width: 580px; }
.tagline-text   { font-size: 19px; color: #F5F1EE; line-height: 1.4; }
.tagline-accent { font-family:'Instrument Serif',serif; font-style: italic; color: #FF6B5C; font-weight: 400; }

/* ───── Login-Card ───── */
.login-side { display: flex; align-items: center; justify-content: center; position: relative; z-index: 5; }
.sun {
  position: absolute; top: -45%; right: -25%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #FF6B5C 0%, #E53935 18%, #8B1A14 38%, #3D0908 58%, transparent 78%);
  filter: blur(40px); opacity: 0.55; pointer-events: none; z-index: 3;
}
.login-box {
  width: 100%; max-width: 520px; padding: 40px 44px;
  background: linear-gradient(180deg, var(--bg-card), rgba(10,5,6,0.98));
  border: 1px solid var(--border-strong); border-radius: 4px;
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 0 0 1px rgba(229,57,53,0.05),
    0 30px 80px -20px var(--accent-glow),
    0 60px 120px -40px rgba(0,0,0,0.6);
  position: relative; z-index: 2;
}
.login-box::before {
  content: ''; position: absolute; inset: 0; border-radius: 4px; padding: 1px;
  background: linear-gradient(135deg, rgba(229,57,53,0.4), transparent 50%, rgba(229,57,53,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.login-title { font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(32px, 5vw, 46px); color: #F5F1EE; margin-bottom: 8px; }
.login-title-accent { font-family:'Instrument Serif',serif; font-style:italic; font-weight:400; color: var(--accent); }
.login-sub   { font-size: 13px; color: var(--text-mute); margin-bottom: 28px; line-height: 1.5; }

.field { margin-bottom: 22px; position: relative; }
.field-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field-label  { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; color: #7A6F6B; transition: color 0.15s; }
.field-label.active { color: var(--accent); }
.field-link   { font-size: 11px; color: var(--text-mute); text-decoration: none; transition: color 0.15s; }
.field-link:hover { color: #FF6B5C; }
.field-input  {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0; font-family:'Inter',sans-serif; font-size: 16px; /* 16px für mobile = kein Auto-Zoom */
  color: #F5F1EE; outline: none; transition: border-color 0.2s;
}
.field-input.active  { border-bottom-color: var(--accent-deep); }
.field-input:focus   { border-bottom-color: var(--accent); }
.field-input::placeholder { color: var(--text-faint); }
.field-eye    { position: absolute; right: 0; bottom: 8px; background: transparent; border: none; color: #7A6F6B; cursor: pointer; padding: 8px; transition: color 0.15s; }
.field-eye:hover { color: #EDE6E4; }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; cursor: pointer; user-select: none; }
.checkbox-row input { display: none; }
.checkbox-box { width: 18px; height: 18px; border: 1px solid rgba(255,247,245,0.25); border-radius: 3px; background: rgba(255,247,245,0.03); display:flex; align-items:center; justify-content:center; transition: all 0.15s; flex-shrink: 0; }
.checkbox-row input:checked + .checkbox-box { background: var(--accent-deep); border-color: var(--accent-deep); }
.checkbox-row input:checked + .checkbox-box::after { content: '✓'; color: white; font-size: 12px; font-weight: bold; }
.checkbox-label { font-size: 13px; color: var(--text-soft); }

.login-btn {
  width: 100%; padding: 18px; min-height: 56px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: white; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
  box-shadow:
    0 0 0 1px rgba(255,82,70,0.3),
    0 8px 24px -6px rgba(229,57,53,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  position: relative; overflow: hidden;
}
.login-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FF6B5C, #E53935);
  box-shadow:
    0 0 0 1px rgba(255,82,70,0.4),
    0 12px 32px -6px rgba(229,57,53,0.7),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.login-btn:disabled { opacity: 0.6; cursor: wait; }
.login-btn::before { content:''; position:absolute; inset:0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transform: translateX(-100%); transition: transform 0.6s; }
.login-btn:hover:not(:disabled)::before { transform: translateX(100%); }

.login-error {
  display: none; margin-top: 12px;
  font-size: 13px; color: #FFB4AC;
  background: rgba(229,57,53,0.10); border: 1px solid rgba(229,57,53,0.30);
  padding: 10px 14px; border-radius: 4px;
}
.login-error.visible { display: block; }

/* ───── Bottom-Strip ───── */
.bottom-strip {
  border-top: 1px solid rgba(255,247,245,0.06);
  padding: 18px 80px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; z-index: 5;
  background: rgba(10,5,6,0.6); backdrop-filter: blur(20px);
}
.bottom-strip a { color: var(--text-mute); text-decoration: none; transition: color 0.15s; }
.bottom-strip a:hover { color: #EDE6E4; }
.bottom-strip .links { display: flex; gap: 28px; flex-wrap: wrap; }

/* ───── Mobile (Tablets+ Smartphones) ───── */
@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
  .login-side { order: -1; }
  .usps { max-width: 100%; }
}
@media (max-width: 720px) {
  .topbar { padding: 20px 24px; }
  .logo-img { height: 28px; }
  .main { padding: 16px 20px 28px; gap: 28px; }
  .brand-side h1 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 22px; }
  .brand-side .body-text { font-size: 15px; }
  .usps {
    grid-template-columns: 1fr; padding: 16px 14px; gap: 0;
  }
  .usp-card { padding: 14px 4px; }
  .usp-divider { width: 100%; height: 1px; margin: 0; }
  .login-box { padding: 28px 22px; max-width: 100%; }
  .field-input { font-size: 16px; padding: 14px 0; }   /* iOS Auto-Zoom-Schutz */
  .login-btn   { min-height: 52px; padding: 16px; }
  .bottom-strip {
    padding: 16px 20px; flex-direction: column; gap: 10px; align-items: flex-start;
  }
  .bottom-strip .links { gap: 14px; }
  .sun { width: 240px; height: 240px; top: -30%; right: -25%; }
  .sun-glow-outer { width: 700px; height: 700px; }
  .grain { opacity: 0.35; }   /* schwächer auf mobile, Performance */
  .tagline-text { font-size: 17px; }
}
@media (max-width: 380px) {
  .brand-side h1 { font-size: 38px; }
  .login-title { font-size: 30px; }
}

/* ───── Reduced motion ───── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
