/* ============================================
   ZEN HUB TYPOGRAPHY
   Push for headings, Roboto for body text
   ============================================ */

/* Google Fonts: Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Push Medium Font (Headlines) */
@font-face {
  font-family: 'Push';
  src: url('/public/fonts/Push-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Smooth font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Roboto as base font for body text */
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  background: #0f0f12;
  color: #e4e4e7;
}

/* Headings: Push font with varying weights */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

/* Paragraph spacing */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Strong text */
strong, b {
  font-weight: 500;
}

/* Links base */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #27272a;
}
.page-header h1 {
  margin: 0;
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.page-header a {
  color: #a1a1aa;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-header a:hover {
  color: #fff;
}

/* Header Logo mit Ensō */
.header-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e4e4e7 !important;
}
.header-logo-link:hover {
  color: #fff !important;
}
.header-logo-link:hover .header-enso {
  color: #a78bfa;
}
.header-enso {
  width: 32px;
  height: 32px;
  color: #71717a;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Ensō Animation beim ersten Laden nach Login */
.header-enso--animate {
  animation: enso-breathe 2s ease-in-out;
}
@keyframes enso-breathe {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Ensō Stroke Animation (Zeichnen) */
.header-enso--animate .enso-stroke {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: enso-draw 1.5s ease-out forwards;
}
.header-enso--animate .enso-tail {
  opacity: 0;
  animation: enso-fade-in 0.5s ease-out 1.3s forwards;
}
@keyframes enso-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes enso-fade-in {
  to { opacity: 0.6; }
}
.page-header .logout-form {
  display: inline;
}
.page-header .logout-form button {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: #a1a1aa;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-header .logout-form button:hover {
  color: #fff;
}
.header-settings-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.header-settings-link .icon-settings {
  display: block;
}
.header-settings-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #a1a1aa;
}
.header-settings-current .icon-settings {
  display: block;
}

.page-main {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-footer {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #27272a;
  text-align: center;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
}
.footer-nav a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav a:hover {
  color: #fff;
}

.footer-credit {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}
.footer-credit a.footer-credit-link {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-credit a.footer-credit-link:hover {
  color: #fff;
}

/* Header Right (Login page) */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-seminar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.6875rem 1.375rem;
  background: #c53030;
  color: #fff;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 12px rgba(197, 48, 48, 0.35);
}

.header-seminar-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(197, 48, 48, 0.45);
  background: #b91c1c;
  color: #fff;
}

.seminar-btn-arrow {
  font-size: 1.125rem;
  font-weight: 300;
  margin-left: 0.125rem;
}

/* Instagram Link */
.header-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #52525b;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.header-instagram-link:hover {
  color: #c13584;
}

.instagram-text {
  color: inherit;
}

.instagram-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

/* Login Layout (Side-by-Side) */
.login-layout {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.login-layout--equal-height {
  align-items: center;
}

.login-brand {
  flex: 0 0 360px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #18181b;
  border-radius: 8px;
  border: 1px solid #27272a;
  padding: 1.5rem;
  align-self: stretch;
}
.login-brand-figure {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-brand-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
  max-height: none;
  object-fit: contain;
}
.login-box {
  flex: 0 0 360px;
  max-width: 360px;
  margin: 0;
  padding: 1.5rem;
  background: #18181b;
  border-radius: 8px;
  border: 1px solid #27272a;
  align-self: center;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

/* Interactive Login Box */
.login-box--interactive {
  overflow: hidden;
}

.login-box--interactive.is-expanded {
  /* Box expands when buttons are shown */
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .login-brand {
    width: 100%;
    max-width: 400px;
  }
  .login-box {
    flex: none;
    width: 100%;
    max-width: 360px;
  }
}
.login-box h2 {
  margin: 0 0 1.25rem;
  font-family: 'Push', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.login-box label {
  display: block;
  margin-bottom: 0.375rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.02em;
}
.login-box input[type=text],
.login-box input[type=password] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  margin-bottom: 1.125rem;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
}
/* reCAPTCHA Widget (originalgetreu) */
.recaptcha-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.08);
}
.recaptcha-checkbox-wrapper {
  flex-shrink: 0;
}
.recaptcha-checkbox {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #c1c1c1;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.recaptcha-checkbox:hover {
  border-color: #4285f4;
}
.recaptcha-label {
  flex-grow: 1;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
}
.recaptcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}
.recaptcha-logo svg {
  width: 32px;
  height: 32px;
}
.recaptcha-terms {
  text-align: center;
}
.recaptcha-terms span {
  display: block;
  font-size: 0.625rem;
  color: #555;
  line-height: 1.2;
}
.recaptcha-links {
  font-size: 0.5625rem !important;
  color: #888 !important;
}
.recaptcha-notice {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: #71717a;
  text-align: center;
  font-style: italic;
  transition: color 0.2s ease;
}

.recaptcha-notice.is-verified {
  color: #22c55e;
}

.recaptcha-notice.is-warning {
  color: #f59e0b;
}

/* Interactive reCAPTCHA */
.recaptcha-widget {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recaptcha-widget:hover {
  border-color: #4285f4;
}

.recaptcha-widget:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.recaptcha-widget.is-verified {
  border-color: #22c55e;
  background: #f0fdf4;
}

.recaptcha-checkbox {
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.recaptcha-checkbox.is-checked {
  background: #22c55e;
  border-color: #22c55e;
}

.recaptcha-checkbox.is-checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}
.login-box button {
  width: 100%;
  padding: 0.75rem;
  background: #166534;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.login-box button:hover {
  background: #15803d;
  transform: translateY(-1px);
}
.login-box button:active {
  transform: translateY(0);
}

.login-error {
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #7f1d1d;
  color: #fecaca;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  display: none;
}
.login-error.is-visible, .login-error[aria-hidden=false] {
  display: block;
}

/* Old login-footer-nav (deprecated, keeping for compatibility) */
.login-footer-nav {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #27272a;
  text-align: center;
  font-size: 0.875rem;
}
.login-footer-nav a {
  color: #a1a1aa;
  text-decoration: none;
  margin: 0 0.5rem;
}
.login-footer-nav a:first-child {
  margin-left: 0;
}
.login-footer-nav a:last-child {
  margin-right: 0;
}
.login-footer-nav a:hover {
  color: #166534;
}

/* Login Buttons Container */
.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-buttons.is-visible {
  opacity: 1;
  max-height: 120px;
}

.login-buttons.is-enabled {
  opacity: 1;
  max-height: 120px;
}

.login-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #3f3f46;
}

.login-buttons.is-enabled button:disabled {
  opacity: 1;
  cursor: pointer;
}

.button-passkey {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  background: #27272a;
  color: #a1a1aa;
  border: 1px solid #52525b;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.2s ease;
}
.button-passkey:hover:not(:disabled) {
  background: #3f3f46;
  color: #fff;
}
#login-passkey-error {
  margin-top: 0.5rem;
}

/* Login Help Links */
.login-help-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #27272a;
}

.login-help-link {
  font-size: 0.8125rem;
  color: #52525b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-help-link:hover {
  color: #a1a1aa;
  text-decoration: underline;
}

.flush-cache-btn,
.flush-cache-link {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
  text-decoration: none;
}
.flush-cache-btn:hover,
.flush-cache-link:hover {
  color: #22c55e;
}

.passkey-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #18181b;
  border-radius: 8px;
  border: 1px solid #27272a;
}
.passkey-section h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #fff;
}
.passkey-intro {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin: 0 0 1rem;
}
.passkey-form label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}
.passkey-form input[type="text"],
.passkey-form select {
  width: 100%;
  max-width: 20rem;
  padding: 0.5rem;
  margin-top: 0.25rem;
  background: #27272a;
  border: 1px solid #52525b;
  border-radius: 6px;
  color: #fff;
}
.passkey-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.passkey-form button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #166534;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.passkey-form button:hover {
  background: #15803d;
}
.passkey-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.passkey-list {
  margin-bottom: 1.5rem;
}
.passkey-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.passkey-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: #27272a;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.passkey-name {
  font-weight: 600;
  color: #fff;
  min-width: 150px;
}
.passkey-meta {
  font-size: 0.8125rem;
  color: #a1a1aa;
}
.passkey-dates {
  font-size: 0.75rem;
  color: #71717a;
  flex-grow: 1;
}
.passkey-delete-btn {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  background: #dc2626;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.passkey-delete-btn:hover {
  background: #b91c1c;
}
.passkey-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.passkey-empty {
  color: #71717a;
  font-size: 0.875rem;
  margin: 0;
}
.passkey-error {
  color: #f87171;
  font-size: 0.875rem;
  margin: 0;
}

.overview h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #fff;
}

.overview-intro {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #a1a1aa;
}

/* Welcome Box */
.welcome-box {
  background: linear-gradient(135deg, #1a1a1f 0%, #27272a 100%);
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.welcome-box h2 {
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
  color: #fff;
}
.welcome-text {
  margin: 0 0 1.25rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #d4d4d8;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.welcome-philosophy {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #27272a;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #a1a1aa;
  line-height: 1.7;
  font-style: italic;
}
.welcome-philosophy em {
  color: #a78bfa;
  font-style: normal;
  font-weight: 400;
}

/* ============================================
   PROJECT PLAN TABLE
   Fancy styled project timeline
   ============================================ */
.project-plan {
  margin: 2rem 0;
  background: linear-gradient(135deg, #1a1a1f 0%, #0f0f12 100%);
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 1.5rem;
  overflow: hidden;
}

.project-plan-title {
  font-family: 'Push', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.25rem;
}

.project-plan-meta {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  color: #71717a;
  margin: 0 0 1.25rem;
}

.project-plan-table-wrapper {
  overflow-x: auto;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.project-plan-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
}

.project-plan-table thead {
  background: rgba(39, 39, 42, 0.5);
}

.project-plan-table th {
  padding: 0.75rem 0.625rem;
  text-align: left;
  font-weight: 500;
  color: #a1a1aa;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #3f3f46;
}

.project-plan-table td {
  padding: 0.625rem;
  border-bottom: 1px solid #27272a;
  color: #e4e4e7;
  vertical-align: middle;
}

.project-plan-table .col-nr {
  width: 3rem;
  color: #71717a;
}

.project-plan-table .col-task {
  min-width: 200px;
}

.project-plan-table .col-start,
.project-plan-table .col-end {
  width: 6rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #a1a1aa;
}

.project-plan-table .col-status {
  width: 3.5rem;
  text-align: center;
}

/* Row states */
.project-plan-table .task-done td {
  color: #71717a;
}

.project-plan-table .task-done td:nth-child(2) {
  text-decoration: line-through;
  text-decoration-color: #3f3f46;
}

.project-plan-table .task-active {
  background: rgba(34, 197, 94, 0.08);
}

.project-plan-table .task-active td {
  color: #fff;
  font-weight: 500;
}

.project-plan-table .task-active td:first-child,
.project-plan-table .task-active .col-start,
.project-plan-table .task-active .col-end {
  color: #22c55e;
}

.project-plan-table .task-pending td {
  color: #a1a1aa;
}

.project-plan-table .task-milestone {
  background: rgba(168, 85, 247, 0.08);
}

.project-plan-table .task-milestone td {
  font-weight: 500;
  color: #a78bfa;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
}

.status-done {
  background: #166534;
  color: #22c55e;
}

.status-progress {
  background: #1e40af;
  color: #3b82f6;
  animation: pulse-progress 2s ease-in-out infinite;
}

@keyframes pulse-progress {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.status-pending {
  background: #27272a;
  color: #71717a;
}

.status-milestone {
  background: #581c87;
  color: #a78bfa;
}

/* Legend */
.project-plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #27272a;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: #71717a;
}

.legend-item .status-badge {
  width: 1.125rem;
  height: 1.125rem;
  font-size: 0.625rem;
}

/* Responsive */
@media (max-width: 640px) {
  .project-plan {
    padding: 1rem;
    margin: 1.5rem -0.5rem;
    border-radius: 8px;
  }

  .project-plan-table {
    font-size: 0.75rem;
  }

  .project-plan-table th,
  .project-plan-table td {
    padding: 0.5rem 0.375rem;
  }

  .project-plan-table .col-start,
  .project-plan-table .col-end {
    font-size: 0.6875rem;
  }

  .project-plan-legend {
    gap: 0.75rem;
  }
}

/* Welcome Brand Headline */
.welcome-brand {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.welcome-brand-sub {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #a1a1aa;
  margin-top: 0.25rem;
}

/* Welcome Features Grid */
.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.welcome-feature {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #27272a;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.welcome-feature:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #3f3f46;
}

.welcome-feature-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
}

.welcome-feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.welcome-feature-content strong {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e4e4e7;
  letter-spacing: 0.01em;
}

.welcome-feature-content span {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #71717a;
  line-height: 1.5;
}

/* Welcome Details (Accordion) */
.welcome-details {
  margin: 1rem 0;
  border: 1px solid #27272a;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.welcome-details:hover {
  border-color: #3f3f46;
}

.welcome-details[open] {
  border-color: #3f3f46;
}

.welcome-summary {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e4e4e7;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.welcome-summary::-webkit-details-marker {
  display: none;
}

.welcome-summary::after {
  content: '›';
  margin-left: auto;
  font-size: 1.25rem;
  color: #52525b;
  transition: transform 0.2s ease;
}

.welcome-details[open] .welcome-summary::after {
  transform: rotate(90deg);
}

.welcome-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.welcome-details-content {
  padding: 0 1rem 1rem;
  border-top: 1px solid #27272a;
}

.welcome-details-content p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.welcome-details-content p:first-child {
  margin-top: 0.75rem;
}

.welcome-details-content strong {
  color: #e4e4e7;
}

.welcome-details-content a {
  color: #22c55e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.welcome-details-content a:hover {
  color: #4ade80;
  text-decoration: underline;
}

.welcome-details-muted {
  font-size: 0.8125rem;
  color: #52525b;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #27272a;
}

.welcome-details-muted em {
  font-style: normal;
  color: #52525b;
}

/* Intro Headline Section (Bild) */
.intro-headline-section {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #27272a;
}
.intro-headline-section.intro-headline-top {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 1.5rem;
}
.intro-headline-section.intro-headline-top .intro-headline-img {
  max-width: 400px;
}
.intro-headline-figure {
  margin: 0;
  text-align: center;
}
.intro-headline-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.domain-section {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid #27272a;
}
.domain-section:last-of-type {
  border-bottom: none;
}

.domain-title {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
.domain-title.zen-kloster {
  color: #22c55e;
}
.domain-title.yin-zen {
  color: #f97316;
}
.domain-title.zen-leadership {
  color: #dc2626;
}

.domain-meta {
  margin: 0 0 1.25rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #71717a;
  letter-spacing: 0.02em;
}
.domain-section:not(:first-of-type) .domain-meta {
  margin-bottom: 0.5rem;
}

.phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .phases {
    grid-template-columns: 1fr;
  }
}

.phase-card {
  display: flex;
  flex-direction: column;
  background: #18181b;
  border-radius: 8px;
  border: 1px solid #27272a;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phase-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.phase-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.phase-card .phase-body {
  padding: 0.75rem 1rem;
  flex-grow: 1;
}
.phase-card .phase-label {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.phase-card .phase-desc {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #a1a1aa;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.phase-card .phase-card-actions {
  padding: 0.75rem 1rem;
  margin-top: auto;
  margin-bottom: 0;
  border-top: 1px solid #27272a;
  display: flex;
  justify-content: center;
}
.phase-card.zen-kloster .phase-label {
  color: #22c55e;
}
.phase-card.yin-zen .phase-label {
  color: #f97316;
}
.phase-card.zen-leadership .phase-label {
  color: #dc2626;
}
.phase-card.weitere .phase-label {
  color: #a1a1aa;
}

/* Phase Card Note (Warning/Info Text) */
.phase-card-note {
  margin: 0.5rem 1rem 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fbbf24;
  line-height: 1.4;
}

/* Phase Card Apps (App Store Badges) */
.phase-card-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.75rem;
  justify-content: center;
}

/* Store Badges - Direct SVG/PNG images */
.store-badge {
  display: inline-block;
  width: 135px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 6px;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.3s ease;
}
.store-badge:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* App Store Badge (SVG) */
.store-badge--appstore {
  background-image: url('/public/images/badges/Apple_App_Store_Badge.svg');
}

/* Google Play Badge (SVG) */
.store-badge--playstore {
  background-image: url('/public/images/badges/Google_Play_Store_badge_EN.svg');
}

/* Glow Animation for Eye-Catcher */
.store-badge--glow {
  animation: badge-glow 3s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.3), 0 0 16px rgba(167, 139, 250, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6), 0 0 40px rgba(167, 139, 250, 0.3), 0 0 60px rgba(167, 139, 250, 0.1);
  }
}
.store-badge--glow:hover {
  animation-play-state: paused;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.7), 0 0 48px rgba(167, 139, 250, 0.4);
}

/* App Promo Section (Login page eye-catcher) */
.app-promo {
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 500px;
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #27272a;
  border-radius: 12px;
}

/* App Promo with Glow Effect */
.app-promo--glow {
  animation: promo-glow 3s ease-in-out infinite;
}

@keyframes promo-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(167, 139, 250, 0.2), 0 0 30px rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 25px rgba(167, 139, 250, 0.4), 0 0 50px rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
  }
}

.app-promo--glow:hover {
  animation-play-state: paused;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(167, 139, 250, 0.5), 0 0 60px rgba(167, 139, 250, 0.3);
}
.app-promo-claim {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #a1a1aa;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}
.app-promo-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.weitere-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #27272a;
}

.weitere-heading {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.weitere-intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.weitere-grid {
  margin-bottom: 0;
}

.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 0;
  justify-content: center;
}

.hub-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.hub-frontend {
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
}
.hub-frontend:hover {
  background: #3f3f46;
  color: #fff;
}

.hub-backend {
  background: #18181b;
  color: #a1a1aa;
  border: 1px solid #27272a;
}
.hub-backend:hover {
  background: #27272a;
  color: #fff;
}

.domain-section .hub-links a.zen-kloster {
  border-color: #22c55e;
  color: #22c55e;
}
.domain-section .hub-links a.zen-kloster:hover {
  background: #14532d;
  color: #86efac;
}

.domain-section .hub-links a.yin-zen {
  border-color: #f97316;
  color: #f97316;
}
.domain-section .hub-links a.yin-zen:hover {
  background: #7c2d12;
  color: #fdba74;
}

.domain-section .hub-links a.zen-leadership {
  border-color: #dc2626;
  color: #dc2626;
}
.domain-section .hub-links a.zen-leadership:hover {
  background: #7f1d1d;
  color: #fca5a5;
}

.linklist-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #27272a;
}

.linklist-heading {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #fff;
}

.linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.linklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.linklist a {
  color: #166534;
  text-decoration: none;
}
.linklist a:hover {
  text-decoration: underline;
}
.linklist .linklist-desc {
  font-size: 0.875rem;
  color: #a1a1aa;
}

.error-404-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f12;
  color: #e4e4e7;
}

.error-404 {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.error-404-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.error-404-text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #a1a1aa;
}

.error-404-figure {
  margin: 0 0 1.5rem;
}
.error-404-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #27272a;
}

.error-404-back {
  margin: 0;
}

.error-404-link {
  color: #166534;
  text-decoration: none;
}
.error-404-link:hover {
  text-decoration: underline;
}

/* Cookie-Banner (Entwicklungsumgebung) */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  z-index: 9999;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner-text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #e4e4e7;
}
.cookie-banner-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #166534;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cookie-banner-btn:hover {
  background: #15803d;
}
@media (min-width: 480px) {
  .cookie-banner {
    left: auto;
    right: 1rem;
    margin: 0;
  }
}

/* ============================================
   FLOATING DOMAIN NAVIGATION
   Schwebt links, sanftes Gleiten zu Sections
   ============================================ */

.floating-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 1rem 0;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: floatNavIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes floatNavIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.floating-nav-header {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  padding: 0 1.25rem 0.75rem;
  border-bottom: 1px solid #27272a;
  margin-bottom: 0.5rem;
}

.floating-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.floating-nav-list li {
  margin: 0;
}

.floating-nav-link {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.floating-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: currentColor;
  border-radius: 0 2px 2px 0;
  transition: height 0.2s ease;
}

.floating-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
}

.floating-nav-link:hover::before {
  height: 60%;
}

.floating-nav-link.is-active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  padding-left: 1.5rem;
}

.floating-nav-link.is-active::before {
  height: 60%;
  background: #22c55e;
}

/* Domain color accents on hover */
.floating-nav-link[data-domain="zen-kloster"]:hover,
.floating-nav-link[data-domain="zen-kloster"].is-active {
  color: #ef4444;
}
.floating-nav-link[data-domain="zen-kloster"]:hover::before,
.floating-nav-link[data-domain="zen-kloster"].is-active::before {
  background: #ef4444;
}

.floating-nav-link[data-domain="yin-zen"]:hover,
.floating-nav-link[data-domain="yin-zen"].is-active {
  color: #a855f7;
}
.floating-nav-link[data-domain="yin-zen"]:hover::before,
.floating-nav-link[data-domain="yin-zen"].is-active::before {
  background: #a855f7;
}

.floating-nav-link[data-domain="zen-leadership"]:hover,
.floating-nav-link[data-domain="zen-leadership"].is-active {
  color: #dc2626;
}
.floating-nav-link[data-domain="zen-leadership"]:hover::before,
.floating-nav-link[data-domain="zen-leadership"].is-active::before {
  background: #dc2626;
}

.floating-nav-link[data-domain="weitere"]:hover,
.floating-nav-link[data-domain="weitere"].is-active {
  color: #a78bfa;
}
.floating-nav-link[data-domain="weitere"]:hover::before,
.floating-nav-link[data-domain="weitere"].is-active::before {
  background: #a78bfa;
}

/* Hide on smaller screens / mobile */
@media (max-width: 1200px) {
  .floating-nav {
    display: none;
  }
}

/* Einstellungen / Zurück-Button / Health */
.back-link-row {
  margin-bottom: 1.5rem;
}
.back-link {
  display: inline-block;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.back-link:hover {
  color: #fff;
}
.settings-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #18181b;
  border-radius: 8px;
  border: 1px solid #27272a;
}
.settings-section h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #fff;
}
.health-intro,
.phpinfo-intro {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin: 0 0 0.75rem;
}
.health-result {
  margin: 0.75rem 0;
  font-size: 0.8125rem;
  color: #a1a1aa;
}
.health-result .health-error {
  color: #fca5a5;
  margin-bottom: 0.5rem;
}
.health-pre {
  margin: 0;
  padding: 1rem;
  background: #27272a;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 20rem;
  overflow-y: auto;
}
.button-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #52525b;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.button-secondary:hover {
  background: #3f3f46;
  color: #fff;
}


/* Debug Toggle Section */
.debug-section {
  margin-top: 1.5rem;
}
.debug-intro {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin: 0 0 0.75rem;
}
.debug-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.debug-status {
  font-size: 0.875rem;
  color: #e4e4e7;
  transition: opacity 0.2s ease;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3f3f46;
  border-radius: 26px;
  transition: background-color 0.3s ease;
}
.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #e4e4e7;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #22c55e;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

/* Admin Dropdown Menu */
.header-admin-dropdown {
  position: relative;
  display: inline-block;
}
.header-admin-toggle {
  background: none;
  border: none;
  color: #a1a1aa;
  font: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}
.header-admin-toggle:hover {
  color: #fff;
}
.header-admin-toggle .admin-chevron {
  font-size: 0.625rem;
  transition: transform 0.2s ease;
}
.header-admin-dropdown.is-open .admin-chevron {
  transform: rotate(180deg);
}
.admin-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 320px;
  max-width: 400px;
  max-height: 70vh;
  overflow-y: auto;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.header-admin-dropdown.is-open .admin-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.admin-dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #27272a;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.admin-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.admin-dropdown-list li {
  padding: 0.375rem 1rem;
}
.admin-dropdown-list a {
  display: block;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s ease;
}
.admin-dropdown-list a:hover {
  color: #22c55e;
}
.admin-dropdown-desc {
  display: block;
  font-size: 0.6875rem;
  color: #71717a;
  margin-top: 0.125rem;
}

/* ============================================
   ZEN HUB MEGA MENU (Header Burger Menu)
   Unified navigation for logged-in users
   ============================================ */

/* Header Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* CTA Button in Header */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #C53030;
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta-btn:hover {
  background: #9B2C2C;
  transform: translateY(-1px);
}

/* Social Link in Header */
.header-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa !important;
  transition: color 0.2s ease;
}

.header-social-link:hover {
  color: #fff !important;
}

.header-social-text {
  font-size: 0.8125rem;
}

.header-social-icon {
  width: 20px;
  height: 20px;
}

/* Hub Burger Button */
.hub-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hub-burger:hover {
  background: #3f3f46;
  border-color: #52525b;
}

.hub-burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #e4e4e7;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hub-burger.is-open .hub-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hub-burger.is-open .hub-burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hub-burger.is-open .hub-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hub Mega Menu Panel */
.hub-mega-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 700px;
  height: 100vh;
  background: linear-gradient(180deg, #18181b 0%, #0f0f12 100%);
  border-left: 1px solid #27272a;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.4s;
  overflow-y: auto;
}

.hub-mega-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0s;
}

.hub-mega-inner {
  padding: 2rem;
  padding-top: 5rem;
}

/* User Info Section */
.hub-mega-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(39, 39, 42, 0.5);
  border: 1px solid #3f3f46;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hub-mega-avatar {
  font-size: 2rem;
  line-height: 1;
}

.hub-mega-username {
  flex: 1;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #e4e4e7;
}

.hub-mega-logout button {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #52525b;
  border-radius: 6px;
  color: #a1a1aa;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hub-mega-logout button:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* Columns Layout */
.hub-mega-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.hub-mega-col {
  min-width: 0;
}

.hub-mega-title {
  font-family: 'Push', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #27272a;
}

.hub-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-mega-list li {
  margin-bottom: 0.5rem;
}

.hub-mega-list a {
  display: block;
  padding: 0.625rem 0.75rem;
  color: #a1a1aa;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hub-mega-list a:hover {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

.hub-mega-list--compact a {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.75rem;
  }

  .header-cta-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .header-social-text {
    display: none;
  }

  .hub-mega-menu {
    max-width: 100%;
  }

  .hub-mega-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   BOOKMARKS PAGE
   Elegante Linkliste mit sanften Animationen
   ============================================ */

.bookmarks-page {
  min-height: 100vh;
}

.bookmarks-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.bookmarks-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bookmarks-title {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.bookmarks-icon {
  font-size: 1.5rem;
}

.bookmarks-subtitle {
  font-size: 1rem;
  color: #71717a;
  margin: 0;
}

/* Bookmarks Grid */
.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

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

/* Category Card */
.bookmark-category {
  background: linear-gradient(145deg, #1c1c1f 0%, #18181b 100%);
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.bookmark-category:hover {
  border-color: #3f3f46;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Category Header */
.bookmark-category-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.bookmark-category-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.bookmark-category-header:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.bookmark-category-header:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.5);
}

.category-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 1rem;
  flex-shrink: 0;
}

.category-icon svg {
  width: 16px;
  height: 16px;
}

.category-title {
  flex: 1;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.bookmark-category:hover .category-count {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.08);
}

.category-chevron {
  font-size: 1.25rem;
  color: #52525b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.bookmark-category-header[aria-expanded="true"] .category-chevron {
  transform: rotate(90deg);
}

.bookmark-category:hover .category-chevron {
  color: #71717a;
}

/* Category Content */
.bookmark-category-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bookmark-category.is-collapsed .bookmark-category-content {
  max-height: 0 !important;
}

/* Bookmark Links */
.bookmark-links {
  padding: 0 0.75rem 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.bookmark-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bookmark-link:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.bookmark-link:focus {
  outline: none;
  background: rgba(34, 197, 94, 0.1);
}

.bookmark-link:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.link-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e4e4e7;
  transition: color 0.2s ease;
}

.bookmark-link:hover .link-name {
  color: #22c55e;
}

.link-desc {
  display: block;
  font-size: 0.75rem;
  color: #52525b;
  margin-top: 0.125rem;
  transition: color 0.2s ease;
}

.bookmark-link:hover .link-desc {
  color: #71717a;
}

/* Bookmarks Footer */
.bookmarks-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #27272a;
  animation: fadeIn 0.6s ease 0.3s both;
}

.bookmarks-count {
  font-size: 0.9375rem;
  color: #a1a1aa;
  margin: 0 0 0.25rem;
}

.bookmarks-source {
  font-size: 0.8125rem;
  color: #52525b;
  margin: 0;
}

/* Header back link */
.header-back-link {
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-back-link:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bookmark-category,
  .bookmarks-header,
  .bookmarks-footer,
  .bookmark-category-content,
  .category-chevron,
  .bookmark-link {
    animation: none;
    transition: none;
  }
}

/* Microsoft category accent */
.bookmark-category[data-category="microsoft"] .category-icon {
  background: rgba(0, 120, 212, 0.15);
  color: #0078d4;
}

/* Zen Kloster accent */
.bookmark-category[data-category="zen-kloster"] .category-icon {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

/* Yin Zen accent */
.bookmark-category[data-category="yin-zen"] .category-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

/* Zen Leadership accent */
.bookmark-category[data-category="zen-leadership"] .category-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Förderkreis accent */
.bookmark-category[data-category="foerderkreis"] .category-icon {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

/* LANcloud accent */
.bookmark-category[data-category="lancloud"] .category-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Hosting accent */
.bookmark-category[data-category="hosting"] .category-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Domains accent */
.bookmark-category[data-category="domains"] .category-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Network accent */
.bookmark-category[data-category="network"] .category-icon {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
}

/* Services accent */
.bookmark-category[data-category="services"] .category-icon {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

/* Providers accent */
.bookmark-category[data-category="providers"] .category-icon {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

/* ============================================
   DEVELOPER TOOLTIPS
   Element labels for design communication
   ============================================ */

/* Tooltip - uses fixed positioning to avoid layout shifts */
body.tooltips-enabled [data-element] {
  /* No position change - tooltips are rendered via JS */
}

/* Tooltip element (injected via JS) */
.dev-tooltip {
  position: fixed;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d3d 100%);
  color: #a78bfa;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid #3f3f5f;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.1);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dev-tooltip.is-visible {
  opacity: 1;
  transform: scale(1);
}

.dev-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2d2d3d;
}

/* Tooltip Toggle in Footer */
.tooltip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #52525b;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.15s ease;
  user-select: none;
}

.tooltip-toggle:hover {
  color: #a78bfa;
}

.tooltip-toggle-checkbox {
  position: relative;
  width: 32px;
  height: 18px;
  background: #3f3f46;
  border-radius: 9px;
  transition: background 0.2s ease;
}

.tooltip-toggle-checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #71717a;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tooltip-toggle.is-active .tooltip-toggle-checkbox {
  background: rgba(167, 139, 250, 0.3);
}

.tooltip-toggle.is-active .tooltip-toggle-checkbox::after {
  transform: translateX(14px);
  background: #a78bfa;
}

/* Pulse animation when tooltips are active */
body.tooltips-enabled .tooltip-toggle-checkbox::after {
  animation: tooltipPulse 2s ease-in-out infinite;
}

@keyframes tooltipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(167, 139, 250, 0); }
}

/* ============================================
   UNIFIED SITE FOOTER
   Based on Screendesign by Judy
   Full-width bar like the header
   ============================================ */

.site-footer {
  width: 100%;
  background: #0a0a0a;
  border-top: 1px solid #27272a;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #27272a;
}

/* Navigation Columns */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-link {
  color: #d4d4d8;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.footer-link:hover {
  color: #fff;
}

.footer-link--social {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.footer-instagram-icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
  transition: stroke 0.15s ease;
}

.footer-link--social:hover .footer-instagram-icon {
  stroke: #c13584;
}

/* Newsletter Column */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 2rem;
  border-left: 2px solid #3f3f46;
}

.footer-newsletter-title {
  font-family: 'Push', system-ui, -apple-system, sans-serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.footer-newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  background: transparent;
  color: #d4d4d8;
  border: 1px solid #52525b;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-newsletter-btn:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.footer-newsletter-arrow {
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.footer-newsletter-btn:hover .footer-newsletter-arrow {
  transform: translateX(4px);
}

/* Legal Links Row */
.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.375rem 0;
  border-bottom: 1px solid #27272a;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem 2.25rem;
}

.footer-legal-link {
  color: #71717a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.footer-legal-link:hover {
  color: #d4d4d8;
}

/* Copyright Row */
.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.125rem 0 0.625rem;
  text-align: center;
}

.footer-copyright p {
  color: #52525b;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Dev Tools Row */
.footer-dev-tools {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  border-top: 1px dashed #1f1f23;
}

.footer-dev-link {
  color: #52525b;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.footer-dev-link:hover {
  color: #a78bfa;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-newsletter-col {
    grid-column: span 2;
    border-left: none;
    padding-left: 0;
    padding-top: 2rem;
    border-top: 1px solid #27272a;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 2rem 1.5rem 1rem;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-nav-col {
    align-items: center;
    text-align: center;
  }

  .footer-newsletter-col {
    grid-column: span 1;
  }

  .footer-newsletter-title {
    font-size: 1.5rem;
  }

  .footer-legal-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-dev-tools {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Hide old page-footer when site-footer is present */
.site-footer ~ .page-footer,
.page-footer + .site-footer ~ .page-footer {
  display: none;
}

/* ============================================
   STARFIELD / HYPERSPACE LOGIN EFFECT
   Canvas-based star animation with warp speed
   ============================================ */

.starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, #1a1a2e 0%, #0f0f12 50%, #080810 100%);
}

/* Hyperspace Flash Overlay - 100% weiß, bleibt bis zum Redirect */
.hyperspace-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.hyperspace-flash.is-active {
  animation: hyperspace-flash-in 0.8s ease-out forwards;
}

@keyframes hyperspace-flash-in {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.3;
  }
  60% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Make login elements float above starfield */
.login-layout {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease-out;
}

.app-promo {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease-out;
}

/* Subtle glow around login box during normal state */
.login-box {
  position: relative;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Add subtle star-glow animation to login box */
.login-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(167, 139, 250, 0.1) 25%,
    transparent 50%,
    rgba(139, 167, 250, 0.1) 75%,
    transparent 100%
  );
  border-radius: inherit;
  z-index: -1;
  animation: login-box-shimmer 8s ease-in-out infinite;
}

@keyframes login-box-shimmer {
  0%, 100% {
    opacity: 0.3;
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.6;
    background-position: 100% 50%;
  }
}

/* Add cosmic glow to brand image area */
.login-brand {
  position: relative;
}

.login-brand::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: cosmic-pulse 6s ease-in-out infinite;
}

@keyframes cosmic-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* ============================================
   KEN BURNS BACKGROUND SLIDESHOW
   Logged-in dashboard background effect
   ============================================ */
.kenburns-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #0f0f12;
}

.kenburns-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2s ease-in-out;
  animation: kenburns-zoom 20s ease-in-out infinite alternate;
}

.kenburns-slide--active {
  opacity: 0.4;
}

/* Verschiedene Ken Burns Richtungen für Abwechslung */
.kenburns-slide:nth-child(1) {
  animation-name: kenburns-1;
}

.kenburns-slide:nth-child(2) {
  animation-name: kenburns-2;
}

@keyframes kenburns-1 {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-2%, -1%);
  }
}

@keyframes kenburns-2 {
  0% {
    transform: scale(1.1) translate(-1%, 1%);
  }
  100% {
    transform: scale(1) translate(1%, -1%);
  }
}

/* Overlay gradient für bessere Lesbarkeit */
.kenburns-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 18, 0.7) 0%,
    rgba(15, 15, 18, 0.5) 30%,
    rgba(15, 15, 18, 0.6) 70%,
    rgba(15, 15, 18, 0.9) 100%
  );
  pointer-events: none;
}

/* ============================================
   LIQUID GLASS / REFRACTION CARD EFFECT
   SVG-based displacement + glassmorphism
   ============================================ */
.liquid-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: url(#refractionFilter) blur(4px) brightness(1.1) contrast(1.3);
  -webkit-backdrop-filter: url(#refractionFilter) blur(4px) brightness(1.1) contrast(1.1);
  border-radius: 30px;
  box-shadow:
    inset 0 0 50px rgba(255, 255, 255, 0.05),
    0 0 40px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Remove any inherited ::before that might break the effect */
.liquid-glass::before {
  content: none !important;
}

/* Highlight gradient overlay */
.liquid-glass::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08) 10%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 80%
  );
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Ensure content is above effects */
.liquid-glass > * {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* Fallback for browsers without SVG filter support */
@supports not (backdrop-filter: url(#refractionFilter)) {
  .liquid-glass {
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Welcome box specific adjustments for liquid glass */
.welcome-box.liquid-glass {
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.welcome-box.liquid-glass h2 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.welcome-box.liquid-glass .welcome-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Project plan as collapsible details */
details.project-plan {
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

details.project-plan > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: 'Push', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  list-style: none;
  transition: background 0.2s ease;
}

details.project-plan > summary::-webkit-details-marker {
  display: none;
}

details.project-plan > summary::before {
  content: '›';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details.project-plan[open] > summary::before {
  transform: rotate(90deg);
}

details.project-plan > summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

details.project-plan > summary .project-plan-meta {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Roboto', sans-serif;
}

details.project-plan .project-plan-table-wrapper {
  padding: 0 1.25rem 1.25rem;
}

details.project-plan .project-plan-legend {
  padding: 0 1.25rem 1.25rem;
}

/* ============================================
   THEME TOGGLE - Apple-style switch
   ============================================ */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-track {
  position: relative;
  width: 52px;
  height: 28px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #f0f0f0 0%, #d0d0d0 100%);
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

/* Icons */
.theme-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon--sun {
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: #fbbf24;
  opacity: 1;
}

.theme-icon--moon {
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  opacity: 0.5;
}

/* Light mode active state */
[data-theme="light"] .theme-toggle-track {
  background: linear-gradient(135deg, #87ceeb 0%, #b4d7e8 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle-thumb {
  left: calc(100% - 24px);
  background: linear-gradient(145deg, #fef3c7 0%, #fcd34d 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 12px rgba(251, 191, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .theme-icon--sun {
  opacity: 0.5;
  color: #f59e0b;
}

[data-theme="light"] .theme-icon--moon {
  opacity: 1;
  color: #1e3a5f;
}

/* Hover effect */
.theme-toggle:hover .theme-toggle-thumb {
  transform: scale(1.05);
}

.theme-toggle:active .theme-toggle-thumb {
  transform: scale(0.95);
}

/* Focus state for accessibility */
.theme-toggle:focus-visible .theme-toggle-track {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

/* ============================================
   LIGHT MODE THEME
   ============================================ */
[data-theme="light"] body {
  background: #f8fafc;
  color: #1e293b;
}

[data-theme="light"] .page-header {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .page-header h1 {
  color: #1e293b;
}

[data-theme="light"] .header-enso {
  color: #1e293b;
}

[data-theme="light"] .welcome-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .welcome-box h2 {
  color: #1e293b;
}

[data-theme="light"] .welcome-box p,
[data-theme="light"] .welcome-text {
  color: #475569;
}

[data-theme="light"] details.project-plan {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] details.project-plan > summary {
  color: #1e293b;
}

[data-theme="light"] details.project-plan > summary::before {
  color: #475569;
}

[data-theme="light"] details.project-plan > summary .project-plan-meta {
  color: #94a3b8;
}

[data-theme="light"] details.project-plan > summary:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .phase-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .phase-label,
[data-theme="light"] .domain-title {
  color: #1e293b;
}

[data-theme="light"] .phase-desc {
  color: #475569;
}

[data-theme="light"] .hub-frontend,
[data-theme="light"] .hub-backend {
  border-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .kenburns-bg::after {
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.85) 0%,
    rgba(248, 250, 252, 0.7) 30%,
    rgba(248, 250, 252, 0.75) 70%,
    rgba(248, 250, 252, 0.95) 100%
  );
}

[data-theme="light"] .floating-nav {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .floating-nav-header,
[data-theme="light"] .floating-nav-link {
  color: #1e293b;
}

[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .footer-link,
[data-theme="light"] .footer-dev-link {
  color: #475569;
}

[data-theme="light"] .hub-mega-menu {
  background: #ffffff;
  border-left-color: #e2e8f0;
}

[data-theme="light"] .hub-mega-title {
  color: #1e293b;
}

[data-theme="light"] .hub-mega-list a {
  color: #475569;
}

[data-theme="light"] .header-cta-btn {
  background: #166534;
  color: #fff;
}

[data-theme="light"] .hub-burger-line {
  background: #1e293b;
}

[data-theme="light"] .welcome-feature {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .welcome-feature-content strong {
  color: #1e293b;
}

[data-theme="light"] .welcome-feature-content span {
  color: #475569;
}

[data-theme="light"] .welcome-details {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .welcome-summary {
  color: #1e293b;
}

[data-theme="light"] .welcome-details-content {
  color: #475569;
}

[data-theme="light"] .domain-meta {
  color: #94a3b8;
}

[data-theme="light"] .weitere-heading {
  color: #1e293b;
}

[data-theme="light"] .weitere-intro {
  color: #475569;
}
