/* assets/css/index.css */

/* ====== Layout Basis (Sticky Footer) ====== */
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative; /* für Pseudo-Overlays */
}

/* ====== Design-Variablen ====== */
:root {
  /* Oberfläche (Light) */
  --bg-color: #ffffff;
  --text-color: #1f2937;
  --primary-color: #0066ff;
  --secondary-color: #ff6600;
  --secondary-hover-color: #e65c00;
  --accent-color: #8e44ad;

  /* Header/Footer */
  --header-bg: rgba(248,248,248,0.7);
  --footer-bg: rgba(241,241,241,0.75);

  /* Aurora Hintergrund (Light) */
  --bg-grad-top: #eef2ff;   /* oben */
  --bg-grad-bottom: #e2e8f0;/* unten */
  --blob1: rgba(255,122,24,0.35);   /* orange */
  --blob2: rgba(162,28,175,0.30);   /* lila */
  --blob3: rgba(34,211,238,0.28);   /* cyan */
  --blob4: rgba(37,99,235,0.28);    /* blau */
}

[data-theme="dark"] {
  /* Oberfläche (Dark) */
  --bg-color: #0b1020;
  --text-color: #e5e7eb;
  --primary-color: #3399ff;
  --secondary-color: #ff9933;
  --secondary-hover-color: #e68319;
  --accent-color: #7d3c98;

  --header-bg: rgba(30,30,30,0.55);
  --footer-bg: rgba(26,26,26,0.55);

  /* Aurora Hintergrund (Dark) */
  --bg-grad-top: #0b1020;   /* oben */
  --bg-grad-bottom: #04070c;/* unten */
  --blob1: rgba(255,94,0,0.30);
  --blob2: rgba(180,60,200,0.28);
  --blob3: rgba(0,200,255,0.25);
  --blob4: rgba(0,128,255,0.25);
}

/* ====== Global ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-bottom) 100%);
  color: var(--text-color);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.3s ease;
}

/* Aurora-Overlay (weiche, unscharfe Farbflecken) */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% -20% -20%; /* größer, damit Blur nicht abgeschnitten wird */
  background:
    radial-gradient(40% 50% at 20% 20%, var(--blob1) 0%, transparent 60%),
    radial-gradient(35% 45% at 80% 25%, var(--blob2) 0%, transparent 60%),
    radial-gradient(45% 55% at 30% 80%, var(--blob3) 0%, transparent 62%),
    radial-gradient(50% 60% at 90% 80%, var(--blob4) 0%, transparent 62%);
  filter: blur(60px) saturate(120%);
  z-index: -1; /* hinter dem Inhalt */
  pointer-events: none;
}

/* Vignette für sanfte Ränder */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
}

/* Links */
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #5aa8ff; }

/* ====== Header (Top-Bar) ====== */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.25);
  padding: 0.5rem 1rem;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-list { list-style: none; display: flex; justify-content: flex-end; gap: 1.5rem; }
.nav-list li { display: flex; align-items: center; }
.nav-list li a, .theme-btn {
  display: flex; align-items: center; gap: .35rem;
  font-size: 0.95rem; background: transparent; border: none; cursor: pointer;
  color: var(--text-color); padding: 0.4rem 0.6rem; border-radius: 0.4rem;
  transition: background 0.2s ease;
}
.nav-list li a:hover, .theme-btn:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .nav-list li a:hover,
[data-theme="dark"] .theme-btn:hover { background: rgba(255,255,255,0.06); }

/* ====== Branding (Logo in Top-Bar) ====== */
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text-color); text-decoration: none; font-weight: 600;
  padding: .3rem .4rem; border-radius: .4rem; transition: background .2s ease;
}
.brand:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .brand:hover { background: rgba(255,255,255,0.06); }

/* Logo ohne Umrandung/Schatten/Rundung */
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}
@media (min-width: 500px) { .brand-logo { height: 40px; } }
.brand-name { letter-spacing: .2px; }

/* ====== Main ====== */
.main-content {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1rem; /* etwas Abstand unter der Top-Bar */
  background: transparent; /* Aurora soll durchscheinen */
  color: var(--text-color);
}
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.25); }
.hero p { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.95; }

/* Buttons */
.btn-primary {
  background-color: var(--secondary-color); color: #fff;
  padding: 0.75rem 1.5rem; border: none; border-radius: 0.75rem;
  font-size: 1rem; cursor: pointer; transition: background 0.25s ease, transform .06s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.btn-primary:hover { background-color: var(--secondary-hover-color); color: #fff; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background-color: transparent; color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 0.65rem 1.4rem; border-radius: 0.5rem; font-size: 0.95rem;
  cursor: pointer; transition: background 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover { background: var(--accent-color); color: #fff; }

/* ====== Privacy Page Layout ====== */
.content-section {
  max-width: 800px; margin: 2rem auto; padding: 2rem; background: rgba(0,0,0,0.08);
  border-radius: 0.75rem; color: var(--text-color); line-height: 1.7;
}
[data-theme="dark"] .content-section { background: rgba(255,255,255,0.05); }
.content-section h1 { font-size: 2.25rem; color: var(--primary-color); text-align: center; margin-bottom: 1.5rem; }
.content-section h2 { font-size: 1.5rem; color: var(--primary-color); margin-top: 2rem; margin-bottom: 0.75rem; }
.content-section p { margin-bottom: 1rem; }
.content-section ul { list-style: disc inside; margin: 1rem 0; }
.content-section ul li { margin-bottom: 0.5rem; }

/* ====== Footer ====== */
.site-footer { background: var(--footer-bg); padding: 1rem 0; border-top: 1px solid rgba(0,0,0,0.08); }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.site-footer p { font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; gap: 1rem; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: #5aa8ff; }

/* ====== Barrierefreiheit / Motion ====== */
@media (prefers-reduced-motion: reduce) {
  body::before { filter: blur(50px) saturate(115%); }
}
/* Inputs füllen die verfügbare Breite */
.input-group input{ width:100%; }

/* Formular insgesamt breiter */
form.login{ max-width:820px; }
@media (min-width:1280px){
  form.login{ max-width:900px; }
}

/* Captcha-Reihe: Eingabefeld streckt sich */
.captcha-row{ gap:.8rem; }
.captcha-input{ flex:1; min-width:320px; }

/* Alle Änderungen zum 20.09.2025 */
/* ===== Locknex – Form Components (createcontainer) ===== */
.nav-list i,#theme-icon,.footer-links i,.content-section h1 i,.content-section h2 i{
  --fa-primary-color: var(--primary-color);
  --fa-secondary-color: var(--accent-color);
  --fa-secondary-opacity: .6;
}

.content-section{ max-width:min(1400px,98vw); }

.card{
  background: rgba(0,0,0,.06);
  padding: 1.25rem;
  border-radius: .85rem;
}
[data-theme="dark"] .card{ background: rgba(255,255,255,.06); }

.flash{ margin:.75rem 0; padding:.7rem 1rem; border-radius:.6rem; }
.flash.err{ background: rgba(239,68,68,.15); }
.muted{ opacity: .75; }

/* Feld + Input mit Icon links */
.field{ display:grid; gap:.45rem; }
.field label{ font-weight: 750; font-size: 1.05rem; }

.input-wrap{ position: relative; max-width: 900px; }
.input-icon{
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%); opacity: .9; pointer-events: none;
}
.input-control{
  width:100%;
  padding: .9rem 1rem .9rem 2.8rem;   /* Platz fürs Icon */
  border-radius: .8rem;
  border: 2px solid rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
  color: inherit; outline: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 1.02rem;
}
.input-control::placeholder{ opacity:.6; }
.input-control:focus{
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0,102,255,.20), 0 6px 20px rgba(0,0,0,.08);
  background: transparent;
}
[data-theme="dark"] .input-control{
  border-color: rgba(255,255,255,.25);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.06));
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
[data-theme="dark"] .input-control:focus{
  box-shadow: 0 0 0 4px rgba(0,102,255,.25), 0 6px 24px rgba(0,0,0,.45);
}

/* Linklisten untereinander */
.links-grid{ display:grid; gap:.9rem; grid-template-columns: 1fr; }
.link-field{ display:grid; gap:.35rem; }
.link-field textarea{
  min-height:180px; padding:.8rem .9rem; border-radius:.7rem;
  border:1px solid rgba(0,0,0,.12); background:transparent; color:inherit; resize:vertical;
}
[data-theme="dark"] .link-field textarea{ border-color: rgba(255,255,255,.18); }

/* Aktionen / Buttons */
.action-row{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.action-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  text-decoration:none; border:none; cursor:pointer; padding:.7rem 1rem; border-radius:.7rem;
  font-weight:700; line-height:1; min-width:230px; height:44px;
}
@media (max-width:560px){ .action-btn{ min-width:unset; width:100%; } }
.action-primary{ background:#0066ff; color:#fff; }
.action-edit{ background: rgba(0,0,0,.06); color: inherit; }
[data-theme="dark"] .action-edit{ background: rgba(255,255,255,.08); }

    .nav-list i, #theme-icon, .footer-links i, .hero i {
      --fa-primary-color: var(--primary-color);
      --fa-secondary-color: var(--accent-color);
      --fa-secondary-opacity: .6;
    }
    .notice-banner {max-width:1200px;margin:.75rem auto 0;padding:.85rem 1rem;border-radius:.75rem;display:flex;align-items:center;gap:.6rem;background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.35)}
    .notice-banner.warn{background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.35)}
    [data-theme="dark"] .notice-banner{background:rgba(239,68,68,.20);border-color:rgba(239,68,68,.45)}
    [data-theme="dark"] .notice-banner.warn{background:rgba(245,158,11,.20);border-color:rgba(245,158,11,.45)}
    .nav-disabled{opacity:.55;cursor:not-allowed}

    /* Logout-Button wie Link stylen */
    .nav-logout { margin: 0; }
    .nav-logout .as-link{
      background: transparent; border: 0; color: inherit; font: inherit;
      display: flex; align-items: center; gap: .35rem;
      padding: .4rem .6rem; border-radius: .4rem; cursor: pointer;
    }
    .nav-logout .as-link:hover { background: rgba(0,0,0,0.06); }
    [data-theme="dark"] .nav-logout .as-link:hover { background: rgba(255,255,255,0.06); }
    
/* ===== INFO Nav-Button ===== */
.nav-info a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 14px;
  border-radius: 999px;

  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: .4px;
  color: #1e293b;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.25)
  );

  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 rgba(34,211,238,0),
    inset 0 0 0 rgba(255,255,255,0.4);

  animation: infoPulse 3.8s ease-in-out infinite;
  transition: all .3s ease;
}

/* Icon Farben (Duotone) */
.nav-info i {
  --fa-primary-color: rgb(34,211,238); /* cyan */
  --fa-secondary-color: rgb(37,99,235); /* blau */
  --fa-secondary-opacity: .55;
  font-size: 1rem;
}

/* Hover = etwas stärker, aber ruhig */
.nav-info a:hover {
  box-shadow:
    0 0 18px rgba(34,211,238,0.35),
    0 0 30px rgba(162,28,175,0.25);
  transform: translateY(-1px);
}

/* Sanftes "Blinken" */
@keyframes infoPulse {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(34,211,238,0.25),
      0 0 14px rgba(162,28,175,0.18);
    opacity: 1;
  }

  50% {
    box-shadow:
      0 0 18px rgba(34,211,238,0.55),
      0 0 32px rgba(162,28,175,0.35);
    opacity: 0.85;
  }
}

.link-status-preview {
  margin-top: 1rem;
}

.edit-link-status-list {
  display: grid;
  gap: .45rem;
}

.edit-link-status-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .65rem;
  border-radius: .6rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.edit-link-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 95px;
  padding: .3rem .5rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.edit-link-status-url {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: inherit;
  font-size: .85rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.edit-link-status-row.link-online {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, .08);
}

.edit-link-status-row.link-offline {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, .12);
}

.edit-link-status-row.link-unknown {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, .10);
}

.edit-link-status-row.link-blocked {
  border-left: 4px solid #8b5cf6;
  background: rgba(139, 92, 246, .10);
}

.link-online .edit-link-status-badge {
  background: rgba(16, 185, 129, .18);
  color: #34d399;
}

.link-offline .edit-link-status-badge {
  background: rgba(239, 68, 68, .20);
  color: #f87171;
}

.link-unknown .edit-link-status-badge {
  background: rgba(245, 158, 11, .20);
  color: #fbbf24;
}

.link-blocked .edit-link-status-badge {
  background: rgba(139, 92, 246, .20);
  color: #a78bfa;
}

@media (max-width: 700px) {
  .edit-link-status-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .edit-link-status-badge {
    min-width: auto;
  }
}

.offline-link-hint {
  margin-top: .75rem;
  padding: .75rem;
  border-radius: .75rem;

  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .28);
  border-left: 4px solid #ef4444;
}

.offline-link-title {
  display: flex;
  align-items: center;
  gap: .45rem;

  margin-bottom: .55rem;

  color: #f87171;
  font-weight: 800;
}

.offline-link-hint code {
  display: block;

  padding: .45rem .55rem;
  margin-top: .35rem;
  border-radius: .5rem;

  color: #fecaca;
  background: rgba(239, 68, 68, .14);

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}