*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-brand:        #1362A4;   /* Blau aus Logo-Figur */
  --color-brand-mid:    #2282CC;   /* Leuchtendes Blau aus Logo-Kreisrand */
  --color-brand-light:  #E1F4FC;   /* Helles Blautürkis aus Logo-Gradient */
  --color-bg:           #EAF3FA;
  --color-surface:      #ffffff;
  --color-border:       rgba(0,0,0,0.1);
  --color-text:         #1a1a2e;
  --color-text-muted:   #5a6a7a;
  --color-text-faint:   #9aaabb;
  --color-teal-bg:      #E1F5EE;
  --color-teal-text:    #0F6E56;
  --color-purple-bg:    #EEEDFE;
  --color-purple-text:  #534AB7;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background-color: #f0f4f8;
  color: #1a1a2e;
}

/* ── Site nav ─────────────────────────────────────── */

.site-nav, .dash-nav {
  background: linear-gradient(135deg, #0F5499 0%, #2282CC 55%, #2BC5B3 100%);
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon-box {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon-box .ti { font-size: 18px; color: rgba(255,255,255,0.9); }

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-title { font-size: 14px; font-weight: 500; color: #ffffff; }
.nav-brand-sub   { font-size: 11px; color: rgba(255,255,255,0.5); }

/* Desktop nav links — hidden on mobile, shown on desktop */
.nav-links {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--color-brand);
  flex-direction: column;
  border-top: 0.5px solid rgba(255,255,255,0.12);
  z-index: 99;
  padding: 6px 0 10px;
}

.nav-links.open { display: flex; }

.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 9px 24px;
  transition: color 0.15s;
}

.nav-links a:hover  { color: #ffffff; }
.nav-links a.active { color: #ffffff; font-weight: 500; }

.nav-logout-wrap {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  margin-top: 4px;
  padding-top: 2px;
}

.btn-nav-logout {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 9px 24px;
  display: block;
  width: 100%;
  text-align: left;
  transition: color 0.15s;
}

.btn-nav-logout:hover { color: rgba(255,255,255,0.75); }

.nav-hamburger {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 6px;
}

.nav-hamburger .ti { font-size: 22px; }

@media (min-width: 640px) {
  .nav-hamburger { display: none; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border-top: none;
    padding: 0;
    z-index: auto;
    gap: 0;
  }

  .nav-links a {
    font-size: 12px;
    padding: 0 12px;
    height: 52px;
    display: flex;
    align-items: center;
  }

  .nav-logout-wrap {
    border-top: none;
    border-left: 0.5px solid rgba(255,255,255,0.2);
    margin-top: 0;
    padding-top: 0;
    padding-left: 16px;
    margin-left: 8px;
  }

  .btn-nav-logout {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    padding: 0;
    width: auto;
  }
}

/* ── Hero band (dashboard) ────────────────────────── */

.hero-band, .dash-hero {
  background: var(--color-bg);
  padding: 28px 24px;
  border-bottom: 0.5px solid var(--color-border);
}

.hero-band h1, .dash-hero h1 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.hero-band p, .dash-hero p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 5px;
}

/* ── Main content (dashboard) ─────────────────────── */

.main-content {
  padding: 24px;
  background: var(--color-surface);
  min-height: calc(100vh - 112px);
}

.dash-watermark {
  position: relative;
}

.dash-watermark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: url('../img/logo.png') no-repeat center center;
  background-size: contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

/* ── Section label ────────────────────────────────── */

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* ── Module card grid ─────────────────────────────── */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .module-grid { grid-template-columns: 1fr; }
}

.module-card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s;
}

.module-card:hover {
  border-color: var(--color-brand-mid);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-box .ti { font-size: 18px; }
.card-icon-blue   { background: var(--color-brand-light); color: var(--color-brand-mid); }
.card-icon-teal   { background: var(--color-teal-bg);     color: var(--color-teal-text); }
.card-icon-purple { background: var(--color-purple-bg);   color: var(--color-purple-text); }

.module-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.module-card-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}

.module-card-link {
  font-size: 11px;
  color: var(--color-brand-mid);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.module-card-link .ti { font-size: 13px; }

/* ── Quick-link cards ─────────────────────────────── */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .quick-grid { grid-template-columns: 1fr; }
}

.quick-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  border: 0.5px solid var(--color-border);
  transition: border-color 0.15s;
}

.quick-card:hover { border-color: var(--color-brand-mid); }

.quick-card .ti    { font-size: 18px; color: var(--color-text-muted); flex-shrink: 0; }
.quick-card-label  { font-size: 12px; font-weight: 500; color: var(--color-text); }
.quick-card-sub    { font-size: 11px; color: var(--color-text-muted); }

/* ── Page wrapper (inner pages) ───────────────────── */

.page-wrap {
  background: var(--color-surface);
  min-height: calc(100vh - 52px - 58px);
}

/* ── Breadcrumb ───────────────────────────────────── */

.breadcrumb {
  padding: 12px 24px;
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid var(--color-border);
}

.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--color-text); }

/* ── Page header ──────────────────────────────────── */

.page-header {
  padding: 24px 24px 0;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
}

.page-header p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Tab bar ──────────────────────────────────────── */

.tab-bar {
  display: flex;
  padding: 0 24px;
  border-bottom: 0.5px solid var(--color-border);
  overflow-x: auto;
  margin-top: 20px;
}

.tab-btn {
  font-size: 13px;
  font-family: inherit;
  padding: 10px 0;
  margin-right: 20px;
  color: var(--color-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -0.5px;
}

.tab-btn:hover  { color: var(--color-text); }
.tab-btn.active { color: var(--color-brand-mid); border-bottom-color: var(--color-brand-mid); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Tab content ──────────────────────────────────── */

.tab-content { padding: 24px; }

.tab-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 14px;
  max-width: 680px;
}

.tab-content h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
  margin-top: 4px;
}

.tab-content a { color: var(--color-brand-mid); }

/* ── Suggestion cards ─────────────────────────────── */

.suggestion-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
  max-width: 680px;
}

.suggestion-card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.15s;
}

.suggestion-card:hover { border-color: var(--color-brand-mid); }

.suggestion-card h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.suggestion-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
  margin-bottom: 0;
}

/* ── Buttons ──────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(to right, #0F5499, #2282CC, #2BC5B3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s;
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  color: var(--color-brand-mid);
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  border-color: var(--color-brand-mid);
  background: var(--color-brand-light);
}

/* ── Downloads table ──────────────────────────────── */

.table-wrapper { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: #f8fafc;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 0.5px solid var(--color-border);
}

.data-table td {
  font-size: 13px;
  color: var(--color-text);
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--color-border);
  vertical-align: middle;
}

.data-table tr:nth-child(even) td { background: #fafbfc; }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
}

.badge-pdf     { background: var(--color-brand-light); color: var(--color-brand-mid); }
.badge-docx    { background: var(--color-teal-bg);     color: var(--color-teal-text); }
.badge-xlsx    { background: var(--color-purple-bg);   color: var(--color-purple-text); }
.badge-pptx    { background: var(--color-brand-light); color: var(--color-brand-mid); }
.badge-odt     { background: var(--color-teal-bg);     color: var(--color-teal-text); }
.badge-zip     { background: #FFF3E0;                  color: #E65100; }
.badge-generic { background: #F3F4F6;                  color: #6B7280; }

/* ── Forum ────────────────────────────────────────── */

.forum-list { display: flex; flex-direction: column; gap: 10px; padding: 24px; }

.forum-thread {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color 0.15s;
}

.forum-thread:hover { border-color: var(--color-brand-mid); }

.forum-thread h3 { font-size: 14px; font-weight: 500; color: var(--color-text); margin-bottom: 4px; }

.forum-meta { font-size: 11px; color: var(--color-text-muted); margin-bottom: 10px; }

.forum-preview {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Notice ───────────────────────────────────────── */

.notice {
  background: var(--color-brand-light);
  border-left: 2px solid var(--color-brand-mid);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--color-text);
  margin: 20px 24px;
}

/* ── Alerts ───────────────────────────────────────── */

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 0.5px solid var(--color-border);
}

.alert-success {
  background: var(--color-teal-bg);
  color: var(--color-teal-text);
  border-color: rgba(15,110,86,0.2);
}

.alert-error {
  background: #FEE9E9;
  color: #B83232;
  border-color: rgba(184,50,50,0.2);
}

/* ── Accordion ────────────────────────────────────── */

.accordion { border: 0.5px solid var(--color-border); border-radius: 8px; overflow: hidden; }

.accordion-item { border-bottom: 0.5px solid var(--color-border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-btn {
  width: 100%;
  background: var(--color-surface);
  border: none;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: background 0.15s;
}

.accordion-btn:hover { background: #f8fafc; }
.accordion-btn.active { color: var(--color-brand-mid); }

.accordion-icon {
  font-size: 16px;
  transition: transform 0.15s;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.accordion-btn.active .accordion-icon { transform: rotate(180deg); color: var(--color-brand-mid); }

.accordion-body {
  display: none;
  padding: 14px 16px;
  background: #f8fafc;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 13px;
}

.accordion-body.open { display: block; }

/* ── Kontakt page ─────────────────────────────────── */

.faq-section, .contact-section {
  padding: 24px;
}

.faq-section h2, .contact-section h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
}

.faq-section + .contact-section {
  border-top: 0.5px solid var(--color-border);
}

/* ── Form elements (shared) ───────────────────────── */

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-mid);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
  background: var(--color-surface);
}

.form-group textarea { min-height: 110px; resize: vertical; }

.field-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; display: block; }

/* ── Login page ───────────────────────────────────── */

.login-page { display: flex; min-height: 100vh; }

.login-image-panel {
  flex: 0 0 52%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #051E42 0%, #0A3A72 20%, #0F5499 42%, #1C74B8 62%, #2282CC 78%, #2BC5B3 100%);
  background-size: 260% 260%;
  animation: panel-drift 12s ease-in-out infinite;
}

@keyframes panel-drift {
  0%, 100% { background-position: 0%   0%; }
  50%       { background-position: 100% 100%; }
}

.login-image-text { position: absolute; bottom: 40px; left: 28px; z-index: 10; }

.img-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.img-heading { font-size: 20px; font-weight: 500; color: #ffffff; line-height: 1.3; }

/* ── Login logo stage ─────────────────────────────── */

.login-logo-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Soft radial glow behind everything */
.login-logo-glow {
  position: absolute;
  width: 880px;
  height: 880px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(43,197,179,0.30) 0%,
    rgba(34,130,204,0.18) 38%,
    transparent 70%
  );
  animation: glow-breathe 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.75; }
  50%       { transform: translate(-50%,-50%) scale(1.32); opacity: 1; }
}

/* Hero logo */
.login-logo-hero {
  width: 272px;
  height: 272px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.12);
  padding: 30px;
  position: relative;
  z-index: 6;
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 28px rgba(43,197,179,0.65));
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 0 40px rgba(43,197,179,0.3);
  }
  50% {
    transform: translateY(-20px) scale(1.04);
    filter: drop-shadow(0 20px 52px rgba(43,197,179,1));
    box-shadow: 0 0 0 3px rgba(255,255,255,0.32), 0 0 80px rgba(43,197,179,0.55);
  }
}

/* Base ring */
.login-logo-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Orbiting letters D O T H A N ────────────────────── */
/*
 * LCM = 120s → alle 5 Umläufe von D (24s) stehen alle Buchstaben
 * wieder bei 270° (12-Uhr) und DOTHAN ist lesbar.
 * D=5×, O=6×, T=8×, H=10×, A=12×, N=15× Umläufe in 120s.
 */

.letter-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 7;
}

/* D — 165px, 24s (5 Umläufe in 120s), teal */
.letter-d {
  color: rgba(43,197,179,0.92);
  text-shadow: 0 0 10px rgba(43,197,179,0.85), 0 0 24px rgba(43,197,179,0.5);
  animation: orbit-d 24s linear infinite;
}
@keyframes orbit-d {
  from { transform: rotate(270deg) translateX(330px) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(330px) rotate(-630deg); }
}

/* O — 148px, 20s (6 Umläufe in 120s), weiß */
.letter-o {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 22px rgba(255,255,255,0.5);
  animation: orbit-o 20s linear infinite;
}
@keyframes orbit-o {
  from { transform: rotate(270deg) translateX(296px) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(296px) rotate(-630deg); }
}

/* T — 131px, 15s (8 Umläufe in 120s), teal */
.letter-t {
  color: rgba(43,197,179,0.92);
  text-shadow: 0 0 10px rgba(43,197,179,0.85), 0 0 24px rgba(43,197,179,0.5);
  animation: orbit-t 15s linear infinite;
}
@keyframes orbit-t {
  from { transform: rotate(270deg) translateX(262px) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(262px) rotate(-630deg); }
}

/* H — 115px, 12s (10 Umläufe in 120s), weiß */
.letter-h {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 22px rgba(255,255,255,0.5);
  animation: orbit-h 12s linear infinite;
}
@keyframes orbit-h {
  from { transform: rotate(270deg) translateX(230px) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(230px) rotate(-630deg); }
}

/* A — 100px, 10s (12 Umläufe in 120s), teal */
.letter-a {
  color: rgba(43,197,179,0.92);
  text-shadow: 0 0 10px rgba(43,197,179,0.85), 0 0 24px rgba(43,197,179,0.5);
  animation: orbit-a 10s linear infinite;
}
@keyframes orbit-a {
  from { transform: rotate(270deg) translateX(200px) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(200px) rotate(-630deg); }
}

/* N — 88px, 8s (15 Umläufe in 120s), weiß */
.letter-n {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 22px rgba(255,255,255,0.5);
  animation: orbit-n 8s linear infinite;
}
@keyframes orbit-n {
  from { transform: rotate(270deg) translateX(176px) rotate(-270deg); }
  to   { transform: rotate(630deg) translateX(176px) rotate(-630deg); }
}

/* Ripple rings (teal-tinted) */
.ring-1 { width: 400px; height: 400px; border: 1.5px solid rgba(43,197,179,0.55); animation: ring-ripple 3.6s ease-out infinite 0s;    }
.ring-2 { width: 400px; height: 400px; border: 1.5px solid rgba(43,197,179,0.55); animation: ring-ripple 3.6s ease-out infinite 0.9s;   }
.ring-3 { width: 400px; height: 400px; border: 1.5px solid rgba(43,197,179,0.55); animation: ring-ripple 3.6s ease-out infinite 1.8s;   }
.ring-4 { width: 400px; height: 400px; border: 1.5px solid rgba(43,197,179,0.55); animation: ring-ripple 3.6s ease-out infinite 2.7s;   }

@keyframes ring-ripple {
  0%   { transform: translate(-50%,-50%) scale(0.65); opacity: 0.9; }
  70%  { opacity: 0.12; }
  100% { transform: translate(-50%,-50%) scale(2.6);  opacity: 0; }
}

.login-form-panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 36px 32px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  position: relative;
}

.login-form-panel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  background: url('../img/logo.png') no-repeat center center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.login-form-panel > * {
  position: relative;
  z-index: 1;
}

.login-badge { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }

.login-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--color-brand-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-badge-icon .ti { font-size: 18px; color: var(--color-brand-mid); }

.login-badge-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.login-badge-title { font-size: 14px; font-weight: 500; color: var(--color-text); line-height: 1.2; }
.login-badge-sub   { font-size: 11px; color: var(--color-text-muted); }

/* Login tabs */
.login-tabs {
  display: flex;
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: 24px;
}

.login-tab {
  font-size: 13px;
  font-family: inherit;
  padding: 8px 0;
  margin-right: 20px;
  color: var(--color-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -0.5px;
}

.login-tab:hover  { color: var(--color-text); }
.login-tab.active { color: var(--color-brand-mid); border-bottom-color: var(--color-brand-mid); }

.login-panel { display: none; }
.login-panel.active { display: block; }

/* Input with icon */
.input-wrap { position: relative; }

.input-wrap .input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--color-brand-mid);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
  background: var(--color-surface);
}

.login-form-group { margin-bottom: 14px; }

.login-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.btn-login {
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #0F5499, #2282CC, #2BC5B3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
  transition: filter 0.15s;
}

.btn-login:hover { filter: brightness(1.1); }

.forgot-link-wrap { text-align: center; margin-top: 12px; }

.forgot-link-wrap a,
.text-link {
  font-size: 12px;
  color: var(--color-brand-mid);
  text-decoration: none;
}

.forgot-link-wrap a:hover,
.text-link:hover { text-decoration: underline; }

.forgot-back {
  display: inline-block;
  font-size: 12px;
  color: var(--color-brand-mid);
  text-decoration: none;
  margin-bottom: 12px;
}

.forgot-back:hover { text-decoration: underline; }

.forgot-divider { height: 0.5px; background: var(--color-border); margin: 16px 0; }

.login-centered { text-align: center; margin-top: 12px; font-size: 12px; color: var(--color-text-muted); }

/* ── Reset password page ──────────────────────────── */

.reset-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.reset-page::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: url('../img/logo.png') no-repeat center center;
  background-size: contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.reset-page .reset-card {
  position: relative;
  z-index: 1;
}

.reset-card {
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
}

.reset-card .login-badge { margin-bottom: 24px; }

.reset-card h1 {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.reset-card .sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.reset-card .form-group { margin-bottom: 14px; }

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  background: var(--color-brand);
  color: rgba(255,255,255,0.5);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
}

/* ── Forum compose ────────────────────────────────── */

.forum-compose {
  padding: 20px 24px;
  border-bottom: 0.5px solid var(--color-border);
}

.forum-compose-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.forum-compose textarea {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-compose textarea:focus {
  outline: none;
  border-color: var(--color-brand-mid);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
  background: var(--color-surface);
}

.forum-compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ── Forum thread content (full, not clamped) ─────── */

.forum-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 8px 0 10px;
  word-break: break-word;
}

/* ── Forum actions row ────────────────────────────── */

.forum-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-forum-action {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-forum-action:hover      { color: var(--color-brand-mid); }
.btn-forum-report:hover      { color: #B83232; }
.btn-forum-action .ti        { font-size: 13px; }

/* ── Reply form ───────────────────────────────────── */

.reply-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid var(--color-border);
}

.reply-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  font-family: inherit;
  color: var(--color-text);
  resize: vertical;
  min-height: 64px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reply-form textarea:focus {
  outline: none;
  border-color: var(--color-brand-mid);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
  background: var(--color-surface);
}

.reply-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ── Replies ──────────────────────────────────────── */

.forum-replies {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forum-reply {
  padding-left: 14px;
  border-left: 2px solid var(--color-brand-light);
}

/* ── Empty state ──────────────────────────────────── */

.forum-empty {
  padding: 52px 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.forum-empty .ti { font-size: 30px; display: block; margin-bottom: 10px; }
.forum-empty p   { font-size: 14px; }

/* ── Image upload area ────────────────────────────── */

.forum-image-area {
  border: 1.5px dashed var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.forum-image-area:focus-within,
.forum-image-area.drag-over {
  border-color: var(--color-brand-mid);
  background: var(--color-brand-light);
}

/* Textarea inside area: no own border, transparent bg */
.forum-image-area textarea {
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  resize: vertical;
  min-height: 72px;
  outline: none;
}

.forum-image-area textarea:focus { outline: none; box-shadow: none; }

.forum-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.forum-image-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-brand-mid);
  cursor: pointer;
  padding: 4px 10px;
  border: 0.5px solid var(--color-brand-mid);
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.forum-image-pick:hover { background: rgba(24,95,165,0.08); }
.forum-image-pick .ti   { font-size: 13px; }

/* Visually hidden file input, still operable via label */
.forum-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.forum-drop-hint {
  font-size: 11px;
  color: var(--color-text-faint);
}

.forum-image-preview-wrap {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.forum-image-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: 6px;
  display: block;
  border: 0.5px solid var(--color-border);
}

.forum-image-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #B83232;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.forum-image-remove .ti { font-size: 11px; }

.forum-ds-hinweis {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.forum-ds-hinweis .ti { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ── Post image display ───────────────────────────── */

.forum-post-image { margin: 8px 0 10px; }

.forum-post-image img {
  max-width: min(100%, 480px);
  max-height: 360px;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
  border: 0.5px solid var(--color-border);
  transition: opacity 0.15s;
}

.forum-post-image img:hover { opacity: 0.88; }

/* ── Deleted post ─────────────────────────────────── */

.forum-thread--deleted { background: #fafbfc; }

.forum-deleted-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-style: italic;
  color: var(--color-text-faint) !important;
  margin-bottom: 0;
}

/* ── Edited badge ─────────────────────────────────── */

.forum-edited-badge {
  font-size: 10px;
  color: var(--color-text-faint);
  font-style: italic;
}

/* ── Edit/delete action variants ─────────────────── */

.btn-forum-delete:hover { color: #B83232; }

/* ── Inline edit form ─────────────────────────────── */

.forum-edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid var(--color-border);
}

.forum-edit-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  font-family: inherit;
  color: var(--color-text);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-edit-form textarea:focus {
  outline: none;
  border-color: var(--color-brand-mid);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
  background: var(--color-surface);
}

.forum-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ── Popup overlay ────────────────────────────────── */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,28,50,0.62);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popup-fade-in 0.2s ease;
}

.popup-overlay.popup-closing             { animation: popup-fade-out 0.2s ease forwards; }
.popup-overlay.popup-closing .popup-card { animation: popup-slide-out 0.2s ease forwards; }

@keyframes popup-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-fade-out { to   { opacity: 0; } }

@keyframes popup-slide-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
@keyframes popup-slide-out {
  to { opacity: 0; transform: scale(0.96) translateY(4px); }
}

.popup-card {
  background: var(--color-surface);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.24);
  animation: popup-slide-in 0.25s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.popup-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-image-placeholder .ti {
  font-size: 40px;
  color: var(--color-brand-mid);
  opacity: 0.5;
}

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.38);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1;
  flex-shrink: 0;
}

.popup-close-btn:hover { background: rgba(0,0,0,0.6); }
.popup-close-btn .ti   { font-size: 15px; }

.popup-body { padding: 22px 22px 20px; }

.popup-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-brand-mid);
  background: var(--color-brand-light);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.popup-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.popup-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.popup-contact {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.popup-contact-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
}

.popup-contact span { font-size: 12px; color: var(--color-text-muted); }

.popup-contact a { color: var(--color-brand-mid); text-decoration: none; }
.popup-contact a:hover { text-decoration: underline; }

.popup-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 640px) {
  .login-page { flex-direction: column; }

  .login-image-panel {
    flex: none;
    width: 100%;
    min-height: 240px;
  }

  .login-logo-stage { transform: translate(-50%, -50%) scale(0.6); }
  .login-logo-hero { width: 88px; height: 88px; padding: 10px; }
  .login-logo-glow { width: 260px; height: 260px; }
  .ring-1, .ring-2, .ring-3, .ring-4 { width: 130px; height: 130px; }

  .login-form-panel { padding: 28px 20px; max-width: none; }

  .hero-band, .dash-hero { padding: 20px 16px; }
  .main-content { padding: 16px; }
  .breadcrumb { padding: 10px 16px; }
  .page-header { padding: 16px 16px 0; }
  .tab-bar { padding: 0 16px; }
  .tab-content { padding: 16px; }
  .forum-list { padding: 16px; }
  .forum-compose { padding: 16px; }
  .notice { margin: 16px 16px; }
  .faq-section, .contact-section { padding: 16px; }
  .site-footer { padding: 16px; }
}
