@charset "UTF-8";

/* ========================================
   GOOGLE FONTS - BARLOW & INTER
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* START -- FORM-ONLY THEME */
/* Modal Overlay */
#confirmation-modal-overlay {
position: fixed;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: none; 
    justify-content: center;
    align-items: center; 
    z-index: 1000; 
}

/* Modal */
#confirmation-modal {
  	color: #186146;
  	border-color: #d8dcde;
		background-color: white; 
    border-radius: 8px; 
    padding: 20px;
  	padding-top: 30px;
    max-width: 300px;
    width: 90%; 
    max-height: 90%; 
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    position: relative; 
    margin: auto; 
}

/* Close Button */
#confirmation-modal-close-button {
   	background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute; 
    top: 10px; 
    right: 10px; 
}
/* END -- FORM-ONLY THEME */

/* ========================================
   1KOMMA5° DESIGN SYSTEM - CSS VARIABLES
   ======================================== */
:root {
  /* KRITISCH: Root Font-Size explizit setzen für konsistente rem-Werte */
  font-size: 16px; /* Browser-Default - stellt sicher, dass 1rem = 16px */
  /* Primary Colors */
  --primary-color: #5C068C;          /* Aubergine - Brand Primary */
  --primary-light: #7C3AED;          /* Helleres Aubergine */
  --primary-dark: #4C1D95;            /* Dunkleres Aubergine */
  
  /* Accent Colors */
  --accent-color: #FA65EC;            /* Fuchsia - Accent */
  --accent-light: #FB8EF0;            /* Helleres Fuchsia */
  --accent-dark: #E91E63;             /* Dunkleres Fuchsia */
  
  /* Secondary Colors */
  --mint-color: #2ED8C3;              /* Mint - Secondary Accent */
  --mint-light: #5EEAD4;              /* Helleres Mint */
  --mint-dark: #14B8A6;               /* Dunkleres Mint */
  
  /* Neutral Colors */
  --background-color: #ffffff;        /* Weißer Hintergrund */
  --surface-color: #f8fafc;          /* Helles Grau für Karten */
  --text-primary: #1e293b;            /* Dunkler Text */
  --text-secondary: #475569;          /* Sekundärer Text */
  --text-muted: #64748b;              /* Abgeschwächter Text */
  --border-color: #e2e8f0;            /* Subtile Rahmen */
  
  /* Semantic Colors */
  --success-color: var(--mint-color);
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Spacing & Effects */
  --border-radius: 8px;
  --border-radius-large: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* Container-Breiten (Mobile-First Design System) */
  --container-max-width-mobile: 100%;
  --container-max-width-desktop: 1200px;
  --content-grid-max-width-desktop: 1000px;
  --card-max-width-desktop: 480px;
  
  /* Container-Padding (8pt Grid System) */
  --container-padding-mobile: var(--spacing-base); /* 16px */
  --container-padding-desktop-vertical: var(--spacing-xl); /* 40px */
  --container-padding-desktop-horizontal: var(--spacing-lg); /* 32px */
  
  /* Typography - Brand Fonts */
  --font-heading: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Typography - Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;
  
  /* Typography - Text Colors (Brand Guidelines) */
  --text-graphite: #1e293b;              /* Graphite - Grundfarbe für Fließtext auf weißem Hintergrund */
  --text-white: #ffffff;                /* White - Schriftfarbe auf dunklen Hintergründen */
  --text-highlight-aubergine: #5C068C;  /* Aubergine - Primärfarbe für Hervorhebungen */
  --text-highlight-fuchsia: #FA65EC;    /* Fuchsia - Accent-Farbe für Hervorhebungen */
  --text-highlight-mint: #2ED8C3;       /* Mint - Sekundär-Accent für Hervorhebungen */
  
  /* Typography - Line Heights (Brand Guidelines) */
  --line-height-copy: 1.5;               /* 150% für Copytext */
  --line-height-quote: 1.4;              /* 140% für Zitate */
  --line-height-heading: 1.3;            /* 130% für Überschriften */
  
  /* Typography - Font Sizes (Brand Guidelines) */
  --font-size-caption: 0.75rem;          /* 12px - Caption */
  --font-size-body: 1rem;                /* 16px - Body Text */
  --font-size-body-large: 1.125rem;      /* 18px - Body Text Large */
  --font-size-h4: 1.25rem;               /* 20px - H4 */
  --font-size-h3: 1.5rem;                /* 24px - H3 */
  --font-size-h2: 1.75rem;               /* 28px - H2 */
  --font-size-h1: 2rem;                  /* 32px - H1 */
  
  /* Typography - Card Content Minimum Sizes (Accessibility & DesignRules) */
  --card-title-min-size: 1rem;           /* 16px - Minimale Textgröße für Karten-Titel (DesignRules: Paragraph Medium) */
  --card-title-min-size-mobile: 0.9375rem; /* 15px - Minimale Textgröße auf sehr kleinen Bildschirmen */
  
  /* Typography - Headline XSmall (Design System: alle Header-Sektionen) */
  --headline-xsmall-font-size: 1.25rem;   /* 20px */
  --headline-xsmall-line-height: 28px;   /* 28px */
  --headline-xsmall-font-weight: 700;     /* bold */
  
  /* Typography - Chapter Stroke (Kapitelstrich) */
  --chapter-stroke-width: 0.5px;         /* Dicke der Kapitellinie */
  --chapter-stroke-color: var(--text-graphite);
  
  /* Spacing - 8pt Grid System (DesignRules) */
  --spacing-xs: 0.25rem;   /* 4px - 8pt Grid: 0.5 * 8px */
  --spacing-sm: 0.5rem;    /* 8px - 8pt Grid: 1 * 8px */
  --spacing-base: 1rem;    /* 16px - 8pt Grid: 2 * 8px (Mobile Margins) */
  --spacing-md: 1.5rem;    /* 24px - 8pt Grid: 3 * 8px */
  --spacing-lg: 2rem;      /* 32px - 8pt Grid: 4 * 8px */
  --spacing-xl: 2.5rem;    /* 40px - 8pt Grid: 5 * 8px */

  /* Harmonized • Flutter (Figma: Accordion + List Items) */
  --harmonized-content-primary: #191919;
  --harmonized-content-secondary: #525252;
  --harmonized-surface-muted: #f5f5f5;
  --harmonized-divider: #f5f5f5;
  --harmonized-tag-bg: #faf5ff;
  --harmonized-tag-border: #ce88f6;
  --harmonized-tag-text: #4d0d73;
  --harmonized-list-pad-y: 8px;
  --harmonized-list-pad-x: 16px;
  --harmonized-list-gap: 12px;
  --harmonized-main-text-gap: 16px;
  --harmonized-leading-size: 36px;
  --harmonized-icon-inner: 20px;
  --harmonized-label-font-size: 0.875rem; /* 14px label-small */
  --harmonized-label-line-height: 1rem; /* 16px */
  --harmonized-paragraph-font-size: 0.875rem; /* 14px paragraph-small */
  --harmonized-paragraph-line-height: 1.25rem; /* 20px */
  --harmonized-paragraph-letter-spacing: 0.25px;
  --harmonized-chevron-size: 24px;
  --harmonized-accordion-min-height: 80px;
  --harmonized-list-slim-min-height: 40px;

  /* Kategorie-Seite: Überschriften-Hierarchie (Mobile first; Listen bleiben --harmonized-label 14px) */
  --category-page-hero-size: 1.125rem; /* 18px — Seitentitel */
  --category-page-hero-line-height: 1.5rem;
  --category-secondary-heading-size: 0.9375rem; /* 15px — z. B. Suchblock-Titel */
  --category-secondary-heading-line-height: 1.25rem;
  --category-section-heading-size: 1rem; /* 16px — Akkordeon-Sektion über Artikelzeilen */
  --category-section-heading-line-height: 1.375rem;
}

@media (min-width: 768px) {
  :root {
    --category-page-hero-size: 1.25rem; /* 20px */
    --category-page-hero-line-height: var(--headline-xsmall-line-height);
    --category-secondary-heading-size: 1.0625rem; /* 17px */
    --category-secondary-heading-line-height: 1.5rem;
    --category-section-heading-size: 1.0625rem; /* 17px */
    --category-section-heading-line-height: 1.5rem;
  }
}

/* ========================================
   GLOBAL DARK MODE (Figma Help Centre – mobile first)
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Backgrounds */
    --background-color: #0d0d0d;
    --surface-color: #1a1a1a;
    /* Content / Text (Figma: content/primary → light on dark) */
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --text-graphite: #f5f5f5;
    --text-white: #ffffff;
    /* Borders */
    --border-color: #404040;
    /* Brand Purple: alle Lila #CE88F6 im Dark Mode */
    --primary-color: #CE88F6;
    --primary-light: #e0a8ff;
    --primary-dark: #b86ef0;
    --text-highlight-aubergine: #CE88F6;
    /* Shadows auf Dark reduzieren */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.35);
    --chapter-stroke-color: #404040;
    /* Harmonized – Dark */
    --harmonized-content-primary: #f5f5f5;
    --harmonized-content-secondary: #a3a3a3;
    --harmonized-surface-muted: #262626;
    --harmonized-divider: #404040;
    --harmonized-tag-bg: rgba(206, 136, 246, 0.12);
    --harmonized-tag-border: #ce88f6;
    --harmonized-tag-text: #e9d5ff;
  }
}

/* Dark mode: Icons/SVG mit #5C068C durch #CE88F6 ersetzen (accessible) */
@media (prefers-color-scheme: dark) {
  .settings-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23CE88F6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }
  /* Lesezeichen-Icon unausgefüllt (Standard) */
  .article-subscribe-wrapper .article-subscribe::before,
  .article-subscribe-wrapper .article-subscribe button::before,
  .article-subscribe-wrapper a::before,
  .article-subscribe-modern .article-subscribe::before,
  .article-subscribe-modern .article-subscribe button::before,
  .article-subscribe-modern a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23CE88F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") !important;
  }
  .article-subscribe-wrapper .article-subscribe.button-primary::before,
  .article-subscribe-wrapper .article-subscribe button.button-primary::before,
  .article-subscribe-wrapper a.button-primary::before,
  .article-subscribe-modern .article-subscribe.button-primary::before,
  .article-subscribe-modern .article-subscribe button.button-primary::before,
  .article-subscribe-modern a.button-primary::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23CE88F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") !important;
  }
  .article-subscribe-modern .article-subscribe[data-selected='true']::before,
  .article-subscribe-modern .article-subscribe button[data-selected='true']::before,
  .article-subscribe-modern a[data-selected='true']::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23CE88F6' stroke='%23CE88F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") !important;
  }
  /* Lesezeichen-Icon (SVG-Element von script.js) erbt Button-Farbe */
  .article-subscribe-wrapper .bookmark-icon,
  .article-subscribe-modern .bookmark-icon {
    color: var(--primary-color);
  }
  .ticket-detail-attachment-link::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23CE88F6' stroke-linecap='round'%3E%3Cpath d='M9.5 4v7.7c0 .8-.7 1.5-1.5 1.5s-1.5-.7-1.5-1.5V3C6.5 1.6 7.6.5 9 .5s2.5 1.1 2.5 2.5v9c0 1.9-1.6 3.5-3.5 3.5S4.5 13.9 4.5 12V4'/%3E%3C/svg%3E") no-repeat center;
  }
  #new-request-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23CE88F6' stroke-linecap='round' d='M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5'/%3E%3C/svg%3E");
  }
  /* Ticket-Liste: Tag-Brand (Status-Pills) – Design-System Dark Mode */
  .profile-ticket-row__pill--open,
  .tickets-page-figma .profile-ticket-row__pill--open {
    background: rgba(206, 136, 246, 0.15);
    color: var(--primary-color);
  }

  /* New-Request-Page: WYSIWYG-Editor (CKEditor) Dark Mode */
  #new-request-form #hc-wysiwyg,
  #new-request-form .wysiwyg-editor,
  #new-request-form .rich-text-editor,
  #new-request-form .ck.ck-editor,
  #new-request-form .ck .ck-editor__top,
  #new-request-form .ck .ck-toolbar,
  #new-request-form .ck .ck-editor__main,
  #new-request-form .ck .ck-editor__editable,
  #new-request-form .ck .ck-content {
    background-color: var(--background-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
  }
  #new-request-form .ck .ck-editor__editable.ck-focused,
  #new-request-form .ck .ck-content.ck-focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(206, 136, 246, 0.15) !important;
  }
  #new-request-form .ck .ck-toolbar .ck-button,
  #new-request-form .ck .ck-toolbar .ck-dropdown__button {
    color: var(--text-primary) !important;
  }
  #new-request-form .ck .ck-toolbar .ck-button:hover,
  #new-request-form .ck .ck-toolbar .ck-button.ck-on,
  #new-request-form .ck .ck-toolbar .ck-dropdown__button:hover {
    background: var(--surface-color) !important;
    color: var(--primary-color) !important;
  }
  #new-request-form .wysiwyg-editor:focus,
  #new-request-form .rich-text-editor:focus {
    box-shadow: 0 0 0 3px rgba(206, 136, 246, 0.15) !important;
  }
  /* WYSIWYG Editor: Text und alle Kindelemente sichtbar (sonst schwarz) */
  #new-request-form .ck .ck-editor__editable *,
  #new-request-form .ck .ck-content * {
    color: var(--text-primary) !important;
  }
  #new-request-form .ck .ck-placeholder {
    color: var(--text-muted) !important;
  }
  #new-request-form [contenteditable="true"],
  #new-request-form [contenteditable="true"] * {
    color: var(--text-primary) !important;
  }
  /* CKEditor Dropdowns/Panels (Format, etc.) */
  #new-request-form .ck .ck-dropdown__panel,
  #new-request-form .ck .ck-list,
  #new-request-form .ck .ck-list__item {
    background-color: var(--background-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
  }
  #new-request-form .ck .ck-list__item .ck-button:hover {
    background: var(--surface-color) !important;
    color: var(--primary-color) !important;
  }
  /* Ticket-Detail: gestrichelte Linie – gleiche Farbe #CE88F6 im Dark Mode */
  .conversation-message::before {
    border-left-color: rgba(206, 136, 246, 0.5);
  }

  /* Ticket-Detail Reply: WYSIWYG-Editor (CKEditor) Dark Mode */
  .ticket-detail-reply-inline #hc-wysiwyg,
  .ticket-detail-reply-inline .comment-form-reply-area .wysiwyg-editor,
  .ticket-detail-reply-inline .comment-form-reply-area .ck.ck-editor,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-editor__top,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-toolbar,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-editor__main,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-editor__editable,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-content,
  .comment-form-mobile-first .comment-form-reply-area .wysiwyg-editor,
  .comment-form-mobile-first .comment-form-reply-area .ck.ck-editor,
  .comment-form-mobile-first .comment-form-reply-area .ck .ck-editor__editable,
  .comment-form-mobile-first .comment-form-reply-area .ck .ck-content {
    background-color: var(--background-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-editor__editable.ck-focused,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-content.ck-focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(206, 136, 246, 0.15) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-toolbar .ck-button,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-toolbar .ck-dropdown__button {
    color: var(--text-primary) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-toolbar .ck-button:hover,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-toolbar .ck-button.ck-on,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-dropdown__button:hover {
    background: var(--surface-color) !important;
    color: var(--primary-color) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-dropdown__panel,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-list,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-list__item {
    background-color: var(--background-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-list__item .ck-button:hover {
    background: var(--surface-color) !important;
    color: var(--primary-color) !important;
  }
  /* Ticket-Detail WYSIWYG: Text und alle Kindelemente sichtbar (sonst schwarz) */
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-editor__editable *,
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-content *,
  .comment-form-mobile-first .comment-form-reply-area .ck .ck-editor__editable *,
  .comment-form-mobile-first .comment-form-reply-area .ck .ck-content * {
    color: var(--text-primary) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area .ck .ck-placeholder,
  .comment-form-mobile-first .comment-form-reply-area .ck .ck-placeholder {
    color: var(--text-muted) !important;
  }
  .ticket-detail-reply-inline .comment-form-reply-area [contenteditable="true"],
  .ticket-detail-reply-inline .comment-form-reply-area [contenteditable="true"] *,
  .comment-form-mobile-first .comment-form-reply-area [contenteditable="true"],
  .comment-form-mobile-first .comment-form-reply-area [contenteditable="true"] * {
    color: var(--text-primary) !important;
  }
}

/* Font-Face Deklarationen - Fallback für lokale Fonts (optional) */
@font-face {
  font-family: Barlow;
  src: url(/hc/theming_assets/01JE6CMG99ZDSN7RXSV0GQ9ZF2);
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: Inter;
  src: url(/hc/theming_assets/01JE77NFRH0X411D8P98DHDHJQ);
  font-weight: 400;
  font-style: normal;
}

/* ========================================
   1KOMMA5° BRAND TYPOGRAPHY - SEITENWEITE REGELN
   ======================================== */

/* Basis-Typografie für alle Texte */
body {
  font-family: var(--font-body) !important;
  font-size: 16px !important; /* Explizit 16px setzen - Browser-Default für konsistente rem-Werte */
  font-weight: var(--font-weight-regular) !important;
  line-height: var(--line-height-copy) !important;
  color: var(--text-graphite) !important;
  text-align: left !important; /* Linksbündiger Flattersatz */
  /* iOS Safari: Verbesserte Touch-Performance */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
}

/* Überschriften - Barlow mit Kapitelstrich */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading) !important;
  font-weight: var(--font-weight-semi-bold) !important;
  line-height: var(--line-height-heading) !important;
  color: var(--text-graphite) !important;
  text-align: left !important;
  margin-bottom: var(--spacing-md) !important;
}

h1, .h1 {
  font-size: var(--font-size-h1) !important;
  font-weight: var(--font-weight-bold) !important;
}

h2, .h2 {
  font-size: var(--font-size-h2) !important;
  position: relative;
  padding-top: var(--spacing-md) !important;
}

/* Kapitelstrich für H2 (Kapitelüberschriften) */
/* h2::before Strich global deaktiviert */
h2::before, .h2::before {
  display: none !important;
  content: none !important;
}

h3, .h3 {
  font-size: var(--font-size-h3) !important;
}

h4, .h4 {
  font-size: var(--font-size-h4) !important;
}

/* Fließtext - Inter */
p, 
.article-body,
.article-body-modern,
.body-text {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-regular) !important;
  line-height: var(--line-height-copy) !important;
  color: var(--text-graphite) !important;
  text-align: left !important;
  margin-bottom: var(--spacing-base) !important;
}

/* Zitate - erhöhter Zeilenabstand */
blockquote, 
.quote,
q {
  font-family: var(--font-body) !important;
  line-height: var(--line-height-quote) !important;
  font-style: italic;
  color: var(--text-graphite) !important;
  text-align: left !important;
}

/* Caption - kleine Schrift */
.caption,
figcaption,
small {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-caption) !important;
  font-weight: var(--font-weight-regular) !important;
  color: var(--text-secondary) !important;
  text-align: left !important;
}

/* Hervorhebungen mit Primärfarben (nur auf weißem Hintergrund) */
.text-highlight-aubergine,
.highlight-aubergine {
  color: var(--text-highlight-aubergine) !important;
}

.text-highlight-fuchsia,
.highlight-fuchsia {
  color: var(--text-highlight-fuchsia) !important;
}

.text-highlight-mint,
.highlight-mint {
  color: var(--text-highlight-mint) !important;
}

/* Text auf dunklen Hintergründen - White */
.dark-background,
[style*="background-color: #"],
[style*="background: #"],
.bg-dark,
.bg-primary,
.bg-accent {
  color: var(--text-white) !important;
}

.dark-background p,
.dark-background h1,
.dark-background h2,
.dark-background h3,
.dark-background h4,
.dark-background h5,
.dark-background h6 {
  color: var(--text-white) !important;
}

/* Links - Brand-Farben */
a {
  color: var(--text-highlight-aubergine) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1); /* Aubergine mit 10% Opacity */
  touch-action: manipulation; /* Verhindert 300ms Delay auf iOS */
  cursor: pointer;
}

a:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline;
}

/* Buttons - Brand-Typografie */
button,
.button,
.btn {
  font-family: var(--font-body) !important;
  font-weight: var(--font-weight-semi-bold) !important;
  text-align: center !important; /* Buttons dürfen zentriert sein */
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1); /* Aubergine mit 10% Opacity */
  touch-action: manipulation; /* Verhindert 300ms Delay auf iOS */
  cursor: pointer;
  /* Sicherstellen, dass Buttons auf iOS klickbar sind */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Störer - zentriert erlaubt */
.alert,
.notification,
.banner,
.stoerer {
  text-align: center !important;
}

/* Ausnahme: Headline mit farbiger Unterlegung - zentriert erlaubt */
.headline-colored-bg,
h1[style*="background"],
h2[style*="background"] {
  text-align: center !important;
}

  color: inherit !important; /* Widget nutzt eigene Farben */
}

/* ========================================
   HORIZONTALES SCROLLEN VERHINDERN
   ======================================== */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* ========================================
   CONTAINER: GLOBALE BREITENBEGRENZUNG
   ======================================== */
/* Container sollten nie breiter als Viewport sein */
.container,
.container-divider,
.wrapper,
.main-content {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* #main-content: Einheitliche Regel für alle Seiten */
/* Diese Regel begrenzt #main-content auf 1000px, damit Content-Grids (1000px) korrekt zentriert werden */
/* Gilt für: main#main-content, div#main-content, article#main-content, etc. */
/* WICHTIG: !important ist notwendig, um Parent-Container-Regeln zu überschreiben */
#main-content {
  max-width: var(--content-grid-max-width-desktop) !important; /* 1000px */
  margin: 0 auto !important; /* Zentriert auch innerhalb von Parent-Containern */
  box-sizing: border-box;
  width: 100%; /* Ermöglicht margin: 0 auto */
}

/* #main-content.section-tree: Spezifische Regel für Category Pages */
/* Überschreibt Parent-Container (.category-container) max-width: 1200px */
#main-content.section-tree {
  max-width: var(--content-grid-max-width-desktop) !important; /* 1000px */
  margin: 0 auto !important;
  width: 100%;
  box-sizing: border-box;
}

/* #main-content.article-modern: Spezifische Regel für Article Pages */
/* Überschreibt Parent-Container (.article-container-modern) max-width: 1200px */
#main-content.article-modern {
  max-width: var(--content-grid-max-width-desktop) !important; /* 1000px */
  margin: 0 auto !important;
  width: 100%;
  box-sizing: border-box;
}

/* #main-content: Ausnahmen für unbekannte Container - verhindern overflow */
#main-content:not(.homepage-main):not(.knowledge-base-main):not(.category-container):not(.article-container-modern):not(.search-page-container):not(.profile-page-modern):not(.error-page):not(.request-page):not(.request-page-modern):not(.section-tree):not(.article-modern) {
  overflow-x: hidden !important;
}

/* Homepage-main: Basis-Styles ohne max-width Überschreibung */
#main-content.homepage-main {
  width: 100%; /* Ermöglicht margin: 0 auto */
  overflow-x: visible; /* Kein overflow-x für Homepage */
  /* max-width wird von generischer #main-content Regel übernommen (1000px) */
}

/* Alle direkten Kinder von body sollten auch begrenzt sein (außer Seiten-Container) */
/* WICHTIG: .container wird ausgeschlossen, da es von inneren Containern (.category-container, etc.) überschrieben wird */
body > *:not(.homepage-main):not(.knowledge-base-main):not(.category-container):not(.article-container-modern):not(.search-page-container):not(.profile-page-modern):not(.error-page):not(.request-page):not(.container) {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Bilder und Media-Elemente sollten nie breiter als Container sein */
img,
video,
iframe,
embed,
object {
  max-width: 100% !important;
  height: auto !important;
}

/* Tabellen sollten scrollbar sein statt zu breit zu werden */
table {
  max-width: 100% !important;
  table-layout: auto !important;
}

/* Tabellen in einem scrollbaren Container - Wrapper-Ansatz */
.article-body table,
.article-body-modern table {
  max-width: 100% !important;
  width: 100% !important;
}

/* Falls Tabellen in einem Wrapper sind */
.table-wrapper {
  overflow-x: auto !important;
  max-width: 100% !important;
  display: block !important;
}

/* Code-Blöcke sollten scrollbar sein */
pre,
code {
  max-width: 100% !important;
  overflow-x: auto !important;
  word-wrap: break-word !important;
}

/* overwriting rich text module styling, because we don't have direct control over it */
.ck-focused {
  box-shadow: white 0 0 0 1px, rgba(92, 6, 140, 1) 0 0 0 3px !important;
  border-color: rgba(92, 6, 140, 1) !important;
}

.ck {
  --ck-focus-outer-shadow: none !important;
  --ck-color-button-on-color: rgba(92, 6, 140, 1);
  --ck-color-list-button-on-text: rgba(92, 6, 140, 1);
  --ck-color-button-on-hover-background: #FAF5FF; /* lighter brand color, not available as variable */
  --ck-color-button-on-active-background: #FAF5FF; /* lighter brand color, not available as variable */
}

/* making links visibly clickable in form */
#new-request-form a {
  color: rgba(92, 6, 140, 1);
}
#new-request-form a:visited {
  color: rgba(126, 34, 206, 1);
}

/***** Normalize.css *****/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text-primary) !important;
  /* iOS Safari Fix: Verhindert White-Space beim Scrollen */
  /* Stelle sicher, dass Body-Höhe korrekt ist */
  min-height: 100dvh;
  min-height: 100vh; /* Fallback für Browser ohne dvh Support */
  /* iOS Safari Fix: Verhindert horizontales Scrollen */
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/***** Base *****/
* {
  box-sizing: border-box;
}

body {
  background-color: #FFFFFF;
  color: var(--text-primary) !important;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--background-color) !important;
    color: var(--text-primary) !important;
  }
  #main-content,
  main#main-content,
  .container,
  .content-wrapper,
  .article-container-modern,
  .category-container,
  .search-page-container,
  .profile-page-modern,
  .request-page,
  .request-page-modern,
  .homepage-main,
  .homepage-container,
  .homepage-logged-in,
  .knowledge-base-main {
    background-color: var(--background-color) !important;
  }
  /* Karten: Beliebte Beiträge, Zuletzt aufgerufene, Verwandte Beiträge */
  .frequent-problem-card,
  .frequent-problem-card__content,
  .related-articles-section ul li a,
  .recent-articles-section ul li a,
  .related-articles a,
  .recent-articles a,
  .related-articles-section ul li a .article-card-content,
  .recent-articles-section ul li a .article-card-content,
  .related-articles a .article-card-content,
  .recent-articles a .article-card-content,
  .related-articles:not(.related-articles-section ul) a,
  .recent-articles:not(.recent-articles-section ul) a,
  .related-articles:not(.related-articles-section ul) a .article-card-content,
  .recent-articles:not(.recent-articles-section ul) a .article-card-content {
    background-color: var(--background-color) !important;
  }
  .frequent-problem-card__title,
  .related-articles-section ul li a .article-card-title,
  .recent-articles-section ul li a .article-card-title,
  .related-articles a .article-card-title,
  .recent-articles a .article-card-title {
    color: var(--text-primary) !important;
  }
  .breadcrumbs,
  .page-header,
  .article-header,
  .section-tree,
  .category-tree,
  [role="main"] {
    background-color: transparent !important;
    color: inherit !important;
  }
  /* Footer & Bottom Nav nutzen bereits var(--background-color) / var(--border-color) */
  .bottom-navigation {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
  }
  .bottom-nav-item,
  .bottom-nav-icon,
  .bottom-nav-label {
    color: var(--text-secondary) !important;
  }
  .bottom-nav-item.active .bottom-nav-icon,
  .bottom-nav-item.active .bottom-nav-label {
    color: var(--primary-color) !important;
  }
  /* Formulare: Inputs, Select, Textarea */
  .hbs-form input:where(:not([type=checkbox]):not([type=radio])),
  .search input:where(:not([type=checkbox]):not([type=radio])),
  .hbs-form textarea,
  .search textarea,
  .hbs-form select,
  .search select,
  .form-field input:where(:not([type=checkbox]):not([type=radio])),
  .form-field textarea,
  .form-field select,
  .form-field .nesty-input,
  .form-field .hc-multiselect-toggle,
  .request-form input:where(:not([type=checkbox]):not([type=radio])),
  .request-form textarea,
  .request-form select,
  #new-request-form input[type="text"],
  #new-request-form input[type="email"],
  #new-request-form textarea,
  #new-request-form select {
    background-color: var(--surface-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
  }
  .hbs-form input::placeholder,
  .search input::placeholder,
  .hbs-form textarea::placeholder,
  .form-field input::placeholder,
  .form-field textarea::placeholder,
  #new-request-form input::placeholder,
  #new-request-form textarea::placeholder {
    color: var(--text-muted);
  }
  .form-field label,
  .form-field .optional,
  .form-field p {
    color: var(--text-secondary) !important;
  }
  /* Dropdown-Menüs (z. B. in Ticket-Formularen) */
  .dropdown-menu,
  #new-request-form .dropdown-menu,
  .form-field .dropdown-menu,
  .form .dropdown-menu {
    background: var(--surface-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary);
  }
  .dropdown-menu [role=separator] {
    border-bottom-color: var(--border-color);
  }
  .dropdown-menu [role=menuitem],
  .dropdown-menu [role=menuitemradio] {
    color: var(--text-primary);
  }
  .dropdown-menu [role=menuitem]:hover,
  .dropdown-menu [role=menuitem]:focus,
  .dropdown-menu [role=menuitemradio]:hover,
  .dropdown-menu [role=menuitemradio]:focus {
    background: rgba(92, 6, 140, 0.15);
    color: var(--text-primary);
  }
  /* Zendesk Garden Form-Felder (Ticket-Formular) */
  #new-request-form [data-garden-id] input,
  #new-request-form [data-garden-id] textarea,
  #new-request-form [data-garden-id] select,
  #new-request-form [data-garden-id] [role="combobox"],
  #new-request-form [data-garden-id="dropdowns.combobox.field"] > div,
  #new-request-form [data-garden-id="forms.field"] > div {
    background-color: var(--surface-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
  }
  /* Garden: Focus/Autofill überschreibt sonst das helle Theme beim Tippen */
  #new-request-form input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=hidden])):focus,
  #new-request-form input:where(:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=hidden])):focus-visible,
  #new-request-form textarea:focus,
  #new-request-form textarea:focus-visible,
  #new-request-form select:focus,
  #new-request-form select:focus-visible,
  #new-request-form [data-garden-id] input:focus,
  #new-request-form [data-garden-id] input:focus-visible,
  #new-request-form [data-garden-id] textarea:focus,
  #new-request-form [data-garden-id] textarea:focus-visible,
  #new-request-form [data-garden-id] select:focus,
  #new-request-form [data-garden-id] select:focus-visible,
  #new-request-form [data-garden-id] [role="combobox"]:focus,
  #new-request-form [data-garden-id] [role="combobox"]:focus-within {
    background-color: var(--surface-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(206, 136, 246, 0.15) !important;
  }
  #new-request-form input:-webkit-autofill,
  #new-request-form input:-webkit-autofill:hover,
  #new-request-form input:-webkit-autofill:focus,
  #new-request-form input:-webkit-autofill:focus-visible,
  #new-request-form textarea:-webkit-autofill,
  #new-request-form textarea:-webkit-autofill:hover,
  #new-request-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset !important;
    box-shadow: 0 0 0 1000px var(--surface-color) inset !important;
    border-color: var(--border-color) !important;
    transition: background-color 5000s ease-out 0s;
  }
  /* Dropdown-Listen (Combobox-Optionen) auf requests/new: dunkler Hintergrund im Dark Mode */
  body:has(#new-request-form) [role="listbox"],
  body:has(#new-request-form) [role="listbox"] [role="option"] {
    background-color: var(--surface-color) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
  }
  body:has(#new-request-form) [role="listbox"] [role="option"]:hover,
  body:has(#new-request-form) [role="listbox"] [role="option"]:focus,
  body:has(#new-request-form) [role="listbox"] [role="option"][aria-selected="true"] {
    background-color: rgba(206, 136, 246, 0.2) !important;
    color: var(--text-primary) !important;
  }
  /* Karten & Flächen: nutzen Design-System-Variablen (bereits var(--surface-color) etc.) */
  .article-card,
  .profile-section,
  .request-list-item {
    background-color: var(--surface-color) !important;
    border-color: var(--border-color) !important;
  }
  /* Modal / Confirmation */
  #confirmation-modal {
    background-color: var(--surface-color) !important;
    border-color: var(--border-color);
    color: var(--text-primary);
  }
}

@media (min-width: 1024px) {
  body > main {
    min-height: 65vh;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Barlow', Arial, sans-serif;
  margin-top: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
}

a {
  color: rgba(25, 25, 25, 1);
  text-decoration: none;
}
a:visited {
  color: rgba(126, 34, 206, 1);
}
a:hover, a:active, a:focus {
  text-decoration: underline;
}

.hbs-form input,
.hbs-form textarea, .search input,
.search textarea {
  color: var(--text-primary) !important;
  font-size: 14px;
}
.hbs-form input, .search input {
  max-width: 100%;
  box-sizing: border-box;
  transition: border 0.12s ease-in-out;
  /* We use the :where selector to not increase the specificity of the selector */
}
.hbs-form input:where(:not([type=checkbox])), .search input:where(:not([type=checkbox])) {
  outline: none;
}
.hbs-form input:where(:not([type=checkbox])):focus, .search input:where(:not([type=checkbox])):focus {
  border: 1px solid rgba(92, 6, 140, 1);
}
.hbs-form input[disabled], .search input[disabled] {
  background-color: #ddd;
}
.hbs-form select, .search select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23CCC' d='M0 0h10L5 6 0 0z'/%3E%3C/svg%3E%0A") no-repeat #fff;
  background-position: right 10px center;
  border: 1px solid #87929D;
  border-radius: 4px;
  padding: 8px 30px 8px 10px;
  outline: none;
  color: #555;
  width: 100%;
}
.hbs-form select:focus, .search select:focus {
  border: 1px solid rgba(92, 6, 140, 1);
}
.hbs-form select::-ms-expand, .search select::-ms-expand {
  display: none;
}
.hbs-form textarea, .search textarea {
  border: 1px solid #87929D;
  border-radius: 2px;
  resize: vertical;
  width: 100%;
  outline: none;
  padding: 10px;
}
.hbs-form textarea:focus, .search textarea:focus {
  border: 1px solid rgba(92, 6, 140, 1);
}

@media (prefers-color-scheme: dark) {
  .hbs-form select,
  .search select,
  .form-field select,
  #new-request-form select {
    background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0h10L5 6 0 0z'/%3E%3C/svg%3E%0A") no-repeat var(--surface-color) !important;
    background-position: right 10px center !important;
    color: var(--text-primary) !important;
  }
  .hbs-form input[disabled],
  .search input[disabled],
  .form-field input[disabled],
  #new-request-form input[disabled] {
    background-color: var(--surface-color) !important;
    color: var(--text-muted);
    opacity: 0.8;
  }
}

.container {
  max-width: 100%; /* Mobile-First: Volle Breite, keine Begrenzung (innere Container übernehmen Breitenbegrenzung) */
  margin: 0;
  padding: 0 var(--spacing-base); /* Mobile: 16px Margins (DesignRules) */
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .container {
    padding: 0; /* Padding wird von inneren Containern übernommen (z.B. .category-container) */
    max-width: 100%; /* Desktop: Volle Breite für innere Container */
  }
}

/* Spezifische Regel für .container auf Kategorie-Seiten (Desktop) */
/* Überschreibt globale body > * Regel (max-width: 100vw !important) */
/* WICHTIG: Diese Regel muss nach der body > * Regel kommen, um !important zu überschreiben */
@media (min-width: 1024px) {
  .container:has(.category-container) {
    max-width: var(--content-grid-max-width-desktop) !important; /* 1000px - konsistent mit #main-content */
    width: 100% !important; /* Stellt sicher, dass width nicht überschrieben wird */
    margin: 0 auto !important; /* Zentriert den Container */
    box-sizing: border-box;
  }
}


/* Container-Divider - Versteckt auf modernen Seiten */
.container-divider {
  border-top: 1px solid #ddd;
  margin-bottom: 20px;
}

/* Verstecke Container-Divider auf modernen Seiten */
.search-page-modern .container-divider,
.error-page-modern .container-divider,
.knowledge-base-container .container-divider {
  display: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========================================
   SEITEN-CONTAINER: MOBILE-FIRST
   Einheitliche Container-Definitionen
   ======================================== */
.error-page,
.article-container-modern,
.search-page-container,
.category-container,
.knowledge-base-main,
.homepage-main {
  max-width: var(--container-max-width-mobile); /* 100% */
  margin: 0 auto;
  padding: var(--container-padding-mobile); /* 16px */
  box-sizing: border-box;
}

/* Profile Page: Mobile-First - separate Regel für 1000px max-width */
.profile-page-modern {
  max-width: var(--container-max-width-mobile); /* 100% */
  margin: 0 auto;
  padding: var(--container-padding-mobile); /* 16px */
  box-sizing: border-box;
}

/* ========================================
   SEITEN-CONTAINER: DESKTOP
   ======================================== */
@media (min-width: 1024px) {
  .error-page,
  .article-container-modern,
  .search-page-container,
  .category-container,
  .knowledge-base-main,
  .homepage-main {
    max-width: var(--container-max-width-desktop); /* 1200px */
    margin: 0 auto;
    padding: var(--container-padding-desktop-vertical) var(--container-padding-desktop-horizontal); /* 40px vertikal, 32px horizontal */
  }
  
  /* Profile Page: Gleiche max-width wie #main-content (1000px) für Konsistenz */
  .profile-page-modern {
    max-width: var(--content-grid-max-width-desktop) !important; /* 1000px */
    margin: 0 auto;
    padding: var(--container-padding-desktop-vertical) var(--container-padding-desktop-horizontal); /* 40px vertikal, 32px horizontal */
  }
}

.visibility-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/***** Buttons *****/
.button, .pagination-next-link, .pagination-prev-link, .pagination-first-link, .pagination-last-link, .subscriptions-subscribe button, .requests-table-toolbar .organization-subscribe button, .community-follow button, .article-subscribe button, .section-subscribe button, .split-button button {
  background-color: transparent;
  border: 1px solid rgba(92, 6, 140, 1);
  border-radius: 4px;
  color: rgba(92, 6, 140, 1);
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  line-height: 2.34;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out, color 0.15s ease-in-out;
  user-select: none;
  white-space: nowrap;
  width: 100%;
  -webkit-touch-callout: none;
}
@media (min-width: 768px) {
  .button, .pagination-next-link, .pagination-prev-link, .pagination-first-link, .pagination-last-link, .subscriptions-subscribe button, .requests-table-toolbar .organization-subscribe button, .community-follow button, .article-subscribe button, .section-subscribe button, .split-button button {
    width: auto;
  }
}
.button:visited, .pagination-next-link:visited, .pagination-prev-link:visited, .pagination-first-link:visited, .pagination-last-link:visited, .subscriptions-subscribe button:visited, .requests-table-toolbar .organization-subscribe button:visited, .community-follow button:visited, .article-subscribe button:visited, .section-subscribe button:visited, .split-button button:visited {
  color: rgba(92, 6, 140, 1);
}
.button:hover, .pagination-next-link:hover, .pagination-prev-link:hover, .pagination-first-link:hover, .pagination-last-link:hover, .subscriptions-subscribe button:hover, .requests-table-toolbar .organization-subscribe button:hover, .community-follow button:hover, .article-subscribe button:hover, .section-subscribe button:hover, .split-button button:hover, .button:active, .pagination-next-link:active, .pagination-prev-link:active, .pagination-first-link:active, .pagination-last-link:active, .subscriptions-subscribe button:active, .requests-table-toolbar .organization-subscribe button:active, .community-follow button:active, .article-subscribe button:active, .section-subscribe button:active, .split-button button:active, .button:focus, .pagination-next-link:focus, .pagination-prev-link:focus, .pagination-first-link:focus, .pagination-last-link:focus, .subscriptions-subscribe button:focus, .requests-table-toolbar .organization-subscribe button:focus, .community-follow button:focus, .article-subscribe button:focus, .section-subscribe button:focus, .split-button button:focus, .button.button-primary, .button-primary.pagination-next-link, .button-primary.pagination-prev-link, .button-primary.pagination-first-link, .button-primary.pagination-last-link, .subscriptions-subscribe button.button-primary, .subscriptions-subscribe button[data-selected=true], .requests-table-toolbar .organization-subscribe button.button-primary, .requests-table-toolbar .organization-subscribe button[data-selected=true], .community-follow button.button-primary, .article-subscribe button.button-primary, .article-subscribe button[data-selected=true], .section-subscribe button.button-primary, .section-subscribe button[data-selected=true], .split-button button.button-primary {
  background-color: rgba(92, 6, 140, 1);
  color: #FFFFFF;
  text-decoration: none;
}
.button.button-primary:hover, .button-primary.pagination-next-link:hover, .button-primary.pagination-prev-link:hover, .button-primary.pagination-first-link:hover, .button-primary.pagination-last-link:hover, .subscriptions-subscribe button.button-primary:hover, .subscriptions-subscribe button[data-selected=true]:hover, .requests-table-toolbar .organization-subscribe button.button-primary:hover, .requests-table-toolbar .organization-subscribe button[data-selected=true]:hover, .community-follow button.button-primary:hover, .article-subscribe button.button-primary:hover, .article-subscribe button[data-selected=true]:hover, .section-subscribe button.button-primary:hover, .section-subscribe button[data-selected=true]:hover, .split-button button:hover, .button.button-primary:focus, .button-primary.pagination-next-link:focus, .button-primary.pagination-prev-link:focus, .button-primary.pagination-first-link:focus, .button-primary.pagination-last-link:focus, .subscriptions-subscribe button.button-primary:focus, .subscriptions-subscribe button[data-selected=true]:focus, .requests-table-toolbar .organization-subscribe button.button-primary:focus, .requests-table-toolbar .organization-subscribe button[data-selected=true]:focus, .community-follow button.button-primary:focus, .article-subscribe button.button-primary:focus, .article-subscribe button[data-selected=true]:focus, .section-subscribe button.button-primary:focus, .section-subscribe button[data-selected=true]:focus, .split-button button.button-primary:focus, .button.button-primary:active, .button-primary.pagination-next-link:active, .button-primary.pagination-prev-link:active, .button-primary.pagination-first-link:active, .button-primary.pagination-last-link:active, .subscriptions-subscribe button.button-primary:active, .subscriptions-subscribe button[data-selected=true]:active, .requests-table-toolbar .organization-subscribe button.button-primary:active, .requests-table-toolbar .organization-subscribe button[data-selected=true]:active, .community-follow button.button-primary:active, .article-subscribe button.button-primary:active, .article-subscribe button[data-selected=true]:active, .section-subscribe button.button-primary:active, .section-subscribe button[data-selected=true]:active, .split-button button.button-primary:active {
  background-color: #1c022a;
  border-color: #1c022a;
}
.button[data-disabled], [data-disabled].pagination-next-link, [data-disabled].pagination-prev-link, [data-disabled].pagination-first-link, [data-disabled].pagination-last-link, .subscriptions-subscribe button[data-disabled], .requests-table-toolbar .organization-subscribe button[data-disabled], .community-follow button[data-disabled], .article-subscribe button[data-disabled], .section-subscribe button[data-disabled], .split-button button[data-disabled] {
  cursor: default;
}

.button-large, .hbs-form input[type=submit] {
  cursor: pointer;
  background-color: rgba(92, 6, 140, 1);
  border: 0;
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 2.72;
  min-width: 190px;
  padding: 0 1.9286em;
  width: 100%;
}
@media (min-width: 768px) {
  .button-large, .hbs-form input[type=submit] {
    width: auto;
  }
}
.button-large:visited, .hbs-form input[type=submit]:visited {
  color: #FFFFFF;
}
.button-large:hover, .button-large:active, .button-large:focus, .hbs-form input[type=submit]:hover, .hbs-form input[type=submit]:active, .hbs-form input[type=submit]:focus {
  background-color: #1c022a;
}
.button-large[disabled], .hbs-form input[type=submit][disabled] {
  background-color: #ddd;
}

.button-secondary {
  color: #4c4c4c;
  border: 1px solid #87929D;
  background-color: transparent;
}
.button-secondary:visited {
  color: #4c4c4c;
}
.button-secondary:hover, .button-secondary:focus, .button-secondary:active {
  color: rgba(25, 25, 25, 1);
  border: 1px solid #87929D;
  background-color: #f7f7f7;
}

/***** Split button *****/
.split-button {
  display: flex;
}

.split-button button {
  background-color: rgba(92, 6, 140, 1);
  border: 0;
  color: #FFFFFF;
  height: 32px;
  line-height: 16px;
  outline-color: rgba(92, 6, 140, 1);
}

[dir=rtl] .split-button button:not(:only-child):first-child {
  border-left: 1px solid #FFFFFF;
  border-top-left-radius: unset;
  border-bottom-left-radius: unset;
}
[dir=ltr] .split-button button:not(:only-child):first-child {
  border-right: 1px solid #FFFFFF;
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
}
.split-button button:not(:only-child):last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  padding: 0;
}
[dir=rtl] .split-button button:not(:only-child):last-child {
  border-top-right-radius: unset;
  border-bottom-right-radius: unset;
}
[dir=ltr] .split-button button:not(:only-child):last-child {
  border-top-left-radius: unset;
  border-bottom-left-radius: unset;
}

/***** Tables *****/
.table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}
@media (min-width: 768px) {
  .table {
    table-layout: auto;
  }
}
.table th,
.table th a {
  color: #4c4c4c;
  font-size: 13px;
  text-align: left;
}
[dir=rtl] .table th,
[dir=rtl] .table th a {
  text-align: right;
}
.table tr {
  border-bottom: 1px solid #ddd;
  display: block;
  padding: 20px 0;
}
@media (min-width: 768px) {
  .table tr {
    display: table-row;
  }
}
.table td {
  display: block;
}
@media (min-width: 768px) {
  .table td {
    display: table-cell;
  }
}
@media (min-width: 1024px) {
  .table td, .table th {
    padding: 20px 30px;
  }
}
@media (min-width: 768px) {
  .table td, .table th {
    padding: 10px 20px;
    height: 60px;
  }
}

/***** Forms *****/
.form {
  max-width: 650px;
}

.form-field ~ .form-field {
  margin-top: 25px;
}

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.form-field input {
  border: 1px solid #87929D;
  border-radius: 4px;
  padding: 10px;
  width: 100%;
}
.form-field input:focus {
  border: 1px solid rgba(92, 6, 140, 1);
}

.form-field input[type=text] {
  border: 1px solid #87929D;
  border-radius: 4px;
}
.form-field input[type=text]:focus {
  border: 1px solid rgba(92, 6, 140, 1);
}

.form-field input[type=checkbox] {
  width: auto;
}

.form-field .nesty-input {
  border-radius: 4px;
  border: 1px solid #87929D;
  height: 40px;
  line-height: 40px;
  outline: none;
  vertical-align: middle;
}
.form-field .nesty-input:focus {
  border: 1px solid rgba(92, 6, 140, 1);
  text-decoration: none;
}

.form-field .hc-multiselect-toggle {
  border: 1px solid #87929D;
}

.form-field .hc-multiselect-toggle:focus {
  outline: none;
  border: 1px solid rgba(92, 6, 140, 1);
  text-decoration: none;
}

.form-field textarea {
  vertical-align: middle;
}

.form-field input[type=checkbox] + label {
  margin: 0 0 0 10px;
}

.form-field .optional {
  color: #4c4c4c;
  margin-left: 4px;
}

.form-field p {
  color: #4c4c4c;
  font-size: 12px;
  margin: 5px 0;
}

.form footer {
  margin-top: 40px;
  padding-top: 30px;
}

.form footer a {
  color: #4c4c4c;
  cursor: pointer;
  margin-right: 15px;
}

.form .suggestion-list {
  font-size: 13px;
  margin-top: 30px;
}
.form .suggestion-list label {
  border-bottom: 1px solid #ddd;
  display: block;
  padding-bottom: 5px;
}
.form .suggestion-list li {
  padding: 10px 0;
}
.form .suggestion-list li a:visited {
  color: rgba(126, 34, 206, 1);
}

/* ========================================
   HEADER & NAVIGATION - Modern Design
   1KOMMA5° Brand Design
   ======================================== */

/* Header entfernt - Logo wird woanders eingebaut */
.header-minimal,
.header-modern,
.header {
  display: none; /* Header komplett entfernt */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-base) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Linksbündig für minimalen Header */
  gap: var(--spacing-md);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  padding: var(--spacing-sm); /* Schutzzone: 3x Freiraum (Brand Manual) */
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  transition: opacity 0.2s ease;
  padding: var(--spacing-xs) 0; /* Zusätzliche Schutzzone oben/unten */
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo-short {
  height: 40px; /* Standard */
}

/* Mobile: Kleinere Logo-Größe */
@media (max-width: 767px) {
  .logo-image,
  .logo-short {
    height: 32px;
  }
  
  .header-logo {
  padding: var(--spacing-xs);
  }
}

/* Desktop: Optional größeres Logo */
@media (min-width: 1024px) {
  .logo-image,
  .logo-short {
    height: 48px;
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Header Right Section - NICHT MEHR VERWENDET (Navigation ist jetzt unten) */
.header-right {
  display: none; /* Navigation ist jetzt in Bottom Navigation */
  }
  
/* Profile Link - NICHT MEHR VERWENDET (Profil ist jetzt in Bottom Navigation) */
  .header-profile-link {
  display: none;
}

/* Auth Buttons - NICHT MEHR VERWENDET (Login ist jetzt in Bottom Navigation) */
.header-auth {
    display: none;
  }

/* Tablet/Desktop: Navigation ist jetzt in Bottom Navigation */
@media (min-width: 768px) {
  .header-menu-toggle,
  .header-nav-desktop,
  .header-nav-mobile {
    display: none !important; /* Navigation ist jetzt in Bottom Navigation */
  }
}

/* Desktop: Optimierungen */
@media (min-width: 1024px) {
  .header-container {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .nav-list {
    gap: var(--spacing-lg);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .profile-dropdown,
  .profile-avatar-chevron,
  .header-nav-mobile {
    transition: none;
  }
}

/* ========================================
   PROFIL-SEITE - Modern Design
   1KOMMA5° Brand Design
   ======================================== */

/* .profile-page-modern wird von konsolidierter Container-Regel übernommen (Zeile 780+) */

.profile-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg); /* Mobile: 32px (DesignRules) */
}

/* Sehr kleine Bildschirme: Kompaktere Container-Abstände */
@media (max-width: 430px) {
  .profile-container {
    gap: var(--spacing-md); /* 24px statt 32px */
  }
  
  .profile-quick-access {
    margin: var(--spacing-md) 0; /* 24px statt 32px */
  }
}

@media (min-width: 1024px) {
  .profile-container {
    gap: var(--spacing-xl); /* Desktop: 40px */
  }
}

/* Profil-Header - Mobile-First */
.profile-header-modern {
  background: var(--background-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg); /* Mobile: 32px (DesignRules) */
  border: 1px solid var(--border-color);
}

/* Sehr kleine Bildschirme (iPhone Max Pro 430px) */
@media (max-width: 430px) {
  .profile-header-modern {
    padding: var(--spacing-md); /* 24px für sehr kleine Bildschirme */
  }
}

@media (min-width: 1024px) {
  .profile-header-modern {
    padding: var(--spacing-xl); /* Desktop: 40px */
  }
}

.profile-header-content {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

/* Sehr kleine Bildschirme: Kompakteres Layout */
@media (max-width: 430px) {
  .profile-header-content {
    gap: var(--spacing-md); /* 24px statt 32px */
    align-items: center; /* Zentriert auf sehr kleinen Bildschirmen */
  }
}

.profile-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  flex-shrink: 0;
}

/* Sehr kleine Bildschirme: Kleinerer Avatar */
@media (max-width: 430px) {
  .profile-avatar-large {
    width: 80px;
    height: 80px;
    border-width: 2px;
  }
  
  .profile-agent-badge {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-agent-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--background-color);
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xs) 0;
}

/* Sehr kleine Bildschirme: Kompakterer Name */
@media (max-width: 430px) {
  .profile-name {
    font-size: 1.5rem; /* 24px statt 32px */
    text-align: center; /* Zentriert auf sehr kleinen Bildschirmen */
    width: 100%; /* Volle Breite für Zentrierung */
  }
  
  .profile-header-info {
    width: 100%; /* Volle Breite für Zentrierung */
    text-align: center; /* Zentriert auf sehr kleinen Bildschirmen */
  }
  
  .profile-meta {
    justify-content: center; /* Zentriert Meta-Informationen */
  }
  
  .profile-role-badge {
    margin: var(--spacing-xs) auto 0; /* Zentriert das Badge */
  }
}

.profile-email {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-sm) 0;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: var(--spacing-sm) 0;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.profile-meta-item svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.profile-role-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: var(--spacing-sm);
}


/* Schnellzugriff-Karten */
.profile-quick-access {
  margin: var(--spacing-lg) 0;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 Spalte */
  gap: var(--spacing-md);
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 Spalten */
@media (min-width: 1024px) {
  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 180px;
}

/* Sehr kleine Bildschirme: Kompaktere Quick-Access-Karten */
@media (max-width: 430px) {
  .quick-access-card {
    padding: var(--spacing-md); /* 24px statt 32px */
    min-height: 140px; /* Kompaktere Höhe */
  }
  
  .quick-access-icon {
    margin-bottom: var(--spacing-sm); /* 12px statt 24px */
  }
  
  .quick-access-icon svg {
    width: 24px; /* 24px statt 32px */
    height: 24px;
  }
  
}

.quick-access-card:hover,
.quick-access-card:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.quick-access-card:hover .quick-access-icon,
.quick-access-card:focus .quick-access-icon {
  color: white;
}

.quick-access-card:hover .quick-access-title,
.quick-access-card:focus .quick-access-title {
  color: white;
}

.quick-access-icon {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  transition: color 0.2s ease;
}

.quick-access-title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
  text-align: center;
  transition: color 0.2s ease;
}

.quick-access-badge {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--background-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-weight: 600;
}

.quick-access-card:hover .quick-access-badge,
.quick-access-card:focus .quick-access-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Profile Sections - Mobile-First (keine abgerundete Kachel) */
.profile-section-modern {
  background: var(--background-color);
  border-radius: 0;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* Sehr kleine Bildschirme: Kompaktere Sections */
@media (max-width: 430px) {
  .profile-section-modern {
    padding: var(--spacing-md); /* 24px statt 32px */
    margin-bottom: var(--spacing-md); /* 24px statt 32px */
  }
  
  .profile-section-title {
    font-size: 1.25rem; /* 20px statt 24px */
  }
  
  .profile-section-header {
    margin-bottom: var(--spacing-md); /* 24px statt 32px */
  }
}

@media (min-width: 1024px) {
  .profile-section-modern {
    padding: var(--spacing-xl); /* Desktop: 40px */
    margin-bottom: var(--spacing-xl); /* Desktop: 40px */
  }
}

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

/* Profile Section Accordion — wie Kategorie: Divider statt Kartenrahmen */
.profile-section-accordion {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--harmonized-divider);
  margin-bottom: 0;
  box-shadow: none;
}

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

.profile-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md); /* Mobile: 24px (8pt Grid) */
  padding: var(--spacing-base); /* 16px – List-Kopfzeile wie Accordion */
  background: var(--background-color);
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
  min-height: 56px;
}
@media (min-width: 1024px) {
  .profile-section-toggle {
    padding: var(--spacing-base) var(--spacing-md); /* Desktop: 16px/24px */
  }
}

.profile-section-toggle:hover {
  background: var(--surface-color);
}

.profile-section-toggle[aria-expanded="true"] {
  border-bottom: 1px solid var(--harmonized-divider);
}

.profile-section-toggle:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.profile-section-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.profile-section-toggle:active {
  transform: scale(0.98);
}

.profile-section-toggle .profile-section-title {
  margin: 0;
  flex: 1;
  font-family: var(--font-heading); /* Barlow - DesignRules */
  font-size: 1.5rem; /* 24px Mobile - Heading Medium (DesignRules) */
  font-weight: 700;
  color: var(--text-primary);
}

.profile-section-chevron {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.profile-section-toggle[aria-expanded="true"] .profile-section-chevron {
  transform: rotate(180deg);
}

/* Profile Section Content - Konsolidiert mit Kategorie-Seite Design */
/* Keine max-height Begrenzung und kein overflow - Listen werden vollständig angezeigt */
.profile-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  margin: 0;
  border: none !important; /* Wie Kategorie-Seite: Keine Borders */
  background: transparent !important; /* Wie Kategorie-Seite: Transparenter Hintergrund */
}

.profile-section-toggle[aria-expanded="true"] + .profile-section-content,
.profile-section-content[aria-expanded="true"] {
  /* Wie Kategorie-Seite: Keine max-height Begrenzung - Listen werden vollständig angezeigt */
  max-height: none; /* Keine Begrenzung - vollständige Anzeige wie Kategorie-Seite */
  padding: var(--spacing-sm) 0 var(--spacing-md) 0; /* Oben und unten Padding, damit unterer Rand nicht abgeschnitten wirkt */
  overflow: visible; /* Kein Scroll - vollständige Anzeige wie Kategorie-Seite */
  border: none !important; /* Wie Kategorie-Seite: Keine Borders */
  background: transparent !important; /* Wie Kategorie-Seite: Transparenter Hintergrund */
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  /* Keine Trennlinien */
  border: none;
  padding-bottom: 0;
}

.profile-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.profile-section-filters {
  display: flex;
  gap: var(--spacing-xs);
}

.filter-btn {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Tickets Liste */
.profile-tickets-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.ticket-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ticket-card:hover,
.ticket-card:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.ticket-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
}

.ticket-card__content {
  flex: 1;
  min-width: 0;
}

.ticket-card__number {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
}

.ticket-card__subject {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-card__status {
  display: inline-block;
  padding: 0.125rem var(--spacing-xs);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
}

.ticket-card__status--open {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.ticket-card__status--new {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.ticket-card__status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.ticket-card__status--solved {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.ticket-card__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ========================================
   PROFIL-SEITE – FIGMA HELP CENTRE DESIGN
   ======================================== */

.profile-container--figma {
  gap: var(--spacing-xl);
}

/* Begrüßung (Figma: Hello John Doe 👋) */
.profile-header-figma {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 var(--spacing-sm) 0;
}

.profile-greeting {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .profile-greeting {
    font-size: 2rem;
  }
}

.profile-greeting-wave {
  font-style: normal;
}

/* Sektionen (My tickets, Bookmarks) – Figma-Style */
.profile-section-figma {
  margin-bottom: var(--spacing-lg);
}

.profile-section-figma__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.profile-section-figma__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.profile-section-figma__view-all {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.profile-section-figma__view-all:hover,
.profile-section-figma__view-all:focus {
  background: var(--border-color);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Ticket-Liste Profil: nur horizontale Trenner */
.profile-container--figma .profile-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  overflow: visible;
  background: transparent;
}

.profile-container--figma .profile-ticket-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 14px var(--harmonized-list-pad-x);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--harmonized-divider);
  transition: background 0.2s;
  min-height: 48px;
  box-sizing: border-box;
}

.profile-container--figma .profile-ticket-row:last-child {
  border-bottom: 1px solid var(--harmonized-divider);
}

.profile-container--figma .profile-ticket-row:hover,
.profile-container--figma .profile-ticket-row:focus {
  background: var(--surface-color);
}

.profile-ticket-row__subject {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-ticket-row__pill {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.profile-ticket-row__pill--open {
  background: rgba(92, 6, 140, 0.12);
  color: var(--primary-color);
}

.profile-ticket-row__pill--closed {
  background: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.profile-ticket-row__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Update-/Ungelesen-Punkt (Profil-Tickets, Tickets-Seite, Artikellisten) */
.hc-update-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-right: var(--spacing-sm);
  margin-left: var(--spacing-xs);
}

.profile-container--figma .article-list-update-dot {
  margin-right: var(--harmonized-list-gap, var(--spacing-sm));
  margin-left: 0;
}

/* Lesezeichen: nutzt globale Harmonized-List-Styles; nur Markenfarbe Icon */
.profile-container--figma .profile-bookmarks-list .article-list-icon {
  color: var(--primary-color);
}

/* Abmelden – zentriert, lila (Figma: Logout) */
.profile-logout-wrap {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.profile-logout-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, text-decoration 0.2s;
}

.profile-logout-link:hover,
.profile-logout-link:focus {
  color: var(--primary-hover, #6b0d8a);
  text-decoration: underline;
}

/* Loading/Empty/Error — ohne abgerundete Kachel */
.profile-container--figma .profile-tickets-list .loading-state,
.profile-container--figma .profile-tickets-list .empty-state,
.profile-container--figma .profile-tickets-list .error-state,
.profile-container--figma .profile-bookmarks-list .loading-state,
.profile-container--figma .profile-bookmarks-list .empty-state,
.profile-container--figma .profile-bookmarks-list .error-state {
  padding: var(--spacing-lg);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  border: none;
  border-top: 1px solid var(--harmonized-divider);
  border-radius: 0;
  background: var(--background-color);
}

/* Subscriptions & Recent Articles - Konsolidiert mit Kategorie-Seite Design */
/* Profil-Seiten Listen verwenden jetzt exakt das gleiche Design wie Kategorie-Seite */
.profile-subscriptions-list,
.profile-recent-list {
  /* Container für Listen - nutzt jetzt die globalen .article-list-modern Styles */
  display: block;
  width: 100%;
  /* Keine Begrenzungen - vollständige Anzeige wie Kategorie-Seite */
  overflow: visible;
  max-height: none;
}

/* Loading/Empty States für Profil-Seiten Listen */
.profile-subscriptions-list .loading-state,
.profile-recent-list .loading-state,
.profile-subscriptions-list .empty-state,
.profile-recent-list .empty-state,
.profile-subscriptions-list .error-state,
.profile-recent-list .error-state {
  font-family: var(--font-body);
  font-size: var(--font-size-body); /* 16px - Browser-Default Body Text */
  color: var(--text-secondary);
  text-align: center;
  padding: var(--spacing-lg); /* 32px */
}

.article-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 72px;
  width: 100%;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}

.article-card:hover,
.article-card:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.article-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
}

.article-card__icon svg {
  width: 20px;
  height: 20px;
}

.article-card__content {
  flex: 1;
  min-width: 0;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card__meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.article-card__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Einstellungen */
.profile-settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  gap: var(--spacing-md);
  overflow: hidden; /* Verhindert abgehackte Borders */
  box-sizing: border-box; /* Stellt sicher, dass Border innerhalb des Containers bleibt */
}

/* Sehr kleine Bildschirme: Settings Items gestapelt */
@media (max-width: 430px) {
  .settings-item {
    flex-direction: column; /* Gestapelt auf sehr kleinen Bildschirmen */
    align-items: stretch; /* Volle Breite für alle Elemente */
    padding: var(--spacing-md); /* 24px */
    gap: var(--spacing-sm); /* 12px */
  }
  
  .settings-item-content {
    width: 100%; /* Volle Breite */
    flex-direction: row; /* Icon und Text nebeneinander */
    align-items: flex-start; /* Oben ausgerichtet */
  }
  
  .settings-item-icon {
    width: 36px; /* Etwas kleiner */
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .settings-item-text {
    flex: 1;
  }
  
  /* Button unter dem Content auf sehr kleinen Bildschirmen */
  .settings-item > .btn {
    width: 100%; /* Volle Breite */
    margin-top: var(--spacing-xs); /* Kleiner Abstand oben */
    justify-content: center; /* Zentriert den Button-Text */
  }
}

.settings-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-base);
}

.settings-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--border-radius);
  background: var(--surface-color);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.settings-item--logout .settings-item-icon {
  color: var(--error-color);
  background: rgba(239, 68, 68, 0.1);
}

.settings-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
}

.settings-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.settings-item-description {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px - Label (DesignRules) */
  color: var(--text-secondary);
  margin: 0;
}

.settings-item-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs); /* 8pt Grid: 0.25rem = 4px */
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px - etwas kleiner als Description */
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--spacing-xs); /* 8pt Grid: 0.25rem = 4px */
}

.settings-item-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.settings-item--logout {
  border-color: var(--error-color);
  border-width: 1px; /* Stellt sicher, dass alle Seiten gleich sind */
  border-style: solid; /* Explizit solid für alle Seiten */
  border-left: 1px solid var(--error-color); /* Explizit linke Seite */
  border-right: 1px solid var(--error-color); /* Explizit rechte Seite */
  border-top: 1px solid var(--error-color); /* Explizit obere Seite */
  border-bottom: 1px solid var(--error-color); /* Explizit untere Seite */
}

.settings-item--expandable {
  flex-direction: column;
  align-items: stretch;
}

/* Settings Item Toggle Button */
.settings-item-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: var(--spacing-sm);
  align-self: flex-start;
}

.settings-item-toggle:hover,
.settings-item-toggle:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.settings-item-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Settings Panel */
.settings-item-panel {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  animation: slideDown 0.3s ease;
}

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

.settings-panel-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Toggle Switch */
.settings-toggle-group {
  margin-bottom: var(--spacing-md);
}

.settings-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.settings-toggle-label:hover {
  border-color: var(--primary-color);
  background: var(--background-color);
}

.settings-toggle-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.settings-toggle-text strong {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-toggle-description {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.settings-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.settings-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle-input:checked + .settings-toggle-slider {
  background: var(--primary-color);
}

.settings-toggle-input:checked + .settings-toggle-slider::before {
  transform: translateX(24px);
}

.settings-toggle-input:focus + .settings-toggle-slider {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Select Dropdown */
.settings-select-group {
  margin-bottom: var(--spacing-md);
}

.settings-select-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.settings-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c068c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-sm) center;
  background-size: 20px;
  padding-right: calc(var(--spacing-md) + 20px + var(--spacing-sm));
}

.settings-select:hover,
.settings-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-select-hint {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
  margin-bottom: 0;
}

/* Settings Panel Actions */
.settings-panel-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.settings-save-status {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.settings-save-status--success {
  color: var(--success-color, #10b981);
}

.settings-save-status--error {
  color: var(--error-color);
}

/* Loading States */
.loading-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary-color); /* Aubergine - DesignRules */
  color: white;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark); /* Darker Purple - DesignRules */
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary:active {
  background: var(--primary-dark);
  color: white;
  transform: translateY(0);
}

.btn-primary:visited {
  background: var(--primary-color); /* Aubergine - DesignRules */
  color: white;
}

/* Spezifische Styles für Settings-Item Buttons - Initial State korrekt setzen */
.settings-item .btn-primary,
.settings-item .btn-primary:link {
  background: var(--primary-color) !important; /* Aubergine - DesignRules */
  color: white !important;
  border: none !important;
}

.settings-item .btn-primary:visited {
  background: var(--primary-color) !important; /* Aubergine - DesignRules */
  color: white !important;
}

.settings-item .btn-primary:hover,
.settings-item .btn-primary:focus {
  background: var(--primary-dark) !important; /* Darker Purple - DesignRules */
  color: white !important;
}

.settings-item .btn-primary:active {
  background: var(--primary-dark) !important;
  color: white !important;
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--background-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-error {
  background: var(--error-color);
  color: white;
}

.btn-error:hover,
.btn-error:focus {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Responsive */
@media (min-width: 768px) {
  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/***** Header (Legacy - für Kompatibilität) *****/
.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-base);
  position: relative;
  align-items: center;
  display: flex;
  height: 71px;
  justify-content: space-between;
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}
@media (min-width: 1024px) {
  .header {
    padding: 0 var(--spacing-lg);
  }
}

.logo img {
  max-height: 40px;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}

.logo img:hover {
  opacity: 0.8;
}

.logo span {
  margin: 0 var(--spacing-sm);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo a:hover, .logo a:focus, .logo a:active {
  text-decoration: none;
  opacity: 0.9;
}

.user-nav {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .user-nav {
    position: relative;
  }
}
.user-nav[aria-expanded=true] {
  background-color: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15), 0 4px 10px 0 rgba(0, 0, 0, 0.1);
  border: solid 1px #ddd;
  right: 0;
  left: 0;
  top: 71px;
  z-index: 1;
}
.user-nav[aria-expanded=true] > a {
  display: block;
  margin: 20px;
}
.user-nav[aria-expanded=true] > .user-nav-list li {
  display: block;
}
.user-nav[aria-expanded=true] > .user-nav-list a {
  display: block;
  margin: 20px;
}

.user-nav-list {
  display: block;
  list-style: none;
}
.user-nav-list > li {
  display: inline-block;
}

@media (max-width: 768px) {
  .nav-wrapper-desktop {
    display: none;
  }
}
@media (min-width: 768px) {
  .nav-wrapper-desktop {
    display: none;
  }
}
@media (min-width: 1024px) {
  .nav-wrapper-desktop {
    display: inline-block;
  }
}
.nav-wrapper-desktop a {
  border: 0;
  color: rgba(25, 25, 25, 1);
  display: none;
  font-size: 14px;
  padding: 0 20px 0 0;
  width: auto;
}
@media (min-width: 768px) {
  .nav-wrapper-desktop a {
    display: inline-block;
  }
}
[dir=rtl] .nav-wrapper-desktop a {
  padding: 0 0 0 20px;
}
.nav-wrapper-desktop a:hover, .nav-wrapper-desktop a:focus, .nav-wrapper-desktop a:active {
  background-color: transparent;
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .nav-wrapper-mobile {
    display: none;
  }
}
.nav-wrapper-mobile .menu-button-mobile {
  background: none;
  border: 0;
  width: auto;
  min-width: 71px;
  cursor: pointer;
}
.nav-wrapper-mobile .menu-button-mobile .icon-menu {
  padding: 7px;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.nav-wrapper-mobile .menu-button-mobile[aria-expanded=true] .icon-menu {
  background: #f3f3f3;
}
.nav-wrapper-mobile .menu-list-mobile {
  position: absolute;
  background-color: #fff;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.15);
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #ddd;
  right: 0;
  left: 0;
  top: 71px;
  z-index: 2;
}
.nav-wrapper-mobile .menu-list-mobile[aria-expanded=false] {
  display: none;
}
.nav-wrapper-mobile .menu-list-mobile[aria-expanded=true] {
  display: block;
}
.nav-wrapper-mobile .menu-list-mobile-items .item {
  margin: 4px 0;
}
.nav-wrapper-mobile .menu-list-mobile-items li:empty:not(.nav-divider) {
  display: none;
}
.nav-wrapper-mobile .menu-list-mobile-items .nav-divider {
  border-bottom: 0.1px solid #ddd;
  padding: 0;
}
.nav-wrapper-mobile .menu-list-mobile-items .nav-divider:last-child {
  display: none;
}
.nav-wrapper-mobile .menu-list-mobile-items button {
  background: none;
  border: none;
  padding: 8px 24px;
  width: 100%;
  height: 100%;
  color: rgba(25, 25, 25, 1);
  cursor: pointer;
  text-align: start;
}
.nav-wrapper-mobile .menu-list-mobile-items button:active, .nav-wrapper-mobile .menu-list-mobile-items button:focus, .nav-wrapper-mobile .menu-list-mobile-items button:hover {
  background-color: #f3f3f3;
  text-decoration: underline;
}
.nav-wrapper-mobile .menu-list-mobile-items a {
  display: block;
  padding: 8px 24px;
  width: 100%;
  height: 100%;
  color: rgba(25, 25, 25, 1);
}
.nav-wrapper-mobile .menu-list-mobile-items a:active, .nav-wrapper-mobile .menu-list-mobile-items a:focus, .nav-wrapper-mobile .menu-list-mobile-items a:hover {
  background-color: #f3f3f3;
}
.nav-wrapper-mobile .menu-list-mobile-items .my-profile {
  display: flex;
  line-height: 1.5;
}
.nav-wrapper-mobile .menu-list-mobile-items .my-profile .my-profile-tooltip {
  font-size: 12px;
  color: #68737D;
}
.nav-wrapper-mobile .menu-list-mobile-items .menu-profile-avatar {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  margin-top: 1px;
}
[dir=rtl] .nav-wrapper-mobile .menu-list-mobile-items .menu-profile-avatar {
  margin-right: 0;
  margin-left: 8px;
}

.skip-navigation {
  align-items: center;
  background-color: var(--primary-color) !important;
  color: white;
  display: flex;
  font-size: 14px;
  justify-content: center;
  left: -999px;
  margin: 20px;
  padding: 20px;
  overflow: hidden;
  position: absolute;
  top: auto;
  z-index: -999;
}
[dir=rtl] .skip-navigation {
  left: initial;
  right: -999px;
}
.skip-navigation:focus, .skip-navigation:active {
  left: auto;
  overflow: auto;
  text-align: center;
  text-decoration: none;
  top: auto;
  z-index: 999;
}
[dir=rtl] .skip-navigation:focus, [dir=rtl] .skip-navigation:active {
  left: initial;
  right: auto;
}

#zd-modal-container ~ .skip-navigation {
  display: none;
}

/***** User info in header *****/
.user-info {
  display: inline-block;
}
.user-info .dropdown-toggle::after {
  display: none;
}
@media (min-width: 768px) {
  .user-info .dropdown-toggle::after {
    display: inline-block;
  }
}
.user-info > button {
  border: 0;
  color: rgba(25, 25, 25, 1);
  min-width: 0;
  padding: 0;
  white-space: nowrap;
}
.user-info > button:hover, .user-info > button:focus {
  color: rgba(25, 25, 25, 1);
  background-color: transparent;
}
.user-info > button::after {
  color: rgba(25, 25, 25, 1);
  padding-right: 15px;
}
[dir=rtl] .user-info > button::after {
  padding-left: 15px;
  padding-right: 0;
}

#user #user-name {
  display: none;
  font-size: 14px;
}
@media (min-width: 768px) {
  #user #user-name {
    display: inline-block;
  }
}
#user #user-name:hover {
  text-decoration: underline;
}

/***** User avatar *****/
.user-avatar {
  height: 25px;
  width: 25px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}

.avatar {
  display: inline-block;
  position: relative;
}
.avatar img {
  height: 40px;
  width: 40px;
}
.avatar .icon-agent {
  color: rgba(92, 6, 140, 1);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -4px;
  background-color: #FFFFFF;
  font-size: 17px;
  height: 17px;
  line-height: 17px;
  position: absolute;
  right: -2px;
  text-align: center;
  width: 17px;
}

/***** Footer *****/
.footer {
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  background: var(--surface-color);
  padding-bottom: calc(var(--spacing-lg) + 48px); /* Platz für Bottom Navigation */
}

/* Modern Footer mit Logo */
/* Modern Footer - Mobile First, Clean Design */
.footer-modern {
  background: var(--background-color);
  /* Kein Trennstrich */
  padding: var(--spacing-md) var(--spacing-base);
  margin-top: var(--spacing-xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
  opacity: 0.8;
}

.footer-logo {
  height: 28px; /* Mobile: Kleinere Größe */
  width: auto;
  object-fit: contain;
}
.footer-logo--dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .footer-logo--light { display: none !important; }
  .footer-logo--dark { display: block !important; }
}

.footer a {
  color: var(--text-secondary);
  font-family: var(--font-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Tablet & Desktop: Größeres Logo, horizontales Layout */
@media (min-width: 768px) {
  .footer-modern {
    padding: var(--spacing-lg) var(--spacing-base);
  }
  
.footer-inner {
    flex-direction: row;
  justify-content: space-between;
  align-items: center;
  }
  
  .footer-logo {
    height: 36px; /* Desktop: Größere Größe */
  }
}
@media (min-width: 1024px) {
  .footer-inner {
    padding: 0 var(--spacing-lg);
  }
}
.footer-language-selector button {
  color: var(--text-secondary);
  display: inline-block;
  font-family: var(--font-body);
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-color);
  transition: all 0.2s ease;
  min-height: 44px;
}
.footer-language-selector button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Powered by Zendesk komplett ausblenden */
.powered-by-zendesk,
.powered-by-zendesk *,
[class*="powered-by"],
[class*="powered_by"],
[data-powered-by],
footer [href*="zendesk.com"]:not([href*="app.1komma5grad.com"]),
footer a[href*="zendesk"]:not([href*="app.1komma5grad.com"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
}

/***** Breadcrumbs *****/
/* Legacy Styles - werden von den modernen Styles überschrieben */
.breadcrumbs {
  margin: 0;
  padding: 0;
  display: flex;
}
.breadcrumbs li {
  color: var(--text-secondary);
  font-size: 0.875rem; /* 14px - Label (DesignRules) */
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumbs li + li::before {
  content: ">";
  margin: 0 var(--spacing-xs); /* 8pt Grid: 0.25rem = 4px */
  color: var(--text-muted);
}
.breadcrumbs li a:visited {
  color: var(--primary-color);
}

/***** Search field *****/
.search-container {
  position: relative;
}

/* Alte .search Styles - NUR für alte Suchfelder, NICHT für moderne */
.search:not(.search-input-container-modern):not(.search-input-container-modern *) {
  border-color: #87929D;
  border-radius: 30px;
  border-style: solid;
  border-width: 1px;
  display: flex;
  position: relative;
  transition: border 0.12s ease-in-out;
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search:not(.search-input-container-modern):not(.search-input-container-modern *):focus-within {
  border-color: rgba(92, 6, 140, 1);
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search],
.search:not(.search-input-container-modern):not(.search-input-container-modern *) .clear-button {
  background-color: #fff;
  border-radius: 30px;
  border: none;
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search-full:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search], 
.search-full:not(.search-input-container-modern):not(.search-input-container-modern *) .clear-button {
  border-color: #fff;
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  color: #666;
  flex: 1 1 auto;
  height: 40px;
  width: 100%;
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]:focus {
  color: #555;
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]::-webkit-search-decoration, 
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]::-webkit-search-cancel-button, 
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]::-webkit-search-results-button, 
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
/* Alte .search Styles - NUR für alte Suchfelder */
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]:-webkit-autofill, 
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]:-webkit-autofill:hover, 
.search:not(.search-input-container-modern):not(.search-input-container-modern *) input[type=search]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}
.search .clear-button {
  align-items: center;
  box-sizing: border-box;
  color: #777;
  cursor: pointer;
  display: none;
  flex: none;
  justify-content: center;
  padding: 0 15px;
}
.search .clear-button:hover {
  background-color: rgba(92, 6, 140, 1);
  color: #fff;
}
.search .clear-button:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 1);
}
.search-has-value .clear-button {
  display: flex;
}

[dir=ltr] .search input[type=search] {
  padding-left: 40px;
  padding-right: 20px;
}
[dir=ltr] .search-has-value input[type=search] {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-right-color: transparent;
}
[dir=ltr] .search-has-value input[type=search]:focus {
  border-right-color: rgba(92, 6, 140, 1);
}
[dir=ltr] .search .clear-button {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-left-color: transparent;
}
[dir=ltr] .search .clear-button:focus {
  border-left-color: rgba(92, 6, 140, 1);
}

[dir=rtl] .search input[type=search] {
  padding-left: 20px;
  padding-right: 40px;
}
[dir=rtl] .search-has-value input[type=search] {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-left-color: transparent;
}
[dir=rtl] .search-has-value input[type=search]:focus {
  border-left-color: rgba(92, 6, 140, 1);
}
[dir=rtl] .search .clear-button {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-right-color: transparent;
}
[dir=rtl] .search .clear-button:focus {
  border-right-color: rgba(92, 6, 140, 1);
}

.search-icon {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  left: 15px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #777;
  pointer-events: none;
}
[dir=rtl] .search-icon {
  left: auto;
  right: 15px;
}

/***** Hero component *****/
.hero {
  background-image: url(/hc/theming_assets/01JE6EY5D17DHMFDMSXQMBA8AN);
  background-position: center;
  background-size: cover;
  height: 300px;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}
.hero-inner {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  max-width: 610px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 10px 0;
}
@media (min-width: 768px) {
  .page-header {
    align-items: baseline;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
  }
}
.page-header .section-subscribe {
  flex-shrink: 0;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .page-header .section-subscribe {
    margin-bottom: 0;
  }
}
.page-header h1 {
  flex-grow: 1;
  margin-bottom: 10px;
  color: var(--text-primary) !important;
  font-family: var(--font-heading) !important;
}
.page-header-description {
  font-style: italic;
  margin: 0 0 var(--spacing-lg) 0;
  word-break: break-word;
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
}
@media (min-width: 1024px) {
  .page-header-description {
    flex-basis: 100%;
  }
}
.page-header .icon-lock {
  height: 20px;
  width: 20px;
  position: relative;
  left: -5px;
  vertical-align: baseline;
}

/* Legacy .sub-nav - Wird von modernen Breadcrumbs-Styles überschrieben */
.sub-nav {
  align-items: baseline;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 15px 30px;
  justify-content: flex-start;
  margin-bottom: 55px;
}
@media (min-width: 768px) {
  .sub-nav {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* .sub-nav: Back-Button statt Breadcrumbs (Kategorie- und Sektionsseite) */
.container:has(.category-container) .sub-nav,
.container:has(.section-container) .sub-nav {
  width: 100% !important;
  justify-content: flex-start; /* Back-Button links */
  align-items: center;
}

.sub-nav .breadcrumbs,
.sub-nav .page-back-nav {
  margin: 0;
  flex: 1;
  width: 100%;
}

/* Alte Suche auf Kategorieseiten ausblenden */
.sub-nav .search-container {
  display: none !important;
}
.sub-nav input[type=search]::after {
  font-size: 15px;
}

/***** Blocks *****/
/* Used in Homepage#categories and Community#topics */
.blocks-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
}
@media (min-width: 768px) {
  .blocks-list {
    margin: 0 -15px;
  }
}
.blocks-item {
  border: 1px solid rgba(92, 6, 140, 1);
  border-radius: 4px;
  box-sizing: border-box;
  color: rgba(92, 6, 140, 1);
  display: flex;
  flex: 1 0 340px;
  margin: 0 0 30px;
  max-width: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  .blocks-item {
    margin: 0 15px 30px;
  }
}
.blocks-item:hover, .blocks-item:focus, .blocks-item:active {
  background-color: rgba(92, 6, 140, 1);
}
.blocks-item:hover *, .blocks-item:focus *, .blocks-item:active * {
  color: #FFFFFF;
  text-decoration: none;
}
.blocks-item-internal {
  background-color: transparent;
  border: 1px solid #ddd;
}
.blocks-item-internal .icon-lock {
  height: 15px;
  width: 15px;
  bottom: 5px;
  position: relative;
}
.blocks-item-internal a {
  color: rgba(25, 25, 25, 1);
}
.blocks-item-link {
  color: rgba(92, 6, 140, 1);
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  border-radius: inherit;
}
.blocks-item-link:visited, .blocks-item-link:hover, .blocks-item-link:active {
  color: inherit;
  text-decoration: none;
}
.blocks-item-link:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 1);
  text-decoration: none;
}
.blocks-item-title {
  margin-bottom: 0;
  font-size: 16px;
}
.blocks-item-description {
  margin: 0;
}
.blocks-item-description:not(:empty) {
  margin-top: 10px;
}




/***** Promoted articles *****/
.promoted-articles {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .promoted-articles {
    flex-direction: row;
  }
}
.promoted-articles-item {
  flex: 1 0 auto;
}
@media (min-width: 1024px) {
  .promoted-articles-item {
    align-self: flex-end;
    flex: 0 0 auto;
    padding-right: 30px;
    width: 33%; /* Three columns on desktop */
  }
  [dir=rtl] .promoted-articles-item {
    padding: 0 0 0 30px;
  }
}
.promoted-articles-item:nth-child(3n) {
  padding-right: 0;
}
.promoted-articles-item a {
  display: block;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}
.promoted-articles-item .icon-lock {
  vertical-align: baseline;
}
.promoted-articles-item:last-child a {
  border: 0;
}
@media (min-width: 1024px) {
  .promoted-articles-item:last-child a {
    border-bottom: 1px solid #ddd;
  }
}

/***** Community section in homepage *****/
.community {
  text-align: center;
}
.community-image {
  min-height: 300px;
  margin-top: 32px;
  background-image: url(/hc/theming_assets/01JE6EKB93DS8H6WVZMXTHRB5X);
  background-position: center;
  background-repeat: no-repeat;
  max-width: 100%;
}
.community a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.community a:visited {
  color: rgba(126, 34, 206, 1);
}
.community a:hover, .community a:active, .community a:focus {
  color: rgba(126, 34, 206, 1);
}

.community,
.activity {
  border-top: 1px solid #ddd;
  padding: 30px 0;
}

/***** Recent activity *****/
.recent-activity-header {
  margin-bottom: 10px;
  text-align: center;
}
.recent-activity-list {
  padding: 0;
}
.recent-activity-item {
  border-bottom: 1px solid #ddd;
  overflow: auto;
  padding: 20px 0;
}
.recent-activity-item h3 {
  margin: 0;
}
.recent-activity-item-parent {
  font-size: 16px;
  font-weight: 600;
}
.recent-activity-item-parent, .recent-activity-item-link {
  margin: 6px 0;
  display: inline-block;
  width: 100%;
}
@media (min-width: 768px) {
  .recent-activity-item-parent, .recent-activity-item-link {
    width: 70%;
    margin: 0;
  }
}
.recent-activity-item-link {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-activity-item-meta {
  color: rgba(25, 25, 25, 1);
  margin: 15px 0 0 0;
  float: none;
}
@media (min-width: 768px) {
  .recent-activity-item-meta {
    margin: 0;
    float: right;
  }
  [dir=rtl] .recent-activity-item-meta {
    float: left;
  }
}
.recent-activity-item-time, .recent-activity-item-comment {
  display: inline-block;
  font-size: 13px;
}
.recent-activity-item-comment {
  padding-left: 5px;
}
[dir=rtl] .recent-activity-item-comment {
  padding: 0 5px 0 0;
}
.recent-activity-item-comment::before {
  display: inline-block;
}
.recent-activity-controls {
  padding-top: 15px;
}
.recent-activity-controls a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.recent-activity-controls a:visited {
  color: rgba(126, 34, 206, 1);
}
.recent-activity-controls a:hover, .recent-activity-controls a:active, .recent-activity-controls a:focus {
  color: rgba(126, 34, 206, 1);
}
.recent-activity-accessibility-label {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
.recent-activity-comment-icon svg {
  vertical-align: middle;
  color: rgba(92, 6, 140, 1);
  width: 16px;
  height: 16px;
}
.recent-activity-comment-icon:after {
  content: attr(data-comment-count);
  margin-left: 3px;
}
[dir=rtl] .recent-activity-comment-icon:after {
  margin-left: 0;
  margin-right: 3px;
}

/***** Category pages *****/
/* Legacy .category-container - Wird von modernen Category Page Styles überschrieben (Zeile 9843) */
/* Diese Definition wird entfernt, da sie mit der modernen Mobile-First Definition kollidiert */

.section-tree {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: var(--spacing-lg);
}
@media (min-width: 768px) {
  .section-tree {
    flex-direction: row;
  }
}
.section-tree .section {
  flex: initial;
  max-width: 100%;
  border: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .section-tree .section {
    flex: 0 0 45%; /* Two columns for tablet and desktop. Leaving 5% separation between columns */
  }
}
/* Entferne alle Borders zwischen Sections */
.section-tree .section + .section {
  border-top: none;
  margin-top: 0;
}
.section-tree-title {
  margin-bottom: 0;
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height);
  font-weight: var(--headline-xsmall-font-weight);
  color: var(--text-primary) !important;
  font-family: var(--font-heading) !important;
}
.section-tree-title a {
  color: var(--text-primary) !important;
}

.article-list-item {
  font-size: 16px;
  padding: 15px 0;
  text-overflow: ellipsis;
  overflow: hidden;
}
.article-list-item a {
  color: var(--text-primary) !important;
}

.icon-star {
  color: rgba(92, 6, 140, 1);
  font-size: 18px;
}

/***** Section pages *****/
.section-container {
  display: flex;
  justify-content: flex-end;
}
.section-content {
  flex: 1;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .section-content {
    flex: 0 0 80%;
  }
}
.section-list {
  margin: 40px 0;
}

.section-list-item {
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  padding: 15px 0;
}
.section-list-item:first-child {
  border-top: 1px solid #ddd;
}
.section-list-item a {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.see-all-sections-trigger {
  cursor: pointer;
  display: block;
  padding: 15px;
  text-align: center;
}
.see-all-sections-trigger[aria-hidden=true] {
  display: none;
}


/***** Blocks *****/
/* Used in Section */
.section-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
}
@media (min-width: 768px) {
  .section-list {
    margin: 0 -15px;
  }
}
.section-list-item {
  border: 1px solid rgba(92, 6, 140, 1);
  border-radius: 4px;
  box-sizing: border-box;
  color: rgba(92, 6, 140, 1);
  display: flex;
  flex: 1 0 340px;
  margin: 0 0 30px;
  max-width: 100%;
  text-align: center;
}
@media (min-width: 768px) {
  .section-list-item {
    margin: 0 15px 30px;
  }
}
.section-list-item:hover, .section-list-item:focus, .section-list-item:active {
  background-color: rgba(92, 6, 140, 1);
}
.section-list-item:hover *, .section-list-item:focus *, .section-list-item:active * {
  color: #FFFFFF;
  text-decoration: none;
}
.section-list-item-internal {
  background-color: transparent;
  border: 1px solid #ddd;
}
.section-list-item-internal .icon-lock {
  height: 15px;
  width: 15px;
  bottom: 5px;
  position: relative;
}
.section-list-item-internal a {
  color: rgba(25, 25, 25, 1);
}
.section-list-item-link {
  color: rgba(92, 6, 140, 1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  border-radius: inherit;
}
.section-list-item-link:visited, .section-list-item-link:hover, .section-list-item-link:active {
  color: inherit;
  text-decoration: none;
}
.section-list-item-link:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 1);
  text-decoration: none;
}
.section-list-item-title {
  margin-bottom: 0;
  font-size: 16px;
}
.section-list-item-description {
  margin: 0;
}
.section-list-item-description:not(:empty) {
  margin-top: 10px;
}

/***** Homepage *****/
.section {
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .section {
    margin-bottom: 60px;
  }
}

.home-section h2 {
  margin-bottom: 10px;
  text-align: center;
}

/***** Article *****/
.article {
  /*
  * The article grid is defined this way to optimize readability:
  * Sidebar | Content | 
  * 30%     | 70%     | 
  */
  flex: 1 0 auto;
}
@media (min-width: 1024px) {
  .article {
    flex: 1 0 66%;
    max-width: 66%;
    min-width: 640px;
    padding: 0 30px;
  }
}
.article-container {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .article-container {
    flex-direction: row;
  }
}
.article-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .article-header {
    flex-direction: row;
    margin-top: 0;
  }
}
.article-avatar {
  margin-right: 10px;
}
.article-author {
  margin-bottom: 10px;
}
.article-title {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (min-width: 768px) {
  .article-title {
    flex-basis: 100%; /* Take entire row */
  }
}
.article-title .icon-lock {
  position: relative;
  left: -5px;
  vertical-align: baseline;
}
.article [role=button] {
  flex-shrink: 0; /*Avoid collapsing elements in Safari (https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored)*/
  width: 100%;
}
@media (min-width: 768px) {
  .article [role=button] {
    width: auto;
  }
}
.article-info {
  max-width: 100%;
}
.article-meta {
  display: inline-block;
  vertical-align: middle;
}
.article-body {
  display: flow-root;
}
.article-body a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.article-body a:visited {
  color: rgba(126, 34, 206, 1);
}
.article-body a:hover, .article-body a:active, .article-body a:focus {
  color: rgba(126, 34, 206, 1);
}
.article-body img {
  height: auto;
  max-width: 100%;
}
.article-body p > img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}
.article-body p > img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}
.article-body p > img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}
.article-body p > img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
.article-body figure.image {
  display: table;
  margin: 0 auto;
}
.article-body figure.image > img {
  display: block;
  width: 100%;
}
.article-body figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}
.article-body figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}
.article-body figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}
.article-body figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
.article-body figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}
.article-body ul,
.article-body ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}
[dir=rtl] .article-body ul,
[dir=rtl] .article-body ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}
.article-body ul > ul,
.article-body ol > ol,
.article-body ol > ul,
.article-body ul > ol,
.article-body li > ul,
.article-body li > ol {
  margin: 0;
}
.article-body ul {
  list-style-type: disc;
}
.article-body :not(pre) > code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}
.article-body pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
}
.article-body blockquote {
  border-left: 1px solid #ddd;
  color: #4c4c4c;
  font-style: italic;
  padding: 0 15px;
}
.article-body > p:last-child {
  margin-bottom: 0;
}
.article-content {
  line-height: 1.6;
  margin: 40px 0;
  word-wrap: break-word;
}
.article-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}
.article-comment-count {
  color: #4c4c4c;
}
.article-comment-count:hover {
  text-decoration: none;
}
.article-comment-count-icon {
  vertical-align: middle;
  color: rgba(92, 6, 140, 1);
  width: 18px;
  height: 18px;
}
.article-sidebar {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  flex: 1 0 auto;
  margin-bottom: 20px;
  padding: 0;
}
@media (min-width: 1024px) {
  .article-sidebar {
    border: 0;
    flex: 0 0 30%;
    height: auto;
    max-width: 30%;
  }
}
.article-relatives {
  border-top: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
@media (min-width: 768px) {
  .article-relatives {
    flex-direction: row;
  }
}
.article-relatives > * {
  flex: 1 0 50%;
  min-width: 50%;
  overflow-wrap: break-word;
  margin-right: 0;
}
.article-relatives > *:last-child {
  padding: 0;
}
@media (min-width: 768px) {
  .article-relatives > * {
    padding-right: 20px;
  }
}
.article-votes {
  border-top: 1px solid #ddd;
  padding: 30px 0;
  text-align: center;
}
.article-votes-question {
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 0;
}
.article-vote {
  margin: 10px 5px;
  min-width: 90px;
  width: auto;
}
.article-more-questions {
  margin: 10px 0 20px;
  text-align: center;
}
.article-more-questions a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.article-more-questions a:visited {
  color: rgba(126, 34, 206, 1);
}
.article-more-questions a:hover, .article-more-questions a:active, .article-more-questions a:focus {
  color: rgba(126, 34, 206, 1);
}
.article-return-to-top {
  border-top: 1px solid #87929D;
}
@media (min-width: 1024px) {
  .article-return-to-top {
    display: none;
  }
}
.article-return-to-top a {
  color: rgba(25, 25, 25, 1);
  display: block;
  padding: 20px 0;
}
.article-return-to-top a:hover, .article-return-to-top a:focus {
  text-decoration: none;
}
.article-return-to-top-icon {
  transform: rotate(0.5turn);
}
.article td > p:first-child,
.article th > p:first-child {
  margin-top: 0;
}
.article td > p:last-child,
.article th > p:last-child {
  margin-bottom: 0;
}

.sidenav-title {
  font-size: 15px;
  position: relative;
  font-weight: 600;
}
.sidenav-item {
  display: block;
  margin-top: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-articles li,
.related-articles li {
  margin-bottom: 15px;
}

/***** Attachments *****/
/* Styles attachments inside posts, articles and comments */
.attachments .attachment-item {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}
.attachments .attachment-item:last-child {
  margin-bottom: 0;
}
.attachments .attachment-item .attachment-icon {
  color: rgba(25, 25, 25, 1);
  left: 0;
  position: absolute;
  top: 5px;
}
[dir=rtl] .attachments .attachment-item {
  padding-left: 0;
  padding-right: 20px;
}
[dir=rtl] .attachments .attachment-item .attachment-icon {
  left: auto;
  right: 0;
}

.upload-dropzone span {
  color: #4c4c4c;
}

/***** Social share links *****/
.share {
  padding: 0;
  white-space: nowrap;
}

.share li, .share a {
  display: inline-block;
}

.share li {
  height: 25px;
  width: 25px;
}

.share a {
  color: #4c4c4c;
}
.share a:hover {
  text-decoration: none;
  color: rgba(92, 6, 140, 1);
}
.share a svg {
  height: 18px;
  width: 18px;
  display: block;
}

/***** Comments *****/
/* Styles comments inside articles, posts and requests */
.comment {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}
.comment-heading, .recent-articles-title,
.related-articles-title {
  margin-bottom: 5px;
  margin-top: 0;
  font-size: 18px;
  font-weight: 600;
}
.comment-overview {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  padding: 20px 0;
}
.comment-overview p {
  margin-top: 0;
}
.comment-callout {
  color: #4c4c4c;
  display: inline-block;
  font-size: 13px;
  margin-bottom: 0;
}
.comment-callout a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.comment-callout a:visited {
  color: rgba(126, 34, 206, 1);
}
.comment-callout a:hover, .comment-callout a:active, .comment-callout a:focus {
  color: rgba(126, 34, 206, 1);
}
.comment-sorter {
  display: inline-block;
  float: right;
}
.comment-sorter .dropdown-toggle {
  color: #4c4c4c;
  font-size: 13px;
}
[dir=rtl] .comment-sorter {
  float: left;
}
.comment-wrapper {
  display: flex;
  position: relative;
}
.comment-wrapper.comment-official {
  border: 1px solid rgba(92, 6, 140, 1);
  padding: 40px 20px 20px;
}
@media (min-width: 768px) {
  .comment-wrapper.comment-official {
    padding-top: 20px;
  }
}
.comment-info {
  min-width: 0;
  padding-right: 20px;
  width: 100%;
}
[dir=rtl] .comment-info {
  padding-right: 0;
  padding-left: 20px;
}
.comment-author {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .comment-author {
    justify-content: space-between;
  }
}
.comment-avatar {
  margin-right: 10px;
}
[dir=rtl] .comment-avatar {
  margin-left: 10px;
  margin-right: 0;
}
.comment-meta {
  flex: 1 1 auto;
}
.comment-labels {
  flex-basis: 100%;
}
@media (min-width: 768px) {
  .comment-labels {
    flex-basis: auto;
  }
}
.comment .status-label:not(.status-label-official) {
  margin-top: 10px;
}
@media (min-width: 768px) {
  .comment .status-label:not(.status-label-official) {
    margin-top: 0;
  }
}
.comment-form {
  display: flex;
  padding-top: 30px;
  word-wrap: break-word;
}
.comment-container {
  width: 100%;
}
.comment-form-controls {
  display: none;
  margin-top: 10px;
  text-align: left;
}
@media (min-width: 768px) {
  [dir=ltr] .comment-form-controls {
    text-align: right;
  }
}
.comment-form-controls input[type=submit] {
  margin-top: 15px;
}
@media (min-width: 1024px) {
  .comment-form-controls input[type=submit] {
    margin-left: 15px;
  }
  [dir=rtl] .comment-form-controls input[type=submit] {
    margin-left: 0;
    margin-right: 15px;
  }
}
.comment-form-controls input[type=checkbox] {
  margin-right: 5px;
}
.comment-form-controls input[type=checkbox] [dir=rtl] {
  margin-left: 5px;
}
.comment-ccs {
  display: none;
}
.comment-ccs + textarea {
  margin-top: 10px;
}
.comment-attachments {
  margin-top: 10px;
}
.comment-attachments a {
  color: rgba(92, 6, 140, 1);
}
.comment-body {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  display: flow-root;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: auto;
}
.comment-body a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.comment-body a:visited {
  color: rgba(126, 34, 206, 1);
}
.comment-body a:hover, .comment-body a:active, .comment-body a:focus {
  color: rgba(126, 34, 206, 1);
}
.comment-body img {
  height: auto;
  max-width: 100%;
}
.comment-body p > img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}
.comment-body p > img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}
.comment-body p > img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}
.comment-body p > img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
.comment-body figure.image {
  display: table;
  margin: 0 auto;
}
.comment-body figure.image > img {
  display: block;
  width: 100%;
}
.comment-body figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}
.comment-body figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}
.comment-body figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}
.comment-body figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
.comment-body figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}
.comment-body ul,
.comment-body ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}
[dir=rtl] .comment-body ul,
[dir=rtl] .comment-body ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}
.comment-body ul > ul,
.comment-body ol > ol,
.comment-body ol > ul,
.comment-body ul > ol,
.comment-body li > ul,
.comment-body li > ol {
  margin: 0;
}
.comment-body ul {
  list-style-type: disc;
}
.comment-body :not(pre) > code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}
.comment-body pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
}
.comment-body blockquote {
  border-left: 1px solid #ddd;
  color: #4c4c4c;
  font-style: italic;
  padding: 0 15px;
}
.comment-mark-as-solved {
  display: inline-block;
}

/***** Vote *****/
/* Used in article comments, post comments and post */
.vote {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.vote a:active, .vote a:hover, .vote a:focus {
  text-decoration: none;
}

.vote-sum {
  color: #4c4c4c;
  display: block;
  margin: 3px 0;
}
[dir=rtl] .vote-sum {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.vote-up svg {
  transform: scale(1, -1);
}

.vote-up:hover,
.vote-down:hover {
  color: rgba(92, 6, 140, 1);
}

.vote-up, .vote-down {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  color: #4c4c4c;
  cursor: pointer;
  min-height: 35px;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-voted {
  color: rgba(92, 6, 140, 1);
}

.vote-voted:hover {
  color: #1c022a;
}

/***** Actions *****/
/* Styles admin and en user actions(edit, delete, change status) in comments and posts */
.actions {
  text-align: center;
  flex-shrink: 0; /*Avoid collapsing elements in Safari*/
}
.actions button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  min-height: 35px;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/***** Community *****/
.community-hero {
  background-image: url(/hc/theming_assets/01JE6EKB93DS8H6WVZMXTHRB5X);
  margin-bottom: 10px;
}
.community-footer {
  padding-top: 50px;
  text-align: center;
}
.community-footer-title {
  font-size: 16px;
  margin-bottom: 20px;
}
.community-featured-posts .title {
  font-size: 18px;
  font-weight: 600;
}
.community-featured-posts, .community-activity {
  padding-top: 40px;
  width: 100%;
}
.community-header {
  margin-bottom: 30px;
}
.community-header .title {
  margin-bottom: 0;
  font-size: 16px;
}

.post-to-community {
  margin-top: 10px;
}
@media (min-width: 768px) {
  .post-to-community {
    margin: 0;
  }
}

/* Community topics grid */
.topics {
  max-width: none;
  width: 100%;
}
.topics-item .meta-group {
  justify-content: center;
  margin-top: 20px;
}

/* Community topic page */
.topic-header {
  border-bottom: 1px solid #ddd;
  font-size: 13px;
}
@media (min-width: 768px) {
  .topic-header {
    padding-bottom: 10px;
  }
}
.topic-header .dropdown {
  display: block;
  border-top: 1px solid #ddd;
  padding: 10px 0;
}
@media (min-width: 768px) {
  .topic-header .dropdown {
    border-top: 0;
    display: inline-block;
    margin-right: 20px;
    padding: 0;
  }
}

.no-posts-with-filter {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Topic, post and user follow button */
.community-follow {
  margin-bottom: 10px;
  width: 100%;
}
@media (min-width: 768px) {
  .community-follow {
    margin-bottom: 0;
    width: auto;
  }
}
.community-follow button {
  line-height: 30px;
  padding: 0 10px 0 15px;
  position: relative;
  width: 100%;
}
@media (min-width: 768px) {
  .community-follow button {
    width: auto;
  }
}
.community-follow button:hover {
  background-color: rgba(92, 6, 140, 1);
}
.community-follow button:hover::after, .community-follow button:focus::after {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.community-follow button[data-selected=true] {
  background-color: rgba(92, 6, 140, 1);
  color: #FFFFFF;
}
.community-follow button[data-selected=true]::after {
  border-left: 1px solid #FFFFFF;
  color: #FFFFFF;
}
.community-follow button[data-selected=true]:hover {
  background-color: #1c022a;
  border-color: #1c022a;
}
.community-follow button::after {
  border-left: 1px solid rgba(92, 6, 140, 1);
  content: attr(data-follower-count);
  color: rgba(92, 6, 140, 1);
  display: inline-block;
  font-family: 'Barlow', Arial, sans-serif;
  margin-left: 15px;
  padding-left: 10px;
  position: absolute;
  right: 10px;
}
@media (min-width: 768px) {
  .community-follow button::after {
    position: static;
  }
}
[dir=rtl] .community-follow button::after {
  border-left: 0;
  border-right: 1px solid rgba(92, 6, 140, 1);
  margin: 0 10px 0 0;
  padding: 0 10px 0 0;
}

/***** Striped list *****/
/* Used in community posts list and requests list */
.striped-list {
  padding: 0;
}
.striped-list-item {
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 0;
}
@media (min-width: 768px) {
  .striped-list-item {
    align-items: center;
    flex-direction: row;
  }
}
.striped-list-info {
  flex: 2;
}
.striped-list-title {
  color: rgba(25, 25, 25, 1);
  margin-bottom: 10px;
  margin-right: 5px;
}
.striped-list-title:hover, .striped-list-title:focus, .striped-list-title:active {
  text-decoration: underline;
}
.striped-list-title:visited {
  color: rgba(126, 34, 206, 1);
}
.striped-list .meta-group {
  margin: 5px 0;
}
.striped-list-count {
  color: #4c4c4c;
  font-size: 13px;
  justify-content: flex-start;
  text-transform: capitalize;
}
@media (min-width: 768px) {
  .striped-list-count {
    display: flex;
    flex: 1;
    justify-content: space-around;
  }
}
.striped-list-count-item::after {
  content: "·";
  display: inline-block;
  padding: 0 5px;
}
@media (min-width: 768px) {
  .striped-list-count-item::after {
    display: none;
  }
}
.striped-list-count-item:last-child::after {
  display: none;
}
.striped-list-number {
  text-align: center;
}
@media (min-width: 768px) {
  .striped-list-number {
    color: rgba(25, 25, 25, 1);
    display: block;
  }
}

/***** Status labels *****/
/* Styles labels used in posts, articles and requests */
.status-label {
  background-color: #038153;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-right: 2px;
  padding: 3px 10px;
  vertical-align: middle;
  white-space: nowrap;
  display: inline-block;
}
.status-label:hover, .status-label:active, .status-label:focus {
  text-decoration: none;
}
.status-label-pinned, .status-label-featured, .status-label-official {
  background-color: rgba(92, 6, 140, 1);
}
.status-label-official {
  border-radius: 0;
  margin-right: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .status-label-official {
    border-radius: 0 0 4px 4px;
    right: 30px;
    width: auto;
  }
}
[dir=rtl] .status-label-official {
  left: 30px;
  right: auto;
}
.status-label-not-planned, .status-label-closed {
  background-color: #e9ebed;
  color: #4c4c4c;
}
.status-label-pending, .status-label-pending-moderation {
  background-color: #1f73b7;
  text-align: center;
}
.status-label-open {
  background-color: #c72a1c;
}
.status-label-solved {
  background-color: #68737d;
}
.status-label-new {
  background-color: #ffb648;
  color: #703b15;
}
.status-label-hold {
  background-color: var(--text-primary) !important;
}
.status-label-request {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .status-label-request {
    max-width: 150px;
  }
}

/***** Post *****/
/*
* The post grid is defined this way:
* Content | Sidebar
* 70%     | 30%
*/
.post {
  flex: 1;
  margin-bottom: 10px;
}
@media (min-width: 1024px) {
  .post {
    flex: 1 0 70%;
    max-width: 70%;
  }
}
.post-container {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .post-container {
    flex-direction: row;
  }
}
.post-header {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .post-header {
    align-items: baseline;
    flex-direction: row;
  }
}
.post-header .status-label {
  vertical-align: super;
}
.post-title {
  margin-bottom: 20px;
  width: 100%;
}
@media (min-width: 768px) {
  .post-title {
    margin-bottom: 0;
    padding-right: 10px;
  }
}
.post-title h1 {
  display: inline;
  vertical-align: middle;
}
@media (min-width: 768px) {
  .post-title h1 {
    margin-right: 5px;
  }
}
.post-author {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}
.post-avatar {
  margin-bottom: 30px;
}
.post-content {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  word-break: break-word;
}
.post-info-container {
  display: flex;
  margin-bottom: 40px;
}
.post-info {
  min-width: 0;
  padding-right: 20px;
  width: 100%;
}
[dir=rtl] .post-info {
  padding-right: 0;
  padding-left: 20px;
}
.post-meta {
  display: inline-block;
  flex: 1;
  margin-left: 10px;
  vertical-align: middle;
}
[dir=rtl] .post-meta {
  margin-left: 0;
  margin-right: 10px;
}
.post-body {
  display: flow-root;
}
.post-body a {
  color: rgba(25, 25, 25, 1);
  text-decoration: underline;
}
.post-body a:visited {
  color: rgba(126, 34, 206, 1);
}
.post-body a:hover, .post-body a:active, .post-body a:focus {
  color: rgba(126, 34, 206, 1);
}
.post-body img {
  height: auto;
  max-width: 100%;
}
.post-body p > img.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}
.post-body p > img.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}
.post-body p > img.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}
.post-body p > img.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
.post-body figure.image {
  display: table;
  margin: 0 auto;
}
.post-body figure.image > img {
  display: block;
  width: 100%;
}
.post-body figure.image.image-style-align-left {
  float: left;
  margin: 8px 20px 6px 0;
}
.post-body figure.image.image-style-align-right {
  float: right;
  margin: 8px 0px 6px 20px;
}
.post-body figure.image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}
.post-body figure.image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}
.post-body figcaption {
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  background-color: #f2f2f2;
}
.post-body ul,
.post-body ol {
  padding-left: 20px;
  list-style-position: outside;
  margin: 20px 0 20px 20px;
}
[dir=rtl] .post-body ul,
[dir=rtl] .post-body ol {
  padding-right: 20px;
  padding-left: 0;
  margin-left: 0;
  margin-right: 20px;
}
.post-body ul > ul,
.post-body ol > ol,
.post-body ol > ul,
.post-body ul > ol,
.post-body li > ul,
.post-body li > ol {
  margin: 0;
}
.post-body ul {
  list-style-type: disc;
}
.post-body :not(pre) > code {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0 2px;
}
.post-body pre {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 15px;
  overflow: auto;
  white-space: pre;
}
.post-body blockquote {
  border-left: 1px solid #ddd;
  color: #4c4c4c;
  font-style: italic;
  padding: 0 15px;
}
.post-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}
.post-comment-count {
  color: #4c4c4c;
}
.post-comment-count:hover {
  text-decoration: none;
}
.post-comment-count .icon-comments {
  color: rgba(92, 6, 140, 1);
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 5px;
  vertical-align: middle;
}
.post-sidebar {
  border-top: 1px solid #ddd;
  flex: 1;
  padding: 30px 0;
  text-align: center;
}
@media (min-width: 1024px) {
  .post-sidebar {
    border: 0;
    flex: 1 0 30%;
    padding: 0 0 0 50px;
    text-align: initial;
  }
  [dir=rtl] .post-sidebar {
    padding: 0 50px 0 0;
  }
}
.post-sidebar-title {
  font-size: 18px;
  font-weight: 600;
}
.post-comments {
  margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .post-comments {
    margin-bottom: 0;
  }
}

/***** Community Badges *****/
/* Styles labels used next to the authors of article comments, community posts, and community comments */
.community-badge-title {
  background-color: #04444d;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0px 8px;
  vertical-align: top;
  white-space: nowrap;
  display: inline-block;
  line-height: 18px;
  vertical-align: middle;
}

.community-badge-titles {
  display: inline;
}

.community-badge-achievement {
  display: block;
  height: 16px;
  white-space: nowrap;
  width: 16px;
}
.community-badge-achievement img {
  width: 100%;
  height: 100%;
}

.community-badge-achievements {
  display: flex;
}

.community-badge-achievements-rest {
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  vertical-align: top;
}

.community-badge {
  margin: 2px;
}

.profile-info .community-badge-title {
  padding: 2px 8px;
  line-height: 20px;
}
.profile-info .community-badge-achievement {
  height: 40px;
  width: 40px;
}
.profile-info .community-badge-achievements-rest {
  line-height: 40px;
  font-size: 20px;
}

/* Navigation element that collapses on mobile */
.collapsible-nav {
  flex-direction: column;
  font-size: 14px;
  position: relative;
}
@media (min-width: 768px) {
  .collapsible-nav {
    flex-direction: row;
  }
}

.collapsible-nav-border {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}
@media (min-width: 768px) {
  .collapsible-nav-border {
    border-top: 0;
  }
}

.collapsible-nav-toggle {
  top: 22.5px;
  transform: translateY(-50%);
  position: absolute;
  right: 0;
  padding: 0;
  border: 0;
  background: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
@media (min-width: 768px) {
  .collapsible-nav-toggle {
    display: none;
  }
}
[dir=rtl] .collapsible-nav-toggle {
  left: 0;
  right: auto;
}
.collapsible-nav-toggle-icon {
  display: none;
}
.collapsible-nav-toggle[aria-expanded=false] .chevron-icon {
  display: inline-block;
}
.collapsible-nav-toggle[aria-expanded=true] .x-icon {
  display: inline-block;
}
.collapsible-nav-toggle:focus {
  outline: none;
  border: 1px solid rgba(92, 6, 140, 1);
}

.collapsible-nav-list {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .collapsible-nav-list {
    flex-direction: row;
  }
}
.collapsible-nav-list li {
  color: rgba(25, 25, 25, 1);
  line-height: 45px;
  order: 1;
}
@media (min-width: 768px) {
  .collapsible-nav-list li {
    line-height: normal;
    margin-right: 30px;
  }
  [dir=rtl] .collapsible-nav-list li {
    margin-left: 30px;
    margin-right: 0;
  }
  .collapsible-nav-list li a {
    text-decoration: none;
    padding: 15px 0;
  }
}
.collapsible-nav-list li a {
  color: rgba(25, 25, 25, 1);
  display: block;
}
@media (min-width: 768px) {
  .collapsible-nav-list li:hover {
    border-bottom: 4px solid #ddd;
  }
  .collapsible-nav-list li:hover a:not([aria-current=page]) {
    padding: 15px 0 11px 0;
    text-decoration: none;
  }
}
.collapsible-nav-list li:not([aria-selected=true]),
.collapsible-nav-list li:not(.current) {
  display: none;
}
@media (min-width: 768px) {
  .collapsible-nav-list li:not([aria-selected=true]),
  .collapsible-nav-list li:not(.current) {
    display: block;
  }
}
@media (min-width: 768px) {
  .collapsible-nav-list li[aria-selected=true] {
    padding: 15px 0 11px 0;
  }
}
.collapsible-nav-list li[aria-selected=true],
.collapsible-nav-list li.current {
  order: 0;
  position: relative;
}
@media (min-width: 768px) {
  .collapsible-nav-list li[aria-selected=true],
  .collapsible-nav-list li.current {
    border-bottom: 4px solid rgba(92, 6, 140, 1);
    order: 1;
  }
}
.collapsible-nav-list li[aria-selected=true] a,
.collapsible-nav-list li.current a {
  color: rgba(25, 25, 25, 1);
}

.collapsible-nav[aria-expanded=true] li:not([aria-selected=true]),
.collapsible-nav[aria-expanded=true] li:not(.current) {
  display: block;
}

/* Sidebar navigation that collapses on mobile */
.collapsible-sidebar {
  flex: 1;
  max-height: 45px;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}
@media (min-width: 1024px) {
  .collapsible-sidebar {
    max-height: none;
    padding: 0;
  }
}
.collapsible-sidebar-title {
  margin-top: 0;
}
.collapsible-sidebar-toggle {
  position: absolute;
  top: 22.5px;
  transform: translateY(-50%);
  right: 0;
  padding: 0;
  border: 0;
  background: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
@media (min-width: 1024px) {
  .collapsible-sidebar-toggle {
    display: none;
  }
}
[dir=rtl] .collapsible-sidebar-toggle {
  left: 0;
  right: auto;
}
.collapsible-sidebar-toggle-icon {
  display: none;
}
.collapsible-sidebar-toggle[aria-expanded=false] .chevron-icon {
  display: inline-block;
}
.collapsible-sidebar-toggle[aria-expanded=true] .x-icon {
  display: inline-block;
}
.collapsible-sidebar-toggle:focus {
  outline: none;
  border: 1px solid rgba(92, 6, 140, 1);
}
.collapsible-sidebar-body {
  display: none;
}
@media (min-width: 1024px) {
  .collapsible-sidebar-body {
    display: block;
  }
}
.collapsible-sidebar[aria-expanded=true] {
  max-height: none;
}
.collapsible-sidebar[aria-expanded=true] .collapsible-sidebar-body {
  display: block;
}

/***** My activities *****/
.my-activities-nav {
  background-color: #f2f2f2;
  margin-bottom: 20px;
}
.my-activities-sub-nav {
  margin-bottom: 30px;
}
.my-activities-table .striped-list-title { /* My activities tables */
  display: block;
  margin-bottom: 10px;
  max-width: 350px;
  white-space: normal;
}
@media (min-width: 1024px) {
  .my-activities-table .striped-list-title {
    margin-bottom: 0;
    max-width: 500px;
    min-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.my-activities-table thead {
  display: none;
}
@media (min-width: 768px) {
  .my-activities-table thead {
    display: table-header-group;
  }
}
.my-activities-table th:first-child,
.my-activities-table td:first-child {
  padding-left: 0;
}
@media (min-width: 1024px) {
  .my-activities-table th:first-child,
  .my-activities-table td:first-child {
    width: 500px;
  }
}
.my-activities-table th:last-child,
.my-activities-table td:last-child {
  padding-right: 0;
}
.my-activities-table td:not(:first-child) {
  display: none;
}
@media (min-width: 768px) {
  .my-activities-table td:not(:first-child) {
    display: table-cell;
  }
}

/* Requests table */
.requests-search {
  width: 100%;
}
.requests-table-toolbar {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .requests-table-toolbar {
    flex-direction: row;
  }
}
.requests-table-toolbar .search {
  flex: 1;
  width: 100%;
}
.requests-table-toolbar .request-table-filter {
  width: 100%;
}
@media (min-width: 768px) {
  .requests-table-toolbar .request-table-filter {
    width: auto;
  }
}
.requests-table-toolbar .request-filter {
  display: block;
}
@media (min-width: 768px) {
  .requests-table-toolbar .request-filter {
    margin: 0 0 0 30px;
  }
  [dir=rtl] .requests-table-toolbar .request-filter {
    margin: 0 30px 0 0;
  }
}
.requests-table-toolbar .request-filter-label {
  font-size: 13px;
  margin-top: 30px;
}
@media (min-width: 768px) {
  .requests-table-toolbar .request-filter-label {
    margin-top: 0;
  }
}
.requests-table-toolbar select {
  max-height: 40px;
  margin-bottom: 30px;
  width: 100%;
}
@media (min-width: 768px) {
  .requests-table-toolbar select {
    margin-bottom: 0;
    max-width: 300px;
    width: auto;
  }
}
@media (min-width: 768px) {
  .requests-table-toolbar .organization-subscribe {
    margin-left: 10px;
  }
  [dir=rtl] .requests-table-toolbar .organization-subscribe {
    margin: 0 10px 0 0;
  }
}
.requests-table-toolbar .organization-subscribe button {
  line-height: 40px;
  max-height: 40px;
  padding: 0 20px;
}
.requests-table-toolbar + .requests-search-info {
  margin-top: 15px;
}
.requests-table-toolbar + .requests-search-info.meta-data::after {
  content: "";
  margin: 0;
}
.requests-table-toolbar + .requests-search-info + .requests {
  margin-top: 20px;
}
.requests-table-toolbar + .requests {
  margin-top: 40px;
}
.requests .requests-table-meta {
  display: block;
}
@media (min-width: 768px) {
  .requests .requests-table-meta {
    display: none;
  }
}
.requests .requests-table thead {
  display: none;
}
@media (min-width: 768px) {
  .requests .requests-table thead {
    display: table-header-group;
  }
}
.requests .requests-table-info {
  display: block;
}
@media (min-width: 768px) {
  .requests .requests-table-info {
    display: table-cell;
    vertical-align: middle;
    width: auto;
  }
}
.requests .requests-table .requests-link {
  position: relative;
}
.requests .requests-table .requests-sort-symbol {
  position: absolute;
  left: calc(100% + 3px);
  bottom: 0;
  font-size: 10px;
}

/* Following table */
@media (min-width: 768px) {
  .subscriptions-subscribe button {
    width: auto;
  }
}
.subscriptions-table td:last-child {
  display: block;
}
@media (min-width: 768px) {
  .subscriptions-table td:last-child {
    display: table-cell;
  }
}
.subscriptions-table td:first-child {
  display: flex;
  align-items: center;
}
.subscriptions-table .user-avatar {
  margin-right: 10px;
}
.subscriptions .striped-list-title {
  display: inline-block;
  vertical-align: middle;
}

/* Contributions table */
.contributions-table td:last-child {
  color: #4c4c4c;
  font-size: 13px;
}
@media (min-width: 768px) {
  .contributions-table td:last-child {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }
}

.no-activities {
  color: #4c4c4c;
}

/***** Request *****/
.request-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .request-container {
    align-items: flex-start;
    flex-direction: row;
  }
}
.request-container .comment-container {
  min-width: 0;
}
.request-breadcrumbs {
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .request-breadcrumbs {
    margin-bottom: 60px;
  }
}
.request-main {
  flex: 1 0 auto;
  order: 1;
}
.request-main .comment-fields, .request-main .request-submit-comment {
  display: none;
}
.request-main .comment-fields.shown {
  display: block;
}
.request-main .request-submit-comment.shown {
  display: inline;
}
@media (min-width: 1024px) {
  .request-main {
    flex: 0 0 66%;
    order: 0;
    min-width: 0;
  }
}
.request-main .comment-form-controls {
  display: block;
}
.request-main .comment-ccs {
  display: block;
}
.request-main .comment-show-container {
  border-radius: 2px;
  border: 1px solid #ddd;
  color: #4c4c4c;
  text-align: inherit;
  padding: 8px 25px;
  width: 100%;
}
.request-main .comment-show-container.hidden {
  display: none;
}
.request-main .form-field.comment-ccs > ul {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}
.request-main .form-field.comment-ccs > ul[data-hc-focus=true] {
  border: 1px solid rgba(92, 6, 140, 1);
}
.request-main .form-field.comment-ccs > input[type=text] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}
.request-main .comment-ccs + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}
.request-main .comment-ccs + textarea:focus {
  border-top: 1px solid rgba(92, 6, 140, 1);
}
.request-main input#mark_as_solved {
  display: none;
}
.request-title {
  width: 100%;
}
@media (min-width: 1024px) {
  .request-title {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    max-width: 66%;
    padding-bottom: 20px;
  }
}
.request-sidebar {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  flex: 1 0 auto;
  order: 0;
}
@media (min-width: 1024px) {
  .request-sidebar {
    background-color: #f7f7f7;
    border: 0;
    font-size: 13px;
    flex: 0 0 auto;
    padding: 0 20px;
    width: 30%;
  }
}
.request-sidebar h2 {
  font-size: 15px;
  font-weight: 600;
  position: relative;
}
@media (min-width: 1024px) {
  .request-sidebar h2 {
    display: none;
  }
}
.request-details {
  border-bottom: 1px solid #ddd;
  font-size: 0;
  margin: 0;
  padding-bottom: 20px;
}
.request-details:last-child {
  border: 0;
}
.request-details dt, .request-details dd {
  display: inline-block;
  vertical-align: top;
  font-size: 13px;
  margin: 20px 0 0 0;
}
.request-details dd {
  padding: 0 10px;
  width: 60%;
}
.request-details dd::after {
  content: "\a";
  white-space: pre;
}
.request-details dt {
  color: #4c4c4c;
  width: 40%;
}
.request-details .request-collaborators {
  display: inline-block;
}
.request-attachments dt, .request-attachments dd {
  width: 100%;
}
.request-attachments dd {
  margin: 10px 0 0 0;
}
.request-form textarea {
  min-height: 120px;
}
.request-follow-up {
  padding-top: 20px;
}

/***** Pagination *****/
.pagination {
  margin: 20px 0;
  text-align: center;
}
.pagination-next, .pagination-prev, .pagination-first, .pagination-last {
  display: inline-block;
}
.pagination-first-link, .pagination-last-link {
  padding: 0 10px;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
}
.pagination-first-text, .pagination-last-text {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
.pagination-next-link {
  padding-right: 10px;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
}
.pagination-next-text {
  margin-right: 10px;
}
[dir=rtl] .pagination-next-link {
  padding-left: 10px;
}
[dir=rtl] .pagination-next-text {
  margin-left: 10px;
}
.pagination-prev-link {
  padding-left: 10px;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
}
.pagination-prev-text {
  margin-left: 10px;
}
[dir=rtl] .pagination-prev-link {
  padding-right: 10px;
}
[dir=rtl] .pagination-prev-text {
  margin-right: 10px;
}

/***** Metadata *****/
.meta-group {
  display: block;
}

.meta-group-opposite {
  float: right;
}

[dir=rtl] .meta-group-opposite {
  float: left;
}

.meta-group * {
  display: inline;
}

.meta-data {
  color: #4c4c4c;
  font-size: 13px;
}
.meta-data:not(:last-child)::after {
  content: "·";
  margin: 0 5px;
}

/* User Profiles */
.profile-header {
  padding: 30px 0;
  background-color: #f7f7f7;
}

.profile-header .container {
  display: flex;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .profile-header .container {
    flex-wrap: nowrap;
  }
}

.profile-header .profile-info {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.profile-avatar {
  position: relative;
  line-height: 0;
  align-self: center;
  margin-right: 10px;
}
[dir=rtl] .profile-avatar {
  margin-left: 10px;
  margin-right: 0;
}

.profile-avatar .user-avatar {
  width: 80px;
  height: 80px;
}

.profile-avatar .icon-agent {
  bottom: 0;
  right: 0;
}

.profile-header .basic-info {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}
.profile-header .basic-info .name {
  margin: 0;
  line-height: 25px;
  vertical-align: middle;
  display: inline;
}

.profile-header .options {
  display: flex;
  flex-basis: 100%;
  margin-top: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .profile-header .options {
    flex-wrap: nowrap;
    flex-basis: auto;
    margin-top: 0;
    margin-left: 10px;
  }
  [dir=rtl] .profile-header .options {
    margin-left: 0;
    margin-right: 10px;
  }
  .profile-header .options > :not(:last-child) {
    margin-bottom: 0;
    margin-right: 10px;
  }
  [dir=rtl] .profile-header .options > :not(:last-child) {
    margin-left: 10px;
    margin-right: 0;
  }
}

.user-profile-actions {
  width: 100%;
  margin-bottom: 15px;
}

.profile-header .description {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  margin: 15px 0;
  flex-basis: 100%;
}

.profile-stats {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
}

.profile-stats .stat {
  display: flex;
  margin-bottom: 10px;
}

.profile-stats .stat-label {
  color: #4c4c4c;
  flex: 0 0 100px;
  margin-right: 10px;
}
[dir=rtl] .profile-stats .stat-label {
  margin-left: 10px;
  margin-right: 0;
}

.profile-stats-activity {
  border-top: solid 1px #ddd;
  margin-top: 15px;
}
@media (min-width: 768px) {
  .profile-stats-activity {
    border-top: 0;
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .profile-stats-activity .stat {
    flex-direction: column;
  }
}

.profile-stats-activity .stat:first-child {
  margin-top: 10px;
}
@media (min-width: 768px) {
  .profile-stats-activity .stat:first-child {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .profile-stats-activity .stat:not(:last-child) {
    margin-right: 40px;
  }
  [dir=rtl] .profile-stats-activity .stat:not(:last-child) {
    margin-left: 40px;
    margin-right: 0;
  }
}

@media (min-width: 768px) {
  .profile-stats-activity .stat-label {
    flex: 0 1 auto;
  }
}

.profile-stats-counters {
  border-bottom: solid 1px #ddd;
}
@media (min-width: 768px) {
  .profile-stats-counters {
    flex: 0 0 200px;
    border-bottom: 0;
    margin-left: 40px;
  }
  [dir=rtl] .profile-stats-counters {
    margin-left: 0;
    margin-right: 40px;
  }
}
@media (min-width: 1024px) {
  .profile-stats-counters {
    flex: 0 0 270px;
    margin-left: 60px;
  }
  [dir=rtl] .profile-stats-counters {
    margin-right: 60px;
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .profile-stats-counters .stat {
    flex-direction: column;
  }
}
@media (min-width: 1024px) {
  .profile-stats-counters .stat {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .profile-stats-counters .stat:not(:last-child) {
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) {
  .profile-stats-counters .stat-label {
    flex: 0 1 auto;
  }
}
@media (min-width: 1024px) {
  .profile-stats-counters .stat-label {
    flex: 0 0 100px;
  }
}

.profile-private-badge {
  flex-basis: 100%;
  border: solid 1px rgba(92, 6, 140, 1);
  border-radius: 4px;
  color: rgba(92, 6, 140, 1);
  padding: 5px 20px;
  font-size: 12px;
  text-align: center;
}
.profile-private-badge .profile-private-icon {
  margin-left: 5px;
  line-height: 15px;
}
@media (min-width: 768px) {
  .profile-private-badge {
    flex-basis: auto;
  }
}

.profile-nav {
  background-color: #f2f2f2;
  margin-bottom: 37px;
}

.profile-section {
  width: 100%;
}
@media (min-width: 1024px) {
  .profile-section {
    width: calc(100% - 330px);
  }
}

.profile-section-header {
  display: flex;
  flex-wrap: wrap;
}

.profile-section-title {
  flex-basis: 100%;
  margin-bottom: 0;
}

.profile-section-description {
  flex-basis: 100%;
  padding: 10px 0;
  color: #4c4c4c;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .profile-section-description {
    flex: 1 0 50%;
    padding-bottom: 0;
  }
}

.profile-section-sorter {
  flex-basis: 100%;
  border-top: solid 1px #eee;
  font-size: 13px;
}
.profile-section-sorter .dropdown-toggle {
  padding: 10px 0;
  width: 100%;
}
.profile-section-sorter .dropdown-toggle::after {
  position: absolute;
  right: 0;
}
[dir=rtl] .profile-section-sorter .dropdown-toggle::after {
  left: 0;
  right: initial;
}
@media (min-width: 768px) {
  .profile-section-sorter .dropdown-toggle::after {
    position: relative;
  }
}
@media (min-width: 768px) {
  .profile-section-sorter {
    flex: 0 1 auto;
    padding-top: 0;
    border-top: 0;
    margin-left: 20px;
  }
  [dir=rtl] .profile-section-sorter {
    margin-left: 0;
    margin-right: 20px;
  }
}

.profile-badges-items {
  margin-top: 25px;
}
.profile-badges-item {
  border-top: 1px solid #ddd;
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: flex-start;
  padding: 27px 12px;
}
.profile-badges-item > div {
  padding-right: 12px;
  padding-left: 12px;
}
.profile-badges-item-image {
  height: 40px;
  width: 40px;
  margin-right: 12px;
}
.profile-badges-item-image img {
  max-height: 40px;
}
[dir=rtl] .profile-badges-item-image {
  margin-left: 12px;
  margin-right: 0;
}
.profile-badges-item-title, .profile-badges-item-metadata-title {
  font-size: 15px;
  margin-bottom: 10px;
}
.profile-badges-item-title {
  font-weight: 600;
}
.profile-badges-item-description, .profile-badges-item-metadata-description {
  color: #4c4c4c;
  font-size: 13px;
  margin: 0;
}
.profile-badges-item-metadata {
  margin-left: auto;
  text-align: right;
}
[dir=rtl] .profile-badges-item-metadata {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.profile-contribution {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  padding: 20px 0;
  position: relative;
}

.profile-contribution-header {
  margin-bottom: 5px;
}

.profile-contribution-title {
  margin: 0 0 5px 0;
  display: inline;
  line-height: 21px;
  font-size: 15px;
  vertical-align: middle;
}

.profile-contribution-body {
  margin: 10px 0;
}

.profile-contribution-list > .profile-contribution {
  border-top: 1px solid #eee;
}
@media (min-width: 768px) {
  .profile-contribution-list > .profile-contribution {
    padding-left: 30px;
  }
  [dir=rtl] .profile-contribution-list > .profile-contribution {
    padding-right: 30px;
    padding-left: 0;
  }
}

.profile-contribution-list > .profile-contribution:last-child {
  border-bottom: 1px solid #eee;
}

.profile-contribution-icon {
  left: 0;
  position: absolute;
  color: #ccc;
  line-height: 25px;
}
[dir=rtl] .profile-contribution-icon {
  right: 0;
}
.profile-contribution-icon svg {
  vertical-align: middle;
}

.profile-contribution-list .profile-contribution-header {
  margin-left: 30px;
}
[dir=rtl] .profile-contribution-list .profile-contribution-header {
  padding-right: 30px;
  padding-left: 0;
}
@media (min-width: 768px) {
  .profile-contribution-list .profile-contribution-header {
    margin-left: 0;
  }
  [dir=rtl] .profile-contribution-list .profile-contribution-header {
    padding-right: 0;
  }
}

.profile-comments .profile-contribution-breadcrumbs {
  margin-left: 30px;
}
[dir=rtl] .profile-comments .profile-contribution-breadcrumbs {
  padding-right: 30px;
  padding-left: 0;
}
@media (min-width: 768px) {
  .profile-comments .profile-contribution-breadcrumbs {
    margin-left: 0;
  }
  [dir=rtl] .profile-comments .profile-contribution-breadcrumbs {
    padding-right: 0;
  }
}

.profile-section .no-activity,
.profile-section .private-activity {
  display: block;
  margin-top: 40px;
  color: #999;
}

.private-activity-icon {
  margin-right: 10px;
}
[dir=rtl] .private-activity-icon {
  margin-right: 0;
  margin-left: 10px;
}

.profile-activity-list {
  margin-top: 25px;
}

.profile-activity {
  position: relative;
  padding-bottom: 30px;
}
@media (min-width: 768px) {
  .profile-activity {
    padding-left: 20px;
  }
  [dir=rtl] .profile-activity {
    padding-right: 20px;
    padding-left: 0;
  }
}

@media (min-width: 768px) {
  .profile-activity:not(:last-child) {
    border-left: 1px solid #ddd;
  }
  [dir=rtl] .profile-activity:not(:last-child) {
    border-left: 0;
    border-right: 1px solid #ddd;
  }
}

.profile-activity-header {
  display: flex;
  align-items: center;
  margin-left: 35px;
}
[dir=rtl] .profile-activity-header {
  margin-left: 0;
  margin-right: 35px;
}
@media (min-width: 768px) {
  .profile-activity-header {
    margin-left: 0;
  }
  [dir=rtl] .profile-activity-header {
    margin-right: 0;
  }
}

.profile-activity-header .user-avatar {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  min-width: 40px;
  align-self: flex-start;
}
[dir=rtl] .profile-activity-header .user-avatar {
  margin-left: 10px;
  margin-right: 0;
}

.profile-activity-description {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.profile-activity-description span:first-child {
  font-weight: 600;
  display: inline;
}

.profile-activity-contribution {
  padding: 20px;
  margin-top: 10px;
  border-radius: 8px;
  background-color: #f7f7f7;
}
@media (min-width: 768px) {
  .profile-activity-contribution {
    margin-top: 0;
    margin-left: 50px;
  }
  [dir=rtl] .profile-activity-contribution {
    margin-left: 0;
    margin-right: 50px;
  }
}

.profile-activity-icon {
  position: absolute;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  background-position: 50% 50%;
  text-align: center;
  color: #ccc;
}
[dir=rtl] .profile-activity-icon {
  right: 0;
}
@media (min-width: 768px) {
  .profile-activity-icon {
    left: -14px;
  }
  [dir=rtl] .profile-activity-icon {
    right: -14px;
  }
}

.profile-activity-icon svg {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  margin: auto;
}

/***** Search results *****/
.search-results {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .search-results {
    flex-direction: row;
  }
}
.search-results-column {
  flex: 1;
}
@media (min-width: 1024px) {
  .search-results-column {
    flex: 0 0 75%;
  }
}
.search-results-sidebar {
  border-top: 1px solid #ddd;
  flex: 1 0 auto;
  margin-bottom: 20px;
  padding: 0;
}
@media (min-width: 1024px) {
  .search-results-sidebar {
    border: 0;
    flex: 0 0 20%;
    height: auto;
  }
}
.search-results-sidebar .sidenav-item {
  border-radius: 4px;
  padding: 10px 36px;
  margin-bottom: 4px;
  color: rgba(25, 25, 25, 1);
}
.search-results-sidebar .sidenav-item:hover, .search-results-sidebar .sidenav-item.current {
  background-color: #e9ebed;
  text-decoration: none;
}
.search-results-sidebar .sidenav-subitem {
  unicode-bidi: embed;
}
.search-results-sidebar .sidenav-tag {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-grow: 0;
}
.search-results-sidebar .sidenav-tag .content-tag {
  background: #E9EBED;
  border-radius: 4px;
  padding: 4px 12px;
  text-decoration: none;
}
.search-results-sidebar .sidenav-tag .content-tag .label {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  letter-spacing: -0.000427656px;
  color: #49545C;
  flex-grow: 0;
  vertical-align: middle;
  display: inline-block;
}
.search-results-sidebar .sidenav-tag .content-tag .close-icon {
  color: #555555;
  vertical-align: middle;
  display: inline-block;
}
.search-results-sidebar .collapsible-sidebar {
  margin-bottom: 30px;
}
.search-results-sidebar .collapsible-sidebar[aria-expanded=false] .multibrand-filter-list {
  display: none;
}
@media (min-width: 1024px) {
  .search-results-sidebar .collapsible-sidebar[aria-expanded=false] .multibrand-filter-list {
    display: block;
  }
}
.search-results-sidebar .multibrand-filter-list--collapsed li:nth-child(1n+6) {
  display: none;
}
.search-results-sidebar .multibrand-filter-list .doc-count {
  color: #666;
}
.search-results-sidebar .see-all-filters {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  padding: 10px;
  color: rgba(25, 25, 25, 1);
}
.search-results-sidebar .see-all-filters[aria-hidden=true] {
  display: none;
}
.search-results-sidebar .see-all-filters:hover {
  text-decoration: underline;
}
.search-results-sidebar .see-all-filters::after {
  content: " ⌄";
  font-weight: bold;
}
.search-results-subheading {
  font-size: 18px;
  font-weight: 600;
}
.search-results-list {
  margin-bottom: 25px;
}
.search-results-list > li {
  padding: 20px 0;
}
.search-results-list > li:first-child {
  border-top: 1px solid #ddd;
}
.search-results .no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
}
.search-results .no-results .headline {
  color: #2F3941;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.45px;
}
.search-results .no-results .action-prompt {
  color: #68737D;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.154px;
}
.search-results .no-results .action-prompt a {
  color: rgba(25, 25, 25, 1);
}
.search-results .no-results .action-prompt a:visited {
  color: rgba(25, 25, 25, 1);
}

.search-result-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-result-title {
  font-size: 16px;
  margin-bottom: 0;
}
.search-result-votes, .search-result-meta-count {
  color: #4c4c4c;
  font-size: 13px;
}
.search-result-votes-icon, .search-result-meta-count-icon {
  color: rgba(92, 6, 140, 1);
  vertical-align: middle;
  width: 13px;
  height: 13px;
}
[dir=ltr] .search-result-votes, [dir=ltr] .search-result-meta-count {
  margin-left: 20px;
}
[dir=rtl] .search-result-votes, [dir=rtl] .search-result-meta-count {
  margin-right: 20px;
}
.search-result-meta-container {
  color: #666;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .search-result-meta-container {
    flex-direction: row;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .search-result-meta-container nav {
    flex: 1;
  }
}
@media (min-width: 1024px) {
  [dir=ltr] .search-result-meta-container .meta-data {
    margin-left: 20px;
  }
}
@media (min-width: 1024px) {
  [dir=rtl] .search-result-meta-container .meta-data {
    margin-right: 20px;
  }
}
.search-result-meta-container .meta-data::after {
  content: none;
}
.search-result-breadcrumbs {
  margin: 0;
}
.search-result-description {
  margin-top: 10px;
  margin-bottom: 0;
  word-break: break-word;
}

/* By default use bold instead of italic to highlight */
.search-results-description em {
  font-style: normal;
  font-weight: bold;
}

/* Add a yellow background for Chinese */
html[lang|=zh] .search-results-description em {
  font-style: normal;
  background: yellow;
}

/***** Notifications *****/
.notification {
  border: 1px solid;
  display: table;
  font-family: sans-serif;
  font-size: 12px;
  padding: 13px 15px;
  transition: height 0.2s;
  width: 100%;
  color: #555;
}

.notification a {
  color: #158ec2;
}

.notification-inner {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 980px;
}

.notification-icon, .notification-inline.notification-error::before, .notification-text, .notification-dismiss {
  display: table-cell;
  vertical-align: middle;
}

.notification-text {
  padding: 0 15px;
  width: 100%;
}

.notification + .notification {
  margin-bottom: -1px;
  position: relative;
  top: -1px;
}

/* Error */
.notification-error {
  background: #ffeded;
  border-color: #f7cbcb;
}

.notification-error .notification-icon::before, .notification-error .notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23555555'%3E%3Ccircle cx='5.5' cy='6.5' r='5'/%3E%3Cpath stroke-linecap='round' d='M5.5 3.5v3'/%3E%3C/g%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%23555555'/%3E%3C/svg%3E");
}

/* Notice */
.notification-notice {
  background: #dbf3ff;
  border-color: #b5e0f5;
}

.notification-notice .notification-icon::before, .notification-notice .notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23555555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l2 2L9 4.5'/%3E%3Ccircle cx='6' cy='6' r='5.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Alert / Lock */
.notification-alert {
  color: #ad5e18;
  background: #fff8ed;
  border-color: #fcdba9;
}

.notification-alert .notification-icon::before, .notification-alert .notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ad5e18' stroke-linecap='round' d='M5.06 1.27l-4.5 8.5c-.18.33.06.73.44.73h9c.38 0 .62-.4.44-.73l-4.5-8.5a.494.494 0 00-.88 0zM5.5 4v2'/%3E%3Ccircle cx='5.5' cy='8' r='.8' fill='%23ad5e18'/%3E%3C/svg%3E");
}

.notification-icon::before, .notification-inline.notification-error::before {
  background-size: cover;
  content: "";
  display: inline-block;
  height: 14px;
  width: 14px;
  vertical-align: middle;
}

/* Dismiss button */
.notification-dismiss, a.notification-dismiss {
  color: #555;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 100ms ease;
  text-decoration: none !important;
}

.notification-dismiss:hover {
  opacity: 1;
}

/* Inline notifications */
.notification-inline {
  border-radius: 4px;
  line-height: 14px;
  margin-top: 5px;
  padding: 5px;
  position: relative;
  text-align: left;
  vertical-align: middle;
}
[dir=rtl] .notification-inline {
  text-align: right;
}
.notification-inline[aria-hidden=true] {
  display: none;
}
.notification-inline.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' focusable='false' viewBox='0 0 12 12'%3E%3Cg fill='none' stroke='%23e35b66'%3E%3Ccircle cx='5.5' cy='6.5' r='5'/%3E%3Cpath stroke-linecap='round' d='M5.5 3.5v3'/%3E%3C/g%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%23e35b66'/%3E%3C/svg%3E");
  margin: -2px 5px 0 0;
}
[dir=rtl] .notification-inline.notification-error::before {
  margin: 0 0 0 5px;
}
.notification-inline.notification-error {
  background-color: #fff0f1;
  border: 1px solid #e35b66;
  color: #cc3340;
}
.notification-inline.notification-large {
  padding: 13px 15px;
  margin-bottom: 25px;
}

.notification-left-aligned {
  text-align: left;
  padding-left: 0;
}

html[dir=rtl] .notification-left-aligned {
  text-align: right;
  padding-left: auto;
  padding-right: 0;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  background: none;
  border: 0;
  display: inline-block;
  padding: 0;
  text-align: initial;
  vertical-align: middle;
}
.dropdown-toggle:hover {
  text-decoration: none;
}
.dropdown-toggle > * {
  display: inline-block;
}
.dropdown-toggle[aria-expanded=true] + .dropdown-menu {
  display: block;
}

.dropdown-menu {
  background: #fff;
  border: 1px solid #d8dcde;
  border-radius: 3px;
  box-shadow: 0px 20px 30px 0px rgba(23, 73, 77, 0.15);
  display: none;
  font-size: 14px;
  font-style: normal;
  font-weight: normal;
  left: 0;
  margin-top: 1px;
  min-width: 170px;
  padding: 10px 0;
  position: absolute;
  text-align: left;
  z-index: 1000;
}
[dir=rtl] .dropdown-menu {
  text-align: right;
}
.dropdown-menu [role=separator] {
  border-bottom: 1px solid #e9ebed;
  margin: 4px 0;
}
.dropdown-menu [role=menuitem],
.dropdown-menu [role=menuitemradio] {
  color: #2f3941;
  cursor: pointer;
  display: block;
  padding: 7px 40px 7px 20px;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  text-align: start;
  line-height: inherit;
  width: 100%;
}
[dir=rtl] .dropdown-menu [role=menuitem],
[dir=rtl] .dropdown-menu [role=menuitemradio] {
  padding: 7px 20px 7px 40px;
}
.dropdown-menu [role=menuitem]:hover, .dropdown-menu [role=menuitem]:focus,
.dropdown-menu [role=menuitemradio]:hover,
.dropdown-menu [role=menuitemradio]:focus {
  background: rgba(31, 115, 183, 0.08);
  text-decoration: none;
  color: #2f3941;
}
.dropdown-menu [role=menuitem][aria-selected=true], .dropdown-menu [role=menuitem][aria-checked=true],
.dropdown-menu [role=menuitemradio][aria-selected=true],
.dropdown-menu [role=menuitemradio][aria-checked=true] {
  cursor: default;
}
.dropdown-menu [role=menuitem][aria-selected=true]::after, .dropdown-menu [role=menuitem][aria-checked=true]::after,
.dropdown-menu [role=menuitemradio][aria-selected=true]::after,
.dropdown-menu [role=menuitemradio][aria-checked=true]::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 7l3 3 7-7'%3E%3C/path%3E%3C/svg%3E");
  display: inline-block;
  height: 12px;
  margin-left: 10px;
  width: 12px;
}
[dir=rtl] .dropdown-menu [role=menuitem][aria-selected=true]::after, [dir=rtl] .dropdown-menu [role=menuitem][aria-checked=true]::after,
[dir=rtl] .dropdown-menu [role=menuitemradio][aria-selected=true]::after,
[dir=rtl] .dropdown-menu [role=menuitemradio][aria-checked=true]::after {
  margin-left: 0;
  margin-right: 10px;
  float: left;
}
.dropdown-menu [role=menuitem][hidden], .dropdown-menu [role=menuitem][aria-hidden=true],
.dropdown-menu [role=menuitemradio][hidden],
.dropdown-menu [role=menuitemradio][aria-hidden=true] {
  display: none !important;
}

.dropdown-menu-end {
  left: auto;
  right: 0;
}

.dropdown-menu-top {
  bottom: 100%;
  margin-bottom: 1px;
}

[dir=rtl] .dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}
[dir=rtl] .dropdown-menu-end {
  left: 0;
  right: auto;
}

.dropdown-chevron-icon {
  vertical-align: middle;
}

.content-tags > p {
  color: #68737D;
  margin-top: 32px;
  margin-bottom: 4px;
}
.content-tags-add-hint {
  color: #68737D;
  font-size: 14px;
}

.content-tag-list {
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
}
.content-tag-list li {
  border-right: 1px solid #C2C8CC;
  margin-bottom: 4px;
}
[dir=ltr] .content-tag-list li {
  padding-right: 8px;
  margin-right: 8px;
}
[dir=rtl] .content-tag-list li {
  padding-left: 8px;
  margin-left: 8px;
}
.content-tag-list li:last-child {
  border: none;
}

/***** WYSIWYG Editor *****/
#hc-wysiwyg {
  border: 1px solid #87929D;
}

/***** Upload Dropzone *****/
.upload-dropzone {
  border: 1px solid #87929D;
}

/***** Summary component *****/
zd-summary-block {
  background: #f3f6f6;
}
[dir=ltr] zd-summary-block {
  border-left-color: #859fa1;
}
[dir=rtl] zd-summary-block {
  border-right-color: #859fa1;
}

/* ========================================
   1KOMMA5° BASIS-KOMPONENTEN
   Mobile-First, Performance-optimiert
   ======================================== */

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  min-height: 44px; /* Touch-Target */
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Card Component */
.card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

/* Quick-Link-Card - Quadratisch mit Bildern (App-Screenshot Design) */
.quick-link-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  min-height: 0; /* Wichtig für Flexbox mit aspect-ratio */
  /* iOS Safari Fix: Sicherstellen, dass Karte klickbar ist */
  pointer-events: auto !important; /* ✅ WICHTIG: !important für iOS Safari */
  touch-action: manipulation; /* ✅ Verhindert 300ms Delay auf iOS */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.15); /* ✅ Feedback für Touch */
  cursor: pointer;
}

.quick-link-card:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

/* Quick Link Card Image Wrapper (60% der Höhe) */
.quick-link-card__image-wrapper {
  width: 100%;
  height: 60%;
  position: relative;
  overflow: hidden;
  background: var(--surface-color);
  flex-shrink: 0; /* Verhindert Shrinking */
  /* iOS Safari Fix: Overlay-Elemente dürfen Klicks nicht blockieren */
  pointer-events: none !important; /* ✅ WICHTIG: !important für iOS Safari */
}

.quick-link-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block; /* Verhindert inline-spacing */
  /* iOS Safari Fix: Overlay-Elemente dürfen Klicks nicht blockieren */
  pointer-events: none !important; /* ✅ WICHTIG: !important für iOS Safari */
}

.quick-link-card:hover .quick-link-card__image {
  transform: scale(1.05);
}

/* Overlay für bessere Lesbarkeit (dunkler Gradient) */
.quick-link-card__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
  /* iOS Safari Fix: Overlay-Elemente dürfen Klicks nicht blockieren */
  pointer-events: none !important; /* ✅ WICHTIG: !important für iOS Safari */
}

/* Quick Link Card Content (40% der Höhe) */
.quick-link-card__content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--background-color);
  /* iOS Safari Fix: Overlay-Elemente dürfen Klicks nicht blockieren */
  pointer-events: none !important; /* ✅ WICHTIG: !important für iOS Safari */
}

.quick-link-card__title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--text-primary);
}

.quick-link-card__description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Article Card - Quadratisch */
.article-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-base);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.article-card__link {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  margin: 0 0 var(--spacing-xs) 0;
  color: var(--primary-color);
}

.article-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}


/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-base) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  min-height: 200px;
}

.chat-message {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.chat-message--ai {
  flex-direction: row;
}

.chat-message--user {
  flex-direction: row-reverse;
}

.chat-message__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.chat-message--user .chat-message__avatar {
  background: linear-gradient(135deg, var(--mint-color) 0%, var(--mint-light) 100%);
}

.chat-message__bubble {
  max-width: 75%;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}

.chat-message--ai .chat-message__bubble {
  background: var(--surface-color);
  border-color: var(--border-color);
}

.chat-message--user .chat-message__bubble {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-color: var(--primary-color);
  color: white;
}

.chat-message__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-primary);
}

.chat-message--user .chat-message__text {
  color: white;
}

/* Chat Input */
.chat-input-container {
  display: flex;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  min-height: 44px;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 0.1);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-button {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius);
  border: none;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-button:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.chat-send-button:active:not(:disabled) {
  transform: translateY(0);
}

.chat-send-button:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-send-button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--surface-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* Container Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-base);
}

/* Mobile-First: Gestapelt */
.quick-link-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  margin: var(--spacing-lg) 0;
}

.article-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  margin: var(--spacing-lg) 0;
}

/* Tablet: 2-3 Spalten */
@media (min-width: 768px) {
  .quick-link-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .quick-link-card {
    flex: 1;
  }
}

/* Desktop: 3 Spalten */
@media (min-width: 1024px) {
  .quick-link-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .article-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

/* Desktop: Optimierungen */
@media (min-width: 1024px) {
  .container {
    padding: var(--spacing-lg);
  }
  
  .article-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card,
  .quick-link-card,
  .article-card {
    border-width: 2px;
  }
}

/* ========================================
   HOMEPAGE FÜR EINGELOGGTE NUTZER
   1KOMMA5° Brand Design
   ======================================== */

/* Persönliche Begrüßung */
/* iOS: Wave-Emoji ausblenden – Darstellungsprobleme (Fragezeichen) nach Backdrop/Touch-Änderungen */
html.ios .greeting-emoji.hide-on-ios {
  display: none !important;
}

.homepage-greeting {
  margin-bottom: var(--spacing-lg); /* Einheitlicher Abstand zwischen Sektionen: 2rem (32px) */
  padding-bottom: 0; /* Kein zusätzliches Padding */
}

.greeting-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.greeting-question {
  font-family: var(--font-body);
  font-size: 1.25rem; /* Größer wie im Ostrom-Screenshot */
  font-weight: 400;
  color: var(--text-primary);
  display: block;
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

.greeting-info {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  line-height: 1.6;
}

.greeting-info a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.greeting-info a:hover {
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .greeting-title {
    font-size: 2.25rem;
  }
  
  .greeting-question {
    font-size: 1.5rem; /* Noch größer auf Desktop */
  }
  
  .greeting-info {
    font-size: 1rem;
  }
}

/* Navigation-Zeilen — wie Harmonized-Liste: nur Divider, keine umschließende Kachel */
.homepage-navigation {
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.navigation-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.navigation-card {
  display: flex;
  align-items: center;
  gap: var(--harmonized-list-gap);
  padding: var(--harmonized-list-pad-y) var(--harmonized-list-pad-x);
  background: var(--background-color);
  border: none;
  border-bottom: 1px solid var(--harmonized-divider);
  border-radius: 0;
  text-decoration: none !important;
  color: var(--harmonized-content-primary);
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
  min-height: var(--harmonized-list-slim-min-height);
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.15);
  touch-action: manipulation;
  pointer-events: auto;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* Letzte Zeile behält unteren Divider (sauberer Listenabschluss) */

/* Navigation Card als Button - Gleiches Design wie Links */
button.navigation-card {
  width: 100%;
  text-align: left;
  font-family: inherit;
}

button.navigation-card:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

button.navigation-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.navigation-card:hover,
.navigation-card:focus {
  border-color: transparent;
  box-shadow: none;
  transform: none;
  background: var(--surface-color);
  text-decoration: none !important;
}

.navigation-card:active {
  transform: none;
  box-shadow: none;
  text-decoration: none !important;
}

.navigation-card-icon {
  width: var(--harmonized-leading-size);
  height: var(--harmonized-leading-size);
  min-width: var(--harmonized-leading-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--harmonized-surface-muted);
  border-radius: 9999px;
  color: var(--harmonized-content-primary);
  flex-shrink: 0;
  pointer-events: auto;
}

.navigation-card--tickets .navigation-card-icon svg {
  width: var(--harmonized-icon-inner);
  height: var(--harmonized-icon-inner);
}

/* Chat/Search: rundes Profil im gleichen Maß wie List-Leading (36px) */
.navigation-card--chat .navigation-card-icon,
.navigation-card--search .navigation-card-icon {
  box-sizing: border-box;
  width: var(--harmonized-leading-size);
  height: var(--harmonized-leading-size);
  min-width: var(--harmonized-leading-size);
  border-radius: 50%;
  overflow: hidden;
  background: var(--harmonized-surface-muted);
  position: relative;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Profilbild von Sophie */
.navigation-card--chat .navigation-card-icon img,
.navigation-card--search .navigation-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Container aus, behält Seitenverhältnis */
  object-position: center; /* Zentriert das Gesicht */
  display: block;
}

/* Fallback: SVG-Icon wenn Bild nicht geladen wird */
.navigation-card--chat .navigation-card-icon svg,
.navigation-card--search .navigation-card-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--harmonized-icon-inner);
  height: var(--harmonized-icon-inner);
  opacity: 0; /* Versteckt, wenn Bild geladen wird */
  transition: opacity 0.2s ease;
}

/* Zeige Icon wenn Bild nicht vorhanden oder fehlgeschlagen */
.navigation-card--chat .navigation-card-icon:not(:has(img)) svg,
.navigation-card--chat .navigation-card-icon img[style*="display: none"] + svg,
.navigation-card--search .navigation-card-icon:not(:has(img)) svg,
.navigation-card--search .navigation-card-icon img[style*="display: none"] + svg {
  opacity: 1; /* Zeige Icon wenn kein Bild */
}

.navigation-card--chat:hover .navigation-card-icon,
.navigation-card--search:hover .navigation-card-icon {
  border-color: var(--primary-color);
  box-shadow: none;
}

.navigation-card-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--harmonized-label-font-size);
  line-height: var(--harmonized-label-line-height);
  font-weight: 500;
  color: var(--harmonized-content-primary);
  text-decoration: none !important; /* Kein Underline für Action Buttons */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Linksbündig */
  text-align: left; /* Linksbündig */
  min-width: 0; /* Erlaubt Text-Overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tickets-Card: Text kann umbrechen, aber max 2 Zeilen auf Mobile */
.navigation-card--tickets .navigation-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat-Card: Text auf Mobile max 3 Zeilen */
.navigation-card--chat .navigation-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Zusätzlicher Text (z.B. "Login bald verfügbar") */
.navigation-card-text--secondary {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .navigation-card--tickets .navigation-card-text,
  .navigation-card--chat .navigation-card-text {
    display: block;
    -webkit-line-clamp: none;
    -webkit-box-orient: initial;
    overflow: visible;
  }
  
  .navigation-card-text + .navigation-card-text {
    -webkit-line-clamp: none;
  }
}

.navigation-card-arrow {
  flex-shrink: 0;
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--harmonized-content-primary);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.navigation-card-arrow svg {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
}

.navigation-card:hover .navigation-card-arrow,
.navigation-card:focus .navigation-card-arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

.navigation-card-badge {
  position: absolute;
  top: 6px;
  right: calc(var(--harmonized-list-pad-x) + var(--harmonized-chevron-size) + 4px);
  background: var(--error-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid var(--background-color);
}

.ticket-item {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  pointer-events: auto;
}

.ticket-item:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.ticket-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.ticket-item__content {
  flex: 1;
  min-width: 0;
}

.ticket-item__number {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.ticket-item__subject {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-item__status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-item__status--open {
  background: var(--mint-color);
  color: white;
}

.ticket-item__status--new {
  background: var(--primary-color);
  color: white;
}

.ticket-item__status--pending {
  background: var(--warning-color);
  color: white;
}

.ticket-item__status--hold {
  background: var(--text-muted);
  color: white;
}

.ticket-item__arrow {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ticket-item:hover .ticket-item__arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

.tickets-loading {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.tickets-empty {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.tickets-error {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--error-color);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.tickets-loading,
.topics-loading {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-muted);
  font-family: var(--font-body);
}

.tickets-link-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.2s ease;
}

.tickets-link-all:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}


/* Chat Datenschutzhinweis */
.chat-privacy-notice {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  margin: 0;
  flex-shrink: 0;
}

.chat-privacy-notice__text {
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px */
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

.chat-privacy-notice__link {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.chat-privacy-notice__link:hover,
.chat-privacy-notice__link:focus {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

.chat-privacy-notice__link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}


/* TOP Themen Liste */
.homepage-top-topics {
  margin-top: var(--spacing-lg); /* Einheitlicher Abstand zwischen Sektionen: 2rem (32px) */
  margin-bottom: var(--spacing-lg); /* Einheitlicher Abstand zwischen Sektionen: 2rem (32px) */
  padding-top: 0; /* Kein zusätzliches Padding */
}

/* Homepage Top-Themen: nur Zeilen + Divider (keine umschließende Box) */
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.topic-item {
  background: var(--background-color);
  border: none;
  border-bottom: 1px solid var(--harmonized-divider);
  border-radius: 0;
  padding: var(--harmonized-list-pad-y) var(--harmonized-list-pad-x);
  display: flex;
  align-items: center;
  gap: var(--harmonized-list-gap);
  transition: background 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: var(--harmonized-content-primary);
  min-height: var(--harmonized-list-slim-min-height);
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  pointer-events: auto;
}

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

.topic-item:hover {
  box-shadow: none;
  background: var(--surface-color);
  text-decoration: none !important;
}

.topic-item:active {
  transform: none;
  box-shadow: none;
  text-decoration: none !important;
}

.topic-item__icon {
  width: var(--harmonized-leading-size);
  height: var(--harmonized-leading-size);
  min-width: var(--harmonized-leading-size);
  background: var(--harmonized-surface-muted);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--harmonized-content-primary);
  flex-shrink: 0;
  pointer-events: auto;
}

.topic-item__icon svg {
  width: var(--harmonized-icon-inner);
  height: var(--harmonized-icon-inner);
}

.topic-item__title {
  flex: 1;
  font-family: var(--font-body) !important;
  font-size: var(--harmonized-label-font-size) !important;
  line-height: var(--harmonized-label-line-height) !important;
  font-weight: 500 !important;
  color: var(--harmonized-content-primary) !important;
  margin: 0 !important;
  padding: 0;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Innerer Text-Wrapper für -webkit-box Ellipsis-Funktionalität */
.topic-item__title-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* Erlaubt Zeilenumbruch */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  width: 100%;
  /* Erbt Schrift-Styles vom Parent */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.topic-item__arrow {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
  min-width: var(--harmonized-chevron-size);
  color: var(--harmonized-content-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.topic-item:hover .topic-item__arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

/* Feature Cards (Wissensdatenbank & Selbstlernzentrum) */
.homepage-feature-cards {
  margin-top: var(--spacing-lg); /* Einheitlicher Abstand zwischen Sektionen: 2rem (32px) */
  margin-bottom: var(--spacing-lg); /* Einheitlicher Abstand zwischen Sektionen: 2rem (32px) */
  padding-top: 0; /* Kein zusätzliches Padding */
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm); /* Mobile-First: 0.75rem (12px) - kompakter, professioneller Abstand */
  /* Maximale Breite für professionelle Skalierung */
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Tablet: Gleiche max-width wie Desktop für konsistentes Layout */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--spacing-base); /* Tablet: 1rem (16px) - etwas mehr Platz als Mobile */
  }
}

@media (min-width: 1024px) {
  /* Homepage Container: Gleiche max-width wie homepage-main (1200px) für konsistentes Layout */
  .homepage-logged-in {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Homepage Sektionen: Nutzen jetzt die max-width vom Parent (.homepage-logged-in) */
  .homepage-greeting {
    max-width: 100%;
  }

  .homepage-navigation {
    max-width: 100%;
  }

  .homepage-top-topics {
    max-width: 100%;
  }

  .homepage-feature-cards {
    max-width: 100%;
  }

  .feature-cards-grid {
    /* Desktop: Gleiche max-width wie andere 2-Karten-Grids (1000px) für konsistentes Layout */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Feature Cards: Optimale Breite für 2 Karten nebeneinander */
  .feature-card {
    max-width: 480px; /* Desktop: Konsistent mit Category Cards */
  }
}

.feature-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  min-height: 0; /* Wichtig für Flexbox mit aspect-ratio */
  /* Professionelle Größenbegrenzung */
  width: 100%;
  max-width: 100%;
  /* iOS Safari Touch-Optimierungen - KRITISCH für Homepage */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.15);
  touch-action: manipulation;
  pointer-events: auto;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.feature-card:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.feature-card:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--shadow-medium);
}

/* Feature Card Image Wrapper (Volle Card) */
.feature-card__image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  /* Schwarzer Hintergrund mit 10% Transparenz für transparente Bilder */
  background-color: rgba(0, 0, 0, 0.1);
  /* Glow-Effekte als Hintergrund-Ebenen - Asset-Referenzen wurden nach document_head.hbs verschoben */
  /* Die background-image, background-position, background-repeat und background-size Regeln */
  /* werden jetzt in document_head.hbs mit korrekter Template-Syntax definiert */
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 50% auto, 50% auto;
  z-index: 0; /* Hinter dem Content */
}

.feature-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  display: block; /* Verhindert inline-spacing */
  min-width: 100%; /* Sichert volle Breite */
  min-height: 100%; /* Sichert volle Höhe */
}

.feature-card:hover .feature-card__image {
  transform: scale(1.05);
}

/* Feature Card Content - Overlay über dem Bild (unten) */
.feature-card__content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem; /* Reduzierter Abstand zwischen Headline und Paragraph */
  /* Transparenter Hintergrund mit Blur-Effekt als Overlay */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  min-height: auto;
}

.feature-card__title {
  font-family: var(--font-heading), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall für alle Karten-Titel */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  font-style: normal;
  margin: 0;
  color: #FFFFFF !important;
  align-self: stretch;
}

.feature-card__description {
  font-family: 'Inter', var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem; /* 14px als rem - entspricht Browser-Default für kleinere Texte */
  font-weight: 500;
  font-style: normal;
  line-height: 1.5; /* Browser-Default line-height (16px/14px ≈ 1.14, aber 1.5 ist Standard) */
  color: #FFFFFF !important;
  margin: 0;
  margin-top: 0.25rem; /* Reduzierter Abstand zwischen Headline und Paragraph */
  align-self: stretch;
  opacity: 0.9;
}

/* ========================================
   ARTIKEL-SEITE - Modernes Layout
   1KOMMA5° Brand Design
   ======================================== */

/* ========================================
   BREADCRUMBS - Einheitliches Design
   1KOMMA5° Brand Design
   ======================================== */

/* Breadcrumbs Container - Einheitlich für alle Seiten (Mobile-First) */
.article-breadcrumbs-modern,
.request-breadcrumbs,
.search-breadcrumbs,
.sub-nav {
  padding: var(--spacing-base); /* Mobile: 16px (DesignRules) */
  max-width: 100%; /* Mobile: Volle Breite */
  margin: 0 auto;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .article-breadcrumbs-modern,
  .request-breadcrumbs,
  .search-breadcrumbs,
  .sub-nav {
    max-width: var(--content-grid-max-width-desktop); /* Desktop: 1000px - konsistent mit #main-content */
    padding: var(--spacing-base) 0; /* Desktop: Nur vertikales Padding */
  }
}

/* Breadcrumbs: Einheitlich zentriert auf allen Seiten */
.sub-nav .breadcrumbs,
.article-breadcrumbs-modern .breadcrumbs,
.search-breadcrumbs .breadcrumbs,
.request-breadcrumbs .breadcrumbs {
  justify-content: center; /* Zentriert auf allen Seiten */
}

/* Breadcrumbs Container: Einheitlich zentriert (nur wo noch Breadcrumbs) */
.article-breadcrumbs-modern,
.search-breadcrumbs,
.request-breadcrumbs {
  text-align: center;
}
/* Sub-Nav mit Back-Button: einheitlich links */
.sub-nav:has(.page-back-nav) {
  text-align: left;
  justify-content: flex-start;
}

/* Breadcrumbs Liste - Einheitliches Styling */
.breadcrumbs,
.breadcrumbs-modern {
  font-family: var(--font-body); /* Inter - DesignRules */
  font-size: 0.875rem; /* 14px - Label (DesignRules) */
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs); /* 8pt Grid: 0.25rem = 4px */
}

.breadcrumbs li,
.breadcrumbs-modern li {
  display: flex;
  align-items: center;
}

/* Separator zwischen Breadcrumb-Items */
.breadcrumbs li + li::before {
  content: '>';
  margin: 0 var(--spacing-xs); /* 8pt Grid: 0.25rem = 4px */
  color: var(--text-muted);
  font-weight: 400;
}

.breadcrumbs-modern li:not(:last-child)::after {
  content: '>';
  margin: 0 var(--spacing-xs); /* 8pt Grid: 0.25rem = 4px */
  color: var(--text-muted);
  font-weight: 400;
}

/* Verhindere doppelte Separator - wenn beide Regeln greifen */
.breadcrumbs li + li::after {
  display: none;
}

/* Breadcrumb Links - Einheitlich */
.breadcrumbs a,
.breadcrumbs-modern a {
  color: var(--primary-color); /* Aubergine - DesignRules */
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover,
.breadcrumbs-modern a:hover {
  color: var(--primary-dark); /* Darker Purple - DesignRules */
  text-decoration: underline;
}

.breadcrumbs a:focus,
.breadcrumbs-modern a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Haus-Icon für Home/1Komma5° Breadcrumb - Einheitlich für alle */
.breadcrumbs li:first-child a.breadcrumb-home-icon,
.breadcrumbs-modern li:first-child a.breadcrumb-home-icon,
.breadcrumbs li:first-child a[data-icon-replaced="true"],
.breadcrumbs-modern li:first-child a[data-icon-replaced="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; /* 8pt Grid: 2 * 8px = 16px */
  height: 16px; /* 8pt Grid: 2 * 8px = 16px */
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  overflow: visible;
  position: relative;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
}

/* Haus-Icon SVG - Einheitlich */
.breadcrumbs li:first-child a svg,
.breadcrumbs-modern li:first-child a svg {
  width: 16px; /* 8pt Grid: 2 * 8px = 16px */
  height: 16px; /* 8pt Grid: 2 * 8px = 16px */
  color: var(--primary-color); /* Aubergine - DesignRules */
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: color 0.2s ease;
}

.breadcrumbs li:first-child a:hover svg,
.breadcrumbs-modern li:first-child a:hover svg {
  color: var(--primary-dark); /* Darker Purple - DesignRules */
}

.breadcrumbs li:first-child a:focus svg,
.breadcrumbs-modern li:first-child a:focus svg {
  color: var(--primary-dark);
}

/* Article Breadcrumbs - Spezifische Container-Anpassung */
.article-breadcrumbs-modern {
  padding: var(--spacing-base); /* 8pt Grid: 2 * 8px = 16px */
}

/* Article Back-Button (ersetzt Breadcrumbs auf Artikelseite) – einheitlich links */
.article-back-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: var(--spacing-base);
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .article-back-nav {
    max-width: var(--content-grid-max-width-desktop);
    padding: var(--spacing-base) 0;
  }
}
/* Page Back-Button (Kategorie/Sektion) + Article Back-Button – gemeinsames Styling, einheitlich links */
.page-back-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.page-back-button,
.article-back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.page-back-button:hover,
.article-back-button:hover {
  color: var(--primary-dark);
  text-decoration: none;
  opacity: 0.9;
}
.page-back-button:focus,
.article-back-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}
.page-back-button svg,
.article-back-button svg {
  flex-shrink: 0;
  color: currentColor;
}

/* Article Container - Modern */
.article-container-modern {
  max-width: 1200px; /* Mobile-First: Max-Width für größere Screens */
  margin: 0 auto;
  padding: var(--spacing-base); /* Mobile: 16px Margins (DesignRules) */
  box-sizing: border-box;
}

/* Mobile: Kompakteres Padding für kleine Bildschirme (375px) */
@media (max-width: 480px) {
  .article-container-modern {
    padding: var(--spacing-sm); /* 12px statt 16px für bessere Platznutzung */
  }
}

.article-modern {
  background: var(--background-color);
}

/* Article Header - Modern */
.article-header-modern {
  margin-bottom: 32px; /* 8pt Grid: 4 * 8px = 32px */
  padding-bottom: 24px; /* 8pt Grid: 3 * 8px = 24px */
  border-bottom: none; /* Cleanes Design - keine Border */
}

/* Mobile: Kompakterer Header für kleine Bildschirme */
@media (max-width: 480px) {
  .article-header-modern {
    margin-bottom: var(--spacing-md); /* 24px statt 32px */
    padding-bottom: var(--spacing-sm); /* 12px statt 24px */
  }
}

/* Article Badges - Kategorie & Sektion */
.article-badges-modern {
  display: none !important; /* Badges komplett ausblenden */
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px; /* 8pt Grid: 0.75 * 8px = 6px, 1.5 * 8px = 12px */
  background: var(--primary-color);
  color: white;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px; /* 8pt Grid */
  background: var(--mint-color);
  color: white;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title-modern {
  font-family: var(--font-heading);
  font-size: 1.75rem; /* 28px Mobile - Display/Heading Large */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 24px 0; /* 8pt Grid: 3 * 8px = 24px */
  position: relative;
  padding-right: 0; /* Platz für Icon falls nötig */
}

/* Mobile: Kompakterer Titel für kleine Bildschirme (375px) */
@media (max-width: 480px) {
  .article-title-modern {
    font-size: 1.5rem; /* 24px statt 28px */
    margin-bottom: var(--spacing-md); /* 24px statt 24px */
    line-height: 1.3; /* Etwas mehr Zeilenabstand für bessere Lesbarkeit */
  }
}

.article-internal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(92, 6, 140, 0.1);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--spacing-xs);
}

.article-internal-badge svg {
  width: 14px;
  height: 14px;
}

/* Article Quick Answer Box - Modern (prominenter als Kontext) */
.article-quick-answer-box {
  display: none !important; /* Permanently hidden */
  margin-bottom: var(--spacing-md); /* 8pt Grid: 3 * 8px = 24px */
  padding: var(--spacing-base); /* 8pt Grid: 2 * 8px = 16px */
  background: rgba(92, 6, 140, 0.08); /* Etwas stärkerer Purple-Hintergrund */
  border-left: 4px solid var(--primary-color); /* Dickere Border für Prominenz */
  border-radius: var(--border-radius);
  font-family: var(--font-body);
}

.article-quick-answer-content {
  color: var(--text-primary);
  font-size: 1rem; /* 16px - Paragraph Medium (DesignRules) */
  line-height: 1.6; /* 160% für Lesbarkeit (DesignRules: 1.5-1.8) */
  font-weight: var(--font-weight-regular); /* Inter Regular (DesignRules) */
}

.article-quick-answer-content p {
  margin: 0 0 var(--spacing-base) 0; /* 8pt Grid: 2 * 8px = 16px */
}

.article-quick-answer-content p:last-child {
  margin-bottom: 0;
}

.article-quick-answer-extracted {
  /* Container für extrahierte "Kurze Antwort" */
}

/* Versteckte "Kurze Antwort" im Body (für RAG-System, aber nicht sichtbar) */
.article-body-modern h2.article-section-kurze-antwort[style*="display: none"],
.article-body-modern h2.article-section-kurze-antwort + *[style*="display: none"] {
  /* Bleibt im DOM für RAG-System, aber visuell versteckt */
}

/* Article Context Box - Modern */
.article-context-box {
  display: none !important; /* Permanently hidden */
  margin-bottom: var(--spacing-md); /* 8pt Grid: 3 * 8px = 24px */
  padding: var(--spacing-base); /* 8pt Grid: 2 * 8px = 16px */
  background: rgba(92, 6, 140, 0.05); /* Subtiler Purple-Hintergrund */
  border-left: 3px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
}

.article-context-content {
  color: var(--text-primary);
  font-size: 1rem; /* 16px - Paragraph Medium (DesignRules) */
  line-height: 1.6; /* 160% für Lesbarkeit (DesignRules: 1.5-1.8) */
  font-weight: var(--font-weight-regular); /* Inter Regular (DesignRules) */
}

.article-context-content p {
  margin: 0 0 var(--spacing-base) 0; /* 8pt Grid: 2 * 8px = 16px */
}

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

.article-context-extracted {
  /* Container für extrahierten Kontext */
}

/* Versteckter Kontext im Body (für RAG-System, aber nicht sichtbar) */
.article-body-modern h2.article-section-kontext[style*="display: none"],
.article-body-modern h2.article-section-kontext + *[style*="display: none"] {
  /* Bleibt im DOM für RAG-System, aber visuell versteckt */
}

/* Article Meta - Modern */
.article-meta-modern {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 8pt Grid: 2 * 8px = 16px */
  flex-wrap: wrap;
  position: relative;
}

.article-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px; /* 8pt Grid: 0.5 * 8px = 4px */
}

/* Mobile: Erstes Meta-Item (Datum) mit Subscribe in einer Zeile */
@media (max-width: 767px) {
  .article-meta-modern {
    gap: 12px; /* Reduziertes Gap auf Mobile */
    display: grid;
    grid-template-columns: 1fr auto; /* Datum links, Subscribe rechts */
    align-items: center;
  }
  
  /* Erstes Meta-Item (Datum) nimmt volle Breite, Subscribe rechts */
  .article-meta-item:first-child {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-sm);
  }
  
  /* Subscribe-Element in die erste Zeile, rechts ausgerichtet */
  .article-subscribe-modern {
    grid-column: 2;
    grid-row: 1;
    margin-left: var(--spacing-sm);
    flex-shrink: 0;
    align-self: center;
  }
  
  /* Weitere Meta-Items (Autor etc.) in neue Zeile */
  .article-meta-item:not(:first-child):not(.article-subscribe-modern) {
    grid-column: 1 / -1; /* Nimmt beide Spalten */
  }
  
  /* Icon-Größe auf Mobile reduzieren */
  .article-subscribe-wrapper .article-subscribe::before,
  .article-subscribe-wrapper .article-subscribe button::before,
  .article-subscribe-wrapper a::before,
  .article-subscribe-modern .article-subscribe::before,
  .article-subscribe-modern .article-subscribe button::before,
  .article-subscribe-modern a::before,
  .article-subscribe-link svg,
  .article-subscribe-wrapper .bookmark-icon,
  .article-subscribe-modern .bookmark-icon {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Text im Link auf Mobile verstecken, nur Icon anzeigen */
  .article-subscribe-link span {
    display: none;
  }
  
  .article-subscribe-link {
    padding: 0.25rem;
    gap: 0;
    min-width: 24px; /* Mindestbreite für Touch-Target */
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Spacing zwischen Datum und Icon */
  .article-meta-item:first-child .article-meta-value {
    margin-right: 0;
  }
}

.article-meta-label {
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px - Label */
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-meta-value {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px - Label */
  color: var(--text-secondary);
  line-height: 1.5;
}

.article-subscribe-modern {
  display: flex;
  align-items: center;
}

.article-subscribe-wrapper {
  display: flex;
  align-items: center;
}

/* Lesezeichen-Link für anonyme Nutzer (Coming Soon) */
.article-subscribe-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}

.article-subscribe-link:hover {
  background: rgba(92, 6, 140, 0.05);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.article-subscribe-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Zendesk Subscribe Helper Styling - Nur Icon, kein Button-Rahmen */
.article-subscribe-wrapper .article-subscribe,
.article-subscribe-wrapper .article-subscribe button,
.article-subscribe-wrapper a,
.article-subscribe-modern .article-subscribe,
.article-subscribe-modern .article-subscribe button,
.article-subscribe-modern a {
  font-family: var(--font-body) !important;
  font-size: 0 !important; /* Text verstecken */
  color: var(--primary-color) !important;
  text-decoration: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-shadow: none !important;
}

/* Verstecke Text komplett, aber nicht das Bookmark-Icon */
.article-subscribe-wrapper .article-subscribe *:not(.bookmark-icon),
.article-subscribe-wrapper .article-subscribe button *:not(.bookmark-icon),
.article-subscribe-wrapper a *:not(.bookmark-icon),
.article-subscribe-modern .article-subscribe *:not(.bookmark-icon),
.article-subscribe-modern .article-subscribe button *:not(.bookmark-icon),
.article-subscribe-modern a *:not(.bookmark-icon) {
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Bookmark Icon SVG Styling */
.article-subscribe-wrapper .bookmark-icon,
.article-subscribe-modern .bookmark-icon {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
}

/* Bookmark Icon - Unausgefüllt (Standard) */
.article-subscribe-wrapper .article-subscribe::before,
.article-subscribe-wrapper .article-subscribe button::before,
.article-subscribe-wrapper a::before,
.article-subscribe-modern .article-subscribe::before,
.article-subscribe-modern .article-subscribe button::before,
.article-subscribe-modern a::before {
  content: '' !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C068C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  transition: all 0.2s ease !important;
}

/* Bookmark Icon - Ausgefüllt (Aktiv/Subscribed) */
.article-subscribe-wrapper .article-subscribe.button-primary::before,
.article-subscribe-wrapper .article-subscribe button.button-primary::before,
.article-subscribe-wrapper a.button-primary::before,
.article-subscribe-modern .article-subscribe.button-primary::before,
.article-subscribe-modern .article-subscribe button.button-primary::before,
.article-subscribe-modern a.button-primary::before,
.article-subscribe-wrapper .article-subscribe[data-selected='true']::before,
.article-subscribe-wrapper .article-subscribe button[data-selected='true']::before,
.article-subscribe-wrapper a[data-selected='true']::before,
.article-subscribe-modern .article-subscribe[data-selected='true']::before,
.article-subscribe-modern .article-subscribe button[data-selected='true']::before,
.article-subscribe-modern a[data-selected='true']::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%235C068C' stroke='%235C068C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Hover-Effekt - Subtile Skalierung und Opacity */
.article-subscribe-wrapper .article-subscribe:hover,
.article-subscribe-wrapper .article-subscribe button:hover,
.article-subscribe-wrapper a:hover,
.article-subscribe-modern .article-subscribe:hover,
.article-subscribe-modern .article-subscribe button:hover,
.article-subscribe-modern a:hover {
  background: transparent !important;
  border: none !important;
  transform: scale(1.15) !important;
  opacity: 0.8 !important;
}

.article-subscribe-wrapper .article-subscribe:hover .bookmark-icon,
.article-subscribe-wrapper .article-subscribe button:hover .bookmark-icon,
.article-subscribe-wrapper a:hover .bookmark-icon,
.article-subscribe-modern .article-subscribe:hover .bookmark-icon,
.article-subscribe-modern .article-subscribe button:hover .bookmark-icon,
.article-subscribe-modern a:hover .bookmark-icon {
  transform: scale(1.1) !important;
  transition: transform 0.2s ease !important;
}

/* Aktiver Zustand - Hover */
.article-subscribe-wrapper .article-subscribe.button-primary:hover,
.article-subscribe-wrapper .article-subscribe button.button-primary:hover,
.article-subscribe-wrapper a.button-primary:hover,
.article-subscribe-modern .article-subscribe.button-primary:hover,
.article-subscribe-modern .article-subscribe button.button-primary:hover,
.article-subscribe-modern a.button-primary:hover {
  background: transparent !important;
  border: none !important;
  opacity: 0.9 !important;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.article-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.article-author-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  color: var(--text-muted);
}

.article-author-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.article-author-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-author-name a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Table of Contents - Modern */
.article-toc-container {
  margin-bottom: 32px; /* 8pt Grid: 4 * 8px = 32px */
  border: 1px solid var(--border-color);
  border-radius: 8px; /* 8pt Grid: 1 * 8px = 8px */
  background: var(--surface-color);
  overflow: hidden;
}

.article-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px; /* 8pt Grid: 2 * 8px = 16px */
  background: var(--surface-color);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
  min-height: 48px; /* 8pt Grid: 6 * 8px = 48px (Touch-Target) */
}

.article-toc-toggle:hover {
  background: var(--background-color);
}

.article-toc-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.article-toc-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.article-toc-chevron {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.article-toc-toggle[aria-expanded="true"] .article-toc-chevron {
  transform: rotate(180deg);
}

.article-toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--spacing-md);
  background: var(--background-color);
}

.article-toc-toggle[aria-expanded="true"] + .article-toc-content,
.article-toc-content[aria-expanded="true"] {
  max-height: 600px;
  padding: var(--spacing-md);
  overflow-y: auto;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc-list li {
  margin-bottom: var(--spacing-sm);
}

.article-toc-list li:last-child {
  margin-bottom: 0;
}

.article-toc-list a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.article-toc-list a:hover {
  background: var(--surface-color);
  color: var(--primary-color);
  padding-left: var(--spacing-md);
}

.article-toc-list a[href^="#"] {
  color: var(--text-secondary);
}

.article-toc-loading {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
}

/* Article Content - Modern */
.article-content-modern {
  margin-bottom: 32px; /* 8pt Grid: 4 * 8px = 32px */
}

.article-body-modern {
  font-family: var(--font-body) !important;
  font-size: 1rem !important; /* 16px - Paragraph Medium (DesignRules) */
  font-weight: var(--font-weight-regular) !important;
  line-height: 1.6 !important; /* 160% für Lesbarkeit (DesignRules: 1.5-1.8) */
  color: var(--text-primary) !important;
  text-align: left !important;
}

.article-body-modern p {
  margin-bottom: 16px !important; /* 8pt Grid: 2 * 8px = 16px */
  font-family: var(--font-body) !important;
  font-size: 1rem !important; /* 16px - Paragraph Medium */
  line-height: 1.6 !important;
  color: var(--text-primary) !important;
  text-align: left !important;
}

/* H1 im Body entfernen (wird bereits im Header angezeigt) */
.article-body-modern h1 {
  display: none !important;
}

/* H2 - Hauptabschnitte (DesignRules: Heading H2 = 1.75rem Mobile, 2rem Desktop, Barlow Bold) */
.article-body-modern h2 {
  font-family: var(--font-heading) !important;
  font-size: 1.75rem !important; /* 28px Mobile (DesignRules) */
  font-weight: var(--font-weight-bold) !important; /* 700 - Barlow Bold */
  line-height: 1.35 !important; /* 1.3–1.4 für Überschriften (DesignRules) */
  color: var(--text-primary) !important;
  text-align: left !important;
  margin-top: 32px !important; /* 8pt Grid: 4 * 8px = 32px */
  margin-bottom: 16px !important; /* 8pt Grid: 2 * 8px = 16px */
  padding-top: 0 !important;
  position: relative;
}

/* Spezielle H2 (Kurze Antwort, Kontext, Zusammenfassung) – werden per JS ausgeblendet, bis dahin etwas zurückhaltender */
.article-body-modern h2.article-section-kurze-antwort,
.article-body-modern h2.article-section-kontext,
.article-body-modern h2.article-section-zusammenfassung {
  font-size: 1.25rem !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--text-primary) !important;
  margin-top: 24px !important; /* 8pt Grid: 3 * 8px = 24px */
}

/* Erste Überschrift im Body: kein doppelter Abstand nach Intro-Text */
.article-body-modern h2:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.article-body-modern h2::before {
  display: none !important;
  content: none !important;
}

/* H3 - Unterabschnitte (DesignRules: 1.5rem Mobile, 1.75rem Desktop, Barlow Bold) */
.article-body-modern h3 {
  font-family: var(--font-heading) !important;
  font-size: 1.5rem !important; /* 24px Mobile (DesignRules) */
  font-weight: var(--font-weight-bold) !important;
  line-height: 1.35 !important;
  color: var(--text-primary) !important;
  text-align: left !important;
  margin-top: 24px !important; /* 8pt Grid: 3 * 8px = 24px */
  margin-bottom: 12px !important; /* 8pt Grid: 1.5 * 8px = 12px */
}

/* H4 - Unter-Unterabschnitte (8pt Grid, Barlow Bold) */
.article-body-modern h4 {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important; /* 20px Mobile */
  font-weight: var(--font-weight-bold) !important;
  line-height: 1.35 !important;
  color: var(--text-primary) !important;
  text-align: left !important;
  margin-top: 24px !important; /* 8pt Grid: 3 * 8px = 24px */
  margin-bottom: 8px !important; /* 8pt Grid: 1 * 8px = 8px */
}

/* Listen - Aufzählungspunkte & Nummerierung (überschreibt globales ul/ol reset) */
.article-body-modern ul {
  list-style-type: disc;
  list-style-position: outside;
  margin: 16px 0; /* 8pt Grid: 2 * 8px = 16px */
  padding-left: 24px; /* 8pt Grid: 3 * 8px = 24px */
}

.article-body-modern ol {
  list-style-type: decimal;
  list-style-position: outside;
  margin: 16px 0;
  padding-left: 24px;
}

/* Verschachtelte Listen */
.article-body-modern ul ul,
.article-body-modern ol ul {
  list-style-type: circle;
  margin: 8px 0 8px 0;
}

.article-body-modern ol ol,
.article-body-modern ul ol {
  list-style-type: decimal;
  margin: 8px 0 8px 0;
}

[dir="rtl"] .article-body-modern ul,
[dir="rtl"] .article-body-modern ol {
  padding-right: 24px;
  padding-left: 0;
}

.article-body-modern li {
  margin-bottom: 8px; /* 8pt Grid: 1 * 8px = 8px */
  line-height: 1.6; /* Konsistent mit Paragraph */
}

.article-body-modern li:last-child {
  margin-bottom: 0;
}

/* Links - Purple, underlined (DesignRules) */
.article-body-modern a {
  color: var(--primary-color) !important; /* #5C068C */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-body-modern a:hover {
  color: var(--primary-dark) !important; /* #4C1D95 */
}

/* Bilder - Responsive, Lazy Loading */
.article-body-modern img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* 8pt Grid: 1 * 8px = 8px */
  margin: 24px 0; /* 8pt Grid: 3 * 8px = 24px */
  display: block;
}

.article-body-modern blockquote {
  font-family: var(--font-body) !important;
  line-height: var(--line-height-quote) !important; /* 140% für Zitate - Brand Guidelines */
  font-style: italic;
  color: var(--text-graphite) !important;
  text-align: left !important;
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.article-body-modern code {
  background: var(--surface-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-body-modern pre {
  background: var(--surface-color);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: var(--spacing-md) 0;
}

.article-body-modern pre code {
  background: transparent;
  padding: 0;
}

/* Article Tags - Modern */
.article-tags-modern {
  margin-top: 32px; /* 8pt Grid: 4 * 8px = 32px */
  padding-top: 24px; /* 8pt Grid: 3 * 8px = 24px */
  border-top: none; /* Cleanes Design - keine Trennlinie */
}

.article-tags-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.article-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-tag-item {
  margin: 0;
}

.article-tag-link {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--surface-color);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}

.article-tag-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Article Attachments - Modern */
.article-attachments-modern {
  margin-top: 32px; /* 8pt Grid: 4 * 8px = 32px */
  padding-top: 24px; /* 8pt Grid: 3 * 8px = 24px */
  border-top: none; /* Cleanes Design - keine Trennlinie */
}

.article-attachments-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.article-attachments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.article-attachment-item {
  margin: 0;
}

.article-attachment-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  min-height: 60px;
  /* iOS Safari Touch-Optimierungen */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}

.article-attachment-link:hover {
  background: var(--background-color);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
  transform: translateX(4px);
}

.article-attachment-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  width: 24px;
  height: 24px;
}

.article-attachment-name {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

.article-attachment-size {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Article Footer - Modern */
.article-footer-modern {
  margin-top: 32px; /* 8pt Grid: 4 * 8px = 32px */
  padding-top: 24px; /* 8pt Grid: 3 * 8px = 24px */
  border-top: none; /* Cleanes Design - keine Trennlinie */
}

.article-votes-modern {
  border: none;
  padding: 24px 0; /* 8pt Grid: 3 * 8px = 24px */
  text-align: center;
  margin: 0;
}

.article-more-questions-modern {
  margin-top: 24px; /* 8pt Grid: 3 * 8px = 24px */
  text-align: center;
}

/* Related Articles - Modern */
.article-relatives-modern {
  margin-top: 32px; /* 8pt Grid: 4 * 8px = 32px */
  padding-top: 24px; /* 8pt Grid: 3 * 8px = 24px */
  border-top: none; /* Cleanes Design - keine Trennlinie */
}

.related-articles-section {
  margin-bottom: 32px; /* 8pt Grid: 4 * 8px = 32px */
}

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

.related-articles-title {
  font-family: var(--font-heading);
  font-size: 1.5rem; /* 24px Mobile - Heading Medium */
  font-weight: 600;
  margin-bottom: 16px; /* 8pt Grid: 2 * 8px = 16px */
  margin-top: 0;
  color: var(--text-primary);
  width: 100%;
  display: block;
}

/* Recent Articles Title - Versteckt, da wir eigene Überschrift haben */
.recent-articles-title {
  display: none !important;
}

/* Related Articles & Recent Articles - Horizontal Scroll Layout */
.related-articles-section ul,
.recent-articles-section ul,
.related-articles-scroll-wrapper ul,
.related-articles,
.recent-articles {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md) !important; /* Gleicher Abstand wie Beliebte Beiträge (1.5rem = 24px) - !important um Überschreibungen zu verhindern */
  scroll-snap-type: x proximity; /* Snap-Scrolling für bessere UX */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling auf iOS */
  padding-bottom: var(--spacing-sm); /* Gleicher vertikaler Abstand wie Beliebte Beiträge */
  padding-top: 0;
  margin: 0;
  list-style: none;
  /* Verstecke Scrollbar, aber erlaube Scrolling */
  scrollbar-width: none; /* Firefox - Verstecke komplett */
  -ms-overflow-style: none; /* IE/Edge */
  /* Sicherstellen, dass Karten vollständig sichtbar sind */
  align-items: stretch;
}

/* Related Articles Scroll Buttons (wie Beliebte Beiträge) */
.related-articles-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.2);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex; /* Standard: sichtbar, wird per JavaScript versteckt */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.related-articles-scroll-btn:hover {
  background: rgba(10, 10, 10, 0.3);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.related-articles-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.related-articles-scroll-btn--left {
  left: 0;
}

.related-articles-scroll-btn--right {
  right: 0;
}

.related-articles-scroll-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Verstecke Scroll-Buttons auf sehr kleinen Bildschirmen */
@media (max-width: 480px) {
  .related-articles-scroll-btn {
    display: none;
  }
  
  /* Mobile: Kompaktere Related Articles Section */
  .related-articles-section {
    margin-bottom: var(--spacing-lg); /* 32px statt 40px */
  }
  
  .related-articles-title {
    font-size: 1.25rem; /* 20px statt 24px */
    margin-bottom: var(--spacing-sm); /* 12px statt 16px */
  }
  
  .article-relatives-modern {
    margin-top: var(--spacing-lg); /* 32px statt 32px */
    padding-top: var(--spacing-md); /* 24px statt 24px */
  }
}

/* Related Articles & Recent Articles - Section Layout */
.related-articles-section,
.recent-articles-section {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-xl);
}

/* Related Articles Container (wie Beliebte Beiträge) */
.related-articles-container {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

/* Related Articles Scroll Wrapper */
.related-articles-scroll-wrapper {
  flex: 1;
  overflow: visible; /* Sichtbar, damit Karten nicht abgeschnitten werden */
  position: relative;
  width: 100%;
  padding: 0 60px; /* Platz für Scroll-Buttons */
  /* Sicherstellen, dass Karten nicht abgeschnitten werden */
  min-height: 180px;
}

/* Mobile: Entferne Padding für Scroll-Buttons (werden versteckt) */
@media (max-width: 480px) {
  .related-articles-scroll-wrapper {
    padding: 0; /* Kein Padding auf mobilen Geräten - Karten beginnen am linken Rand */
  }
  
  /* Erster Karte: Kleiner Abstand vom linken Rand für bessere UX */
  .related-articles-scroll-wrapper ul {
    padding-left: var(--spacing-base); /* 16px Abstand vom linken Rand */
    padding-right: var(--spacing-base); /* 16px Abstand vom rechten Rand */
  }
}

.related-articles-scroll-wrapper ul {
  overflow-x: auto;
  overflow-y: hidden;
  /* Sicherstellen, dass Karten vollständig sichtbar sind */
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: var(--spacing-sm); /* Gleicher vertikaler Abstand wie Beliebte Beiträge */
  /* Snap-Scrolling für bessere UX */
  scroll-snap-type: x proximity;
}

.related-articles-scroll-wrapper ul li {
  scroll-snap-align: start;
}

/* Related Articles & Recent Articles - List Items */
/* WICHTIG: Feste Breiten für gap-Funktionalität - flex: 0 0 auto verursacht Überlappungen */
/* Konsistent mit frequent-problem-card: 400px */
.related-articles-section ul li,
.recent-articles-section ul li,
.related-articles li,
.recent-articles li {
  display: block;
  flex: 0 0 400px !important; /* FESTE BREITE: 400px für gap-Funktionalität (konsistent mit frequent-problem-card) */
  width: 400px !important;
  min-width: 400px !important;
  max-width: 400px !important;
  margin: 0 !important; /* Keine Margins die gap überschreiben */
  padding: 0 !important; /* Keine Padding */
  list-style: none !important;
  /* Verhindere Text-Wrapping in Karten */
  word-break: break-word;
  overflow-wrap: break-word;
  /* Gleiche Höhe wie Karte */
  height: auto;
  align-self: stretch;
  /* Verhindere, dass List Items als Inline-Elemente gerendert werden */
  float: none !important;
  clear: none !important;
  scroll-snap-align: start;
}

/* Mobile: Kleinere Karten für bessere Nutzung des Platzes (375px Bildschirm) */
@media (max-width: 480px) {
  .related-articles-section ul li,
  .recent-articles-section ul li,
  .related-articles li,
  .recent-articles li {
    flex: 0 0 320px !important; /* Mobile: 320px statt 400px für bessere Nutzung des Platzes */
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
  
  .related-articles-section ul li a,
  .recent-articles-section ul li a,
  .related-articles a,
  .recent-articles a {
    width: 320px !important; /* Mobile: 320px statt 400px */
    min-width: 320px !important;
    max-width: 320px !important;
    height: 140px; /* Mobile: Kompaktere Höhe */
    min-height: 140px;
  }
  
  /* Kompakteres Padding in den Karten auf mobilen Geräten */
  .related-articles-section ul li a .article-card-content,
  .recent-articles-section ul li a .article-card-content,
  .related-articles a .article-card-content,
  .recent-articles a .article-card-content {
    padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  }
  
  .article-card-title {
    font-size: 0.9375rem; /* 15px statt 16px auf mobilen Geräten */
  }
}

/* Related Articles & Recent Articles - Links (Karten) - Dark Mode kompatibel */
/* WICHTIG: width: 100% nutzt volle Breite des li-Elements (280px) */
.related-articles-section ul li a,
.recent-articles-section ul li a,
.related-articles a,
.recent-articles a {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 0;
  margin: 0 !important; /* Keine Margins die gap überschreiben */
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: row;
  position: relative;
  flex-shrink: 0;
  width: 100% !important; /* Nutzt volle Breite des li (400px) */
  min-width: 100% !important;
  max-width: 100% !important;
  height: 160px;
  min-height: 160px;
  overflow: hidden;
  box-sizing: border-box;
  /* Touch-optimiert */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Artikel-Karten Bild (Linke 20%) - Wird per JavaScript hinzugefügt */
/* Bilder aus Article Cards entfernt (Design Feedback) */
.related-articles-section ul li a .article-card-image,
.recent-articles-section ul li a .article-card-image,
.related-articles a .article-card-image,
.recent-articles a .article-card-image {
  display: none !important; /* Bilder entfernt */
}

/* Artikel-Karten Content (100%) - Dark Mode kompatibel */
/* Professionelles Design: Vertikal zentriert wie frequent-problem-card */
.related-articles-section ul li a .article-card-content,
.recent-articles-section ul li a .article-card-content,
.related-articles a .article-card-content,
.recent-articles a .article-card-content {
  width: 100%;
  min-width: 100%;
  height: 100%; /* ✅ Volle Höhe für vertikale Zentrierung */
  min-height: 100%; /* ✅ Volle Höhe für vertikale Zentrierung */
  padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ Vertikal zentriert - professionell wie frequent-problem-card */
  align-items: flex-start; /* ✅ Text linksbündig, aber vertikal zentriert */
  gap: var(--spacing-xs);
  overflow: hidden;
  box-sizing: border-box;
}

.related-articles-section ul li a:hover,
.recent-articles-section ul li a:hover,
.related-articles a:hover,
.recent-articles a:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}


.related-articles-section ul li a:active,
.recent-articles-section ul li a:active,
.related-articles a:active,
.recent-articles a:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Text in Karten - headline-xsmall (20px, 28px line-height, bold) */
.related-articles-section ul li a .article-card-title,
.recent-articles-section ul li a .article-card-title,
.related-articles a .article-card-title,
.recent-articles a .article-card-title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

/* Span wrapper für multi-line ellipsis (ähnlich wie frequent-problem-card__title-text) */
.article-card-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Maximal 3 Zeilen - Professionelle Begrenzung */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Erforderlich für -webkit-line-clamp */
  text-overflow: ellipsis; /* Ellipsis nach max. Zeilen */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  width: 100%;
}

/* Responsive: Tablet - Related/Recent Articles Karten */
@media (min-width: 768px) {
  .related-articles-section ul li,
  .recent-articles-section ul li,
  .related-articles li,
  .recent-articles li {
    flex: 0 0 400px !important;
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
  }
  
  .related-articles-section ul li a,
  .recent-articles-section ul li a,
  .related-articles a,
  .recent-articles a {
    width: 400px; /* Konsistent mit frequent-problem-card */
    min-width: 400px;
    max-width: 400px;
    height: 180px;
    min-height: 180px;
  }

  .article-container-modern {
    padding: 24px; /* 8pt Grid: 3 * 8px = 24px */
  }

  .article-title-modern {
    font-size: 2rem; /* 32px Tablet - Display/Heading Extra Large */
  }

  .article-meta-modern {
    flex-direction: row;
    align-items: center;
    gap: 24px; /* 8pt Grid: 3 * 8px = 24px */
  }

  .article-body-modern {
    font-size: 1.125rem !important; /* 18px Tablet - Paragraph Large (DesignRules) */
    line-height: 1.6 !important;
  }

  .article-body-modern h2 {
    font-size: 1.75rem !important; /* 28px Tablet (DesignRules) */
  }

  .article-body-modern h3 {
    font-size: 1.5rem !important; /* 24px Tablet (DesignRules) */
  }

  .article-body-modern h4 {
    font-size: 1.375rem !important; /* 22px Tablet */
  }
}

/* Responsive: Desktop - Related/Recent Articles Karten */
@media (min-width: 1024px) {
  .related-articles-section ul li,
  .recent-articles-section ul li,
  .related-articles li,
  .recent-articles li {
    flex: 0 0 400px !important;
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
  }
  
  .related-articles-section ul li a,
  .recent-articles-section ul li a,
  .related-articles a,
  .recent-articles a {
    width: 400px; /* Konsistent mit frequent-problem-card */
    min-width: 400px;
    max-width: 400px;
    height: 220px; /* Konsistent mit frequent-problem-card */
    min-height: 220px;
  }

  .article-container-modern {
    max-width: 900px;
    padding: 32px 24px; /* 8pt Grid: 4 * 8px = 32px, 3 * 8px = 24px */
  }

  .article-title-modern {
    font-size: 2.5rem; /* 40px Desktop - Display */
  }

  .article-body-modern {
    font-size: 1.125rem !important; /* 18px Desktop - Paragraph Large (DesignRules) */
    line-height: 1.7 !important; /* 170% für bessere Lesbarkeit */
  }

  .article-body-modern h2 {
    font-size: 2rem !important; /* 32px Desktop (DesignRules H2) */
  }

  .article-body-modern h3 {
    font-size: 1.75rem !important; /* 28px Desktop (DesignRules H3) */
  }

  .article-body-modern h4 {
    font-size: 1.5rem !important; /* 24px Desktop */
  }
}

/* Legacy Support - Alte Klassen für Kompatibilität */
.article-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.article-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: var(--spacing-base);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-base);
}

.article-body a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--primary-dark);
}

/* Article Voting - Design-System */
.article-votes {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: var(--spacing-xl);
}

.article-votes-question {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-base);
}

.article-votes-controls {
  display: flex;
  gap: var(--spacing-base);
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.article-vote {
  min-width: 100px;
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.article-vote:hover {
  border-color: var(--primary-color);
  background: var(--surface-color);
}

.article-vote:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.article-vote:active {
  transform: scale(0.98);
}

.article-vote.button-primary,
.article-vote[data-selected="true"] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.article-vote.button-primary:hover,
.article-vote[data-selected="true"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.article-vote.button-primary:focus,
.article-vote[data-selected="true"]:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* Wichtig: Wenn button-primary entfernt wird, sofort normalen State zeigen */
.article-vote:not(.button-primary):not([data-selected="true"]) {
  background: var(--background-color);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.article-vote:not(.button-primary):not([data-selected="true"]):hover {
  border-color: var(--primary-color);
  background: var(--surface-color);
}

.article-votes-count {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-top: var(--spacing-xs);
}

/* Related Articles - Karten-Layout */
.article-relatives {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

/* Legacy Support - Falls alte Klassen noch verwendet werden */
.related-articles:not(.related-articles-section ul),
.recent-articles:not(.recent-articles-section ul) {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md) !important; /* Gleicher Abstand wie Beliebte Beiträge - !important für Konsistenz */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 var(--spacing-sm) 0; /* Gleicher vertikaler Abstand wie Beliebte Beiträge */
  margin: 0;
  list-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.related-articles:not(.related-articles-section ul)::-webkit-scrollbar,
.recent-articles:not(.recent-articles-section ul)::-webkit-scrollbar {
  display: none;
}

.related-articles:not(.related-articles-section ul) li,
.recent-articles:not(.recent-articles-section ul) li {
  flex: 0 0 auto;
  min-width: 400px; /* Konsistent mit frequent-problem-card */
  max-width: 400px;
  width: 400px;
  margin: 0;
  list-style: none;
}

.related-articles:not(.related-articles-section ul) a,
.recent-articles:not(.recent-articles-section ul) a {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: row;
  position: relative;
  flex-shrink: 0;
  width: 400px; /* Konsistent mit frequent-problem-card */
  min-width: 400px;
  max-width: 400px;
  height: 160px;
  min-height: 160px;
  overflow: hidden;
  box-sizing: border-box;
}

.related-articles:not(.related-articles-section ul) a .article-card-image,
.recent-articles:not(.recent-articles-section ul) a .article-card-image {
  width: 20%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background-image: url('{{asset "dark_horizontal_bg.jpg"}}');
}

.related-articles:not(.related-articles-section ul) a .article-card-content,
.recent-articles:not(.recent-articles-section ul) a .article-card-content {
  width: 100%; /* 100% da keine Bilder mehr angezeigt werden */
  height: 100%; /* ✅ Volle Höhe für vertikale Zentrierung */
  min-height: 100%; /* ✅ Volle Höhe für vertikale Zentrierung */
  padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ Vertikal zentriert - professionell wie frequent-problem-card */
  align-items: flex-start; /* ✅ Text linksbündig, aber vertikal zentriert */
  gap: var(--spacing-xs);
  overflow: hidden;
  box-sizing: border-box;
}

.related-articles:not(.related-articles-section ul) a .article-card-title,
.recent-articles:not(.recent-articles-section ul) a .article-card-title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.related-articles:not(.related-articles-section ul) a:hover,
.recent-articles:not(.recent-articles-section ul) a:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

@media (min-width: 768px) {
  .related-articles:not(.related-articles-section ul) a,
  .recent-articles:not(.recent-articles-section ul) a {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    height: 180px;
    min-height: 180px;
  }
}

@media (min-width: 1024px) {
  .related-articles:not(.related-articles-section ul) a,
  .recent-articles:not(.recent-articles-section ul) a {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    height: 200px;
    min-height: 200px;
  }
}

/* Article Meta - Mobile-Optimiert */
.article-meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-author {
  margin-bottom: var(--spacing-base);
}

/* Article Container - Mobile-First */
.article-container {
  padding: var(--spacing-base);
}

.article {
  max-width: 100%;
}

/* Responsive: Tablet */
@media (min-width: 768px) {
  .article-title {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
  }

  .article-container {
    padding: var(--spacing-lg);
  }

  /* Tablet: Größere Karten für horizontales Scrollen */
  /* li-Elemente: Feste Breite für gap-Funktionalität */
  .related-articles-section ul li,
  .recent-articles-section ul li,
  .related-articles li,
  .recent-articles li {
    flex: 0 0 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
  
  /* a-Elemente: Nutzen volle Breite des li */
  .related-articles-section ul li a,
  .recent-articles-section ul li a,
  .related-articles a,
  .recent-articles a {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 180px;
    min-height: 180px;
  }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
  .article-container,
  .article-container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg); /* Desktop: 48px vertikal, 32px horizontal */
  }

  .article-title {
    font-size: 2.5rem;
  }

  /* Desktop: Noch größere Karten für horizontales Scrollen */
  /* li-Elemente: Feste Breite für gap-Funktionalität */
  .related-articles-section ul li,
  .recent-articles-section ul li,
  .related-articles li,
  .recent-articles li {
    flex: 0 0 360px !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
  }
  
  /* a-Elemente: Nutzen volle Breite des li */
  .related-articles-section ul li a,
  .recent-articles-section ul li a,
  .related-articles a,
  .recent-articles a {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 200px;
    min-height: 200px;
  }
}

/* ========================================
   KATEGORIE-SEITE - Mobile-First Optimierung
   Phase 0: Design-System Integration
   ======================================== */

/* Beliebte Artikel Section */
.frequent-problems-section {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: none;
}

/* Homepage & Co.: Headline XSmall */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);
  line-height: var(--headline-xsmall-line-height);
  font-weight: var(--headline-xsmall-font-weight);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md) 0;
  position: relative;
}

/* Kategorie: gleiche Stufe wie „Beiträge durchsuchen“ — unter Hero, über Accordion */
.frequent-problems-title {
  font-family: var(--font-heading);
  font-size: var(--category-secondary-heading-size);
  line-height: var(--category-secondary-heading-line-height);
  font-weight: var(--headline-xsmall-font-weight);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md) 0;
  position: relative;
}

/* Entferne den ::before Strich für Beliebte Artikel Titel */
.frequent-problems-title::before {
  display: none !important;
  content: none !important;
}

.frequent-problems-container {
  position: relative;
  margin-top: var(--spacing-md);
}

.frequent-problems-grid {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--spacing-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--border-color);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Scroll-Buttons für Navigation */
.frequent-problems-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.2);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex; /* Standard: sichtbar, wird per JavaScript versteckt */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.frequent-problems-scroll-btn:hover {
  background: rgba(10, 10, 10, 0.3);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.frequent-problems-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.frequent-problems-scroll-btn--left {
  left: 0;
}

.frequent-problems-scroll-btn--right {
  right: 0;
}

.frequent-problems-scroll-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Verstecke Scroll-Buttons auf sehr kleinen Bildschirmen */
@media (max-width: 480px) {
  .frequent-problems-scroll-btn {
    display: none;
  }
}

/* Scrollbar Styling für Webkit-Browser */
.frequent-problems-grid::-webkit-scrollbar {
  height: 8px;
}

.frequent-problems-grid::-webkit-scrollbar-track {
  background: var(--surface-color);
  border-radius: 4px;
}

.frequent-problems-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.frequent-problems-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.frequent-problems-placeholder {
  padding: var(--spacing-lg);
  background: var(--surface-color);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.frequent-problems-placeholder .spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-sm) auto;
}

/* Beliebte Artikel Karten - Design-System-Hintergrund (Dark Mode kompatibel) */
.frequent-problem-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-decoration: none !important; /* Keine Unterstreichung - Template-weit */
  color: var(--text-primary); /* Konsistent mit Design System */
  display: flex;
  flex-direction: row;
  position: relative;
  flex-shrink: 0;
  /* Mobile-First: Responsive Breite - passt sich an Bildschirmbreite an */
  width: 100%;
  max-width: 365px; /* Maximale Breite auf größeren Screens */
  min-width: 0; /* Erlaubt Schrumpfen auf sehr kleinen Screens */
  /* Höhe an kleinere Typo (Accordion-Niveau) angepasst */
  height: 148px;
  min-height: 148px;
  overflow: hidden;
  box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
  /* iOS Safari Touch-Optimierungen - KRITISCH für Karten-Links */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.15);
  touch-action: manipulation; /* ✅ Verhindert 300ms Delay */
  pointer-events: auto; /* ✅ Sicherstellen dass Karten klickbar sind */
  cursor: pointer;
}

/* Frequent Problem Card Image (40px feste Breite - schmalerer sichtbarer Bereich nach DesignRules) */
/* Das Bild wird nicht skaliert, nur der sichtbare Streifen ist schmaler (8pt Grid: 5 * 8px = 40px) */
.frequent-problem-card__image {
  width: 40px; /* Reduziert auf 40px - 8pt Grid: 5 * 8px = 40px (DesignRules) */
  height: 100%;
  background-size: cover; /* Bild wird nicht skaliert, nur der sichtbare Bereich ist schmaler */
  background-position: center; /* Bild bleibt zentriert */
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* iOS Safari Fix: Overlay-Elemente dürfen Klicks nicht blockieren */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frequent-problem-card__icon {
  position: absolute;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frequent-problem-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

/* Frequent Problem Card Content (Flex: 1 1 325px - angepasst für schmalere Karte) */
/* Padding angepasst für bessere vertikale Zentrierung (Text war zu weit oben) */
.frequent-problem-card__content {
  flex: 1 1 325px; /* Angepasst von 345px auf 325px (Karte ist 20px schmaler: 365px statt 385px) */
  height: 100%; /* ✅ Nutze die volle Höhe der Karte */
  padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ Vertikal zentriert - professionell wie topic-item */
  align-items: flex-start; /* ✅ Text linksbündig (nicht horizontal zentriert) */
  gap: var(--spacing-xs);
  overflow: hidden;
  /* iOS Safari Fix: Overlay-Elemente dürfen Klicks nicht blockieren */
  pointer-events: none;
  /* Professionelle Text-Darstellung: Verhindere abgeschnittenen Text */
  box-sizing: border-box;
  min-height: 0;
  min-width: 0; /* Wichtig für Flexbox-Overflow */
}

.frequent-problem-card:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
  border-color: var(--primary-color);
  text-decoration: none !important; /* Keine Unterstreichung beim Hover */
}

.frequent-problem-card:focus,
.frequent-problem-card:active {
  text-decoration: none !important; /* Keine Unterstreichung bei Focus/Active */
}

/* Kategorie „Beliebte Beiträge“: gleiche Textstufe wie Accordion-Sektionen (nicht headline-xsmall) */
.frequent-problem-card__title {
  font-family: var(--font-body);
  font-size: var(--category-section-heading-size);
  line-height: var(--category-section-heading-line-height);
  font-weight: 600;
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left !important;
  min-width: 0;
  width: 100%;
}

/* Span wrapper für multi-line ellipsis (ähnlich wie topic-item__title-text) */
.frequent-problem-card__title-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--category-section-heading-line-height);
  width: 100%;
  text-align: left !important;
}

/* Responsive: Kleine Screens - Karten-Titel headline-xsmall (frequent-problem: eigene Skala oben) */
@media (max-width: 767px) {
  .article-card-title,
  .article-card__title,
  .quick-access-title,
  .stat-card-title,
  .quick-link-card__title,
  .feature-card__title,
  .category-card__title,
  .search-result-title-modern,
  .related-articles:not(.related-articles-section ul) a .article-card-title,
  .recent-articles:not(.recent-articles-section ul) a .article-card-title {
    font-size: var(--headline-xsmall-font-size) !important;   /* 20px */
    line-height: var(--headline-xsmall-line-height) !important; /* 28px */
  }
  
  .article-card-title-text {
    line-height: var(--headline-xsmall-line-height); /* 28px */
  }
}

/* Responsive: Sehr kleine Screens */
@media (max-width: 414px) {
  .article-card-title,
  .article-card__title,
  .quick-access-title,
  .stat-card-title,
  .quick-link-card__title,
  .feature-card__title,
  .category-card__title,
  .search-result-title-modern,
  .related-articles:not(.related-articles-section ul) a .article-card-title,
  .recent-articles:not(.recent-articles-section ul) a .article-card-title {
    font-size: var(--headline-xsmall-font-size) !important;   /* 20px */
    line-height: var(--headline-xsmall-line-height) !important; /* 28px */
  }
  
  .article-card-title-text {
    line-height: var(--headline-xsmall-line-height); /* 28px */
  }
}

.frequent-problem-card__meta {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px - Label (DesignRules: 0.875rem - 1rem) - Feste Größe statt clamp für bessere Kontrolle */
  color: var(--text-secondary);
  margin: 0;
  margin-top: var(--spacing-xs); /* ✅ Konsistenter Abstand zum Titel */
  transition: color 0.2s ease;
  font-weight: 500;
  /* Professionelle Darstellung: Meta-Info unter dem Titel */
  flex-shrink: 0; /* ✅ Kann nicht schrumpfen */
  line-height: 1.4;
}

.frequent-problem-card:hover .frequent-problem-card__meta {
  color: var(--primary-color);
}

/* Responsive: Sehr kleine Bildschirme - Karten passen sich an Viewport an */
/* WICHTIG: Verhindert, dass Karten breiter als der Bildschirm sind (z.B. 357px Bildschirm) */
@media (max-width: 400px) {
  .frequent-problem-card {
    width: calc(100vw - 2 * var(--spacing-base)); /* Passt sich an Viewport an, berücksichtigt Container-Padding (16px auf jeder Seite) */
    max-width: 365px; /* Maximale Breite bleibt 365px */
    min-width: 0; /* Erlaubt Schrumpfen auf sehr kleinen Screens */
    box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
  }
}

/* Responsive: Tablet */
@media (min-width: 768px) {
  .frequent-problem-card {
    width: 365px; /* Reduziert von 400px auf 365px (20px schmaler) */
    min-width: 365px;
    max-width: 365px;
    height: 168px;
    min-height: 168px;
  }
  
  /* Bild bleibt 40px auf Tablet (konsistent mit Mobile - 8pt Grid) */
  .frequent-problem-card__image {
    width: 40px;
  }
  
  /* Content Flex-Basis angepasst auf 325px (Karte ist 20px schmaler) */
  .frequent-problem-card__content {
    flex: 1 1 325px;
    padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
  .frequent-problem-card {
    width: 365px; /* Feste Breite auf Desktop */
    min-width: 365px;
    max-width: 365px;
    height: 200px;
    min-height: 200px;
  }
  
  /* Bild bleibt 40px auf Desktop (konsistent mit Mobile/Tablet - 8pt Grid: 5 * 8px = 40px) */
  .frequent-problem-card__image {
    width: 40px;
  }
  
  /* Content Flex-Basis angepasst auf 325px (Karte ist 20px schmaler) */
  .frequent-problem-card__content {
    flex: 1 1 325px;
    padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  }
}

/* Category Page - Mobile-First */
/* .category-container wird von konsolidierter Container-Regel übernommen (Zeile 780+) */

.category-content {
  max-width: 100%;
  color: var(--text-primary) !important;
}

/* Kategorie & Sektion (category-container): Mobile — volle Breite für Accordions/Listen (kein doppeltes 16+16px-Inset) */
@media (max-width: 767px) {
  .container:has(.category-container) {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .category-container {
    padding-left: 0;
    padding-right: 0;
  }

  .container:has(.category-container) > .sub-nav {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  .category-container .page-header,
  .category-container .frequent-problems-section {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  /* Suchbereich: nur Titel + Trefferhinweis einrücken; Suchzeile volle Breite wie Listen */
  .category-container .category-search-title,
  .category-container .category-search-results-info {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  /* Wissensdatenbank („Mit Sophie suchen“ + Raster): äußeres Padding reduzieren, Nav-Zeile bündig */
  .container:has(.knowledge-base-container) {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .knowledge-base-container .knowledge-base-main {
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--spacing-base);
    padding-bottom: var(--spacing-base);
  }

  .knowledge-base-main .page-header,
  .knowledge-base-main .categories-section {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  /* Homepage: volle Breite für Navigationszeilen & Themenliste (kein doppeltes Inset) */
  .container:has(.homepage-container) {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  #normal-home-page.homepage-container .homepage-main,
  main#main-content.homepage-main {
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--spacing-base);
    padding-bottom: var(--spacing-base);
  }

  .homepage-greeting,
  .homepage-top-topics .section-title,
  .homepage-feature-cards {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  /* Profil: volle Breite für Ticket- und Lesezeichen-Zeilen */
  .container:has(.profile-page-modern) {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }

  .profile-page-modern {
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--spacing-base);
    padding-bottom: var(--spacing-base);
  }

  .profile-header-figma,
  .profile-section-figma__header,
  .profile-section-figma > .profile-section-figma__title,
  .profile-logout-wrap {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  /* Profil-Listen: volle Zeilenbreite; Innenabstand wie Harmonized-Liste (nicht 32px) */
  .profile-container--figma .profile-tickets-list,
  .profile-container--figma .profile-bookmarks-list,
  .profile-container--figma .article-list-modern {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  .profile-container--figma .profile-ticket-row {
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: max(var(--harmonized-list-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--harmonized-list-pad-x), env(safe-area-inset-right, 0px));
  }

  .profile-container--figma .article-list-link-modern {
    padding-left: max(var(--harmonized-list-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--harmonized-list-pad-x), env(safe-area-inset-right, 0px));
  }
}

/* Überschreibe alle Text-Farben in der Kategorie-Seite */
.category-content,
.category-content p,
.category-content h1,
.category-content h2,
.category-content h3,
.category-content h4,
.category-content h5,
.category-content h6,
.category-content a:not(.btn):not(.see-all-articles) {
  color: var(--text-primary) !important;
}

.category-content .page-header-description,
.category-content .section-article-count,
.category-content .article-list-arrow {
  color: var(--text-secondary) !important;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  color: var(--text-primary) !important;
  margin-bottom: var(--spacing-base);
}

/* Kategorie: abgestufte Hero-/Beschreibung (Mobile kleiner, ab Tablet im Einklang mit headline-xsmall) */
.category-content .page-header h1 {
  font-size: var(--category-page-hero-size);
  line-height: var(--category-page-hero-line-height);
  font-weight: var(--headline-xsmall-font-weight);
}

.category-content .page-header-description {
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .category-content .page-header-description {
    font-size: 1rem;
    line-height: 1.6;
  }
}

.page-header-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

/* Category Search — gleiche flache Listen-Sprache: Trennlinie, kein „Such-Kasten“-Chrome */
.category-search-section {
  margin-top: var(--spacing-base);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-top: 1px solid var(--harmonized-divider);
  border-bottom: none;
}

.category-search-title {
  font-family: var(--font-heading);
  font-size: var(--category-secondary-heading-size);
  line-height: var(--category-secondary-heading-line-height);
  font-weight: var(--headline-xsmall-font-weight);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md) 0;
  position: relative;
}

/* Entferne den ::before Strich für Suchleiste Titel */
.category-search-title::before {
  display: none !important;
  content: none !important;
}

.category-search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.category-search-label {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-search-label:focus-within {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px var(--primary-color);
}

.category-search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.category-search-label:focus-within .category-search-icon {
  color: var(--primary-color);
}

.category-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0;
  min-width: 0;
}

.category-search-input::placeholder {
  color: var(--text-muted);
}

.category-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-search-clear:hover {
  background: var(--primary-color);
  color: white;
}

.category-search-clear:active {
  transform: scale(0.95);
}

.category-search-results-info {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.category-search-results-info #category-search-results-count {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 4px;
}

/* Visuelle Hervorhebung für Suchergebnisse */
.article-list-item-modern.article-search-match {
  background: rgba(92, 6, 140, 0.05);
  border-left: 3px solid var(--primary-color);
}

.article-list-item-modern.article-search-match .article-list-link-modern {
  padding-left: calc(var(--spacing-md) - 3px);
}

.article-list-item-modern.article-search-match:hover {
  background: rgba(92, 6, 140, 0.1);
  transform: translateX(2px);
}

/* Section mit Suchergebnissen (ohne Kartenrahmen — dezenter Akzent) */
.section-accordion.has-search-results .section-accordion-toggle {
  background: rgba(92, 6, 140, 0.04);
}

/* Section Accordion — Harmonized-Listenästhetik (ohne Flutter): keine Kartenränder, nur horizontale Divider */
.section-accordion {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--harmonized-divider);
  background: transparent;
  overflow: visible;
  box-shadow: none;
  width: 100% !important;
  display: block !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
}

/* Kategorie: Section-Tree immer eine Spalte, links ausgerichtet (Legacy-Tablet hatte row + wrap) */
.category-container #main-content.section-tree {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .category-container #main-content.section-tree {
    flex-direction: column;
  }
}

.category-container #main-content.section-tree > .section-accordion:first-of-type {
  border-top: 1px solid var(--harmonized-divider);
}

/* Aufgeklappt: lila Kontur (Highlight), eckig wie die Listenzeilen — keine abgerundete „Kachel“ */
.category-container #main-content.section-tree > .section-accordion:has(.section-accordion-toggle[aria-expanded="true"]) {
  border: 1px solid var(--primary-color);
  border-radius: 0;
  overflow: visible;
  background: var(--background-color);
  box-shadow: none;
  margin-bottom: var(--spacing-sm);
}

/* Leere Sektionen verstecken (durch Artikel-Filter) - Höhere Spezifität als Standard-Regel */
.section-tree .section-accordion[data-empty-section="true"],
.section-accordion[data-empty-section="true"][style*="display: none"],
.section-accordion[style*="display: none"][data-empty-section="true"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Überschreibe .section-tree Layout für Accordions */
.section-tree .section-accordion {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Leading Icon, padding 8×16, gap 12 — Zeilenhöhe wächst mit mehrzeiligem Titel */
.section-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--harmonized-list-gap);
  padding: 14px var(--harmonized-list-pad-x);
  background: var(--background-color);
  border: none !important;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  pointer-events: auto;
}

.section-accordion-leading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 2px;
}

.section-accordion-leading__circle {
  width: var(--harmonized-leading-size);
  height: var(--harmonized-leading-size);
  border-radius: 9999px;
  background: var(--harmonized-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--harmonized-content-primary);
}

.section-accordion-leading__circle svg {
  width: var(--harmonized-icon-inner);
  height: var(--harmonized-icon-inner);
  flex-shrink: 0;
  display: block;
}

.section-accordion-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.section-accordion-text-columns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
}

.section-accordion-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.section-accordion-col--start {
  align-items: flex-start;
  flex: 1 1 auto;
}

.section-accordion-col--end {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  flex: 0 0 auto;
  max-width: none;
  text-align: left;
  padding-top: 0;
}

/* Sektionstitel: eigene Stufe über Listen-14px; Zeilenumbruch statt Ellipsis */
.section-accordion .section-tree-title,
.section-accordion .section-accordion-label {
  font-family: var(--font-body);
  font-size: var(--category-section-heading-size);
  line-height: var(--category-section-heading-line-height);
  font-weight: 600;
  color: var(--harmonized-content-primary) !important;
  margin: 0;
  min-width: 0;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* paragraph-small — trailing Spalte */
.section-accordion-stat-num {
  font-family: var(--font-body);
  font-size: var(--harmonized-label-font-size);
  line-height: var(--harmonized-label-line-height);
  font-weight: 500;
  color: var(--harmonized-content-primary);
}

.section-accordion-stat-label {
  font-family: var(--font-body);
  font-size: var(--harmonized-paragraph-font-size);
  line-height: var(--harmonized-paragraph-line-height);
  font-weight: 400;
  letter-spacing: var(--harmonized-paragraph-letter-spacing);
  color: var(--harmonized-content-secondary);
}

.section-accordion-trailing {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  box-sizing: border-box;
}

.section-accordion-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  gap: 2px;
  min-height: 20px;
  background: var(--harmonized-tag-bg);
  border: 1px solid var(--harmonized-tag-border);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  color: var(--harmonized-tag-text);
}

/* Aufgeklappt: Trennlinie zwischen Kopfzeile und Liste */
.section-accordion-toggle[aria-expanded="true"] {
  background: var(--background-color) !important;
  border-bottom: 1px solid var(--harmonized-divider) !important;
}

/* Mit äußerem Rahmen: innere Linie dezenter (leicht Primary + Divider; zweite Zeile nutzt color-mix wenn verfügbar) */
.category-container #main-content.section-tree
  > .section-accordion:has(.section-accordion-toggle[aria-expanded="true"])
  .section-accordion-toggle[aria-expanded="true"] {
  border-bottom: 1px solid var(--harmonized-divider) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--harmonized-divider)) !important;
}

.section-accordion-toggle:hover {
  box-shadow: none;
  background: var(--surface-color);
  transform: none;
}

/* Fokus: inset box-shadow statt outline — outline folgt bei Buttons oft nicht border-radius (rechteckige Ecken) */
.section-accordion-toggle:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.section-accordion-chevron {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
  min-width: var(--harmonized-chevron-size);
  flex-shrink: 0;
  color: var(--harmonized-content-primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.section-accordion-toggle:hover .section-accordion-chevron {
  color: var(--primary-color);
}

.section-accordion-toggle[aria-expanded="true"] .section-accordion-chevron {
  transform: rotate(180deg);
}

.section-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  margin: 0;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  background: var(--background-color) !important;
  border-radius: 0;
}

.section-accordion-toggle[aria-expanded="true"] + .section-accordion-content,
.section-accordion-content[aria-expanded="true"] {
  max-height: 5000px;
  padding: 0;
  overflow: visible;
  border: none !important;
  border-bottom: none !important;
  border-top: none !important;
  background: var(--background-color) !important;
}

.section-empty {
  padding: var(--spacing-md);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin: 0;
  border: none;
}

/* Sektionsseite: Unterbereiche — nur Liste + horizontale Trenner */
.section-page-layout .section-list--modern {
  margin: var(--spacing-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.section-page-layout .section-list-item--modern {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--harmonized-divider);
}

.section-page-layout .section-list-item--modern:last-child {
  border-bottom: none;
}

/* Figma 5266:13666 — Slim + Chevron, Leading None: py8 px16, gap 12, label-small, chevron 24 */
.section-list-item-link-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--harmonized-list-gap);
  padding: var(--harmonized-list-pad-y) var(--harmonized-list-pad-x);
  min-height: var(--harmonized-list-slim-min-height);
  box-sizing: border-box;
  background: var(--background-color);
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--harmonized-content-primary) !important;
  font-family: var(--font-body);
  font-size: var(--harmonized-label-font-size);
  line-height: var(--harmonized-label-line-height);
  font-weight: 500;
  transition: background 0.2s ease;
}

.section-list-item-link-modern:hover,
.section-list-item-link-modern:focus {
  background: var(--surface-color);
  box-shadow: none;
}

.section-list-item-title-modern {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-list-item-arrow {
  flex-shrink: 0;
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--harmonized-content-primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.section-list-item-arrow svg {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
}

.section-list-item-link-modern:hover .section-list-item-arrow,
.section-list-item-link-modern:focus .section-list-item-arrow {
  color: var(--primary-color);
  transform: translateX(4px);
}

.section-page-article-list {
  margin-top: var(--spacing-base);
}

.section-page-main .page-header {
  margin-bottom: var(--spacing-md);
}

/* Harmonized List: nur Zeilen + Divider — keine umschließende Kachel (Figma-Listen) */
.article-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.article-list-item-modern {
  margin: 0;
  border-bottom: 1px solid var(--harmonized-divider);
}

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

.article-list-link-modern {
  display: flex;
  align-items: center;
  gap: var(--harmonized-list-gap);
  padding: var(--harmonized-list-pad-y) var(--harmonized-list-pad-x);
  background: var(--background-color);
  border: none;
  border-radius: 0;
  text-decoration: none !important;
  color: var(--harmonized-content-primary) !important;
  transition: background 0.2s ease;
  min-height: var(--harmonized-list-slim-min-height);
  position: relative;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
  pointer-events: auto;
  cursor: pointer;
}

.article-list-link-modern:hover {
  background: var(--surface-color);
  box-shadow: none;
  transform: none;
  text-decoration: none !important;
}

.article-list-link-modern:focus,
.article-list-link-modern:active {
  text-decoration: none !important;
}

.article-list-link-modern:active {
  transform: none;
}

/* Liste innerhalb Accordion: keine zusätzliche Optik (Basis ist schon flach) */
.section-accordion .article-list-modern {
  margin: 0;
}

/* Leading: 36px Kreis, Icon 20px (Figma Accordion/List) */
.article-list-icon {
  flex-shrink: 0;
  width: var(--harmonized-leading-size);
  height: var(--harmonized-leading-size);
  min-width: var(--harmonized-leading-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--harmonized-surface-muted);
  border-radius: 9999px;
  color: var(--harmonized-content-primary);
}

.article-list-icon svg {
  width: var(--harmonized-icon-inner);
  height: var(--harmonized-icon-inner);
  flex-shrink: 0;
}

.article-icon-star {
  color: var(--accent-color);
}

.article-icon-default {
  color: var(--text-secondary);
}

.article-promoted .article-list-icon {
  background: rgba(250, 101, 236, 0.12);
  color: var(--primary-color);
}

/* Article Content */
.article-list-content {
  flex: 1;
  min-width: 0;
}

/* Article List Title - Professionelle vertikale Zentrierung (wie Topic Items) */
/* label-small (Figma List) */
.article-list-title {
  flex: 1;
  font-family: var(--font-body) !important;
  font-size: var(--harmonized-label-font-size) !important;
  line-height: var(--harmonized-label-line-height) !important;
  font-weight: 500 !important;
  color: var(--harmonized-content-primary) !important;
  margin: 0 !important;
  padding: 0;
  min-width: 0;
  display: flex;
  align-items: center;
}

.article-list-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--harmonized-paragraph-line-height);
  width: 100%;
}

/* Responsive: Mobile - Minimale Textgröße beibehalten (wird von globaler Regel überschrieben) */
/* ENTFERNT: clamp() Regeln, die unter 15px fallen - werden durch globale Regel ersetzt */
/* Die globale Regel in Zeile 10300-10308 setzt bereits var(--card-title-min-size-mobile) = 15px */

.article-list-meta {
  margin: 0;
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.article-meta-badge {
  display: inline-block;
  padding: 2px var(--spacing-xs);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.article-meta-internal {
  background: rgba(92, 6, 140, 0.1);
  color: var(--primary-color);
}

.article-list-meta .article-meta-internal {
  background: var(--harmonized-tag-bg);
  border: 1px solid var(--harmonized-tag-border);
  color: var(--harmonized-tag-text);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}

/* Article Arrow (wie Top-Themen Arrow) */
.article-list-arrow {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
  min-width: var(--harmonized-chevron-size);
  flex-shrink: 0;
  color: var(--harmonized-content-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-list-arrow svg {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
}

.article-list-link-modern:hover .article-list-arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

/* „Alle … Artikel anzeigen“ — gleiche Sprache wie Listenzeilen: Divider, Label, Chevron */
.section-accordion .see-all-articles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--harmonized-list-gap);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px var(--harmonized-list-pad-x);
  min-height: 48px;
  background: var(--background-color);
  color: var(--harmonized-content-primary) !important;
  text-decoration: none !important;
  border: none;
  border-top: 1px solid var(--harmonized-divider);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--harmonized-label-font-size);
  font-weight: 500;
  line-height: var(--harmonized-label-line-height);
  text-align: left;
  white-space: normal;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.1);
  touch-action: manipulation;
}

.section-accordion .see-all-articles__label {
  flex: 1;
  min-width: 0;
}

.section-accordion .see-all-articles__trailing {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--harmonized-content-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-accordion .see-all-articles__trailing svg,
.section-accordion .see-all-articles__chevron {
  width: var(--harmonized-chevron-size);
  height: var(--harmonized-chevron-size);
  flex-shrink: 0;
  display: block;
}

.section-accordion .see-all-articles:hover {
  background: var(--surface-color);
  color: var(--harmonized-content-primary) !important;
  text-decoration: none !important;
  transform: none;
  box-shadow: none;
}

.section-accordion .see-all-articles:hover .see-all-articles__trailing {
  color: var(--primary-color);
  transform: translateX(4px);
}

.section-accordion .see-all-articles:focus {
  outline: none;
}

.section-accordion .see-all-articles:focus-visible {
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

.section-accordion .see-all-articles:active {
  background: var(--surface-color);
  color: var(--harmonized-content-primary) !important;
  text-decoration: none !important;
  transform: none;
  box-shadow: none;
}

/* Responsive: Tablet */
@media (min-width: 768px) {
  .category-container {
    padding: var(--spacing-lg);
  }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
  .category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

/* ========================================
   TICKETS-SEITE - Mobile-First Optimierung
   Phase 0: Design-System Integration
   ======================================== */

/* Requests Page - Mobile-First */
/* Container-Breite und Padding wie Homepage (.homepage-main) für einheitliches Layout */
.container.requests-page {
  max-width: var(--container-max-width-mobile); /* 100% */
  margin: 0 auto;
  padding: var(--container-padding-mobile); /* 16px */
  box-sizing: border-box;
}

/* Mobile: kein doppeltes horizontales Inset — Volllogik wie Profil/Homepage */
@media (max-width: 767px) {
  .container.requests-page {
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
    padding-top: var(--spacing-base);
    padding-bottom: var(--spacing-base);
  }

  .tickets-page-figma__title,
  .tickets-page-section__title {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  .tickets-page-figma .tickets-page-list {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }

  .tickets-page-figma .profile-ticket-row {
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: max(var(--harmonized-list-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--harmonized-list-pad-x), env(safe-area-inset-right, 0px));
    min-height: 48px;
  }

  /* Request-List Beta (Zendesk): Überschrift/Listenbereich einrücken */
  .container.requests-page .my-activities-header {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }

  .container.requests-page #main-content {
    padding-left: max(var(--spacing-base), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-base), env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 768px) {
  .container.requests-page {
    padding: var(--spacing-lg);
  }
}
@media (min-width: 1024px) {
  .container.requests-page {
    max-width: 1200px !important; /* Wie .homepage-main – einheitliche Breite mit Homepage */
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg); /* Wie Homepage: 48px vertikal, 32px horizontal */
  }
}

/* ========================================
   Tickets-Seite Mobile-First (Figma: My tickets)
   ======================================== */
.tickets-page-figma {
  padding-bottom: var(--spacing-xl);
}

.tickets-page-figma__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-lg);
}

/* Sektionen Offene / Geschlossene Tickets */
.tickets-page-section {
  margin-bottom: var(--spacing-xl);
}

.tickets-page-section__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md);
}

.tickets-page-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  overflow: visible;
  background: transparent;
}

/* Ticket-Zeilen (gleiche Komponente wie Profil / Harmonized-Liste) */
.tickets-page-figma .profile-ticket-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 14px var(--harmonized-list-pad-x);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--harmonized-divider);
  transition: background 0.2s;
  min-height: 48px;
  box-sizing: border-box;
}

.tickets-page-figma .profile-ticket-row:last-child {
  border-bottom: 1px solid var(--harmonized-divider);
}

.tickets-page-figma .profile-ticket-row:hover,
.tickets-page-figma .profile-ticket-row:focus {
  background: var(--surface-color);
}

.tickets-page-figma .profile-ticket-row__subject {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tickets-page-figma .profile-ticket-row__pill {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tickets-page-figma .profile-ticket-row__pill--open {
  background: rgba(92, 6, 140, 0.12);
  color: var(--primary-color);
}

.tickets-page-figma .profile-ticket-row__pill--closed {
  background: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.tickets-page-figma .profile-ticket-row__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}

.tickets-page-figma .tickets-page-list .loading-state,
.tickets-page-figma .tickets-page-list .empty-state,
.tickets-page-figma .tickets-page-list .error-state {
  padding: var(--spacing-lg);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  border: none;
  border-top: 1px solid var(--harmonized-divider);
  border-radius: 0;
  background: var(--background-color);
}

@media (min-width: 768px) {
  .tickets-page-figma__title {
    font-size: 2rem;
  }
}

/* Ticketübersicht: Such-/Status-Box (form#main-content) an Container-Breite anpassen */
/* Ohne diese Regel begrenzt #main-content die Toolbar auf 1000px, die Ticket-Zeilen nutzen 1200px */
.container.requests-page #main-content {
  max-width: 100% !important;
  width: 100%;
}

.my-activities-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.requests-table-toolbar {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border-radius: var(--border-radius);
}

.requests-search {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 3rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  min-height: 44px;
  transition: border-color 0.2s ease;
}

.requests-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 0.1);
}

/* Status Badges - Design-System */
.status-label-request {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-label-new,
.status-label-open {
  background: var(--info-color);
  color: white;
}

.status-label-pending {
  background: var(--warning-color);
  color: white;
}

.status-label-hold {
  background: var(--text-muted);
  color: white;
}

.status-label-solved,
.status-label-closed {
  background: var(--success-color);
  color: white;
}

/* Requests Table - Mobile-First */
.requests-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--spacing-lg);
}

.requests-table thead {
  display: none; /* Verstecke Header auf Mobile */
}

.requests-table tbody tr {
  display: block;
  margin-bottom: var(--spacing-base);
  padding: var(--spacing-md);
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.requests-table tbody tr:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.requests-table tbody tr.request-closed {
  opacity: 0.7;
}

.requests-table-info {
  margin-bottom: var(--spacing-sm);
}

.striped-list-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  margin-bottom: var(--spacing-xs);
  transition: color 0.2s ease;
}

.striped-list-title:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.requests-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.requests-table-status {
  margin-top: var(--spacing-xs);
}

/* No Requests Message */
.no-activities {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

/* Responsive: Tablet */
@media (min-width: 768px) {
  .my-activities-header h1 {
    font-size: 2rem;
  }

  .requests-table thead {
    display: table-header-group;
  }

  .requests-table tbody tr {
    display: table-row;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
  }

  .requests-table tbody tr:hover {
    background: var(--surface-color);
    transform: none;
    border: none;
  }

  .requests-table tbody td {
    display: table-cell;
    padding: var(--spacing-sm) var(--spacing-base);
    border-bottom: 1px solid var(--border-color);
  }

  .requests-table-meta {
    display: none;
  }
}

/* Responsive: Desktop */
@media (min-width: 1024px) {
  .my-activities-header h1 {
    font-size: 2.5rem;
  }

  .requests-table-toolbar {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
  }

  .requests-search {
    max-width: 400px;
  }
}

/* ========================================
   LEGAL LINKS - Subtil zwischen Content und Bottom-Nav
   AGB, Datenschutz, Impressum (Designer-Vorgabe: grüner Bereich)
   ======================================== */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-base);
  background: var(--background-color);
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px – subtil, aber lesbar */
  line-height: 1.4;
}

.legal-links__link {
  color: var(--primary-color);
  text-decoration: none;
  opacity: 0.82;
  padding: var(--spacing-xs) var(--spacing-xs);
  border-radius: var(--border-radius);
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  /* WCAG 2.1 AA: Min. 44px Touch-Target für Mobile */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.legal-links__link:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-underline-offset: 0.15em;
}

.legal-links__label {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .legal-links__label {
    white-space: normal;
    text-align: center;
    max-width: 9rem;
  }
}

.legal-links__link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.legal-links__link:focus:not(:focus-visible) {
  outline: none;
}

.legal-links__separator {
  color: var(--text-muted);
  opacity: 0.55;
  font-weight: 400;
  user-select: none;
}

/* Login-Seite: Legal Links ausblenden (wie Bottom-Nav) */
body.heartbeat-login-page .legal-links {
  display: none !important;
}

/* ========================================
   BOTTOM NAVIGATION - App-Design
   1KOMMA5° Brand Design
   ======================================== */

/* Bottom Navigation - App-Design */
.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--background-color);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
  /* iOS Safari Fix: Hardware-Beschleunigung für position: fixed */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* iOS Safari Fix: Verhindert, dass Navigation beim Scrollen mitwandert */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-between; /* Mehr Weißraum zwischen Elementen */
  align-items: center;
  max-width: 100%;
  width: 100%;
  height: 48px; /* Kompakt: nur Icons (Labels ausgeblendet) */
  padding: 0 var(--spacing-sm); /* Reduziertes Padding auf Mobile für mehr Platz */
  gap: 2px; /* Minimaler Abstand zwischen Elementen auf Mobile */
  /* iOS Safari Fix: Verhindert Scrollbarkeit */
  overflow: hidden;
  box-sizing: border-box;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0; /* Nur Icons, keine Labels */
  flex: 1;
  min-height: 44px; /* WCAG 2.0 AA: Min. 44px Touch-Target */
  min-width: 0; /* Erlaubt Schrumpfen für besseres Text-Fitting */
  max-width: 100%; /* Verhindert Überlauf */
  text-decoration: none;
  color: #6b7280; /* Grau für inaktive Items */
  transition: all 0.2s ease;
  position: relative;
  padding: var(--spacing-xs) 2px; /* Reduziertes horizontales Padding auf Mobile */
  /* iOS Safari Fix: Verhindert Scrollbarkeit */
  overflow: hidden;
  box-sizing: border-box;
  /* iOS Safari Touch-Optimierungen - KRITISCH für Navigation */
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.15); /* Aubergine mit 15% Opacity für besseres Feedback */
  touch-action: manipulation; /* Verhindert 300ms Delay auf iOS */
  cursor: pointer;
  /* Sicherstellen, dass Navigation auf iOS zuverlässig funktioniert */
  -webkit-user-select: none;
  user-select: none;
  /* Pointer-Events explizit aktivieren */
  pointer-events: auto;
}

/* Alle Items haben einheitliche Größen - Keine unterschiedlichen Klassen mehr */
.bottom-nav-item--primary,
.bottom-nav-item--secondary {
  flex: 1; /* Einheitliche Flex-Größe */
  opacity: 1; /* Einheitliche Opacity */
}

.bottom-nav-item--primary .bottom-nav-icon,
.bottom-nav-item--secondary .bottom-nav-icon,
.bottom-nav-item .bottom-nav-icon,
.bottom-nav-icon-wrapper .bottom-nav-icon {
  width: 24px !important; /* Wichtig: Einheitliche Icon-Größe für alle */
  height: 24px !important; /* Wichtig: Einheitliche Icon-Größe für alle */
}

.bottom-nav-item--primary .bottom-nav-label,
.bottom-nav-item--secondary .bottom-nav-label,
.bottom-nav-item .bottom-nav-label {
  font-size: var(--font-size-body); /* 16px - Browser-Default Body Text Größe gemäß Design-Regeln */
  font-weight: 500;
  line-height: 1.5; /* Browser-Default line-height */
  letter-spacing: normal; /* Browser-Default */
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

/* Nur der aktive Tab: Icon + Text in Lila (Brand) */
.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-icon {
  width: 24px !important; /* Wichtig: Überschreibt SVG-Attribute */
  height: 24px !important; /* Wichtig: Überschreibt SVG-Attribute */
  stroke-width: 2;
  transition: color 0.2s ease;
  flex-shrink: 0; /* Verhindert Verzerrung */
  color: #6b7280; /* Grau für inaktive Icons */
}

/* SVG-Icons erben Farbe (fill/stroke per currentColor in Markup) */
.bottom-nav-item.active .bottom-nav-icon {
  color: var(--primary-color); /* Lila am aktuellen Ort */
}

.bottom-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: border-color 0.2s ease;
}

.bottom-nav-item.active .bottom-nav-avatar {
  border-color: var(--primary-color);
}

/* Labels ausgeblendet: Icons sind intuitiv genug (Mobile First) */
.bottom-nav-label {
  display: none !important;
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--primary-color); /* Lila am aktuellen Ort */
  font-weight: 600;
}

.bottom-nav-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* Einheitliche Größe - entspricht direktem Icon */
  height: 24px; /* Einheitliche Größe - entspricht direktem Icon */
  flex-shrink: 0;
  margin: 0; /* Kein zusätzlicher Margin */
  padding: 0; /* Kein zusätzliches Padding */
}

.bottom-nav-icon-wrapper .bottom-nav-icon {
  position: relative; /* Ändere von absolute zu relative für bessere Ausrichtung */
  width: 24px !important; /* Wichtig: Einheitliche Icon-Größe - entspricht direktem Icon */
  height: 24px !important; /* Wichtig: Einheitliche Icon-Größe - entspricht direktem Icon */
  transform: none; /* Keine Transform für bessere Ausrichtung */
  top: auto;
  left: auto;
  flex-shrink: 0; /* Verhindert Verzerrung */
}

.bottom-nav-icon-wrapper .bottom-nav-avatar {
  position: relative;
  z-index: 1;
}

.bottom-nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--error-color);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--background-color);
}

/* Mobile: gleiche Zeilenabstände wie Desktop (links ausgerichtet, kein vertikales Zentrieren der Zeile) */
@media (max-width: 767px) {
  .section-accordion-toggle {
    padding: 14px var(--harmonized-list-pad-x);
    gap: var(--harmonized-list-gap);
    align-items: flex-start;
  }

  .article-list-title-text {
    -webkit-line-clamp: 4;
  }
}

/* Mobile: Bottom Nav immer sichtbar - 48px Höhe (nur Icons) */
@media (max-width: 767px) {
  .bottom-nav-container {
    padding: 0 var(--spacing-sm); /* 8px Padding für bessere Lesbarkeit */
    gap: var(--spacing-xs); /* 4px Gap zwischen Items */
    height: 48px;
  }
  
  .bottom-navigation {
    height: 48px;
  }
  
  .bottom-nav-item {
    padding: var(--spacing-xs) var(--spacing-sm); /* 4px vertikal, 8px horizontal */
    gap: 0;
  }
  
  .bottom-nav-icon,
  .bottom-nav-icon-wrapper .bottom-nav-icon {
    width: 24px; /* Standard Icon-Größe für bessere Touch-Targets */
    height: 24px;
  }
  
  .bottom-nav-icon-wrapper {
    width: 24px; /* Standard Wrapper-Größe */
    height: 24px;
  }
  
  body {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
}

/* Kleine Mobile Screens (z.B. iPhone SE, Samsung Galaxy S10) */
@media (max-width: 414px) {
  .bottom-nav-container {
    padding: 0 var(--spacing-xs); /* 4px Padding für sehr kleine Screens */
    gap: var(--spacing-xs); /* 4px Gap */
    height: 48px;
  }
  
  .bottom-navigation {
    height: 48px;
  }
  
  .bottom-nav-item {
    padding: var(--spacing-xs); /* 4px Padding */
    gap: 0;
  }
  
  .bottom-nav-icon,
  .bottom-nav-icon-wrapper .bottom-nav-icon {
    width: 24px;
    height: 24px;
  }
  
  .bottom-nav-icon-wrapper {
    width: 24px;
    height: 24px;
  }
  
  body {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
}

/* Tablet & Desktop: Bottom Nav - 48px Höhe (nur Icons) */
@media (min-width: 768px) {
  .bottom-navigation {
    height: 48px;
  }
  
  .bottom-nav-container {
    height: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg); /* Mehr Weißraum auf Desktop */
    gap: var(--spacing-sm); /* Mehr Abstand zwischen Elementen */
  }
  
  .bottom-nav-item {
    padding: var(--spacing-sm); /* Mehr Weißraum um Elemente */
  }
  
  /* Einheitliche Größen auf Desktop */
  .bottom-nav-item--primary .bottom-nav-icon,
  .bottom-nav-item--secondary .bottom-nav-icon,
  .bottom-nav-icon-wrapper .bottom-nav-icon {
    width: 24px; /* Einheitliche Icon-Größe auf Desktop */
    height: 24px;
  }
  
  .bottom-nav-icon-wrapper {
    width: 24px; /* Einheitliche Wrapper-Größe auf Desktop */
    height: 24px;
  }
  
  body {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }
}

/* ========================================
   ZENDESK WEB WIDGET - OPTIMALE DIMENSIONEN
   ======================================== */

/* Zendesk Web Widget - Optimale Dimensionen gemäß Best Practices */
/* Das Widget wird von Zendesk selbst verwaltet, wir setzen nur optimale Dimensionen */

/* Desktop: Normal Widget (Launcher) – Embedded-Wrapper nicht verwenden */
@media (min-width: 768px) {
  #zendesk-messenger-embedded-wrapper {
    display: none !important;
  }
}

/* Mobile: Echtes Fullscreen für Chat-Widget (Sophie) – Embedded Mode */
/* Getrenntes Handling: iOS Safari (URL unten) vs iOS Chrome (URL oben) vs Android */
/* Best Practice: interactive-widget=resizes-content im Viewport-Meta für Chrome/Android */
@media (max-width: 767px) {
  /* Backdrop: Solid Hintergrund unter dem Widget – blockiert Klicks auf Seite während Tastatur öffnet/schließt */
  html.zendesk-widget-open body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: var(--background-color);
    pointer-events: auto; /* Blockiert Interaktion mit Hintergrund – verhindert Link-Klicks während Tastatur-Transition */
  }

  /* Embedded Mode: Wrapper immer fullscreen; geschlossen = unsichtbar aber im DOM (für Echtzeit-Updates) */
  #zendesk-messenger-embedded-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 999999 !important;
    background: var(--background-color);
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  #zendesk-messenger-embedded-wrapper.zendesk-embedded-closed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }
  html.zendesk-widget-open #zendesk-messenger-embedded-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 999999 !important;
  }
  html.zendesk-widget-open #zendesk-messenger-embedded-wrapper #zendesk-messenger-embedded,
  html.zendesk-widget-open #zendesk-messenger-embedded-wrapper #zendesk-messenger-embedded > * {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }
  /* Chevron-Schließen: Nur in PWA/Standalone auf iOS – unsichtbar, nur Klickbereich (ersetzt nicht funktionierendes Widget-Chevron). Auf Android entfernt, da dort unzuverlässig. */
  .zendesk-embedded-close {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.01); /* Fast unsichtbar, aber für Screenreader da */
    cursor: pointer;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
  html.pwa-standalone.ios .zendesk-embedded-close {
    display: flex;
  }
  .zendesk-embedded-close svg {
    opacity: 0; /* Vollständig unsichtbar – wirkt wie „nichts da“, Klickbereich bleibt aktiv */
  }

  /* ========== iOS SAFARI: VisualViewport top/left/width/height – bei Tastatur verschiebt sich der sichtbare Bereich ========== */
  html.zendesk-widget-open.zendesk-widget-ios-safari #webWidget,
  html.zendesk-widget-open.zendesk-widget-ios-safari #messenger,
  html.zendesk-widget-open.zendesk-widget-ios-safari #zendesk-messenger-embedded-wrapper,
  html.zendesk-widget-open.zendesk-widget-ios-safari [id*="webWidget"],
  html.zendesk-widget-open.zendesk-widget-ios-safari [id*="messenger"],
  html.zendesk-widget-open.zendesk-widget-ios-safari div[style*="visibility: visible"][id*="webWidget"],
  html.zendesk-widget-open.zendesk-widget-ios-safari div[style*="visibility: visible"][id*="messenger"] {
    position: fixed !important;
    top: var(--zendesk-widget-vv-top, 0) !important;
    left: var(--zendesk-widget-vv-left, 0) !important;
    right: unset !important;
    bottom: unset !important;
    width: var(--zendesk-widget-vv-width, 100vw) !important;
    height: var(--zendesk-widget-vvh, calc(100dvh - env(safe-area-inset-bottom, 0px))) !important;
    max-height: var(--zendesk-widget-vvh, calc(100dvh - env(safe-area-inset-bottom, 0px))) !important;
    z-index: 999999 !important;
  }
  html.zendesk-widget-open.zendesk-widget-ios-safari #webWidget iframe,
  html.zendesk-widget-open.zendesk-widget-ios-safari #messenger iframe,
  html.zendesk-widget-open.zendesk-widget-ios-safari [id*="webWidget"] iframe,
  html.zendesk-widget-open.zendesk-widget-ios-safari [id*="messenger"] iframe,
  html.zendesk-widget-open.zendesk-widget-ios-safari div[style*="visibility: visible"] > div > iframe[title*="Messaging"],
  html.zendesk-widget-open.zendesk-widget-ios-safari div[style*="visibility: visible"] > div > iframe[name*="Messaging"],
  html.zendesk-widget-open.zendesk-widget-ios-safari #zendesk-messenger-embedded-wrapper iframe {
    position: fixed !important;
    top: var(--zendesk-widget-vv-top, 0) !important;
    left: var(--zendesk-widget-vv-left, 0) !important;
    right: unset !important;
    bottom: unset !important;
    width: var(--zendesk-widget-vv-width, 100vw) !important;
    height: var(--zendesk-widget-vvh, calc(100dvh - env(safe-area-inset-bottom, 0px))) !important;
    max-height: var(--zendesk-widget-vvh, calc(100dvh - env(safe-area-inset-bottom, 0px))) !important;
  }
  /* Safari: Starker Scroll-Lock – html UND body (body hat die Klasse nicht, daher Nachkomme-Selektor) */
  html.zendesk-widget-open.zendesk-widget-ios-safari,
  html.zendesk-widget-open.zendesk-widget-ios-safari body {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: auto !important;
  }

  /* ========== iOS CHROME + ANDROID: 100dvh, interactive-widget resizes viewport ========== */
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) #webWidget,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) #messenger,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) #zendesk-messenger-embedded-wrapper,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) [id*="webWidget"],
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) [id*="messenger"],
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) div[style*="visibility: visible"][id*="webWidget"],
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) div[style*="visibility: visible"][id*="messenger"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - env(safe-area-inset-bottom, 0px)) !important;
    z-index: 999999 !important;
  }
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) #webWidget iframe,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) #messenger iframe,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) [id*="webWidget"] iframe,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) [id*="messenger"] iframe,
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) div[style*="visibility: visible"] > div > iframe[title*="Messaging"],
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) div[style*="visibility: visible"] > div > iframe[name*="Messaging"],
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari) #zendesk-messenger-embedded-wrapper iframe {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Bottom Navigation: display:none (nicht nur visibility) – Chrome zeichnet sie sonst über dem Widget */
  html.zendesk-widget-open .bottom-navigation,
  body.zendesk-widget-open .bottom-navigation {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  
  /* Sperre Hintergrund-Scrollen (Chrome/Android) */
  html.zendesk-widget-open:not(.zendesk-widget-ios-safari),
  body.zendesk-widget-open:not(.zendesk-widget-ios-safari) {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Desktop: Optimale Dimensionen (unverändert) */
@media (min-width: 768px) {
  /* Widget Container (wenn geöffnet) - Optimale Höhe für Chat */
  div[style*="visibility: visible"] > div > iframe[title*="Messaging"],
  div[style*="visibility: visible"] > div > iframe[name*="Messaging"],
  iframe[title*="Messaging-Fenster"],
  iframe[name*="Messaging-Fenster"] {
    /* Desktop: Optimale Höhe für Chat (mindestens 70% des Viewports) */
    min-height: 70vh !important;
    /* Desktop: Maximale Höhe für bessere UX */
    max-height: 80vh !important;
    height: auto !important;
  }
}

/* Chat-Widget nur auf Homepage und Knowledge-Base: Auf allen anderen Seiten (Auth-Choice, Artikel, etc.) ausblenden */
html.chat-widget-not-allowed #zendesk-messenger-embedded-wrapper,
body.chat-widget-not-allowed #zendesk-messenger-embedded-wrapper,
html.chat-widget-not-allowed .zendesk-launcher,
body.chat-widget-not-allowed .zendesk-launcher,
html.chat-widget-not-allowed [id*="launcher"]:not([id*="embed"]),
body.chat-widget-not-allowed [id*="launcher"]:not([id*="embed"]),
html.chat-widget-not-allowed iframe[id*="launcher"],
body.chat-widget-not-allowed iframe[id*="launcher"],
html.chat-widget-not-allowed iframe[name*="launcher"],
body.chat-widget-not-allowed iframe[name*="launcher"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ========================================
   ZENDESK WIDGET - SCROLLEN NICHT BLOCKIEREN
   ======================================== */

/* KRITISCH: Verhindere dass Widget body/html overflow: hidden setzt */
/* Zendesk Widget setzt oft overflow: hidden auf body, wenn es geöffnet ist */
/* NICHT anwenden wenn zendesk-widget-open: Dann soll Hintergrund-Scrollen blockiert sein (Fullscreen-Modus) */
html:not(.zendesk-widget-open),
body:not(.zendesk-widget-open) {
  /* Stelle sicher, dass Scrollen immer möglich ist */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  /* Verhindere dass Widget height: 100% setzt */
  height: auto !important;
  max-height: none !important;
  /* iOS Safari: Smooth Scrolling */
  -webkit-overflow-scrolling: touch !important;
}

/* Verhindere dass Widget body-Styles überschreibt (nur wenn Widget NICHT im Fullscreen) */
body:not(.zendesk-widget-open)[style*="overflow"],
body:not(.zendesk-widget-open)[style*="height"],
html:not(.zendesk-widget-open) body[style*="overflow"],
html:not(.zendesk-widget-open) body[style*="height"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  max-height: none !important;
}

/* iOS Safari: Explizit scrollbar machen – NUR wenn Widget NICHT geöffnet (sonst Fullscreen, kein Hintergrund-Scroll) */
@media (max-width: 767px) {
  html:not(.zendesk-widget-open),
  body:not(.zendesk-widget-open) {
    /* iOS Safari: Explizit scrollbar machen */
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* Verhindere dass Widget height: 100% setzt */
    height: auto !important;
    max-height: none !important;
    position: relative !important;
  }
  
  /* Widget darf nicht body-Scrollen blockieren (nur wenn Widget geschlossen) */
  body:not(.zendesk-widget-open)[style*="overflow: hidden"],
  body:not(.zendesk-widget-open)[style*="overflow:hidden"],
  html:not(.zendesk-widget-open)[style*="overflow: hidden"],
  html:not(.zendesk-widget-open)[style*="overflow:hidden"] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  /* iOS Safari: Verhindere dass Widget body-Scrollen blockiert (nur wenn Widget geschlossen) */
  body:not(.zendesk-widget-open)[style*="overflow"],
  html:not(.zendesk-widget-open)[style*="overflow"] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ========================================
   1KOMMA5° TICKET PAGES - MODERN REDESIGN
   ======================================== */

/* Request Page - Modern Layout */
.request-page-modern {
  max-width: 1200px; /* Mobile-First: Konsistent mit anderen Containern */
  margin: 0 auto;
  padding: var(--spacing-base); /* Mobile: 16px Margins (DesignRules) */
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .request-page-modern {
    padding: var(--spacing-xl) var(--spacing-lg); /* Desktop: 48px vertikal, 32px horizontal */
  }
}

/* Request Header Card */
.request-header-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.request-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.request-header-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.request-title-modern {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.request-header-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.request-id-modern {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--text-muted);
  font-weight: var(--font-weight-regular);
}

.request-status-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semi-bold);
  text-transform: capitalize;
}

/* Request Container - Modern Grid */
.request-container-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 1024px) {
  .request-container-modern {
    grid-template-columns: 1fr 320px;
  }
}

/* Request Main - Comments Section */
.request-main-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.satisfaction-container {
  margin-bottom: var(--spacing-md);
}

/* Comment List - Modern Cards */
.comment-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.comment-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.comment-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.comment-card-header {
  margin-bottom: var(--spacing-md);
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.comment-avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.agent-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background-color);
  z-index: 1;
}

.agent-badge .icon-agent {
  width: 10px;
  height: 10px;
}

.comment-avatar-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.comment-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author-name {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-primary);
}

.comment-author-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-author-link:hover {
  color: var(--primary-color);
}

.comment-date {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  color: var(--text-muted);
}

.comment-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.comment-body-modern {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--text-primary);
}

.comment-body-modern p {
  margin: 0 0 var(--spacing-sm) 0;
}

.comment-body-modern p:last-child {
  margin-bottom: 0;
}

/* Attachments - Modern Style */
.attachments-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

.attachment-link-modern {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--surface-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
}

.attachment-link-modern:hover {
  background: var(--primary-color);
  color: white;
}

.attachment-icon-modern {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.attachment-name {
  flex: 1;
  font-weight: var(--font-weight-regular);
}

.attachment-size {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.attachment-link-modern:hover .attachment-size {
  color: rgba(255, 255, 255, 0.8);
}

/* Comment Form - Modern Style */
.comment-form-modern {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.comment-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Ticket-Detail: 16px Abstand zwischen Eingabefeld und Senden-Button */
/* 16px Abstand WYSIWYG-Editor zum Einreichen-Button */
.ticket-detail-reply-inline .comment-form-wrapper.comment-form-reply-area {
  gap: var(--spacing-base);
}
.ticket-detail-reply-inline .comment-form-reply-area .comment-form-controls-modern {
  margin-top: 0; /* Abstand nur über gap, nicht zusätzlich */
}

.comment-form-controls-modern {
  display: flex;
  justify-content: flex-end;
}

.submit-button-modern {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semi-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.submit-button-modern:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.submit-button-modern:active {
  transform: translateY(0);
}

.request-follow-up-modern {
  margin-top: var(--spacing-md);
}

.request-follow-up-link {
  margin-top: var(--spacing-md);
}

.follow-up-homepage-link {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semi-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  line-height: 44px;
  text-align: center;
}

.follow-up-homepage-link:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  color: white;
  text-decoration: none;
}

.follow-up-homepage-link:active {
  transform: translateY(0);
}

/* Request Sidebar - Modern Cards */
.request-sidebar-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sidebar-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.sidebar-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md) 0;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

/* Details-Karte: ein-/ausklappbar (mobile-first) */
.details-card-collapsible {
  list-style: none;
}
.details-card-collapsible::-webkit-details-marker,
.details-card-collapsible::marker {
  display: none;
}

.details-card-summary {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-primary);
  padding: 0 0 var(--spacing-md) 0;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  margin: 0 0 var(--spacing-md) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  min-height: 2.75rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.details-card-summary:hover {
  color: var(--primary-color);
}
.details-card-summary:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.details-card-summary:focus:not(:focus-visible) {
  outline: none;
}

.details-card-summary-text {
  flex: 1;
}

.details-card-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.details-card-collapsible[open] .details-card-chevron {
  transform: rotate(180deg);
}

.details-card-content {
  padding-top: var(--spacing-sm);
}
.details-card-collapsible:not([open]) .details-card-content {
  display: none;
}

.request-details-modern {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.request-details-modern dt {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.request-details-modern dd {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--text-primary);
  margin: 0;
}

.detail-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.request-collaborators-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.request-collaborators-modern li {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--text-primary);
}

/* Attachments Sidebar */
.attachments-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.attachment-link-sidebar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--surface-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.attachment-link-sidebar:hover {
  background: var(--primary-color);
  color: white;
}

.attachment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.attachment-link-sidebar .attachment-name {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
}

.attachment-link-sidebar .attachment-size {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.attachment-link-sidebar:hover .attachment-size {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .request-header-card {
    padding: var(--spacing-md);
  }

  .request-title-modern {
    font-size: var(--font-size-h3);
  }

  .comment-card {
    padding: var(--spacing-md);
  }

  .sidebar-card {
    padding: var(--spacing-md);
  }
}

/* Breadcrumbs - Modern Style */
.request-breadcrumbs {
  margin-bottom: var(--spacing-lg);
}

.request-breadcrumbs .breadcrumbs {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
}

.request-breadcrumbs .breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.request-breadcrumbs .breadcrumbs a:hover {
  color: var(--primary-color);
}

/* Pagination - Modern Style */
.pagination {
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.pagination a {
  color: var(--primary-color);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--surface-color);
  color: var(--primary-dark);
}

/* ========================================
   TICKET-DETAIL MOBILE-FIRST (Figma Help Centre)
   Keine Sidebar – einspaltig, Reply fix unten, Verlauf scrollbar
   ======================================== */

/* Ticket-Detail: Einheitliche Breite mit Reply (1200px + gleiche Abstände) */
#main-content.ticket-detail-mobile-first {
  max-width: 1200px !important;
}

.ticket-detail-mobile-first .request-container-modern {
  display: block;
  max-width: 100%;
}

.ticket-detail-main {
  max-width: 100%;
}

/* Platz unten, damit Inhalt nicht unter dem fixen Reply verschwindet */
.ticket-detail-mobile-first {
  padding-bottom: var(--spacing-base);
}

@media (min-width: 768px) {
  .ticket-detail-mobile-first {
    padding-bottom: var(--spacing-base);
  }
}

/* Scrollbarer Bereich: Ticket-Verlauf */
.ticket-detail-scrollable {
  padding-bottom: var(--spacing-base);
}

/* Reply-Bereich: Teil des Scrollflusses (iOS-Safari-freundlich), unter letzter Nachricht */
.ticket-detail-reply-inline {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: var(--spacing-base) 8px;
  padding-bottom: calc(var(--spacing-base) + env(safe-area-inset-bottom));
  box-sizing: border-box;
  margin-top: var(--spacing-base);
}

/* Mobile: identisch zu Desktop – nur WYSIWYG-Editor + Button, einzeilig startend, skaliert mit Text */
@media (max-width: 767px) {
  .ticket-detail-reply-inline {
    background: transparent;
    box-shadow: none;
    padding-left: 8px;
    padding-right: 8px;
  }
  .ticket-detail-reply-inline .comment-form-wrapper.comment-form-reply-area {
    gap: var(--spacing-base); /* 16px Abstand WYSIWYG zu Einreichen-Button */
  }
}

/* Desktop: Viewport-Breite mit 8px Abstand */
@media (min-width: 768px) {
  .ticket-detail-reply-inline {
    padding-left: 8px;
    padding-right: 8px;
    background: var(--background-color);
  }
}

@media (min-width: 1024px) {
  .ticket-detail-reply-inline {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Geschlossenes Ticket: kein Reply-Bereich im Template (Sicherheit falls Klassen am Body bleiben) */
.request-status-closed .ticket-detail-reply-inline {
  display: none !important;
}
.request-status-closed.ticket-detail-mobile-first,
.request-status-solved.ticket-detail-mobile-first {
  padding-bottom: var(--spacing-lg);
}

/* Hinweis: Gelöstes Ticket per Nachricht wieder öffnen */
.ticket-detail-reopen-hint {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-base);
  border-radius: var(--border-radius);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
}
.ticket-detail-reopen-hint__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-small, 0.9375rem);
  line-height: 1.5;
  color: var(--text-primary);
}

/* Folgeticket-CTA (geschlossen / nach gelöstem Ticket) */
.ticket-detail-followup-cta {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-base) 8px;
  padding-bottom: calc(var(--spacing-base) + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.ticket-detail-followup-cta__text {
  margin: 0 0 var(--spacing-md) 0;
  font-family: var(--font-body);
  font-size: var(--font-size-small, 0.9375rem);
  line-height: 1.5;
  color: var(--text-secondary, var(--text-primary));
  max-width: 720px;
}
.ticket-detail-followup-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold, 600);
  font-size: var(--font-size-body);
  text-decoration: none;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-small, 0 1px 2px rgba(0, 0, 0, 0.08));
  transition: background 0.15s ease, transform 0.1s ease;
}
.ticket-detail-followup-cta__link:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.ticket-detail-followup-cta__link--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}
.ticket-detail-followup-cta__link--secondary:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .ticket-detail-followup-cta {
    padding-left: 8px;
    padding-right: 8px;
  }
  .ticket-detail-reopen-hint {
    max-width: 720px;
  }
}

/* Reply: Kein Kärtchen – nur Input/Editor + Button, volle Breite */
.ticket-detail-reply-inline .comment-form-modern {
  max-width: none;
  margin: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Oberen Strich entfernen: Toolbar + dunkler Rand von #hc-wysiwyg (#87929D) */
.ticket-detail-reply-inline .comment-form-reply-area .ck-toolbar {
  border-bottom: none !important;
}
.ticket-detail-reply-inline .comment-form-reply-area .ck-editor__editable,
.ticket-detail-reply-inline .comment-form-reply-area .wysiwyg-editor,
.ticket-detail-reply-inline .comment-form-reply-area [contenteditable="true"] {
  border-top: none !important;
}
/* Dunklerer Graustrich: kommt von #hc-wysiwyg (border: 1px solid #87929D) – im Reply ausblenden */
.ticket-detail-reply-inline #hc-wysiwyg,
.ticket-detail-reply-inline .comment-form-reply-area #hc-wysiwyg {
  border: none !important;
}

/* Page Title: "My tickets" */
.ticket-detail-page-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-base) 0;
  line-height: 1.2;
}

/* Ticket Header: Betreff + Beschreibung */
.ticket-detail-header {
  margin-bottom: var(--spacing-lg);
}

.ticket-detail-subject {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.3;
}

.ticket-detail-description {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.ticket-detail-description p {
  margin: 0 0 var(--spacing-sm) 0;
}

.ticket-detail-description p:last-child {
  margin-bottom: 0;
}

/* Anhänge (nur bei erster Nachricht) – sauber im Hauptbereich */
.ticket-detail-attachments {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.ticket-detail-attachments-label {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.ticket-detail-attachments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.ticket-detail-attachments-list li {
  margin: 0;
}

.ticket-detail-attachment-link {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.ticket-detail-attachment-link:hover {
  text-decoration: underline;
}

.ticket-detail-attachment-link::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235C068C' stroke-linecap='round'%3E%3Cpath d='M9.5 4v7.7c0 .8-.7 1.5-1.5 1.5s-1.5-.7-1.5-1.5V3C6.5 1.6 7.6.5 9 .5s2.5 1.1 2.5 2.5v9c0 1.9-1.6 3.5-3.5 3.5S4.5 13.9 4.5 12V4'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

/* Konversation: Chat-Timeline – gestrichelte Linie unter dem Avatar (Figma) */
.conversation-thread {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.conversation-message {
  position: relative;
  padding-left: calc(40px + var(--spacing-md));
  padding-bottom: var(--spacing-lg);
  overflow: visible;
}

/* Gestrichelte Linie: unter dem Profilbild, Brand-Farbe #CE88F6 mit Transparenz */
.conversation-message::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: calc(-1 * var(--spacing-lg));
  min-height: 24px;
  width: 0;
  border-left: 2px dashed rgba(206, 136, 246, 0.5);
  pointer-events: none;
  z-index: 0;
}

.conversation-message:last-child::before {
  display: none;
}

.conversation-message-inner {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

/* Avatar: Kreis mit Initial oder Bild */
.message-avatar {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--font-weight-semi-bold);
  text-transform: uppercase;
}

.conversation-message--user .message-avatar,
.conversation-message--you .message-avatar {
  background: #0ea5e9;
  color: #fff;
}

.message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0;
}

.message-avatar-initial::before {
  content: attr(data-initial);
  font-size: 1rem;
  font-weight: var(--font-weight-semi-bold);
}

.message-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background-color);
  z-index: 1;
}

.message-avatar-badge .icon-agent {
  width: 8px;
  height: 8px;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-meta {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.message-author {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.message-date {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  color: var(--text-muted);
}

.message-body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--text-primary);
}

.message-body p {
  margin: 0 0 var(--spacing-sm) 0;
}

.message-body p:last-child {
  margin-bottom: 0;
}

.message-attachments {
  margin-top: var(--spacing-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.message-attachment-link {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  color: var(--primary-color);
  text-decoration: none;
}

.message-attachment-link:hover {
  text-decoration: underline;
}

/* Reply-Bereich: kompakte Zeile, 16px Abstand Eingabefeld–Button */
.comment-form-mobile-first .comment-form-wrapper.comment-form-reply-area {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  margin-top: 0;
}

.comment-form-mobile-first .comment-form-reply-area {
  width: 100%;
  max-width: 100%;
}

/* WYSIWYG: Standard eine Zeile, bei Fokus ausklappbar (Figma) */
.comment-form-mobile-first .comment-form-reply-area textarea,
.comment-form-mobile-first .comment-form-reply-area [contenteditable="true"],
.comment-form-mobile-first .wysiwyg-container,
.comment-form-mobile-first .wysiwyg-editor,
.comment-form-mobile-first .ck.ck-editor .ck-editor__editable {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-base);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  box-sizing: border-box;
  transition: min-height 0.2s ease;
}

/* Einzeiliger Editor (Mobile + Desktop): startet eine Zeile, skaliert mit Inhalt */
.ticket-detail-reply-inline .comment-form-reply-area .ck-editor__editable,
.ticket-detail-reply-inline .comment-form-reply-area .wysiwyg-editor,
.ticket-detail-reply-inline .comment-form-reply-area [contenteditable="true"] {
  min-height: 44px;
  max-height: none;
  overflow: visible;
}

/* Ausgeklappt bei Fokus (Mobile + Desktop) */
.ticket-detail-reply-inline .comment-form-reply-area:focus-within .wysiwyg-editor,
.ticket-detail-reply-inline .comment-form-reply-area:focus-within .wysiwyg-container,
.ticket-detail-reply-inline .comment-form-reply-area:focus-within [contenteditable="true"],
.ticket-detail-reply-inline .comment-form-reply-area:focus-within .ck-editor__editable {
  min-height: 120px !important;
}

.ticket-detail-reply-inline .comment-form-reply-area:focus-within .ck-editor__editable {
  max-height: none !important;
  overflow: visible !important;
}

.ticket-detail-reply-inline .comment-form-reply-area:focus-within textarea {
  min-height: 120px !important;
}

/* WYSIWYG: Bilder und Inhalt sichtbar halten (nicht ausblenden/clippen) */
.comment-form-mobile-first .wysiwyg-container,
.comment-form-mobile-first .wysiwyg-editor,
.comment-form-mobile-first .ck.ck-editor,
.comment-form-mobile-first .ck-editor__editable {
  overflow: visible !important;
}

.comment-form-mobile-first .wysiwyg-editor img,
.comment-form-mobile-first .ck-editor__editable img,
.comment-form-mobile-first [contenteditable="true"] img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.comment-form-mobile-first .comment-form-controls-modern {
  width: 100%;
  justify-content: stretch;
}

/* Button immer volle Breite (Figma) */
.comment-form-mobile-first .submit-button-reply {
  width: 100%;
  min-height: 44px;
  border-radius: var(--border-radius);
  font-weight: var(--font-weight-semi-bold);
}

/* ========================================
   1KOMMA5° NEW REQUEST PAGE - MODERN REDESIGN
   ======================================== */

/* New Request Page Container (16px vertikal + seitlich) */
.new-request-page-modern {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-base); /* 16px */
}

/* New Request Header */
.new-request-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.new-request-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.2;
}

.new-request-description {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Form Container */
.new-request-form-container {
  width: 100%;
}

.form-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-base); /* 16px vertikal + seitlich */
  box-shadow: var(--shadow);
}

/* Zendesk Form Styling Overrides */
#new-request-form {
  width: 100%;
}

/* Form Fields - Modern Style (16px Abstand zwischen Feldern) */
#new-request-form form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base); /* 16px */
}
#new-request-form .form-field ~ .form-field {
  margin-top: 0; /* Abstand nur über form gap, nicht zusätzlich margin */
}

#new-request-form .form-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Abstand zwischen Checkbox-Optionen: 12px */
#new-request-form .form-field:has(input[type=checkbox]),
#new-request-form [data-garden-id="forms.field"]:has(input[type=checkbox]) {
  gap: 12px;
}
.form-field:has(input[type=checkbox]) {
  gap: 12px;
}

#new-request-form label {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

#new-request-form input[type="text"],
#new-request-form input[type="email"],
#new-request-form textarea,
#new-request-form select {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--background-color);
  color: var(--text-primary);
  transition: all 0.2s ease;
  min-height: 44px;
  width: 100%;
}

#new-request-form input[type="text"]:focus,
#new-request-form input[type="email"]:focus,
#new-request-form textarea:focus,
#new-request-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 0.1);
}

#new-request-form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Submit Button - Modern Style */
#new-request-form button[type="submit"],
#new-request-form input[type="submit"] {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semi-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto; /* Abstand zur Anhänge-Box nur über form gap (16px) */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
}

#new-request-form button[type="submit"]:hover,
#new-request-form input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

#new-request-form button[type="submit"]:active,
#new-request-form input[type="submit"]:active {
  transform: translateY(0);
}

/* Dropdown/Select Styling */
#new-request-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%235C068C' stroke-linecap='round' d='M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  padding-right: calc(var(--spacing-xl) + 12px);
}

/* WYSIWYG Editor Styling */
#new-request-form .wysiwyg-editor,
#new-request-form .rich-text-editor {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  min-height: 200px;
}

#new-request-form .wysiwyg-editor:focus,
#new-request-form .rich-text-editor:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 0.1);
}

/* File Upload Styling */
#new-request-form input[type="file"] {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  padding: var(--spacing-sm);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

#new-request-form input[type="file"]:hover {
  border-color: var(--primary-color);
  background: rgba(92, 6, 140, 0.05);
}

/* Error Messages */
#new-request-form .error-message,
#new-request-form .form-field-error {
  color: var(--error-color);
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  margin-top: var(--spacing-xs);
}

#new-request-form .form-field-error input,
#new-request-form .form-field-error textarea,
#new-request-form .form-field-error select {
  border-color: var(--error-color);
}

/* Help Text */
#new-request-form .form-field-help {
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .new-request-page-modern {
    padding: var(--spacing-md) 0;
  }

  .new-request-title {
    font-size: var(--font-size-h2);
  }

  .new-request-description {
    font-size: var(--font-size-body);
  }

  .form-card {
    padding: var(--spacing-base); /* 16px */
  }

  #new-request-form button[type="submit"],
  #new-request-form input[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================
   1KOMMA5° ERROR PAGE - MODERN REDESIGN
   ======================================== */

/* Error Page Container */
.error-page-modern {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-base);
  background: var(--background-color);
}

.error-page-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.error-page-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

/* Error Icon */
.error-icon {
  width: 120px;
  height: 120px;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  opacity: 0.8;
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

/* Error Title */
.error-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

/* Error Message */
.error-message {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.error-subtitle {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-primary);
  margin: 0;
}

.error-subtitle a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.error-subtitle a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.error-description {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Error Actions */
.error-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.error-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semi-bold);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
  border: 2px solid transparent;
}

.error-button svg {
  flex-shrink: 0;
}

.error-button--primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.error-button--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.error-button--secondary {
  background: var(--background-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.error-button--secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Helpful Links */
.error-helpful-links {
  margin-top: var(--spacing-lg);
  width: 100%;
}

.error-links-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semi-bold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
}

.error-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.error-links-list li {
  width: 100%;
  max-width: 400px;
}

.error-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
}

.error-link:hover {
  background: var(--surface-color);
  color: var(--primary-color);
  transform: translateX(4px);
}

.error-link svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.error-link--chat {
  cursor: pointer;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .error-page-modern {
    padding: var(--spacing-lg) var(--spacing-base);
    min-height: calc(100vh - 150px);
  }

  .error-icon {
    width: 80px;
    height: 80px;
  }

  .error-title {
    font-size: var(--font-size-h2);
  }

  .error-subtitle {
    font-size: var(--font-size-h4);
  }

  .error-description {
    font-size: var(--font-size-body);
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-button {
    width: 100%;
    justify-content: center;
  }

  .error-links-list {
    align-items: stretch;
  }

  .error-links-list li {
    max-width: 100%;
  }
}

/* ========================================
   SEARCH PAGE - Modernes Redesign
   ======================================== */

.search-page-modern {
  min-height: 100vh;
  background: var(--background-color);
  padding: var(--spacing-base);
}

/* .search-page-container wird von konsolidierter Container-Regel übernommen (Zeile 780+) */

/* Search Breadcrumbs */
.search-breadcrumbs {
  margin-bottom: var(--spacing-md);
}

/* Search Header */
.search-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  /* Trennlinie entfernt für cleanes Design */
}

.search-page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md) 0;
}

.search-input-container-modern {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-modern {
  position: absolute;
  left: var(--spacing-md);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

/* Moderne Suchfelder - Überschreibt alte .search Styles */
.search-input-container-modern input[type="search"],
.search-input-container-modern input[type="text"] {
  width: 100% !important;
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) calc(var(--spacing-md) * 2 + 20px) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  background: var(--background-color) !important;
  transition: all 0.2s ease !important;
  /* Überschreibt alte .search Styles */
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  color: var(--text-primary) !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 44px !important;
}

.search-input-container-modern input[type="search"]:focus,
.search-input-container-modern input[type="text"]:focus {
  outline: none !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(92, 6, 140, 0.1) !important;
  color: var(--text-primary) !important;
}

/* Stelle sicher, dass .search-input-container-modern NICHT die alten .search Styles erbt */
.search-input-container-modern {
  border: none !important;
  border-radius: 0 !important;
  border-style: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  display: flex !important;
  position: relative !important;
  transition: none !important;
}

.search-input-container-modern:focus-within {
  border-color: transparent !important;
}

/* Search Results Layout */
.search-results-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

@media (min-width: 1024px) {
  .search-results-modern {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Search Sidebar */
.search-sidebar-modern {
  flex: 0 0 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-md);
}

@media (min-width: 1024px) {
  .search-sidebar-modern {
    flex: 0 0 280px;
    position: sticky;
    top: var(--spacing-lg);
  }
}

.filter-section-modern {
  margin-bottom: var(--spacing-lg);
}

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

.filter-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
}

.filter-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.filter-item-modern:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.filter-item-modern--active {
  background: var(--primary-color);
  color: white;
  font-weight: 500;
}

.filter-item-modern--active:hover {
  background: var(--primary-dark);
  color: white;
}

.filter-name {
  flex: 1;
}

.filter-count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: var(--spacing-xs);
}

.filter-tags-modern {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.filter-tag-modern {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.filter-tag-label {
  font-weight: 500;
}

.filter-tag-remove {
  display: flex;
  align-items: center;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.filter-tag-remove:hover {
  opacity: 1;
}

/* Search Results Column */
.search-results-column-modern {
  flex: 1;
  min-width: 0;
}

.search-results-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  /* Trennlinie entfernt für cleanes Design */
}

.search-results-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Search Results List */
.search-results-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.search-result-card-modern {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-md);
  transition: all 0.2s ease;
}

.search-result-card-modern:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.search-result-article-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.search-result-header-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.search-result-title-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.search-result-title-modern {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  margin: 0;
  flex: 1;
}

.search-result-link-modern {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: color 0.2s ease;
}

.search-result-link-modern:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.external-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.search-result-meta-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.search-result-meta-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.search-result-meta-badge svg {
  width: 14px;
  height: 14px;
}

.search-result-meta-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.search-result-breadcrumbs-modern {
  font-size: 0.875rem;
}

.breadcrumbs-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
}

.breadcrumbs-modern li {
  display: flex;
  align-items: center;
}

.breadcrumbs-modern li:not(:last-child)::after {
  content: '>';
  margin: 0 var(--spacing-xs);
  color: var(--text-muted);
}

.breadcrumbs-modern a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs-modern a:hover {
  text-decoration: underline;
}

.search-result-meta-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.meta-item {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.search-result-description-modern {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* No Results */
.search-no-results-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  min-height: 400px;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  opacity: 0.5;
}

.no-results-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
}

.no-results-message {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-lg) 0;
}

.no-results-actions {
  margin-top: var(--spacing-md);
}

.no-results-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.no-results-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .search-page-title {
    font-size: 1.75rem;
  }

  .search-results-title {
    font-size: 1.25rem;
  }

  .search-result-card-modern {
    padding: var(--spacing-sm);
  }
}

/* ========================================
   KNOWLEDGE BASE - Search Alternative Link
   ======================================== */

/* ========================================
   KNOWLEDGE BASE PAGE - Konsolidierte Styles
   Mobile-First, konsistent mit anderen Seiten
   ======================================== */

/* Knowledge Base Container */
.knowledge-base-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background-color);
}

/* Knowledge Base Main - Mobile-First */
.knowledge-base-main {
  flex: 1;
  padding: var(--spacing-base); /* Mobile: 16px (DesignRules) */
  max-width: 100%; /* Mobile: Volle Breite */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Knowledge Base Page Header - Mobile-First */
.knowledge-base-main .page-header {
  text-align: center;
  margin-bottom: var(--spacing-lg); /* Mobile: 32px */
  padding-bottom: 0; /* Kein Padding mehr, da kein Border */
  border-bottom: none; /* Divider entfernt für professionelles Design */
  max-width: 100%; /* Mobile: Volle Breite */
  margin-left: auto;
  margin-right: auto;
}

.knowledge-base-main .page-title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
}

.knowledge-base-main .page-description {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Knowledge Base — „Mit Sophie suchen“: eine Nav-Zeile, kein Kartenrahmen */
.knowledge-base-search-section {
  margin-bottom: var(--spacing-lg);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--harmonized-divider);
  padding-top: var(--spacing-sm);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.knowledge-base-search-section .navigation-card {
  width: 100%;
  border-bottom: 1px solid var(--harmonized-divider);
}

/* Categories Section */
.knowledge-base-main .categories-section {
  margin-bottom: var(--spacing-xl);
}

/* Categories Grid - Mobile-First mit max-width für Desktop */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Spalten Mobile */
  gap: var(--spacing-base); /* Mobile: 16px */
  margin-bottom: var(--spacing-lg);
  max-width: 100%; /* Mobile: Volle Breite */
}

/* Responsive: Sehr kleine Bildschirme - 2 Spalten beibehalten */
@media (max-width: 400px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten auch auf sehr kleinen Screens */
    gap: var(--spacing-sm); /* 8px Gap für bessere Platzausnutzung auf kleinen Screens */
  }
  
  .category-card {
    min-height: 0 !important; /* Entfernt feste Höhe, damit aspect-ratio greift */
    height: auto; /* Ermöglicht aspect-ratio Berechnung */
    aspect-ratio: 1 / 1; /* Bleibt quadratisch - passt sich an Breite an */
  }
  
  /* Content-Bereich kompakter machen für bessere Bildsichtbarkeit */
  .category-card__content {
    padding: var(--spacing-base) var(--spacing-md) !important; /* 16px vertikal, 24px horizontal - breiterer Streifen */
    gap: var(--spacing-xs) !important; /* 4px Gap zwischen Elementen */
  }
  
  /* Karten-Titel: headline-xsmall (20px) auch auf sehr kleinen Screens */
  .category-card__title {
    font-size: var(--headline-xsmall-font-size) !important; /* 20px */
    line-height: var(--headline-xsmall-line-height) !important; /* 28px */
    margin: 0 !important;
  }
  
  .category-card__description {
    font-size: 0.8125rem !important; /* 13px - Ausgewogen für kompakte Darstellung */
    line-height: 1.3 !important;
  }
  
  .category-card__meta {
    font-size: 0.8125rem !important; /* 13px - Ausgewogen */
    line-height: 1.25 !important;
  }
}

/* Category Card - Mobile-First mit max-width für Desktop */
.category-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 200px; /* Mobile: Mindestgröße für Touch-Targets */
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(92, 6, 140, 0.15);
  cursor: pointer;
  z-index: 10;
}

/* Category Card Image */
.category-card__image {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.1);
  background-size: 50% auto, 50% auto, cover;
  background-position: left center, right center, center center;
  min-width: 100%;
  min-height: 100%;
  background-clip: border-box;
  background-origin: border-box;
  background-attachment: scroll;
  object-fit: cover;
  pointer-events: none !important;
  z-index: 0;
}

/* Category Card Content */
.category-card__content {
  padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--spacing-xs);
  background: rgba(10, 10, 10, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  min-height: auto;
  pointer-events: none !important;
}

.category-card__content * {
  pointer-events: none !important;
}

/* iOS Safari Fix: backdrop-filter deaktivieren */
@supports (-webkit-touch-callout: none) {
  .category-card__content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 10, 0.5);
  }
}

.category-card:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: var(--headline-xsmall-font-size);   /* 20px - headline-xsmall */
  line-height: var(--headline-xsmall-line-height); /* 28px */
  font-weight: var(--headline-xsmall-font-weight);  /* bold */
  margin: 0;
  color: #FFFFFF !important;
  align-self: stretch;
}

.category-card__description {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  line-height: 1.14;
  color: #FFFFFF !important;
  margin: 0;
  align-self: stretch;
  opacity: 0.9;
}

.category-card__meta {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  line-height: 1.14;
  color: #FFFFFF !important;
  opacity: 0.8;
  align-self: stretch;
  margin: 0;
}

/* Knowledge Base: Back-Button-Container (ersetzt Breadcrumbs) – einheitlich links */
.knowledge-base-back-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%; /* Volle Breite, damit Button links bleibt (nicht mittig) */
  padding: var(--spacing-base);
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .knowledge-base-back-nav {
    max-width: var(--content-grid-max-width-desktop);
    padding: var(--spacing-base) 0;
  }
}

/* Knowledge Base Loading & Error States */
.knowledge-base-main .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.knowledge-base-main .loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-base);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.knowledge-base-main .error-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--error-color);
}

.knowledge-base-main .error-state .btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.knowledge-base-main .error-state .btn:hover {
  background: var(--primary-dark);
}

/* Responsive: Tablet */
@media (min-width: 768px) {
  .knowledge-base-main {
    padding: var(--spacing-lg); /* Tablet: 32px */
    max-width: 1200px; /* Tablet: Begrenzung beginnt */
  }

  .knowledge-base-main .page-title {
    font-size: 2.5rem;
  }

  .knowledge-base-main .page-header {
    margin-bottom: var(--spacing-xl); /* Tablet: 40px */
  }

  .knowledge-base-search-section {
    margin-bottom: var(--spacing-xl); /* Tablet: 40px */
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md); /* Tablet: 24px */
    max-width: 100%; /* Tablet: Noch volle Breite innerhalb Container */
  }

  .category-card {
    min-height: 240px;
  }

  .category-card__content {
    padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  }
}

/* Responsive: Desktop - Professionelles Layout */
/* NOTE: .knowledge-base-main max-width und padding werden von der konsolidierten Container-Regel übernommen (Zeile 780+) */
@media (min-width: 1024px) {
  /* .knowledge-base-main max-width und padding werden von konsolidierter Regel übernommen */

  /* Page Header: Gleiche max-width wie Categories Grid für konsistentes Layout */
  .knowledge-base-main .page-header {
    max-width: 1000px; /* Desktop: Gleiche Breite wie Categories Grid */
    margin-bottom: var(--spacing-xl); /* Desktop: 40px */
  }

  /* Search Section: Gleiche max-width wie Categories Grid für konsistentes Layout */
  .knowledge-base-search-section {
    max-width: 1000px; /* Desktop: Gleiche Breite wie Categories Grid */
    margin-bottom: var(--spacing-xl); /* Desktop: 40px */
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg); /* Desktop: 32px (8pt Grid) */
    max-width: var(--content-grid-max-width-desktop); /* 1000px */
    margin-left: auto;
    margin-right: auto;
  }

  .category-card {
    min-height: 280px;
    max-width: var(--card-max-width-desktop); /* 480px */
  }

  .category-card__content {
    padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  /* Page Header: Bleibt bei 1000px für Konsistenz */
  .knowledge-base-main .page-header {
    max-width: 1000px;
  }

  /* Search Section: Bleibt bei 1000px für Konsistenz */
  .knowledge-base-search-section {
    max-width: 1000px;
  }

  .categories-grid {
    max-width: 1000px; /* Bleibt bei 1000px (2x 480px + gap) */
    gap: var(--spacing-xl); /* Large Desktop: 40px gap (2.5rem) */
  }

  .category-card {
    min-height: 300px;
    max-width: 480px; /* Konsistent mit Desktop: 480px */
  }

  .category-card__content {
    padding: var(--spacing-base); /* 16px - einheitliches List-Padding */
  }
}

/* Extra Large Desktop */
@media (min-width: 1536px) {
  /* Page Header: Bleibt bei 1000px für Konsistenz */
  .knowledge-base-main .page-header {
    max-width: 1000px;
  }

  /* Search Section: Bleibt bei 1000px für Konsistenz */
  .knowledge-base-search-section {
    max-width: 1000px;
  }

  .categories-grid {
    max-width: 1000px; /* Bleibt bei 1000px */
    gap: var(--spacing-xl); /* Bleibt bei 40px (2.5rem) */
  }

  .category-card {
    min-height: 320px;
    max-width: 480px; /* Konsistent mit Desktop: 480px */
  }
}

.knowledge-base-search-alternative {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.search-alternative-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  color: var(--text-primary) !important;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-alternative-link span {
  color: inherit;
}

.search-alternative-link:hover {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.search-alternative-link:hover span {
  color: #FFFFFF !important;
}

.search-alternative-link svg:first-child {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
}

.search-alternative-link svg:last-child {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: inherit;
  stroke: currentColor;
}

.search-alternative-link:hover svg:first-child,
.search-alternative-link:hover svg:last-child {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.search-alternative-link:hover svg:last-child {
  transform: translateX(4px);
}
