/* terbeck.eu – Startseite, Unterseiten, Fehlerseiten */

body { min-height: 100vh; min-height: 100svh; overflow-x: hidden; }

/* ---------- Himmel ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(76, 141, 255, .22), transparent 60%),
    linear-gradient(180deg, var(--nebel) 0%, #EAF0FB 55%, #D9E5FB 100%);
  transition: opacity .6s var(--ease);
}
.sky-night { opacity: 0; background:
    radial-gradient(90% 60% at 70% 100%, rgba(47, 107, 255, .28), transparent 65%),
    linear-gradient(180deg, #040915 0%, #08122A 50%, #0D1A3A 100%); }
:root[data-theme="dark"] .sky-night { opacity: 1; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .sky-night { opacity: 1; } }

.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.orb-1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -18vmax; background: radial-gradient(circle, rgba(76, 141, 255, .45), transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
.orb-2 { width: 38vmax; height: 38vmax; right: -10vmax; top: 4vmax; background: radial-gradient(circle, rgba(47, 107, 255, .30), transparent 70%); animation: drift2 32s ease-in-out infinite alternate; }
.orb-3 { width: 30vmax; height: 30vmax; left: 30vw; top: 30vh; background: radial-gradient(circle, rgba(140, 180, 255, .30), transparent 70%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 8vh, 0) scale(.92); } }

#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
:root[data-theme="dark"] #stars { opacity: 1; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] #stars { opacity: 1; } }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 18px;
}
.topbar .mark { width: 36px; opacity: .9; transition: opacity .3s, transform .5s var(--spring); }
.topbar .mark:hover { opacity: 1; transform: scale(1.06); }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--spring), color .2s, background .2s;
}
.round-btn:hover { transform: scale(1.08); color: var(--accent); text-decoration: none; }
.round-btn .ic { width: 18px; height: 18px; }

/* ---------- Startseite ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px calc(clamp(190px, 24.9vw, 48vh) + 40px);
  justify-content: center;
  text-align: center;
}
.wordmark {
  margin: 0;
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(17px, 2.3vw, 28px);
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--text);
  padding-left: .06em; /* optischer Ausgleich für letter-spacing */
  display: flex; flex-wrap: wrap; justify-content: center;
}
.wordmark span { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); animation: letter 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 32ms + 250ms); }
.wordmark span.t { color: var(--logo-t); }
.wordmark span.dot { margin: 0 .35em; }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.tagline {
  margin: 18px 0 0;
  font-family: var(--brand);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: .05em;
  color: var(--text-3);
  opacity: 0; animation: fade 1s var(--ease) 1s forwards;
}
.rule { width: 0; height: 2px; margin: 18px auto 0; background: var(--logo-t); border-radius: 2px; animation: rule 1.2s var(--ease) .9s forwards; }
@keyframes rule { to { width: 32px; } }
@keyframes fade { to { opacity: 1; } }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 38px; max-width: 720px; }

/* Freier HTML-Inhalt der Startseite */
.home-html {
  margin-top: 34px; max-width: 680px; width: 100%;
  color: var(--text-2); font-size: 16px; line-height: 1.65;
  opacity: 0; animation: fade 1s var(--ease) 1.2s forwards;
  overflow-wrap: anywhere;
}
.home-html > * + * { margin-top: 12px; }
.home-html h1, .home-html h2, .home-html h3 { color: var(--text); line-height: 1.25; margin: 0; }
.home-html p { margin: 0; }
.home-html a { color: var(--accent); }
.home-html ul, .home-html ol { text-align: left; display: inline-block; margin: 0; padding-left: 22px; }
.home-html img, .home-html video, .home-html iframe { max-width: 100%; height: auto; border: 0; border-radius: 14px; }
.no-anim .home-html { opacity: 1; animation: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  animation: up .8s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 1.2s);
  transition: transform .4s var(--spring), box-shadow .3s, border-color .3s;
}
.chip:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.chip .ic { width: 17px; height: 17px; color: var(--accent); }
.chip .lock { width: 13px; height: 13px; color: var(--text-3); }
@keyframes up { to { opacity: 1; transform: none; } }

/* Haus fährt beim Laden hoch */
.home .house { animation: rise 1.6s var(--ease) both; }
.home .house-glow { transition-delay: 1.4s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Webmail ---------- */
.wm {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 90px 16px calc(clamp(190px, 24.9vw, 48vh) + 30px);
}
.wm-card {
  width: min(400px, 100%); padding: 34px 28px 22px; text-align: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: 26px;
  -webkit-backdrop-filter: saturate(180%) blur(26px); backdrop-filter: saturate(180%) blur(26px);
  box-shadow: var(--shadow-lg);
  animation: up .8s var(--ease) .1s both;
}
.wm-badge {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--hellblau), var(--blau));
  box-shadow: 0 12px 28px -10px rgba(47, 107, 255, .75);
  animation: badge .8s var(--spring) .25s both;
}
.wm-badge .ic { width: 30px; height: 30px; }
@keyframes badge { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
.wm-title { margin: 0; font-family: var(--brand); font-weight: 400; font-size: 24px; letter-spacing: .3em; padding-left: .3em; }
.wm-sub { margin: 8px 0 22px; color: var(--text-2); font-size: 14.5px; }
.wm-alert { display: flex; align-items: flex-start; gap: 8px; text-align: left; animation: shake .5s var(--ease); }
.wm-alert .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wm-field {
  position: relative; display: flex; align-items: center; margin-bottom: 10px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.wm-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wm-ic { width: 44px; display: grid; place-items: center; color: var(--text-3); flex: none; transition: color .2s; }
.wm-field:focus-within .wm-ic { color: var(--accent); }
.wm-ic .ic { width: 18px; height: 18px; }
.wm-field input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 0 12px 0 0; }
.wm-eye { width: 44px; height: 44px; border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.wm-eye:hover, .wm-eye.on { color: var(--accent); }
.wm-eye .ic { width: 18px; height: 18px; }
.wm-check { justify-content: flex-start; margin: 8px 0 18px 4px; }
.wm-btn { position: relative; height: 50px; border-radius: 14px; font-size: 16px; box-shadow: 0 10px 24px -12px rgba(47, 107, 255, .9); }
.wm-btn:disabled { cursor: progress; }
.wm-spin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; }
.busy .wm-spin { opacity: 1; }
.busy .wm-btn-t { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.wm-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.wm-foot span, .wm-foot a { display: inline-flex; align-items: center; gap: 6px; }
.wm-foot .ic { width: 14px; height: 14px; }
.wm-foot a { font-size: 13.5px; font-weight: 500; }
@media (max-height: 760px) {
  .webmail .house { height: clamp(120px, 16vw, 26vh); }
  .wm { padding-top: 76px; padding-bottom: calc(clamp(120px, 16vw, 26vh) + 56px); }
  .wm-card { padding-top: 26px; }
  .wm-badge { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 12px; }
  .wm-badge .ic { width: 26px; height: 26px; }
}

/* ---------- made by OTIX (unten links) ---------- */
.topbar .round-btn { margin-left: auto; }
.sub-bar .crumb a { color: inherit; text-decoration: none; }
.sub-bar .crumb a:hover { color: var(--accent); }
.madeby {
  position: fixed; z-index: 6;
  left: clamp(16px, 4vw, 40px); bottom: max(14px, env(safe-area-inset-bottom));
  display: block; height: 46px; aspect-ratio: 1024 / 688;
  filter: drop-shadow(0 2px 10px rgba(5, 11, 30, .35));
  transition: transform .5s var(--spring), filter .3s;
}
.madeby svg { display: block; width: 100%; height: 100%; overflow: visible; }
.madeby:hover { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 4px 16px rgba(76, 141, 255, .45)); }
.mb-n { fill: #F2F5FB; }
.mb-o { stroke: #F2F5FB; }
.mb-t { fill: #4C8DFF; }
.mb-o, .mb-t, .mb-n, .mb-text { transform-box: fill-box; }

/* Aufbau beim Laden: O zeichnet sich, T fährt ein, I und X folgen, dann „made by“ */
.mb-o { stroke-dasharray: 1128; stroke-dashoffset: 1128; transform: rotate(-90deg); transform-origin: center; animation: mb-draw 1.1s var(--ease) .3s forwards; }
.mb-tbar { transform: scaleX(0); transform-origin: left center; animation: mb-grow-x .6s var(--ease) .9s forwards; }
.mb-tstem { transform: scaleY(0); transform-origin: center top; animation: mb-grow-y .5s var(--ease) 1.25s forwards; }
.mb-i, .mb-x1, .mb-x2 { opacity: 0; transform: translateY(40%); animation: mb-up .55s var(--spring) forwards; }
.mb-i { animation-delay: 1.45s; }
.mb-x1 { animation-delay: 1.58s; }
.mb-x2 { animation-delay: 1.7s; }
.mb-text { opacity: 0; transform: translateY(-30%); animation: mb-up .7s var(--ease) 1.9s forwards; }
@keyframes mb-draw { to { stroke-dashoffset: 0; } }
@keyframes mb-grow-x { to { transform: scaleX(1); } }
@keyframes mb-grow-y { to { transform: scaleY(1); } }
@keyframes mb-up { to { opacity: 1; transform: none; } }

/* Beim Darüberfahren dreht das O einmal, der T-Balken federt */
.madeby:hover .mb-o { animation: mb-spin .9s var(--ease); stroke-dashoffset: 0; }
.madeby:hover .mb-tbar { animation: mb-bounce .6s var(--spring); transform: none; }
@keyframes mb-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes mb-bounce { 0% { transform: scaleX(1); } 40% { transform: scaleX(.86); } 100% { transform: scaleX(1); } }

.no-anim .madeby *, .madeby.still * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
.no-anim .mb-t, .no-anim .mb-n, .no-anim .mb-text { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .madeby * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .mb-t, .mb-n, .mb-text { transform: none !important; }
}
@media (max-width: 640px) {
  .madeby { height: 38px; }
}

/* ---------- Impressum ---------- */
.imprint {
  position: fixed; z-index: 6; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; align-items: center;
  width: min(360px, calc(100vw - 32px));
}
.imprint-toggle {
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08);
  color: rgba(242, 245, 251, .72);
  font-family: var(--brand); font-size: 11px; letter-spacing: .3em;
  padding: 8px 14px 8px 18px; border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .2s, background .2s;
}
.imprint-toggle:hover, .imprint.open .imprint-toggle { color: #fff; background: rgba(255, 255, 255, .16); }
.imprint-panel {
  display: grid; grid-template-rows: 0fr; width: 100%;
  transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease), transform .5s var(--spring);
  opacity: 0; transform: translateY(10px) scale(.98);
}
.imprint.open .imprint-panel { grid-template-rows: 1fr; opacity: 1; transform: none; }
.imprint-inner { overflow: hidden; }
.imprint-inner > * { margin-left: 22px; margin-right: 22px; }
.imprint-panel > .imprint-inner {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow-lg);
  margin-bottom: 12px;
  text-align: left;
}
.imprint-label { font-family: var(--brand); font-size: 10.5px; letter-spacing: .24em; color: var(--accent); margin-top: 20px; }
.imprint address { font-style: normal; font-size: 15px; line-height: 1.65; margin-top: 10px; }
.imprint-note { font-size: 12px; color: var(--text-3); margin-top: 12px; margin-bottom: 20px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Fehlerseite ---------- */
.err { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px 72px; }
.err-card {
  width: min(440px, 100%); text-align: center;
  padding: 40px 32px 32px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 24px;
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow-lg);
}
.err-logo { display: inline-block; width: 50px; margin-bottom: 18px; }
.err-code { font-family: var(--brand); font-size: 13px; letter-spacing: .4em; color: var(--accent); padding-left: .4em; }
.err h1 { font-size: 26px; letter-spacing: -.02em; margin: 8px 0 8px; }
.err p { color: var(--text-2); margin: 0 auto; max-width: 34ch; }
.err-ip { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-size: 13px; color: var(--text-2); }
.err-ip .ic { width: 16px; height: 16px; }
.err-ip code { color: var(--text); }
.err-home { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-weight: 500; font-size: 14px; }
.err-home .ic { width: 16px; height: 16px; }
.is-error { background: var(--bg); }
.err-card { width: min(470px, 100%); animation: up .7s var(--ease) both; }
.err-badge { position: relative; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; animation: badge .8s var(--spring) .15s both; }
.err-badge::after { content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid currentColor; opacity: 0; animation: ring 2.6s ease-out 1s infinite; }
.err-badge .ic { width: 34px; height: 34px; stroke-width: 1.6; }
.err-badge.red { background: var(--red-soft); color: var(--red); }
.err-badge.orange { background: var(--orange-soft); color: var(--orange); }
.err-badge.blue { background: var(--accent-soft); color: var(--accent); }
@keyframes badge { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes ring { 0% { opacity: .5; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.err-vpn { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--fill); text-align: left; animation: up .7s var(--ease) .25s both; }
.err-vpn-h { display: flex; gap: 12px; align-items: flex-start; }
.err-vpn-h b { display: block; font-size: 15px; }
.err-vpn-h small { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.err-vpn-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 107, 255, .7); }
.err-vpn-ic .ic { width: 22px; height: 22px; }
.err-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.err-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.err-steps li span { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.err-steps li span .ic { width: 16px; height: 16px; }
.err-steps a { font-weight: 500; }
.err-retry { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 14px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: filter .2s, transform .3s var(--spring); }
.err-retry:hover { filter: brightness(1.08); }
.err-retry:active { transform: scale(.98); }
.err-retry .ic { width: 18px; height: 18px; }
.err-card > .err-retry { margin-top: 22px; }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.err-links small { width: 100%; color: var(--text-3); font-size: 12.5px; }
.err-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--fill); color: var(--text); font-size: 13.5px; font-weight: 500; }
.err-links a:hover { background: var(--fill-2); text-decoration: none; }
.err-links .ic { width: 15px; height: 15px; color: var(--accent); }
.house-small { height: clamp(110px, 18vw, 30vh); opacity: .95; }

/* ---------- Unterseiten (Gate) ---------- */
.sub { background: var(--bg); }
.sub-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 12px clamp(16px, 4vw, 32px);
  background: var(--glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.sub-bar .mark { width: 30px; flex: none; }
.sub-bar .crumb { font-family: var(--brand); letter-spacing: .14em; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-bar .crumb b { color: var(--text); font-weight: 400; }
.sub-bar .sp { flex: 1; }
.sub-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.sub-user a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--text); font-weight: 500; }
.sub-user a:hover { background: var(--fill-2); text-decoration: none; }
.sub-user .ic { width: 15px; height: 15px; }
.sub-main { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px 96px; }
.sub-head { margin-bottom: 28px; animation: up .7s var(--ease) both; }
.sub-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.sub-head p { color: var(--text-2); margin: 10px 0 0; font-size: 17px; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); animation: up .7s var(--ease) .08s both; }
.prose { padding: clamp(22px, 4vw, 40px); font-size: 16.5px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { letter-spacing: -.015em; line-height: 1.25; margin: 1.6em 0 .5em; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose pre { background: var(--fill); padding: 14px 16px; border-radius: 12px; overflow: auto; }
.prose code { background: var(--fill); padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Dateiliste */
.fbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; }
.path a, .path span { padding: 4px 8px; border-radius: 8px; color: var(--text-2); }
.path a:hover { background: var(--fill); text-decoration: none; color: var(--text); }
.path span:last-child { color: var(--text); font-weight: 600; }
.path .sep { padding: 0; color: var(--text-3); }
.factions { display: flex; gap: 8px; flex-wrap: wrap; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--fill); color: var(--text); font-size: 13.5px; font-weight: 500; transition: background .2s, transform .3s var(--spring); }
.fbtn:hover { background: var(--fill-2); text-decoration: none; }
.fbtn:active { transform: scale(.96); }
.fbtn.primary { background: var(--accent); color: var(--on-accent); }
.fbtn.primary:hover { filter: brightness(1.08); }
.fbtn .ic { width: 16px; height: 16px; }
.flist { list-style: none; margin: 0; padding: 6px; }
.flist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .2s; animation: up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.flist li:hover { background: var(--fill); }
.ficon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ficon.dir { background: rgba(245, 158, 11, .14); color: var(--orange); }
.ficon .ic { width: 20px; height: 20px; }
.fname { flex: 1; min-width: 0; }
.fname a { color: var(--text); font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fname small { color: var(--text-3); font-size: 12.5px; }
.fops { display: flex; gap: 4px; opacity: .55; transition: opacity .2s; }
.flist li:hover .fops { opacity: 1; }
.fops a, .fops button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.fops a:hover, .fops button:hover { background: var(--fill-2); color: var(--text); }
.fops .ic { width: 17px; height: 17px; }
.fops .danger:hover { color: var(--red); background: var(--red-soft); }
.fempty { padding: 56px 20px; text-align: center; color: var(--text-3); }
.fempty .ic { width: 36px; height: 36px; margin: 0 auto 10px; }
.drop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(47, 107, 255, .12); border: 3px dashed var(--accent); opacity: 0; pointer-events: none; transition: opacity .2s; font-size: 20px; font-weight: 600; color: var(--accent); }
.drop.on { opacity: 1; }
.progress { height: 3px; background: var(--accent); width: 0; transition: width .2s; border-radius: 3px; }

/* Login auf Unterseiten */
.gate-login { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px 72px; }
.gate-card { width: min(380px, 100%); padding: 34px 28px 28px; background: var(--glass); border: 1px solid var(--line); border-radius: 24px; -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-lg); animation: up .7s var(--ease) both; }
.gate-card .err-logo { display: block; margin: 0 auto 14px; width: 46px; }
.gate-card h1 { font-size: 22px; text-align: center; margin: 0 0 4px; letter-spacing: -.02em; }
.gate-card .sub-t { text-align: center; color: var(--text-2); font-size: 14px; margin: 0 0 22px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin: 0 0 6px 4px; }
.field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin: 6px 0 18px 4px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.wide-btn { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; cursor: pointer; transition: filter .2s, transform .3s var(--spring); }
.wide-btn:hover { filter: brightness(1.08); }
.wide-btn:active { transform: scale(.98); }
.alert { padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; background: var(--red-soft); color: var(--red); }
.alert.ok { background: var(--green-soft); color: var(--green); }
.gate-foot { text-align: center; margin-top: 16px; font-size: 13px; }

.no-anim *, .no-anim *::before { animation-duration: .01ms !important; animation-delay: 0s !important; }
.no-anim .orb { animation: none !important; }

@media (max-width: 640px) {
  .fops { opacity: 1; }
  .sub-user .name { display: none; }
  .fbar { flex-direction: column; align-items: stretch; }
}
