/* ==========================================================================
   Ostköpfe Design Tokens & Responsive Baseline
   ========================================================================== */
:root {
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F1F3F5;
  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  
  --color-accent: #111827;
  --color-pink: #FF455C;
  --color-pink-soft: #FFF0F2;
  --color-blue-soft: #EBF5FF;
  --color-yellow-soft: #FEF9C3;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --canvas-max-width: 1280px;
  --nav-height-mobile: 64px;
  --header-height-desktop: 72px;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Responsive Canvas (Capped at 1280px Max-Width Centered)
   ========================================================================== */
.main-canvas,
.app-canvas,
.main-content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 16px 16px calc(var(--nav-height-mobile) + 24px + env(safe-area-inset-bottom, 0px));
  flex: 1;
}

@media (min-width: 768px) {
  .main-canvas,
  .app-canvas,
  .main-content {
    padding: 32px 24px 80px;
  }
}

/* ==========================================================================
   Single-DOM CSS Morphing Navigation Engine (ADR 0001)
   Fixed Bottom Bar on Mobile (<768px) -> Top Sticky Glass Header (>=768px)
   ========================================================================== */
.app-header {
  position: relative;
  width: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

/* Search input on Mobile: hidden inside header, shown on folgescreens */
.header-search-wrap {
  display: none;
  flex: 1;
  max-width: 380px;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-bar {
  width: 100%;
  max-width: 380px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

/* Embedded magnifying glass for pill search inputs (wireframe: Kuratierte Stackauswahl Liste) */
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-bar--with-icon {
  max-width: none;
  padding: 14px 18px;
  padding-left: 44px;
  font-size: 15px;
}

.header-actions {
  display: none;
}

.btn-vision-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.btn-vision-link:hover {
  color: var(--color-text);
}

.btn-auth-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-auth-link:hover {
  opacity: 0.9;
}

/* Navigation Element - Mobile: Fixed Bottom Bar (<768px) */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height-mobile) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  z-index: 1000;
  box-sizing: border-box;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.nav-item.active,
.nav-item:hover {
  color: var(--color-text);
}

/* Navigation Element - Desktop Morph (>=768px) */
@media (min-width: 768px) {
  .app-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--color-border);
  }

  .header-inner {
    height: var(--header-height-desktop);
    padding: 0 24px;
    gap: 24px;
  }

  .header-search-wrap {
    display: block;
    max-width: 380px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .app-nav {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    z-index: auto;
  }

  .nav-item {
    flex: initial;
    min-width: auto;
    flex-direction: row;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-full);
  }

  .nav-item .nav-icon {
    width: 16px;
    height: 16px;
  }

  .nav-item:hover,
  .nav-item.active {
    background: var(--color-surface-subtle);
  }
}

/* ==========================================================================
   Landing Entry (/ - Startseite.svg)
   ========================================================================== */
.start-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  box-sizing: border-box;
}

.start-hero-card {
  max-width: 560px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .start-hero-card {
    border: none;
    box-shadow: none;
    padding: 16px 8px;
    background: transparent;
  }
}

.start-hero-media {
  width: 100%;
  aspect-ratio: 513 / 305;
  height: auto;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--color-surface-subtle);
}

.start-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.start-headline {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .start-headline {
    font-size: 34px;
  }
}

.start-subhead {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.start-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 13px 24px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-text-muted);
}


/* ==========================================================================
   Home Discovery Feed & Kuratierte Themen Catalog (Spec 06 & Ticket 12)
   ========================================================================== */

/* Mobile Search Bar Wrapper in Main (hidden on desktop >=768px where search is in sticky header) */
.home-search-wrap,
.mobile-search-wrap {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .home-search-wrap,
  .mobile-search-wrap {
    display: none;
  }
}

/* Featured Highlight Topic Hero Card */
.featured-topic-section {
  margin-bottom: 36px;
}

.featured-topic-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.featured-topic-media {
  position: relative;
  width: 100%;
  height: 220px;
}

.featured-topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-topic-body {
  padding: 24px 20px;
}

.featured-topic-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-text);
}

.featured-topic-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.featured-topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-text-action {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .featured-topic-card article {
    display: grid;
    grid-template-columns: 55% 45%;
  }

  .featured-topic-media {
    height: 100%;
    min-height: 280px;
  }

  .featured-topic-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .featured-topic-title {
    font-size: 28px;
  }
}

/* Topics Section Headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-subline {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Curated Topics Responsive Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 14px;
  list-style: none;
}

@media (min-width: 768px) {
  .topics-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}

.topic-grid-item {
  min-width: 0;
  max-width: 100%;
}

.topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.topic-media {
  position: relative;
  width: 100%;
  height: 130px;
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topic-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(17, 24, 39, 0.75);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.topic-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.topic-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--color-text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.topic-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.topic-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
}


/* Search Clear Button */
.btn-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search-clear[hidden] {
  display: none;
}

.btn-search-clear:hover {
  color: var(--color-text);
}

/* ==========================================================================
   Thematic Stacks & Listen-Modus (Ticket 13)
   ========================================================================== */

.stack-breadcrumb-bar {
  margin-bottom: 16px;
}

.stack-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.stack-back-link:hover {
  color: var(--color-text);
}

.stack-header-bar {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .stack-header-bar {
    margin-bottom: 32px;
  }
}

.stack-list-section {
  width: 100%;
  position: relative;
  margin-bottom: 32px;
}

.stack-sublabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.stack-count {
  font-weight: 800;
  color: var(--color-text);
}

.stack-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: var(--color-text);
}

.stack-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 0 16px 0;
}

/* Mode Switcher Segmented Control */
.segmented-control {
  display: inline-flex;
  background: #F3F4F6;
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
}

.mode-btn {
  border: none;
  background: transparent;
  min-width: 88px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mode-btn:hover:not(.active) {
  color: var(--color-text);
}

.mode-btn.active {
  background: #111827;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Stack Filter Bar & Federal State Chips */
.stack-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-search-row {
  width: 100%;
}

.state-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.state-chips::-webkit-scrollbar {
  display: none;
}

.state-chip {
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #4B5563;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.state-chip:hover:not(.active) {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.state-chip.active {
  background: #111827;
  border-color: #111827;
  color: #FFFFFF;
}

/* Listen-Modus Company Cards & Responsive Row/Grid Layout (Issue 24) */
.company-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #FFFFFF;
  border: none;
  border-bottom: 1px solid #E5E7EB;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0;
  margin: 0;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.company-card:hover {
  transform: none;
  box-shadow: none;
  background: #F9FAFB;
}

.company-card-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 48px;
}

.company-card-media {
  position: relative;
  width: 100px;
  height: 100px;
  min-width: 100px;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #F3F4F6;
  flex-shrink: 0;
}

.company-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.company-state-badge {
  display: none;
}

.company-card-body {
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-width: 0;
}

.company-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 6px;
}

.company-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.company-city {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted, #6B7280);
  line-height: 1.3;
}

.company-tagline {
  display: none;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.company-tag-badge {
  font-size: 11px;
  font-weight: 600;
  background: #F3F4F6;
  color: #374151;
  padding: 2px 8px;
  border-radius: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-bookmark,
.btn-favorit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #9CA3AF;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
  padding: 0;
}

.btn-bookmark:hover,
.btn-favorit:hover {
  transform: translateY(-50%) scale(1.1);
  color: #F59E0B;
}

.btn-bookmark.bookmarked,
.btn-favorit.is-favorited {
  color: #F59E0B;
  background: #FFFFFF;
  border-color: #FCD34D;
}

@media (min-width: 768px) {
  .company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .company-card {
    flex-direction: column;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    background: #FFFFFF;
  }

  .company-card-link {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
    height: 100%;
  }

  .company-card-media {
    width: 100%;
    height: 180px;
    min-width: 0;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .company-card-media img {
    border-radius: 0;
  }

  .company-state-badge {
    display: block;
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .company-card-body {
    padding: 16px;
    justify-content: flex-start;
  }

  .company-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    gap: 8px;
  }

  .company-name {
    font-size: 18px;
    font-weight: 800;
    white-space: normal;
  }

  .company-city {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .company-tagline {
    display: block;
    font-size: 13px;
    color: #4B5563;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex-grow: 1;
  }

  .company-tags {
    margin-top: auto;
  }

  .btn-bookmark,
  .btn-favorit {
    top: 10px;
    right: 10px;
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .btn-bookmark:hover,
  .btn-favorit:hover {
    transform: scale(1.1);
    color: #F59E0B;
  }
}

@keyframes favPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: var(--color-pink); }
  100% { transform: scale(1); }
}

.nav-item.pulse .nav-icon {
  animation: favPulse 0.3s ease-out;
}

/* Empty State Card */
.empty-state-card {
  background: #FFFFFF;
  border: 1px dashed #D1D5DB;
  border-radius: 12px;
  padding: 48px 16px;
  text-align: center;
}

.btn-reset-filters {
  background: #111827;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-reset-filters:hover {
  background: #374151;
}

/* ==========================================================================
   Swipe-Modus: Tactile Card Deck View & Gesture Physics (Ticket 14)
   ========================================================================== */
.swipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 16px 0 40px;
  position: relative;
}

.swipe-stage[hidden] {
  display: none !important;
}

.swipe-stack-container,
.deck-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 768px) {
  .swipe-stack-container,
  .deck-container {
    max-width: 500px; /* Desktop constraint: 480–520px max-width */
  }
}

.swipe-card.ejected-right {
  transform: translate3d(600px, 40px, 0) rotate(20deg);
  opacity: 0;
  pointer-events: none;
}

.swipe-card.ejected-left {
  transform: translate3d(-600px, 40px, 0) rotate(-20deg);
  opacity: 0;
  pointer-events: none;
}

.deck-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deck-cards {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1000px;
}

.swipe-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
  will-change: transform;
  touch-action: pan-y;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card-top {
  z-index: 10;
}

.swipe-card-next {
  z-index: 5;
  transform: scale(0.95) translateY(12px);
  opacity: 0.9;
  pointer-events: none;
}

.swipe-card-media {
  position: relative;
  width: 100%;
  height: 250px;
  background: #F3F4F6;
  overflow: hidden;
}

.swipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.swipe-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.swipe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.swipe-company-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.swipe-company-city {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.swipe-company-tagline {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.4;
  margin-bottom: 12px;
}

.swipe-company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Dynamic Status Stamps */
.swipe-stamp {
  position: absolute;
  top: 24px;
  padding: 6px 18px;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  border-width: 4px;
  border-style: solid;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s linear;
}

.swipe-stamp.stamp-merken {
  right: 24px;
  color: #10B981;
  border-color: #10B981;
  transform: rotate(-12deg);
  text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.swipe-stamp.stamp-weiter {
  left: 24px;
  color: #EF4444;
  border-color: #EF4444;
  transform: rotate(12deg);
  text-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* On-Screen Action Buttons */
.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  width: 100%;
}

.btn-swipe-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn-swipe-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-swipe-action:active {
  transform: translateY(0);
}

.btn-swipe-skip {
  color: #DC2626;
  border-color: #FCA5A5;
}

.btn-swipe-skip:hover {
  background: #FEF2F2;
}

.btn-swipe-like {
  color: #059669;
  border-color: #6EE7B7;
}

.btn-swipe-like:hover {
  background: #ECFDF5;
}

.swipe-action-icon {
  font-size: 18px;
}

/* 5-Second Undo Toast */
.swipe-toast {
  position: fixed;
  bottom: calc(var(--nav-height-mobile) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  font-size: 14px;
  animation: toastSlideUp 0.25s ease-out;
}

@media (min-width: 768px) {
  .swipe-toast {
    bottom: 32px;
  }
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.btn-swipe-undo {
  background: transparent;
  color: #60A5FA;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
}

.btn-swipe-undo:hover {
  color: #93C5FD;
}

/* Celebration Summary Card */
.swipe-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 24px;
  text-align: center;
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .swipe-summary-card {
    max-width: 500px;
  }
}

.summary-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.summary-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.summary-metrics {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.btn-review-skipped {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-review-skipped:hover {
  background: var(--color-surface-subtle);
  border-color: #D1D5DB;
}

.btn-back-themen {
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
}

.btn-back-themen:hover {
  background: #374151;
}

/* ==========================================================================
   Karten-Modus: Regional Vector Exploration & 50/50 Ergonomic Split (Ticket 15)
   ========================================================================== */
.karte-stage {
  width: 100%;
  position: relative;
  padding: 16px 0 32px;
}

.karte-stage[hidden] {
  display: none !important;
}

.karte-desktop-split {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}

.karte-split-left {
  width: 100%;
}

.karte-split-right {
  width: 100%;
}

@media (min-width: 768px) {
  .karte-desktop-split {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
  }

  .karte-split-left {
    flex: 0 0 calc(50% - 16px);
    width: calc(50% - 16px);
    position: sticky;
    top: calc(var(--header-height-desktop, 72px) + 24px);
    z-index: 10;
  }

  .karte-split-right {
    flex: 0 0 calc(50% - 16px);
    width: calc(50% - 16px);
  }
}

.karte-vector-map-wrap {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.karte-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  padding: 0 4px;
}

.karte-state-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text, #111827);
  background: var(--color-surface-subtle, #F3F4F6);
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--color-border, #E5E7EB);
}

.karte-vector-map {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
}

@media (max-width: 767px) {
  .karte-vector-map {
    max-height: 340px;
  }
}

/* Regional State Polygons & Highlighting */
.state-path {
  fill: #F3F4F6;
  stroke: #D1D5DB;
  stroke-width: 1.5;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
  outline: none;
}

.state-path:hover {
  fill: #E5E7EB;
  stroke: #9CA3AF;
}

.state-path.active {
  fill: rgba(225, 29, 72, 0.12);
  stroke: var(--color-pink, #E11D48);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.25));
}

/* Berlin Enclave Enlarged Accessible Touch Target (min 44x44px) */
.berlin-target {
  fill: rgba(225, 29, 72, 0.01);
  stroke: transparent;
  cursor: pointer;
  outline: none;
}

.berlin-target:hover {
  stroke: var(--color-pink, #E11D48);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.berlin-target.active {
  stroke: var(--color-pink, #E11D48);
  stroke-width: 2;
  fill: rgba(225, 29, 72, 0.15);
}

/* Interactive SVG Map Pins */
.map-pin {
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
}

.map-pin .pin-pulse {
  fill: rgba(225, 29, 72, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease, r 0.2s ease;
}

.map-pin .pin-marker {
  fill: var(--color-accent, #111827);
  stroke: #FFFFFF;
  stroke-width: 2;
  transition: fill 0.2s ease, r 0.2s ease;
}

.map-pin .pin-dot {
  fill: #FFFFFF;
}

.map-pin:hover .pin-marker {
  fill: var(--color-pink, #E11D48);
  r: 9;
}

.map-pin.active .pin-pulse {
  opacity: 1;
  animation: pinPulseAnim 1.8s infinite;
}

.map-pin.active .pin-marker {
  fill: var(--color-pink, #E11D48);
  r: 10;
  stroke-width: 2.5;
}

@keyframes pinPulseAnim {
  0% { r: 10; opacity: 0.8; }
  70% { r: 24; opacity: 0; }
  100% { r: 24; opacity: 0; }
}

/* Karten-Modus Preview Dock & Horizontal / Vertical Layouts */
.karte-preview-dock {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.karte-dock-cards {
  display: flex;
  flex-direction: row;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
}

.karte-dock-cards::-webkit-scrollbar {
  height: 6px;
}

.karte-dock-cards::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 9999px;
}

.karte-preview-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.karte-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
}

.karte-preview-card.active {
  border-color: var(--color-pink, #E11D48);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.3), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.karte-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.karte-card-media {
  position: relative;
  width: 100%;
  height: 140px;
  background: #F3F4F6;
  overflow: hidden;
}

.karte-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.karte-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.karte-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.karte-dock-action {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.btn-switch-to-list {
  background: var(--color-accent, #111827);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full, 9999px);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.btn-switch-to-list:hover {
  background: #374151;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .karte-dock-cards {
    flex-direction: column;
    overflow-x: visible;
    padding: 0;
    gap: 16px;
  }

  .karte-preview-card {
    flex: 1 1 auto;
    width: 100%;
    scroll-snap-align: none;
  }

  .karte-card-media {
    height: 160px;
  }

  .karte-dock-action {
    display: none;
  }
}




/* ==========================================================================
   Firmendetail Profile: Asymmetric 65/35 Split, Hero-Galerie & Team-Stack (Ticket 16)
   ========================================================================== */

/* Breadcrumb Bar */
.firmendetail-breadcrumb-bar {
  padding: 16px 0;
  margin-bottom: 8px;
}

.firmendetail-back-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.firmendetail-back-link:hover {
  color: var(--color-text);
}

/* Asymmetric 65/35 Responsive Canvas Layout */
.firmendetail-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 60px;
}

.firmendetail-main {
  width: 100%;
  min-width: 0;
}

.firmendetail-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .firmendetail-layout {
    display: grid;
    grid-template-columns: 65% calc(35% - 32px);
    gap: 32px;
    align-items: start;
  }

  .firmendetail-sidebar {
    position: sticky;
    top: 120px;
  }
}

/* Hero-Galerie Component */
.hero-galerie {
  width: 100%;
}

.hero-primary-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg, 20px);
  background: var(--color-surface-subtle, #F1F3F5);
  touch-action: pan-y;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .hero-primary-wrap {
    max-height: 380px;
  }
}

.hero-primary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

.hero-thumbnail-strip {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.hero-thumb {
  flex: 1 1 0;
  min-width: 0;
  height: 80px;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--color-surface-subtle, #F1F3F5);
  outline: none;
  transition: outline 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-thumb:hover {
  transform: translateY(-2px);
}

.hero-thumb.active {
  outline: 2px solid var(--color-text, #111827);
  outline-offset: 2px;
}

/* Company Header & Metadata */
.company-header-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-type-badge {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-text, #111827);
  color: #FFFFFF;
}

.company-state-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text, #111827);
}

.company-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text, #111827);
}

.company-city {
  font-size: 14px;
  color: var(--color-text-muted, #6B7280);
  font-weight: 500;
}

.company-tagline {
  font-size: 15px;
  color: var(--color-text, #111827);
  font-weight: 600;
  margin-top: 4px;
}

/* Bio & Details Sections */
.company-bio-section,
.company-tags-section,
.team-section,
.company-actions-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-subhead {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted, #6B7280);
}

.company-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text, #111827);
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.company-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 8px);
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text-muted, #6B7280);
}

/* Team-Stack Component */
.team-stack {
  margin-top: 4px;
}

.team-avatar-cluster {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-wrap: nowrap;
}

.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E5E7EB;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.team-avatar-fallback {
  width: 100%;
  height: 100%;
}

.team-overflow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-surface-subtle, #F1F3F5);
  border: 2px solid #FFFFFF;
  margin-left: -12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text, #111827);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.team-overflow-badge:hover {
  background: #E5E7EB;
  transform: translateY(-1px);
}

/* Team Overlay: Mobile Bottom-Sheet & Desktop Popover */
.team-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.team-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--color-surface, #FFFFFF);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 32px 24px;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 9999px;
  background: #D1D5DB;
  margin: 0 auto 16px auto;
  cursor: grab;
}

.team-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  max-height: 520px;
  overflow-y: auto;
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-lg, 20px);
  padding: 20px;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  animation: fadeInPopover 0.15s ease-out;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeInPopover {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.team-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.team-overlay-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text, #111827);
}

.btn-close-team {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-muted, #6B7280);
  padding: 4px 8px;
  border-radius: var(--radius-sm, 8px);
}

.btn-close-team:hover {
  color: var(--color-text, #111827);
  background: var(--color-surface-subtle, #F1F3F5);
}

.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-surface-subtle, #F1F3F5);
}

.team-member-item:last-child {
  border-bottom: none;
}

.team-member-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #E5E7EB;
}

.team-member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.team-member-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text, #111827);
}

.team-member-role {
  font-size: 13px;
  color: var(--color-text-muted, #6B7280);
}

.team-member-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text, #111827);
  text-decoration: underline;
  flex-shrink: 0;
}

/* Actions & Links */
.btn-website {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md, 14px);
  background: var(--color-text, #111827);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-website:hover {
  background: #374151;
  transform: translateY(-1px);
}

.company-social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.social-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #6B7280);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 8px);
  background: var(--color-surface-subtle, #F1F3F5);
  transition: color 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  color: var(--color-text, #111827);
  background: #E5E7EB;
}

/* ==========================================================================
   Story Reels ("Das macht uns aus") & Offene Stellen (Ticket 17)
   ========================================================================== */

/* 1. Video-Reels: 9:16 Vertical Cards & Horizontal Scroll Rail */
.firmendetail-reels {
  margin-top: 32px;
}

.reels-header {
  margin-bottom: 12px;
}

.reels-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reels-rail::-webkit-scrollbar {
  display: none;
}

.reel-card-wrap {
  flex: 0 0 auto;
}

.reel-card {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: block;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
}

.reel-aspect-ratio {
  aspect-ratio: 9 / 16;
  width: 140px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md, 14px);
  background: #111827;
}

@media (min-width: 768px) {
  .reel-aspect-ratio {
    width: 160px;
  }
}

.reel-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.reel-duration-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm, 6px);
  z-index: 2;
  letter-spacing: 0.02em;
}

.reel-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.reel-card:hover .reel-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.7);
}

.reel-info {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
}

.reel-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2. Fullscreen Native HTML5 Story Player */
.story-player-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-player-root[hidden] {
  display: none;
}

.story-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.story-player-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  max-height: 852px;
  background: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2001;
  border-radius: 0;
}

@media (min-width: 600px) {
  .story-player-canvas {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  }
}

.story-progress-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2005;
  display: flex;
  gap: 5px;
}

.story-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: #FFFFFF;
  width: 0%;
  transition: width 0.1s linear;
}

.story-player-header {
  position: absolute;
  top: 24px;
  left: 16px;
  right: 16px;
  z-index: 2005;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-company-info {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.story-company-name {
  font-size: 13px;
  font-weight: 700;
}

.story-reel-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.story-player-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 3. High-Contrast Unmute Toggle with Pulse Animation */
@keyframes unmutePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
}

.btn-unmute-toggle {
  background: #111827;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-unmute-toggle.pulse {
  animation: unmutePulse 1.8s infinite;
}

.btn-unmute-toggle:hover {
  background: #1F2937;
}

.btn-close-story {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-close-story:hover {
  background: rgba(0, 0, 0, 0.8);
}

.story-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.story-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2003;
  cursor: pointer;
}

.story-tap-left {
  left: 0;
  width: 25%;
}

.story-tap-center {
  left: 25%;
  width: 50%;
}

.story-tap-right {
  right: 0;
  width: 25%;
}

/* 4. Offene Stellen: Sticky Right Rail & Expandable Accordion */
.offene-stellen-section {
  margin-top: 24px;
}

.offene-stellen-header {
  margin-bottom: 12px;
}

.jobs-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-accordion-item {
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 14px);
  background: var(--color-surface, #FFFFFF);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-accordion-item[open] {
  border-color: var(--color-text, #111827);
  box-shadow: var(--shadow-sm);
}

.job-accordion-summary {
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.job-accordion-summary::-webkit-details-marker {
  display: none;
}

.job-summary-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin: 0;
}

.job-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.job-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text-muted, #6B7280);
}

.job-chevron {
  font-size: 14px;
  color: var(--color-text-muted, #6B7280);
  transition: transform 0.2s ease;
}

.job-accordion-item[open] .job-chevron {
  transform: rotate(180deg);
}

.job-accordion-content {
  padding: 0 16px 16px 16px;
  border-top: 1px solid var(--color-surface-subtle, #F1F3F5);
}

.job-description {
  font-size: 13px;
  color: var(--color-text-muted, #6B7280);
  line-height: 1.5;
  margin: 12px 0;
}

.job-actions {
  margin-top: 12px;
}

.btn-apply-job {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 8px);
  background: var(--color-text, #111827);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-apply-job:hover {
  background: #374151;
}

/* 5. Initiativbewerbung Empty-State Card */
.initiativbewerbung-card {
  border: 1px dashed var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 14px);
  padding: 20px;
  background: var(--color-surface-subtle, #F9FAFB);
  text-align: left;
}

.initiativbewerbung-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #6B7280);
  margin-bottom: 6px;
}

.initiativbewerbung-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin: 0 0 8px 0;
}

.initiativbewerbung-text {
  font-size: 13px;
  color: var(--color-text-muted, #6B7280);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.btn-initiativ-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 8px);
  background: var(--color-text, #111827);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-initiativ-apply:hover {
  background: #374151;
}

/* 6. Mobile CTA Anchor */
.company-cta-wrap {
  margin-top: 12px;
}

.mobile-jobs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-md, 14px);
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text, #111827);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  border: 1px solid var(--color-border, #E5E7EB);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-jobs-cta:hover {
  background: #E5E7EB;
  border-color: var(--color-text, #111827);
}

@media (min-width: 1024px) {
  .mobile-jobs-cta,
  .company-cta-wrap {
    display: none;
  }
}

/* ==========================================================================
   Zero-Vendor Native & Direct OIDC Auth & Modal Engine (ADR 0004 & Issue 18)
   ========================================================================== */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: authFadeIn 0.15s ease-out;
}

.auth-modal-backdrop[hidden] {
  display: none !important;
}

.auth-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-surface, #FFFFFF);
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-lg, 0 16px 36px rgba(0, 0, 0, 0.1));
  padding: 32px 24px;
  animation: authScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--color-border, #E5E7EB);
  background: var(--color-surface, #FFFFFF);
  color: var(--color-text-muted, #6B7280);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-auth-modal-close:hover {
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text, #111827);
}

.auth-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text-muted, #6B7280);
  padding: 3px 8px;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 8px;
}

.auth-modal-title,
.auth-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text, #111827);
  margin-bottom: 6px;
}

.auth-modal-subtitle,
.auth-subtitle {
  font-size: 14px;
  color: var(--color-text-muted, #6B7280);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* Accessible Inline Alerts (role="alert", aria-live="polite") */
.auth-inline-alert {
  border-radius: var(--radius-md, 14px);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.auth-inline-alert[hidden] {
  display: none !important;
}

.auth-inline-alert.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.auth-inline-alert.alert-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.auth-inline-alert.alert-success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

/* Auth Form & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form .form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text, #111827);
}

.auth-form .form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-form .form-group {
  margin-bottom: 20px;
  min-height: 93px;
  display: flex;
  flex-direction: column;
}

.auth-input {
  min-height: 64px;
  border-radius: 24px;
  border: 2px solid #B8B8B8;
  background: var(--color-surface, #FFFFFF);
  color: var(--color-text, #111827);
  padding: 0 20px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #151515;
  box-shadow: 0 0 0 2px rgba(21, 21, 21, 0.12);
}

.auth-input[aria-invalid="true"] {
  border-color: var(--color-danger, #EF4444);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Instant Action Buttons (No loading spinners) */
.btn-auth-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: var(--radius-md, 14px);
  background: var(--color-text, #111827);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-auth-action:hover {
  background: #374151;
}

.btn-auth-action:active {
  transform: scale(0.99);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px;
  color: var(--color-text-muted, #6B7280);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border, #E5E7EB);
}

.auth-divider span {
  padding: 0 12px;
}

/* Exactly 3 Direct OIDC Social Buttons */
.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 57px;
  border-radius: 24px;
  border: 2px solid #B8B8B8;
  background: var(--color-surface, #FFFFFF);
  color: var(--color-text, #111827);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn-social-auth:hover {
  background: var(--color-surface-subtle, #F1F3F5);
  border-color: #151515;
}

.btn-social-auth:active {
  transform: scale(0.99);
}

.btn-social-auth .social-icon {
  flex-shrink: 0;
}

/* Mode Switchers & Footer Links */
.auth-footer-links {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.auth-footer-p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #9A9A9A;
}

.auth-switch-row {
  color: #5B5B5B;
}

.btn-link-action {
  background: none;
  border: none;
  color: #5B5B5B;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-link-action:hover {
  color: #151515;
}

.btn-forgot-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #6B7280);
  text-decoration: none;
}

.btn-forgot-link:hover {
  text-decoration: underline;
  color: var(--color-text, #111827);
}

/* Standalone /auth View Styles & Mobile Wireframe Alignment (Ticket 01) */
.page-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #FFFFFF);
  overflow-x: hidden;
}

.auth-main-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px 16px;
}

.auth-page-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.auth-card,
.auth-screen {
  width: 100%;
  animation: authFadeIn 0.2s ease-out;
}

/* Auth Top Navigation & Back Chevron */
.auth-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.btn-auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  margin-left: -8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full, 9999px);
  color: var(--color-text, #111827);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-auth-back:hover {
  background: var(--color-surface-subtle, #F1F3F5);
}

.btn-auth-back:active {
  transform: scale(0.95);
}

.btn-auth-back:focus-visible {
  outline: 2px solid var(--color-accent, #111827);
  outline-offset: 2px;
}

/* Typography Hierarchy Matching User Wireframes */
.auth-header {
  margin-bottom: 28px;
}

.auth-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text, #111827);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 16px;
  color: #4E4E4E;
  line-height: 1.45;
}

/* Actions Stack & Buttons */
.auth-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-auth-submit {
  width: 256px;
  max-width: 100%;
  height: 57px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full, 9999px);
  background: #151515;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-auth-submit:hover {
  background: #2D2D2D;
}

.btn-auth-submit:active {
  transform: scale(0.98);
}

.btn-auth-submit:focus-visible,
.btn-social-auth:focus-visible,
.btn-link-action:focus-visible {
  outline: 2px solid var(--color-accent, #111827);
  outline-offset: 2px;
}

.btn-back-providers {
  margin-top: 16px;
  display: block;
  text-align: center;
  width: 100%;
}

.auth-footer-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
}

.auth-footer-p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-muted, #6B7280);
}

/* Mobile Viewports (<768px): Full-Bleed Borderless Canvas */
@media (max-width: 767px) {
  .page-auth .app-header {
    display: none !important;
  }

  .auth-main-canvas {
    padding: 16px 20px 32px;
    align-items: flex-start;
  }

  .auth-card,
  .auth-screen {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .auth-title {
    font-size: 32px;
  }
}

/* Desktop Viewports (>=768px): Centered Container without Card Borders */
@media (min-width: 768px) {
  .page-auth {
    background: #FFFFFF;
  }

  .page-auth .app-header {
    display: none;
  }

  .btn-auth-back {
    display: none;
  }

  .auth-main-canvas {
    padding: 48px 16px;
    align-items: center;
  }

  .auth-screen,
  .auth-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #FFFFFF;
    padding: 0;
    max-width: 480px;
    width: 100%;
  }

  .auth-top-bar {
    margin-bottom: 24px;
  }
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Editorial Backoffice (/admin/) Styles (Ticket 19)
   ========================================================================== */
.page-admin {
  background: var(--color-bg, #F8F9FA);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--color-surface, #FFFFFF);
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-badge {
  background: #111827;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 8px);
}

.admin-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #111827);
}

.admin-auth-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-greeting {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B7280);
}

.admin-greeting strong {
  color: var(--color-text, #111827);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--color-border, #E5E7EB);
  color: var(--color-text, #111827);
  padding: 6px 14px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: var(--color-surface-subtle, #F1F3F5);
  border-color: #D1D5DB;
}

.admin-main-canvas {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 64px;
  flex: 1;
}

/* Login View */
.admin-login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.admin-login-card {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
  max-width: 440px;
  width: 100%;
  padding: 36px 28px;
}

.admin-login-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin-bottom: 8px;
}

.admin-login-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B7280);
  margin-bottom: 24px;
  line-height: 1.45;
}

.admin-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.admin-alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
}

.admin-login-form .form-group {
  margin-bottom: 18px;
}

.admin-login-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text, #111827);
  margin-bottom: 6px;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

/* Dashboard View */
.admin-dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.admin-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text, #111827);
}

.admin-page-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #6B7280);
  margin-top: 4px;
}

.admin-count-badge {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E5E7EB);
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B7280);
}

.admin-count-badge strong {
  color: var(--color-text, #111827);
}

/* Quick Filters Toolbar */
.admin-toolbar {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 14px);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
}

.admin-toolbar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}

.admin-toolbar .filter-search-group {
  flex: 1;
  min-width: 240px;
}

.admin-toolbar label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, #6B7280);
}

.admin-select,
.admin-search-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-sm, 8px);
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--color-surface, #FFFFFF);
  color: var(--color-text, #111827);
  transition: border-color 0.15s ease;
}

.admin-select:focus,
.admin-search-input:focus {
  outline: none;
  border-color: var(--color-accent, #111827);
}

/* Company Table */
.admin-table-wrapper {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 14px);
  overflow-x: auto;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.04));
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table thead tr {
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  background: var(--color-surface-subtle, #F1F3F5);
}

.admin-table th {
  padding: 14px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #6B7280);
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: #FAFAFA;
}

.company-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.company-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #111827);
}

.company-tagline-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6B7280);
  margin-top: 3px;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.badge-status-published {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full, 9999px);
  display: inline-block;
}

.badge-status-draft {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full, 9999px);
  display: inline-block;
}

.badge-type-unternehmen {
  background: var(--color-surface-subtle, #F1F3F5);
  color: #374151;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-type-kollektiv {
  background: #EDE9FE;
  color: #5B21B6;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.category-pill {
  background: var(--color-surface-subtle, #F1F3F5);
  color: var(--color-text, #111827);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  display: inline-block;
}

/* Action Buttons */
.action-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-status-publish {
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-status-publish:hover {
  background: #059669;
}

.btn-status-draft {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-status-draft:hover {
  background: #E5E7EB;
  border-color: #9CA3AF;
}

.btn-action-view {
  background: transparent;
  border: 1px solid var(--color-border, #E5E7EB);
  color: var(--color-text, #111827);
  padding: 6px 12px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-action-view:hover {
  background: var(--color-surface-subtle, #F1F3F5);
}

/* Toast Notifications */
.admin-toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  animation: authFadeIn 0.2s ease;
}

.admin-toast-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

.admin-toast-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
}

.admin-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted, #6B7280);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Editorial Profile Editor, Repeaters & Entwurfsansicht (Ticket 20)
   ========================================================================== */

.admin-header-actions-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-status-archived {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #D1D5DB;
}

.admin-editor-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.admin-editor-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-editor-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-fieldset {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-fieldset legend {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary, #111827);
  padding: 0 8px;
}

.fieldset-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6B7280);
  margin-top: 4px;
  margin-bottom: 16px;
}

.repeater-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-surface, #FFFFFF);
  color: var(--color-text-primary, #111827);
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary, #111827);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

/* File Upload with Presigned R2 Direct Put */
.file-upload-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: var(--color-surface-subtle, #F1F3F5);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-primary, #111827);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-file-upload:hover {
  background: #E5E7EB;
}

.upload-progress-bar {
  width: 100%;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  border: none;
  background-color: #E5E7EB;
}

.upload-progress-bar::-webkit-progress-bar {
  background-color: #E5E7EB;
  border-radius: 3px;
}

.upload-progress-bar::-webkit-progress-value {
  background-color: var(--color-accent, #3B82F6);
  border-radius: 3px;
}

/* Repeater Rows */
.admin-repeater-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.repeater-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--color-surface-subtle, #F9FAFB);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-sm, 8px);
}

.repeater-fields-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .repeater-fields-gallery {
    grid-template-columns: 2fr 1fr;
  }
  .repeater-fields-team {
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
  }
  .repeater-fields-reels {
    grid-template-columns: 1.5fr 1.5fr 1fr 80px;
  }
  .repeater-fields-jobs {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
  .repeater-fields-jobs .full-width {
    grid-column: 1 / -1;
  }
}

.btn-remove-row {
  align-self: flex-start;
  margin-top: 24px;
  color: #DC2626;
  border-color: #FCA5A5;
}

.btn-remove-row:hover {
  background: #FEF2F2;
  border-color: #EF4444;
}

/* Native Modal Dialog: Entwurfsansicht */
.admin-preview-dialog {
  width: 95vw;
  max-width: 1280px;
  max-height: 92vh;
  border: none;
  border-radius: var(--radius-md, 16px);
  padding: 0;
  background: var(--color-surface, #FFFFFF);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

.admin-preview-dialog::backdrop {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
}

.entwurfsansicht-dialog-wrap {
  display: flex;
  flex-direction: column;
}

.entwurfsansicht-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--color-surface-subtle, #F9FAFB);
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  position: sticky;
  top: 0;
  z-index: 20;
}

.entwurfsansicht-topbar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.entwurfsansicht-company-name {
  font-size: 1.125rem;
  color: var(--color-text-primary, #111827);
}

.entwurfsansicht-status-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6B7280);
}

/* ==========================================================================
   Ticket 21: Thematic Curation & Atomic Stack Ordering Admin Styles
   ========================================================================== */

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border, #E5E7EB);
  padding-bottom: 1px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted, #6B7280);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
  transition: all 0.15s ease;
}

.admin-tab-btn:hover {
  color: var(--color-text-primary, #111827);
  background: var(--color-surface-subtle, #F9FAFB);
}

.admin-tab-btn.active {
  color: var(--color-primary, #E11D48);
  border-bottom-color: var(--color-primary, #E11D48);
  background: transparent;
}

.admin-tab-icon {
  flex-shrink: 0;
}

.admin-subview {
  display: block;
}

.thema-title {
  font-size: 0.9375rem;
  color: var(--color-text-primary, #111827);
  font-weight: 600;
}

.thema-slug-sub {
  font-size: 0.8125rem;
  margin-top: 2px;
}

.thema-live-link {
  color: var(--color-text-muted, #6B7280);
  text-decoration: none;
  transition: color 0.15s ease;
}

.thema-live-link:hover {
  color: var(--color-primary, #E11D48);
  text-decoration: underline;
}

.badge-position {
  background: var(--color-surface-subtle, #F3F4F6);
  color: var(--color-text-primary, #1F2937);
  border: 1px solid var(--color-border, #E5E7EB);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.badge-themen {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Stack Curation Section */
.admin-stack-fieldset {
  margin-top: 32px;
}

.stack-add-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stack-add-select-wrap {
  flex: 1;
  min-width: 280px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.stack-company-search-input {
  max-width: 220px;
  font-size: 14px;
}

.stack-table-wrapper {
  margin-top: 12px;
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

.stack-table {
  margin-bottom: 0;
}

.stack-table th,
.stack-table td {
  padding: 10px 14px;
  vertical-align: middle;
}

.stack-table .col-drag {
  width: 44px;
  text-align: center;
}

.btn-drag-handle {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--color-text-muted, #9CA3AF);
  cursor: grab;
  font-size: 1.125rem;
  line-height: 1;
  padding: 4px 6px;
  touch-action: none;
  user-select: none;
  transition: all 0.15s ease;
}

.btn-drag-handle:hover,
.btn-drag-handle:focus-visible {
  color: var(--color-text-primary, #111827);
  background: var(--color-surface-subtle, #F3F4F6);
  border-color: var(--color-border, #E5E7EB);
}

.btn-drag-handle:active {
  cursor: grabbing;
}

.stack-table .col-stepper {
  width: 90px;
}

.stack-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-surface-subtle, #F9FAFB);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-sm, 6px);
  padding: 2px 4px;
}

.btn-pos-step {
  background: transparent;
  border: none;
  color: var(--color-text-muted, #6B7280);
  font-size: 0.6875rem;
  padding: 4px;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.12s ease;
}

.btn-pos-step:hover:not(:disabled) {
  background: #E5E7EB;
  color: var(--color-text-primary, #111827);
}

.btn-pos-step:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stack-pos-val {
  font-size: 0.8125rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary, #111827);
}

.stack-company-info {
  display: flex;
  flex-direction: column;
}

.stack-company-name {
  font-size: 0.9375rem;
  color: var(--color-text-primary, #111827);
}

.stack-company-loc {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6B7280);
}

.btn-outline-danger {
  color: #DC2626;
  border-color: #FCA5A5;
  background: transparent;
  transition: all 0.15s ease;
}

.btn-outline-danger:hover {
  background: #FEE2E2;
  border-color: #DC2626;
  color: #B91C1C;
}

.stack-empty-state {
  text-align: center;
  padding: 32px 16px;
  background: var(--color-surface-subtle, #F9FAFB);
  border: 2px dashed var(--color-border, #E5E7EB);
  border-radius: var(--radius-md, 8px);
  color: var(--color-text-muted, #6B7280);
  font-size: 0.875rem;
}

/* Drag-and-Drop state */
.stack-row.dragging {
  opacity: 0.4;
  background: #FEF2F2 !important;
}

.stack-row.drag-over {
  border-top: 2px solid var(--color-primary, #E11D48);
}




