/* ==========================================================================
   Layout Container Overrides for Scrolling
   ========================================================================== */

/* Make content-area scrollable when it contains long content like privacy policy */
.content-area:has(.datenschutz-card-body),
.content-area:has(.impressum-card-body) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1;
  min-height: 0;
}

/* Ensure public page can scroll with page-scrollable behavior */
html:has(body.public-page),
body.public-page {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100%;
  scrollbar-gutter: stable;
}

/* ==========================================================================
     Datenschutz Header (Logo/Brand section for logged-in view)
     ========================================================================== */

.datenschutz-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.datenschutz-header-logo {
  margin-bottom: 16px;
  text-align: center;
}

.datenschutz-brand-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0;
}

.datenschutz-brand-text .brand-name {
  font-weight: 400;
}

.datenschutz-logo-image {
  max-height: 60px;
}

.datenschutz-subtitle {
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  margin: 0;
  text-align: center;
}

/* ==========================================================================
     Table of Contents
     ========================================================================== */

.toc {
  background: var(--hover-bg, #f3f4f6);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.toc h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toc a {
  font-size: 13px;
  color: var(--primary-color, #007abb);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* ==========================================================================
     Content Sections
     ========================================================================== */

.content-section {
  margin-bottom: 32px;
  scroll-margin-top: 20px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color, #007abb);
  display: inline-block;
}

.content-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 16px 0 8px 0;
}

.content-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #374151);
  margin-bottom: 12px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.content-section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #374151);
  margin-bottom: 6px;
}

.content-section a {
  color: var(--primary-color, #007abb);
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

/* ==========================================================================
     Info Box & Contact Info
     ========================================================================== */

.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color, #007abb);
  border-radius: 0 8px 8px 0;
  padding: 16px;
  margin: 16px 0;
}

.info-box p {
  margin: 0;
  color: var(--text-primary, #1e293b);
}

.contact-info {
  background: var(--hover-bg, #f3f4f6);
  border-radius: 8px;
  padding: 20px;
  margin-top: 12px;
}

.contact-info p {
  margin-bottom: 4px;
}

.contact-info strong {
  color: var(--text-primary, #1e293b);
}

/* ==========================================================================
     Public Page Styles
     ========================================================================== */

.public-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  box-sizing: border-box;
}


.public-header {
  text-align: center;
  margin-bottom: 32px;
}

.public-header .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color, #007abb);
  margin-bottom: 8px;
}

.public-header .logo span {
  font-weight: 400;
  color: var(--text-secondary, #374151);
}

/* Public Logo Header (above card, like login page) */
.public-logo-header {
  text-align: center;
  margin-bottom: 24px;
}

.public-logo-image {
  max-height: 50px;
  margin-bottom: 8px;
}

.public-logo-image img {
  max-height: inherit;
  width: auto;
  object-fit: contain;
}

.public-logo-subtitle {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin: 0;
}

/* Public Logo Text Style */
.public-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color, #007abb);
  margin-bottom: 4px;
}

.public-logo span {
  font-weight: 400;
  color: var(--text-secondary, #374151);
}

/* Card Title (inside card, centered) */
.public-card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  text-align: center;
  margin-bottom: 16px;
}

/* Card Subtitle (inside card, centered) */
.public-card-subtitle {
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  text-align: center;
  margin-bottom: 24px;
}

.public-card-subtitle p,
.public-card-subtitle div,
.public-card-subtitle span {
  color: inherit;
  text-align: inherit;
}

/* Card body padding for datenschutz */
.datenschutz-card-body {
  padding: 32px;
}

/* ==========================================================================
     Card Styles (Public Page)
     ========================================================================== */

.public-page .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.public-page .card-body {
  padding: 32px;
}

/* ==========================================================================
     Footer (Login-style, Public Page)
     ========================================================================== */

.login-footer {
  margin: 32px 0 24px;
  text-align: center;
}

.login-footer p {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-color, #007abb);
}

/* ==========================================================================
     Language Switcher
     ========================================================================== */

.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface, #ffffff);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e5e7eb);
  z-index: 100;
}

.language-btn {
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.language-btn:hover {
  background: var(--hover-bg, #f3f4f6);
  color: var(--text-secondary, #374151);
}

.language-btn.active {
  background: var(--primary-light, #eff6ff);
  color: var(--primary-color, #007abb);
}

.language-divider {
  width: 1px;
  height: 16px;
  background: var(--border-color, #e5e7eb);
}

/**
  * Hilfe Module Styles
  * 
  * Styles for the help/FAQ page (Hilfe)
  * Used for both logged-in and public views
  */

/* ========================================
    Public Page Base Styles
    ======================================== */

/* Logo Container */
.logo-container {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-container .logo {
  flex-direction: column;
  gap: 8px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color, #007abb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon i {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color, #007abb);
}

.logo-text span {
  color: var(--grey-color, #555555);
  font-weight: 400;
}

.brand-logo {
  max-height: 60px;
  width: auto;
}

/* ========================================
    Hilfe-Specific Container
    ======================================== */

.hilfe-card {
  margin-bottom: 32px;
}

/* ========================================
    Quick Links
    ======================================== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--hover-bg, #f3f4f6);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  width: 100%;
}

.quick-link:hover {
  border-color: var(--primary-color, #007abb);
  box-shadow: 0 4px 12px rgba(0, 122, 187, 0.15);
  cursor: pointer;
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color, #007abb);
  color: var(--surface, #ffffff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.quick-link-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 4px;
  text-align: center;
}

.quick-link-desc {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  text-align: center;
}

/* ========================================
    FAQ Section
    ======================================== */
.faq-section {
  margin-bottom: 32px;
}

.faq-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface, #ffffff);
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: var(--hover-bg, #f3f4f6);
}

.faq-question h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  margin: 0;
  flex: 1;
  padding-right: 16px;
}

.faq-question i {
  width: 20px;
  height: 20px;
  color: var(--text-muted, #6b7280);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 12px 20px 16px 20px;
  background: var(--surface, #ffffff);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #374151);
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 12px 0;
  padding-left: 20px;
}

.faq-answer li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #374151);
  margin-bottom: 4px;
}

/* ========================================
    Contact Section
    ======================================== */
.contact-section {
  background: var(--hover-bg, #f3f4f6);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.contact-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 16px;
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .contact-options {
    grid-template-columns: 1fr;
  }
}

.contact-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface, #ffffff);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e5e7eb);
}

.contact-option-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0 0 4px 0;
}

.contact-option-content p {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin: 0 0 8px 0;
}

.contact-option-content a {
  font-size: 14px;
  color: var(--primary-color, #007abb);
  text-decoration: none;
  font-weight: 500;
}

.contact-option-content a:hover {
  text-decoration: underline;
}

/* Credential Items (label + value + action row) */
.credential-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
}

.credential-item .text-input-wrapper,
.credential-item .textarea-wrapper {
  background-color: transparent;
}


.credential-item > div:first-child {
  display: block;
  flex: 1;
  min-width: 0;
}

.credential-item .form-group {
  margin-bottom: 0;
}

/* Info List Items (icon + text rows) */
.info-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.info-list-item:last-child {
  border-bottom: none;
}

.info-list-item-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #374151);
}

.info-list-item-text strong {
  color: var(--text-primary, #1e293b);
}


/* ========================================
    Layout adjustments for logged-in view
    ======================================== */

/* Override bootstrap2.css fixed height layout to allow page scrolling */
.hilfe-layout {
  height: auto !important;
  min-height: calc(100vh - 64px);
}

.hilfe-layout main,
.hilfe-layout .main-content {
  overflow: visible !important;
  height: auto !important;
}

.hilfe-layout .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hilfe-layout .page-header-right {
  flex-shrink: 0;
}

.hilfe-layout .page-subtitle {
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  margin-top: 4px;
}
/**
 * Impressum Module Styles
 * 
 * Styles for the legal imprint page (Impressum)
 * Used for both logged-in and public views
 */

/* ========================================
   Impressum Content Sections
   ======================================== */
.impressum-section {
  margin-bottom: 28px;
}

.impressum-section:last-child {
  margin-bottom: 0;
}

.impressum-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 12px;
}

.impressum-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #374151);
  margin-bottom: 8px;
}

.impressum-section p:last-child {
  margin-bottom: 0;
}

.impressum-section a {
  color: var(--primary-color, #007abb);
  text-decoration: none;
}

.impressum-section a:hover {
  text-decoration: underline;
}

/* ========================================
     Contact Info Box
     ======================================== */
.contact-info-box {
  background: var(--hover-bg, #f3f4f6);
  border-radius: 8px;
  padding: 20px;
  margin-top: 12px;
}

.contact-info-box p {
  margin-bottom: 4px;
}

.contact-info-box strong {
  color: var(--text-primary, #1e293b);
}

/* ========================================
     Impressum Header (Logo/Brand section)
     ======================================== */
.impressum-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.impressum-header-logo {
  margin-bottom: 16px;
  text-align: center;
}

.impressum-brand-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0;
}

.impressum-brand-text .brand-name {
  font-weight: 400;
}

.impressum-logo-image {
  max-height: 60px;
}

.impressum-subtitle {
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  margin: 0;
  text-align: center;
}

/* Card body padding for impressum */
.impressum-card-body {
  padding: 32px;
}

/* ========================================
     Layout Overrides (for logged-in view)
     ======================================== */
.layout-container.impressum-layout {
  height: auto !important;
  min-height: calc(100vh - 64px);
  overflow: visible;
}

.impressum-layout .main-content {
  overflow-y: visible;
  height: auto;
  max-height: none;
}

/* Allow body scroll for impressum page */
html:has(.impressum-layout),
html:has(.public-page),
body:has(.impressum-layout),
body.public-page {
  overflow-y: auto !important;
  height: auto !important;
}

/* ========================================
     Public View Styles
     ======================================== */
.public-page {
  background: var(--bg-secondary, #f5f7fa);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



.ext-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  line-height: 1;
  color: inherit;
}

.ext-header-icon i,
.ext-header-icon .mdi {
  font-size: 48px;
  line-height: 1;
}
