/* ===================================================================
   COMMUNITY-E  ·  Öffentliche Tür in die Win³ Community (System E)
   Dieselbe Sprache wie Startseite und Bewerbung: warmes Near-Black,
   Newsreader als Serif, ein Amber-Akzent. Linksbündig und asymmetrisch
   wie eine Einladung, keine Kartenraster.
   ---------------------------------------------------------------
   Alles unter `.wc-e` gescopt. Die fixierten Hintergrund-Layer
   (.home-e-bg/-glow/-grain) kommen aus home-e.css und werden mitbenutzt,
   der Body-Schalter ist ein eigener (wc-e-active).
   =================================================================== */

.wc-e {
  --bg:        #0e0d0b;
  --surface:   #17150f;
  --border:    rgba(232,180,103,0.16);
  --border-2:  rgba(232,180,103,0.30);

  --text:   #efe9df;
  --text-2: #bcb3a2;
  --text-3: #8f887b;

  --amber:        #e8b467;
  --amber-bright: #f2c778;
  --ink:          #1a1509;

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Albert Sans', system-ui, sans-serif;
  --hand:  'Allison', cursive;

  --radius-btn: 11px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  z-index: 1;
  font-family: var(--sans);
  color: var(--text);
}

body.wc-e-active #app { background: transparent; }
body.wc-e-active #site-footer { position: relative; z-index: 1; }

/* System E bringt eigenes Grain/Glow mit -> globale SPA-Effektebenen aus */
body.wc-e-active #particles-bg,
body.wc-e-active #particles-fg,
body.wc-e-active #glow,
body.wc-e-active #cursor-ring,
body.wc-e-active .noise-overlay { display: none !important; }

.wc-e .wc-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ===== Typo ===== */

.wc-e .wc-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

.wc-e em { font-style: italic; color: var(--amber); }

.wc-e .wc-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text);
}

.wc-e .wc-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}

.wc-e .wc-h2-lg {
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.wc-e .wc-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  color: var(--text-2);
  margin: 0 0 16px;
  max-width: 32ch;
}

.wc-e .wc-facts {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 0 0 34px;
  max-width: 46ch;
}

.wc-e .wc-link {
  display: inline-block;
  /* Tippfläche mobil ~44px, die Linie bleibt dicht am Text */
  padding: 12px 0 4px;
  margin-top: -12px;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(232,180,103,0.35);
  transition: border-color 0.25s var(--ease);
}
.wc-e .wc-link:hover { border-color: var(--amber); }

/* ===== Buttons ===== */

.wc-e .wc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.wc-e .wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.wc-e .wc-btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.wc-e .wc-btn-primary:hover { background: var(--amber-bright); border-color: var(--amber-bright); }

.wc-e .wc-btn-ghost {
  padding-left: 0;
  padding-right: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-2);
}
.wc-e .wc-btn-ghost:hover { color: var(--amber); }

.wc-e .wc-btn:focus-visible,
.wc-e .wc-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* ===== Hero ===== */

.wc-e .wc-hero { padding: clamp(40px, 9vh, 110px) 0 clamp(64px, 11vh, 130px); }

.wc-e .wc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.wc-e .wc-hero-art {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.wc-e .wc-venn { display: block; width: 100%; height: auto; overflow: visible; }

.wc-e .wc-venn .wc-ring {
  fill: rgba(232,180,103,0.035);
  stroke: rgba(232,180,103,0.55);
  stroke-width: 1;
}

.wc-e .wc-venn .wc-core { fill: var(--amber); }

.wc-e .wc-venn text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  fill: var(--text-2);
}

/* ===== Was dich erwartet ===== */

.wc-e .wc-inside {
  padding: clamp(56px, 10vh, 120px) 0;
  border-top: 1px solid var(--border);
}

.wc-e .wc-list {
  list-style: none;
  margin: 28px 0 0 auto;
  padding: 0;
  max-width: 860px;
}

.wc-e .wc-item {
  display: grid;
  grid-template-columns: clamp(64px, 9vw, 120px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 4vh, 40px) 0;
  border-bottom: 1px solid var(--border);
}
.wc-e .wc-item:first-child { border-top: 1px solid var(--border); }

.wc-e .wc-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: var(--amber);
}

.wc-e .wc-item p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 14px;
  max-width: 58ch;
}

.wc-e .wc-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.wc-e .wc-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--amber);
}

/* ===== Wer dahinter steht ===== */

.wc-e .wc-person { padding: clamp(56px, 10vh, 120px) 0; }

.wc-e .wc-person-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.wc-e .wc-polaroid {
  position: relative;
  margin: 0;
  max-width: 340px;
  padding: 12px 12px 48px;
  background: var(--text);
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.75);
}
.wc-e .wc-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.wc-e .wc-polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-family: var(--hand);
  font-size: 32px;
  line-height: 1;
  color: #2c2726;
}

.wc-e .wc-person p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 48ch;
  margin: 0 0 24px;
}

/* ===== Stimmen ===== */

.wc-e .wc-voices {
  padding: clamp(56px, 10vh, 120px) 0;
  border-top: 1px solid var(--border);
}

.wc-e .wc-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  margin-top: 28px;
}

.wc-e .wc-quote {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-2);
}
.wc-e .wc-quote.is-lead { grid-column: 1 / -1; }

.wc-e .wc-quote p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 18px;
}
.wc-e .wc-quote.is-lead p {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.42;
  max-width: 36em;
}

.wc-e .wc-quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-3);
}
.wc-e .wc-quote img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.wc-e .wc-quote strong {
  display: block;
  font-weight: 600;
  color: var(--text-2);
}

/* ===== Beitreten ===== */

.wc-e .wc-join {
  padding: clamp(64px, 12vh, 140px) 0 clamp(80px, 14vh, 160px);
  border-top: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.wc-e .wc-join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.wc-e .wc-join p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 40ch;
  margin: 0 0 18px;
}
.wc-e .wc-join .wc-small { font-size: 16px; color: var(--text-3); }
.wc-e .wc-join .wc-small a { color: var(--amber); text-decoration: none; }
.wc-e .wc-join .wc-small a:hover { text-decoration: underline; }

/* Das Formular kommt aus js/auth.js (renderLoginForm, embedded) */
.wc-e .login-embedded {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}

.wc-e .login-intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 20px;
}
.wc-e .login-intro strong { color: var(--text); font-weight: 600; }

.wc-e .login-field { margin-bottom: 18px; }

.wc-e .login-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.wc-e .login-form-wrapper .form-input {
  box-sizing: border-box;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 16px; /* nie darunter: Safari zoomt sonst beim Fokus hinein */
  line-height: 1.5;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  box-shadow: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.wc-e .login-form-wrapper .form-input::placeholder { color: var(--text-3); opacity: 0.75; }
.wc-e .login-form-wrapper .form-input:hover { border-color: var(--border-2); }
.wc-e .login-form-wrapper .form-input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(232,180,103,0.04);
}

.wc-e .login-form-wrapper .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius-btn);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.wc-e .login-form-wrapper .btn::before,
.wc-e .login-form-wrapper .btn::after { display: none; }
.wc-e .login-form-wrapper .btn:hover:not(:disabled) { background: var(--amber-bright); border-color: var(--amber-bright); }
.wc-e .login-form-wrapper .btn:disabled { opacity: 0.55; cursor: default; }
.wc-e .login-form-wrapper .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wc-e .login-consent {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}
.wc-e .login-consent a { color: var(--text-2); }

.wc-e .login-message { font-size: 15px; line-height: 1.5; }

.wc-e .login-form-wrapper .back-btn { color: var(--text-3) !important; padding: 0; }

/* ===== Einstieg: eine orchestrierte Bewegung beim Laden ===== */

@media (prefers-reduced-motion: no-preference) {
  .wc-e .wc-rise {
    opacity: 0;
    transform: translateY(14px);
    animation: wcRise 0.9s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
  }

  .wc-e .wc-venn .wc-ring {
    stroke-dasharray: 742;
    stroke-dashoffset: 742;
    animation: wcDraw 1.8s var(--ease) forwards;
  }
  .wc-e .wc-venn .wc-ring:nth-of-type(2) { animation-delay: 0.18s; }
  .wc-e .wc-venn .wc-ring:nth-of-type(3) { animation-delay: 0.36s; }

  .wc-e .wc-venn .wc-core,
  .wc-e .wc-venn text {
    opacity: 0;
    animation: wcFade 0.8s var(--ease) 1.1s forwards;
  }
}

@keyframes wcRise { to { opacity: 1; transform: none; } }
@keyframes wcDraw { to { stroke-dashoffset: 0; } }
@keyframes wcFade { to { opacity: 1; } }

/* ===== Mobil ===== */

@media (max-width: 860px) {
  .wc-e .wc-hero-grid,
  .wc-e .wc-person-grid,
  .wc-e .wc-join-grid { grid-template-columns: 1fr; }

  .wc-e .wc-hero-art { justify-self: start; max-width: 300px; }
  .wc-e .wc-quotes { grid-template-columns: 1fr; }
  .wc-e .wc-polaroid { max-width: 260px; }
  .wc-e .wc-list { margin-left: 0; }
}

@media (max-width: 520px) {
  .wc-e .wc-item { grid-template-columns: 1fr; gap: 8px; }
  .wc-e .wc-actions { align-items: stretch; flex-direction: column; }
  .wc-e .wc-actions .wc-btn-primary { width: 100%; }
  .wc-e .wc-person p,
  .wc-e .wc-join p { font-size: 17px; }
}
