/* PHP-Ticketsystem & alte Seiten: gleiche Komponenten wie Landing (flxry-landing-layout.css) */

body.flxry-php-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.flxry-php-app > main {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* page-hero = gleiche Anmutung wie .hero, ohne volle Viewport-Höhe */
.page-hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 5% 3rem;
}

.page-hero .container {
  width: 100%;
  max-width: 960px;
}

.page-hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.page-hero .hero-text h1,
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
}

.page-hero .hero-text p,
.page-hero .hero-content > .hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.35rem;
}

/* Alte Buttons → Landing-Buttons */
.page-hero .secondary-button,
.content-section .secondary-button {
  color: var(--text-primary);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--card-border);
  background: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

html[data-theme="dark"] .page-hero .secondary-button,
html[data-theme="dark"] .content-section .secondary-button {
  color: var(--text-light);
  background: transparent;
}

.page-hero .secondary-button:hover,
.content-section .secondary-button:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--navy-mid);
}

.page-hero .cta-button,
.content-section .cta-button {
  background: var(--accent-blue);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  border: none;
}

html[data-theme='dark'] .page-hero .cta-button,
html[data-theme='dark'] .content-section .cta-button {
  background: #60a5fa;
  color: #0a0f1a;
  box-shadow: none;
}

.page-hero .cta-button:hover,
.content-section .cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

html[data-theme='dark'] .page-hero .cta-button:hover,
html[data-theme='dark'] .content-section .cta-button:hover {
  box-shadow: 0 8px 28px rgba(96, 165, 250, 0.28);
}

.content-section {
  position: relative;
  z-index: 1;
  padding: 2rem 5% 5rem;
}

.content-section .container {
  max-width: var(--flxry-content-max, 1140px);
  margin: 0 auto;
}

/* Impressum, Datenschutz, AGB (nutzt --flxry-link aus flxry-landing-layout.css) */
.content-section.legal-text a {
  color: var(--flxry-link);
  text-decoration: none;
}
.content-section.legal-text a:hover {
  color: var(--flxry-link-hover);
  text-decoration: underline;
}

/* Rechtstexte (Datenschutz, Impressum, AGB): kein Hero — Intro + Prose wie Portfolio */
body.flxry-php-app .content-section.legal-text.flxry-legal-section {
  background: var(--navy-mid);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.flxry-legal-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.flxry-legal-notice {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.flxry-legal-prose {
  max-width: 42rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.flxry-legal-prose > h2:first-of-type {
  margin-top: 0;
}

body.flxry-php-app .flxry-legal-section .flxry-legal-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

body.flxry-php-app .flxry-legal-section .flxry-legal-prose h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

body.flxry-php-app .flxry-legal-section .flxry-legal-prose p,
body.flxry-php-app .flxry-legal-section .flxry-legal-prose li {
  color: var(--text-muted);
}

body.flxry-php-app .flxry-legal-section .flxry-legal-prose strong {
  color: var(--text-primary);
}

body.flxry-php-app .flxry-legal-section .flxry-legal-prose ul li::before {
  color: var(--flxry-link);
}

body.flxry-php-app .flxry-legal-section .flxry-legal-prose ol li::before {
  color: var(--flxry-link);
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.view-all-link {
  color: var(--flxry-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.view-all-link:hover {
  color: var(--flxry-link-hover);
  text-decoration: underline;
}

/* Karten / Listen wie Service-Cards */
.stat-card,
.ticket-item,
.support-form,
.support-info,
.customer-info {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover,
.ticket-item.ticket-clickable:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

html[data-theme='dark'] .stat-card:hover,
html[data-theme='dark'] .ticket-item.ticket-clickable:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

.stat-card .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-text {
  color: var(--text-muted);
}

/* Eingeloggt: etwas kompaktere Abstände bei mehr Nav-Punkten */
body.flxry-customer-session:not(.admin-body) nav .nav-links {
  gap: clamp(0.75rem, 1.4vw, 1.35rem);
}

/* Navigation: Konto-Dropdown (eingeloggte Kunden) */
.nav-account-wrap {
  position: relative;
  list-style: none;
}

.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.28);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-account-toggle:hover,
.nav-account-toggle[aria-expanded="true"] {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.4);
}

.nav-account-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

html[data-theme='dark'] .nav-account-toggle {
  background: rgba(96, 165, 250, 0.14);
  color: var(--flxry-link);
  border-color: rgba(96, 165, 250, 0.32);
}

html[data-theme='dark'] .nav-account-toggle:hover,
html[data-theme='dark'] .nav-account-toggle[aria-expanded='true'] {
  background: rgba(96, 165, 250, 0.22);
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.48);
}

html[data-theme='dark'] .nav-account-item:hover {
  background: rgba(96, 165, 250, 0.12);
}

html[data-theme='dark'] .nav-account-item--action i {
  color: var(--flxry-link);
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  width: max(100%, 12rem);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  z-index: 120;
  overflow: hidden;
  box-sizing: border-box;
}

html[data-theme="dark"] .nav-account-menu {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.nav-account-menu[hidden] {
  display: none !important;
}

.nav-account-menu li {
  list-style: none;
}

.nav-account-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-account-item:hover {
  background: rgba(37, 99, 235, 0.1);
}

.nav-account-item--action {
  color: var(--text-primary);
}

.nav-account-item i {
  width: 1.1rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.95em;
  line-height: 1;
}

.nav-account-item--action i {
  color: var(--accent-blue);
}

.nav-account-item--logout {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--card-border);
  color: #b91c1c;
  font-weight: 500;
}

.nav-account-item--logout i {
  color: #b91c1c;
  opacity: 0.95;
}

.nav-account-item--logout:hover {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
}

.nav-account-item--logout:hover i {
  color: inherit;
}

html[data-theme="dark"] .nav-account-item--logout {
  color: #f87171;
}

html[data-theme="dark"] .nav-account-item--logout i {
  color: #f87171;
}

html[data-theme="dark"] .nav-account-item--logout:hover {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.14);
}

@media (max-width: 900px) {
  .nav-links.open .nav-account-menu {
    position: static;
    left: auto;
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
    min-width: 0;
    box-shadow: none;
  }

  .nav-links.open .nav-account-toggle {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .nav-links.open .nav-account-menu .nav-account-item {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links.open .nav-account-menu li {
    margin: 0;
    padding: 0;
  }
}

/* Ticket-Formular wie Kontaktformular */
.ticket-form .form-group label,
.support-form .form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

html[data-theme="dark"] .ticket-form input,
html[data-theme="dark"] .ticket-form select,
html[data-theme="dark"] .ticket-form textarea,
html[data-theme="dark"] .support-form input,
html[data-theme="dark"] .support-form select,
html[data-theme="dark"] .support-form textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-light);
}

html[data-theme="dark"] .ticket-form input::placeholder,
html[data-theme="dark"] .ticket-form textarea::placeholder,
html[data-theme="dark"] .support-form input::placeholder,
html[data-theme="dark"] .support-form textarea::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus,
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
}

html[data-theme='dark'] .ticket-form input:focus,
html[data-theme='dark'] .ticket-form select:focus,
html[data-theme='dark'] .ticket-form textarea:focus,
html[data-theme='dark'] .support-form input:focus,
html[data-theme='dark'] .support-form select:focus,
html[data-theme='dark'] .support-form textarea:focus {
  border-color: rgba(96, 165, 250, 0.55);
}

.ticket-form button[type='submit'],
.submit-ticket-btn,
.primary-button {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

html[data-theme='dark'] .ticket-form button[type='submit'],
html[data-theme='dark'] .submit-ticket-btn,
html[data-theme='dark'] .primary-button {
  background: #60a5fa;
  color: #0a0f1a;
  box-shadow: none;
}

.ticket-form button[type='submit']:hover,
.submit-ticket-btn:hover,
.primary-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

html[data-theme='dark'] .ticket-form button[type='submit']:hover,
html[data-theme='dark'] .submit-ticket-btn:hover,
html[data-theme='dark'] .primary-button:hover {
  box-shadow: 0 6px 22px rgba(96, 165, 250, 0.28);
}

/* Profil-Modal */
.profile-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  /* Wird per JS auf display:flex gesetzt -> sauber zentriert, auch wenn body fixiert ist */
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vh, 4rem) 1rem calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

html[data-theme='dark'] .profile-modal {
  background: rgba(0, 0, 0, 0.65);
}

.profile-modal-content {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card) !important;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - clamp(2rem, 8vh, 8rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: flxry-profile-slide-in 0.3s ease;
}

/* Dunkelmodus: --card-bg ist absichtlich glasig (rgba); Profil-Modal soll deckend sein */
html[data-theme='dark'] .profile-modal-content {
  background-color: var(--navy-mid) !important;
}

@keyframes flxry-profile-slide-in {
  from {
    transform: translateY(-24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.profile-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  flex: 0 0 auto;
}

.profile-modal-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.profile-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.15rem;
  color: var(--text-muted);
}

.profile-modal-close:hover {
  color: var(--accent-blue);
}

.profile-modal-footer {
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: 1px solid var(--card-border);
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.profile-btn {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}

.profile-form-group {
  margin-bottom: 1.25rem;
}

.profile-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-form-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.profile-form-group input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5) !important;
}

.profile-alert {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: none;
}

.profile-modal-header {
  background: var(--navy-mid) !important;
  border-bottom-color: var(--card-border) !important;
}

.profile-modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.profile-form-group input {
  background: var(--navy) !important;
  color: var(--text-primary) !important;
  border-color: var(--card-border) !important;
}

html[data-theme='dark'] .profile-form-group input {
  background: var(--navy) !important;
  color: var(--text-light) !important;
}

.profile-modal-footer {
  background: var(--navy-mid) !important;
  border-top-color: var(--card-border) !important;
}

.profile-btn-primary {
  background: var(--accent-blue) !important;
  border-radius: var(--radius-sm) !important;
  color: #fff !important;
}

html[data-theme='dark'] .profile-btn-primary {
  background: #60a5fa !important;
  color: #0a0f1a !important;
}

/* Überschreibt alte Inline-Styles in customer/*.php (Hero zentriert wie Landing) */
body.flxry-php-app .page-hero .hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  text-align: center;
}

body.flxry-php-app .page-hero .hero-actions {
  justify-content: center !important;
  width: 100%;
}

body.flxry-php-app .page-hero .hero-text h1 {
  color: var(--text-primary) !important;
}

body.flxry-php-app .page-hero .hero-text p {
  color: var(--text-muted) !important;
}

/* —— Kompakter Hero (Unterseiten, z. B. Login) —— */
body.flxry-php-app .hero.hero--compact {
  min-height: auto;
  padding: 7.5rem 5% 2.5rem;
  text-align: center;
  align-items: center;
}

body.flxry-php-app .hero.hero--compact .hero-stats {
  display: none;
}

/* —— Kunden-Login (/kunde/login) —— */
.flxry-customer-login .flxry-subpage-intro--left {
  margin-bottom: 2rem;
}

.flxry-customer-login .login-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}

@media (min-width: 901px) {
  .flxry-customer-login .login-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  }
}

.flxry-customer-login .features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 520px) {
  .flxry-customer-login .features-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
  }
}

.flxry-customer-login .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.flxry-customer-login .feature-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

html[data-theme='dark'] .flxry-customer-login .feature-item:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

.flxry-customer-login .feature-item i {
  color: var(--accent-blue);
  font-size: 1.35rem;
  margin-top: 0.15rem;
  width: 1.5rem;
  flex-shrink: 0;
}

.flxry-customer-login .feature-item h3 {
  margin: 0 0 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.flxry-customer-login .feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.flxry-customer-login .help-section {
  background: var(--card-bg);
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.flxry-customer-login .help-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent-blue);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.flxry-customer-login .help-section p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.flxry-customer-login .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--flxry-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.flxry-customer-login .contact-link:hover {
  color: var(--flxry-link-hover);
  text-decoration: underline;
}

.flxry-customer-login .login-form-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: sticky;
  top: 6rem;
}

.flxry-customer-login .login-form-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 400px;
}

.flxry-customer-login .login-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
  opacity: 0.95;
}

html[data-theme='dark'] .flxry-customer-login .login-form-card::before {
  background: #60a5fa;
}

.flxry-customer-login .form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.flxry-customer-login .login-form-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-blue);
  font-size: 1.5rem;
}

html[data-theme='dark'] .flxry-customer-login .login-form-card__icon {
  background: rgba(96, 165, 250, 0.14);
  color: var(--flxry-link);
}

.flxry-customer-login .form-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.flxry-customer-login .form-header__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.flxry-customer-login .login-form__hcaptcha .h-captcha {
  margin-top: 0.35rem;
}

.flxry-customer-login .login-form__hcaptcha iframe {
  max-width: 100%;
}

.flxry-customer-login .login-form {
  position: relative;
}

.flxry-customer-login .login-form .form-group {
  margin-bottom: 1.25rem;
}

.flxry-customer-login .login-form .form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.flxry-customer-login .login-form .form-group label i {
  color: var(--flxry-link);
  width: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.flxry-customer-login .login-form .form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--navy);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

html[data-theme='dark'] .flxry-customer-login .login-form .form-group input {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.flxry-customer-login .login-form .form-group input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
}

html[data-theme='dark'] .flxry-customer-login .login-form .form-group input:focus {
  border-color: rgba(96, 165, 250, 0.55);
}

.flxry-customer-login .login-form .form-group input::placeholder {
  color: var(--text-dim);
}

.flxry-customer-login .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.flxry-customer-login .input-wrapper input {
  padding-right: 3rem;
}

.flxry-customer-login .toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  z-index: 2;
  transition: color 0.2s;
}

.flxry-customer-login .toggle-password:hover {
  color: var(--accent-blue);
}

.flxry-customer-login .login-button {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1.25rem;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

html[data-theme='dark'] .flxry-customer-login .login-button {
  background: #60a5fa;
  color: #0a0f1a;
  box-shadow: none;
}

.flxry-customer-login .login-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

html[data-theme='dark'] .flxry-customer-login .login-button:hover {
  box-shadow: 0 6px 22px rgba(96, 165, 250, 0.28);
}

.flxry-customer-login .form-footer {
  border-top: 1px solid var(--card-border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.flxry-customer-login .security-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
  line-height: 1.45;
}

.flxry-customer-login .security-note i {
  color: var(--flxry-link);
  flex-shrink: 0;
}

.flxry-customer-login .alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.flxry-customer-login .alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--text-primary);
}

.flxry-customer-login .alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--text-primary);
}

.flxry-customer-login .honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .flxry-customer-login .login-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .flxry-customer-login .login-form-container {
    position: static;
    order: -1;
    justify-content: center;
    width: 100%;
  }

  .flxry-customer-login .login-form-card {
    max-width: 420px;
  }

  .flxry-customer-login .login-info {
    order: 1;
  }
}

/* ---- Unterseiten: Hero & Content wie Landing (#preise-Bereich) ---- */
body.flxry-php-app .page-hero p {
  color: var(--text-muted);
}

/* Portfolio / Über mich: kein separater Hero — Intro im Content, linksbündig */
.content-section.flxry-subpage-first {
  padding-top: clamp(5.5rem, 12vw, 7.5rem);
}

/* Mobile: mehr Luft zwischen festem Header und Section-Tag (Login, Support, Rechtstexte, Kundenbereich) */
@media (max-width: 600px) {
  body.flxry-php-app:not(.admin-body) .content-section.flxry-subpage-first {
    padding-top: clamp(7rem, 22vw, 9rem);
  }
}

.flxry-subpage-intro--left {
  text-align: left;
  max-width: 42rem;
  margin: 0 0 2.75rem;
}

.flxry-subpage-intro--left .section-tag {
  display: block;
  margin-bottom: 0.75rem;
}

.flxry-subpage-intro--left h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.flxry-subpage-intro--left > p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Aktionen unter dem Intro (wie Landing-Buttons) */
.flxry-subpage-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  align-items: center;
}

.flxry-subpage-intro__actions .btn-primary,
.flxry-subpage-intro__actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.page-hero .section-intro--center {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .section-intro--center h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
}

.page-hero .section-intro--center > p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.content-section.content-section--band {
  background: var(--navy-mid);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* Portfolio: kein Hero — Intro + Raster (Abstand via .flxry-subpage-first) */
body.portfolio .flxry-portfolio-section {
  background: var(--navy-mid);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.flxry-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: var(--flxry-content-max, 1140px);
  margin: 0 auto;
  padding: 0;
}

/* Showroom: 2 Spalten ab Tablet */
.flxry-portfolio-grid--showroom {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .flxry-portfolio-grid--showroom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Showroom-Karten: Meta-Zeile, 16:9 Medien, Hover nur Rand */
.flxry-section-showroom .flxry-showroom-card:hover {
  transform: none;
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-card);
}

.flxry-showroom-card .flxry-showroom-card__media {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-bottom: none;
}

.flxry-sr-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.flxry-sr-meta-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
  font-family: inherit;
}

.flxry-sr-meta-cat {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
  line-height: 1.4;
}

/* Anfrage-Karten: vom Showroom-Band (--navy-mid) und vom Kartenweiß klar absetzen */
.flxry-showroom-card--cta.flxry-project-card {
  border: 1px solid color-mix(in srgb, var(--accent-blue) 28%, var(--card-border));
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px color-mix(in srgb, var(--accent-blue) 10%, transparent);
}

html[data-theme='dark'] .flxry-showroom-card--cta.flxry-project-card {
  border: 1px solid color-mix(in srgb, var(--accent-blue) 42%, rgba(255, 255, 255, 0.12));
  /* --shadow-sm ist im Dark-Theme none — hier immer sichtbare Tiefe */
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.flxry-section-showroom .flxry-showroom-card--cta.flxry-project-card:hover {
  border-color: color-mix(in srgb, var(--accent-blue) 55%, var(--card-border));
  box-shadow: var(--shadow-card), 0 0 0 1px color-mix(in srgb, var(--accent-blue) 18%, transparent);
}

html[data-theme='dark'] .flxry-section-showroom .flxry-showroom-card--cta.flxry-project-card:hover {
  border-color: color-mix(in srgb, var(--accent-blue) 65%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(96, 165, 250, 0.22);
}

/* Placeholder-Bereich: nicht identisch zum Sektionshintergrund */
.flxry-showroom-card--cta .flxry-project-card__media--placeholder.flxry-showroom-cta-media {
  background: color-mix(in srgb, var(--card-bg) 88%, var(--navy-mid));
  border-bottom: 1px solid color-mix(in srgb, var(--accent-blue) 22%, var(--card-border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme='dark'] .flxry-showroom-card--cta .flxry-project-card__media--placeholder.flxry-showroom-cta-media {
  background: color-mix(in srgb, var(--card-bg) 55%, var(--navy-mid));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Anfrage-Karten: CTA als zentrierte Pill im Bildfeld — kein zusätzlicher Button-Fuß */
.flxry-showroom-cta-media {
  position: relative;
}

.flxry-showroom-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 1.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent-blue) 40%, transparent);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.flxry-showroom-cta-pill:hover {
  color: #fff;
  background: color-mix(in srgb, var(--accent-blue) 88%, #000);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-blue) 32%, transparent);
  transform: translateY(-1px);
}

.flxry-showroom-cta-pill:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

html[data-theme='dark'] .flxry-showroom-cta-pill {
  color: #0b0b0f;
  box-shadow: none;
}

html[data-theme='dark'] .flxry-showroom-cta-pill:hover {
  color: #0b0b0f;
  background: color-mix(in srgb, var(--accent-blue) 86%, #fff);
}

.flxry-showroom-card--cta .flxry-sr-meta {
  padding-top: 0.85rem;
  padding-bottom: 1.05rem;
}

/* Vorher/Nachher-Ecken-Labels */
.flxry-ba-lbl {
  position: absolute;
  top: 0.65rem;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 6;
  pointer-events: none;
  line-height: 1.2;
}

.flxry-ba-lbl--before {
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.flxry-ba-lbl--after {
  right: 0.65rem;
  background: var(--accent-blue);
  color: #fff;
}

html[data-theme='dark'] .flxry-ba-lbl--after {
  color: #0b0b0f;
}

/* [hidden] allein reicht nicht: .flxry-project-card setzt display:flex und überschreibt die UA-Regel. */
.flxry-showroom-item[hidden] {
  display: none !important;
}

.flxry-showroom-filter-wrap {
  max-width: var(--flxry-content-max, 1140px);
  margin: 0 auto;
}

.flxry-showroom-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.flxry-showroom-fbtn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.flxry-showroom-fbtn:hover,
.flxry-showroom-fbtn--active {
  background: var(--accent-blue);
  border-color: transparent;
  color: #fff;
}

html[data-theme='dark'] .flxry-showroom-fbtn:hover,
html[data-theme='dark'] .flxry-showroom-fbtn--active {
  color: #0b0b0f;
}

.flxry-showroom-fbtn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.flxry-project-card__unterzeile {
  margin: 0 1.5rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.flxry-project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  overflow: hidden;
}

.flxry-project-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.flxry-project-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--card-border);
}

.flxry-project-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-mid);
  color: var(--text-dim);
  border-bottom: 1px solid var(--card-border);
}

.flxry-project-card__placeholder-icon {
  opacity: 0.55;
}

.flxry-project-card__category {
  display: block;
  margin: 1.25rem 1.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.flxry-project-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-primary);
  margin: 0 1.5rem 0.65rem;
  line-height: 1.3;
}

.flxry-project-card__text {
  flex: 1;
  margin: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.flxry-project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
  align-items: center;
}

.flxry-project-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--flxry-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.flxry-project-card__link:hover {
  color: var(--flxry-link-hover);
}

.flxry-project-card__link--primary {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--navy-mid);
  color: var(--text-primary);
}

.flxry-project-card__link--primary:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--flxry-link);
}

html[data-theme="dark"] .flxry-project-card__link--primary {
  background: rgba(255, 255, 255, 0.04);
}

/* Showroom: Abschnitte + Vorher/Nachher */
body.portfolio .flxry-showroom-section .flxry-subpage-intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.flxry-showroom-block {
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
}

/* Anchor-Sprung mit Abstand, damit die Ueberschrift nicht unter Header landet */
#restaurierungen {
  scroll-margin-top: clamp(5.5rem, 9vw, 7.5rem);
}

.flxry-showroom-block:last-child {
  margin-bottom: 0;
}

.flxry-showroom-block__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.25;
  text-align: left;
}

.flxry-showroom-block__lead {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.flxry-portfolio-grid--restorations {
  max-width: var(--flxry-content-max, 1140px);
}

/* Vorher/Nachher-Vergleich */
.flxry-ba {
  border-bottom: none;
}

.flxry-ba__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  overflow: hidden;
  background: var(--navy-light);
}

.flxry-ba__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bild per <img> (zuverlässig für data:-URIs; background-image in url() kann von CSP blockiert werden) */
.flxry-ba__layer .flxry-ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.flxry-ba__layer--after {
  z-index: 1;
}

.flxry-ba__layer--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.flxry-ba__layer--ph {
  background-image: none;
}

.flxry-ba__layer--ph-after {
  background: var(--navy-mid);
}

.flxry-ba__layer--ph-before {
  background: var(--navy-light);
  filter: grayscale(0.35) brightness(0.88);
}

/* Weißer Schieber (wie gewünscht): klare Linie + heller Griff, dunkles Icon für Kontrast */
.flxry-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  z-index: 3;
  pointer-events: none;
}

.flxry-ba__handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.flxry-ba__handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  z-index: 1;
  line-height: 1;
}

.flxry-ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 600px) {
  .flxry-ba__handle::before {
    width: 32px;
    height: 32px;
  }
}

/* Über mich (Standalone-Seite; Startseite: .flxry-home-about in flxry-landing-layout.css) */
.page-about-body:not(.flxry-home-about) .about-me-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: var(--flxry-content-max);
  margin-left: auto;
  margin-right: auto;
}

.page-about-body .about-me-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.page-about-body .about-me-text .intro-text,
.page-about-body .about-me-text .approach-text {
  color: var(--text-muted);
}

.page-about-body .about-me-text ul:not(.about-me-values) {
  color: var(--text-muted);
}

.page-about-body .about-me-text ul:not(.about-me-values) li strong {
  color: var(--text-primary);
}

.page-about-body:not(.flxry-home-about) .about-me-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  align-self: start;
  box-sizing: border-box;
  padding: 0;
  /* Hell: Schiefer + navy-mid (text-primary ist dunkel — klar dunkler als Sektion #f0f0f8) */
  --flxry-about-shade: color-mix(in srgb, var(--text-primary) 54%, var(--navy-mid));
  --flxry-about-shade-deep: color-mix(in srgb, var(--text-primary) 76%, var(--navy-mid));
  border: 1px solid color-mix(in srgb, var(--accent-blue) 24%, var(--flxry-about-shade));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent-blue) 17%, var(--flxry-about-shade-deep)) 0%,
    color-mix(in srgb, var(--accent-blue) 6%, var(--flxry-about-shade)) 55%,
    var(--flxry-about-shade) 100%
  );
}

html[data-theme='dark'] .page-about-body:not(.flxry-home-about) .about-me-image {
  /* Dark: text-primary ist weiß — nicht dafür mischen; mit black gegen navy-mid abdunkeln */
  --flxry-about-shade: color-mix(in srgb, black 46%, var(--navy-mid));
  --flxry-about-shade-deep: color-mix(in srgb, black 64%, var(--navy-mid));
  border-color: color-mix(in srgb, var(--accent-blue) 32%, var(--flxry-about-shade-deep));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent-blue) 22%, var(--flxry-about-shade-deep)) 0%,
    color-mix(in srgb, var(--accent-blue) 9%, var(--flxry-about-shade)) 55%,
    var(--flxry-about-shade) 100%
  );
}

.page-about-body:not(.flxry-home-about) .about-me-image img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: none;
  border-radius: inherit;
  background: transparent;
}

/* Support: Layout & Formular (ehemals inline) */
body.page-support .page-support-body a.cta-link {
  color: var(--flxry-link);
  transition: color 0.2s ease, transform 0.3s ease;
}

body.page-support .page-support-body a.cta-link:hover {
  color: var(--flxry-link-hover);
}

body.page-support .page-support-body .support-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

/* Linke Spalte: äußere Karte braucht Innenabstand (sonst wirkt alles gequetscht) */
body.page-support .support-info {
  padding: 2rem 1.85rem;
  box-sizing: border-box;
}

body.page-support .support-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 1rem;
  text-align: left;
  color: var(--text-primary);
}

body.page-support .support-info > p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

body.page-support .support-benefits,
body.page-support .customer-info {
  background: var(--card-bg);
  padding: 1.85rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  margin-bottom: 1.65rem;
  box-shadow: var(--shadow-sm);
}

body.page-support .support-benefits h3,
body.page-support .customer-info h3,
body.page-support .ticket-status-check h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--flxry-link);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

body.page-support .support-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-support .support-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-size: 0.95rem;
}

body.page-support .support-benefits li:last-child {
  margin-bottom: 0;
}

body.page-support .support-benefits li i {
  color: var(--flxry-link);
  width: 1.25rem;
  flex-shrink: 0;
}

body.page-support .info-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
  padding-left: 0.15rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-size: 0.95rem;
}

body.page-support .info-item:last-child {
  margin-bottom: 0;
}

body.page-support .info-item i {
  color: var(--flxry-link);
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

body.page-support .ticket-status-check {
  background: var(--card-bg);
  padding: 1.85rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

/* Innenkarten vom äußeren Support-Block abheben (Dark Mode) */
html[data-theme='dark'] body.page-support .customer-info,
html[data-theme='dark'] body.page-support .support-benefits,
html[data-theme='dark'] body.page-support .ticket-status-check {
  background: var(--navy-mid);
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-support .ticket-status-check p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 0.95rem;
}

body.page-support .support-form {
  padding: 2.5rem 2.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Formular: klarer vertikaler Rhythmus zwischen Feldern */
body.page-support .ticket-form .form-group {
  margin-bottom: 1.5rem;
}

body.page-support .ticket-form .form-group label {
  margin-bottom: 0.65rem;
}

body.page-support .ticket-form button[type='submit'] {
  margin-top: 0.35rem;
  width: 100%;
}

body.page-support .category-description-hint {
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--navy);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--flxry-link);
  display: none;
  width: 100%;
  box-sizing: border-box;
}

html[data-theme='dark'] body.page-support .category-description-hint {
  background: rgba(255, 255, 255, 0.06);
}

body.page-support .hint-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  font-style: italic;
}

body.page-support select[name='category_id'] {
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--navy);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

html[data-theme='dark'] body.page-support select[name='category_id'] {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-light);
}

body.page-support select[name='category_id']:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
}

html[data-theme='dark'] body.page-support select[name='category_id']:focus {
  border-color: rgba(96, 165, 250, 0.55);
}

body.page-support .file-upload-area {
  position: relative;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--navy);
  padding: 1.65rem 1.35rem;
  min-height: 9.5rem;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

body.page-support .file-upload-area .file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

body.page-support .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 0.35rem 0.25rem;
  pointer-events: none;
}

body.page-support .upload-placeholder i {
  font-size: 1.85rem;
  color: var(--flxry-link);
  opacity: 0.9;
  margin-bottom: 0.15rem;
}

html[data-theme='dark'] body.page-support .file-upload-area {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

body.page-support .file-upload-area:hover,
body.page-support .file-upload-area.dragover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.06);
}

html[data-theme='dark'] body.page-support .file-upload-area:hover,
html[data-theme='dark'] body.page-support .file-upload-area.dragover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.08);
}

body.page-support .upload-placeholder p {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.55;
  font-size: 0.98rem;
}

body.page-support .upload-info {
  display: block;
  margin-top: 0.15rem;
  line-height: 1.55;
  font-size: 0.85rem;
  color: var(--text-dim);
}

body.page-support .file-preview {
  background: var(--card-bg);
  border-top-color: var(--card-border);
}

/* Über dem Vollflächen-File-Input, damit „Entfernen“-Buttons klickbar bleiben */
body.page-support .file-preview.has-files {
  position: relative;
  z-index: 4;
}

body.page-support .preview-item {
  background: var(--navy);
  border-color: var(--card-border);
}

html[data-theme='dark'] body.page-support .preview-item {
  background: rgba(255, 255, 255, 0.04);
}

body.page-support .preview-filename {
  color: var(--text-primary);
}

body.page-support .preview-size {
  color: var(--text-muted);
}

body.page-support .page-support-body .alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  align-items: flex-start;
}

body.page-support .page-support-body .alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: var(--text-primary);
}

body.page-support .page-support-body .alert-success i {
  color: #22c55e;
}

body.page-support .page-support-body .alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: var(--text-primary);
}

body.page-support .page-support-body .alert-error i {
  color: #ef4444;
}

/* Support: Ticket-Erfolg & E-Mail-Hinweise (Dark-kompatibel) */
body.page-support .ticket-success-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.page-support .ticket-number-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.page-support .success-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

html[data-theme='dark'] body.page-support .success-label {
  color: #86efac;
}

body.page-support .ticket-number-display {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  border-left: 4px solid #22c55e;
}

body.page-support .ticket-number-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

body.page-support .ticket-number-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: ui-monospace, 'Courier New', monospace;
  letter-spacing: 0.05em;
}

html[data-theme='dark'] body.page-support .ticket-number-value {
  color: #86efac;
}

body.page-support .attachments-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  border-left: 4px solid #0ea5e9;
}

body.page-support .attachments-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

body.page-support .attachments-list {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-word;
}

body.page-support .email-notification {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

body.page-support .email-notification.success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

body.page-support .email-notification.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

html[data-theme='dark'] body.page-support .email-notification.success {
  color: #e8ecf4;
}

html[data-theme='dark'] body.page-support .email-notification.warning {
  color: #fde68a;
}

.profile-btn-secondary {
  background: var(--navy-mid);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.profile-btn-secondary:hover {
  background: var(--navy-light);
  color: var(--text-primary);
}

html[data-theme='dark'] .profile-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.profile-alert.success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.profile-alert.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

@media (max-width: 900px) {
  body.page-support .page-support-body .support-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  body.page-support .support-info {
    order: 2;
    padding: 1.65rem 1.35rem;
  }

  body.page-support .support-form {
    order: 1;
    padding: 2rem 1.5rem;
  }

  body.page-support .ticket-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about-body:not(.flxry-home-about) .about-me-layout {
    grid-template-columns: 1fr;
  }
}
