/* =========================================================
   Basis / Reset
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2937;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e5e7eb;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.logo span:last-child {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: #1e293b;
  color: #f9fafb;
}

.nav-links a.active {
  background: #38bdf8;
  color: #0f172a;
}

/* Burger-Button (Mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animierter Burger → X */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

.btn-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: #4b5563;
}

.btn-secondary:hover {
  background: #1f2937;
  border-color: #6b7280;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: transparent;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: #020617;
  border-color: #1f2937;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
   Hero-Bereich Startseite
   ========================================================= */

/* ✅ Desktop: 2 Spalten bleiben nebeneinander */
.hero {
  display: flex;
  flex-wrap: nowrap;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1 1 280px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 10px;
  color: #f9fafb;
}

.hero h1 span {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.hero-small {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.8rem;
  color: #64748b;
}

/* ✅ Rechter Container (Bild) */
.hero-card-wrap {
  flex: 0 0 520px;   /* Breite rechts – bei Bedarf 460px */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ✅ Bild skalieren */
.hero-image {
  width: 100%;
  max-width: 300px;  /* Bildgröße (z.B. 360px kleiner / 480px größer) */
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.08);
  object-fit: contain;
}

/* Hero-Karte (falls du sie irgendwo noch nutzt) */
.hero-card {
  position: relative;
  width: 320px;
  max-width: 100%;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), #020617 55%);
  border-radius: 24px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

/* Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   Sektionen / Boxen / Seitenkopf
   ========================================================= */

.section {
  margin: 40px 0;
  padding: 25px;
  background: #0f172a;
  border-radius: 16px;
  color: #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.section h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  color: #f1f5f9;
}

.section p {
  color: #cbd5e1;
}

.muted {
  color: #94a3b8;
  font-size: 0.9rem;
}

.box {
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  margin-top: 20px;
}

.box ul {
  padding-left: 20px;
}

.box ul li {
  margin: 8px 0;
  line-height: 1.6;
}

.page-header {
  margin-bottom: 30px;
  padding: 20px;
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.page-header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: #e2e8f0;
}

.page-header p {
  margin: 0;
  color: #cbd5e1;
}

.card {
  background: #0b1220;
  border-radius: 16px;
  border: 1px solid #1f2937;
  padding: 20px 18px;
  margin-bottom: 18px;
}

/* =========================================================
   Timeline / Roadmap
   ========================================================= */

.timeline {
  margin-top: 10px;
  padding-left: 8px;
  border-left: 2px solid #38bdf8;
}

.timeline-item {
  position: relative;
  padding-left: 14px;
  margin-bottom: 14px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.timeline-date {
  font-size: 0.8rem;
  color: #a5b4fc;
  font-weight: 600;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-text {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.tag-status {
  margin-left: 8px;
  font-size: 0.75rem;
  color: #a5b4fc;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.roadmap-item {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 12px 12px 10px;
}

.roadmap-label {
  font-size: 0.8rem;
  color: #a5b4fc;
  margin-bottom: 6px;
}

.roadmap-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.roadmap-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

.pill-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #facc15;
}

.helper-text {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* =========================================================
   Formulare
   ========================================================= */

.form-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2937;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.form-field small {
  font-size: 0.75rem;
  color: #64748b;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* =========================================================
   Tabellen / Admin-Bereich
   ========================================================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  padding: 0.35rem 0.75rem;
  text-align: left;
}

.admin-table thead {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

.admin-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.25);
}

/* --- Einheitlicher Aktions-Style (Admin + My Profiles) --- */

.admin-table td.profile-actions,
.actions,
.profile-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.admin-table td.profile-actions a,
.actions a,
.profile-actions a {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-table td.profile-actions a:hover,
.actions a:hover,
.profile-actions a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.admin-table td.profile-actions a.primary,
.actions a.primary,
.profile-actions a.primary {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.admin-table td.profile-actions a.neutral,
.actions a.neutral,
.profile-actions a.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.admin-table td.profile-actions a.danger,
.actions a.danger,
.profile-actions a.danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.admin-table td.profile-actions a.danger:hover,
.actions a.danger:hover,
.profile-actions a.danger:hover {
  background: rgba(239, 68, 68, 0.35);
}

.badge-status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-status-inactive {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid #1f2937;
  padding: 18px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 40px;
}

.site-footer a {
  color: #38bdf8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   Responsive Navigation
   ========================================================= */

@media (max-width: 768px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #020617;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem 1rem;
    gap: 0.4rem;
    border-bottom: 1px solid #1f2937;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.nav-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  }

  .nav-links a {
    display: block;
    padding: 10px 18px;
    padding-left: 35px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-links a.active {
    background: rgba(56, 189, 248, 0.18);
    color: #e5e7eb;
  }

  .logo span:last-child { font-size: 0.95rem; }
}

/* =========================================================
   Mobile Optimierung (bis 480px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 60px 15px 30px; }

  h1, .page-header h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .section, .page-header, .card, .box {
    padding: 18px 16px;
    border-radius: 14px;
    margin: 20px 0;
  }

  .section p,
  .page-header p,
  .timeline-text,
  .form-field label {
    font-size: 0.92rem;
  }

  .timeline-date { font-size: 0.75rem; }
  .timeline-title { font-size: 0.9rem; }

  .form-grid { grid-template-columns: 1fr !important; }

  .btn, .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .logo span:last-child { font-size: 0.95rem; }
  .nav-links a { padding: 10px 18px; padding-left: 35px; }

  .site-header { padding: 4px 0; }

  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }

  /* ✅ Mobile: Hero stapeln */
  .hero {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .hero-card-wrap {
    flex: 0 0 auto;
    width: 100%;
  }

  .hero-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ========================================= */
/* Inhaltslinks – Admin & My Profiles Seiten */
/* ========================================= */

.page-admin main a,
.page-my-profiles main a,
.page-admin main a:visited,
.page-my-profiles main a:visited {
  color: #3bb3ff;
  text-decoration: none;
  font-weight: 500;
}

.page-admin main a:hover,
.page-my-profiles main a:hover,
.page-admin main a:focus,
.page-my-profiles main a:focus {
  color: #66c9ff;
  text-decoration: underline;
}

/* Header/Nav explizit ausschließen */
.page-admin .site-header a,
.page-my-profiles .site-header a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   Formular: Abschnitte (Persönlich / Firma / Adresse / Links)
   ========================================================= */

.form-sections{
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.form-section{
  background: #0b1220;
  border-radius: 16px;
  border: 1px solid #1f2937;
  padding: 16px 16px;
}

.form-section-title{
  margin: 0 0 6px 0;
  font-weight: 700;
  color: #f1f5f9;
  font-size: 1.05rem;
}

.form-section-sub{
  margin: 0 0 12px 0;
  color:#94a3b8;
  font-size: 0.9rem;
}

.form-divider{
  height: 1px;
  border: 0;
  background: #111827;
  margin: 12px 0;
}

/* Roadmap: untereinander (1 Spalte) */
.roadmap-grid{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 14px;
  margin-top: 16px;
}

/* Abgeschlossen: sichtbar */
.roadmap-item.completed{
  position: relative;
  border: 1px solid rgba(34, 197, 94, 0.65) !important;
  background: linear-gradient(135deg, rgba(34,197,94,0.22), #020617 60%) !important;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.18) !important;
}

.roadmap-item.completed::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: #22c55e;
}

.roadmap-item.completed::after{
  content: "✓ Abgeschlossen";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #052e16;
  background: #22c55e;
  padding: 4px 10px;
  border-radius: 999px;
}

.roadmap-item.completed .roadmap-label{
  color: #86efac !important;
}
