/* Swiss International Style custom tweaks */
html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

::selection {
    background-color: #000000;
    color: #ffffff;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #fafafa;
}
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
}
::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* Minimalist orange dot pulse */
.orange-pulse-dot {
    width: 14px;
    height: 14px;
    background-color: #ff5500;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.8);
}

/* Editorial Blog Article Typography */
.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.blog-article-content h1 { font-size: 2rem; }
.blog-article-content h2 { font-size: 1.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.08); padding-bottom: 0.35rem; }
.blog-article-content h3 { font-size: 1.25rem; }
.blog-article-content h4 { font-size: 1.1rem; }

.blog-article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Blockquote / Zitat Box (hellgrauer Hintergrund, dunkelgrauer Rahmen) */
.blog-article-content blockquote {
    background-color: #f3f4f6; /* Hellgrauer Hintergrund */
    border: 1px solid #4b5563; /* Dunkelgrauer Rahmen */
    border-left: 5px solid #1f2937; /* Betonte Zitat-Kante links */
    border-radius: 3px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    color: #1f2937;
    font-style: italic;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-article-content blockquote p {
    margin-bottom: 0.6rem;
    line-height: 1.75;
}

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

.blog-article-content ul {
    list-style-type: square;
    margin-left: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.blog-article-content ol {
    list-style-type: decimal;
    margin-left: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.blog-article-content li {
    margin-bottom: 0.4rem;
}

/* Links in Blogposts: Unterstreichen aktiviert */
.blog-article-content a {
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    font-weight: 600;
    color: #0a0a0a;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.blog-article-content a:hover {
    color: #ff5500;
    text-decoration-color: #ff5500;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    background: #ffffff;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Blog Photo Figure & EXIF Caption Spacing */
.blog-photo-figure {
    margin-top: 2rem !important;
    margin-bottom: 3.5rem !important;
}

.blog-photo-figure img {
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;
}

.blog-photo-figure figcaption {
    margin-top: 0.25rem !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   Catppuccin Latte Theme for Code & Syntax Highlighting (Light Theme)
   ========================================================================== */

/* Inline Code: Catppuccin Latte */
.blog-article-content code:not(pre code) {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
    font-size: 0.875em;
    background-color: #eff1f5; /* Catppuccin Base */
    color: #8839ef;            /* Catppuccin Mauve */
    border: 1px solid #ccd0da; /* Catppuccin Surface0 */
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-weight: 500;
}

/* Gitea-Style Code Box (Catppuccin Latte Theme) */
.code-block-box {
    margin: 2rem 0 !important;
    border: 1px solid #ccd0da !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background-color: #eff1f5 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.code-box-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
    background-color: #e6e9ef !important;
    border-bottom: 1px solid #ccd0da !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 0.75rem !important;
    color: #4c4f69 !important;
    user-select: none !important;
}

.code-box-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #4c4f69 !important;
}

.code-box-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #8839ef !important;
    display: inline-block !important;
}

.code-copy-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.25rem 0.65rem !important;
    background-color: #ffffff !important;
    color: #4c4f69 !important;
    border: 1px solid #bcc0cc !important;
    border-radius: 4px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.code-copy-btn:hover {
    background-color: #dce0e8 !important;
    color: #0a0a0a !important;
    border-color: #9ca0b0 !important;
}

.code-copy-btn.copied {
    background-color: #40a02b !important;
    color: #ffffff !important;
    border-color: #40a02b !important;
}

.code-box-body {
    display: flex !important;
    background-color: #eff1f5 !important;
    overflow-x: auto !important;
    position: relative !important;
}

.code-box-gutter {
    padding: 1rem 0 !important;
    background-color: #e6e9ef !important;
    border-right: 1px solid #ccd0da !important;
    user-select: none !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    min-width: 3.2rem !important;
}

.code-box-gutter .line-num {
    padding: 0 0.75rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace !important;
    font-size: 0.85rem !important;
    line-height: 1.6rem !important;
    height: 1.6rem !important;
    color: #9ca0b0 !important;
    font-weight: 500 !important;
}

.code-box-content {
    flex: 1 1 auto !important;
    padding: 1rem 1.25rem !important;
    overflow-x: auto !important;
    background-color: #eff1f5 !important;
}

.code-box-content pre {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

.code-box-content pre code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "JetBrains Mono", monospace !important;
    font-size: 0.85rem !important;
    line-height: 1.6rem !important;
    color: #4c4f69 !important;
    tab-size: 4 !important;
    white-space: pre !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Catppuccin Latte Syntax Highlighting Tokens (Highlight.js) */
.hljs-keyword, .hljs-selector-tag, .hljs-subst {
    color: #8839ef !important;
    font-weight: 600 !important;
}
.hljs-string, .hljs-title, .hljs-section, .hljs-attribute, .hljs-literal, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-addition {
    color: #40a02b !important;
}
.hljs-comment, .hljs-quote, .hljs-deletion, .hljs-meta {
    color: #9ca0b0 !important;
    font-style: italic !important;
}
.hljs-number {
    color: #fe640b !important;
}
.hljs-function, .hljs-title.function_ {
    color: #1e66f5 !important;
}
.hljs-variable, .hljs-params {
    color: #e64553 !important;
}
.hljs-built_in, .hljs-symbol, .hljs-bullet {
    color: #179299 !important;
}
.hljs-operator, .hljs-punctuation {
    color: #04a5e5 !important;
}
.hljs-attr {
    color: #df8e1d !important;
}
.hljs-emphasis {
    font-style: italic !important;
}
.hljs-strong {
    font-weight: bold !important;
}

.blog-article-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
}

/* Series Description Typography */
.series-description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #262626;
}
.series-description-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.series-description-content p:last-child {
    margin-bottom: 0;
}
.series-description-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    color: #000000;
    transition: color 0.15s ease;
}
.series-description-content a:hover {
    color: #ff5500;
}
.series-description-content strong {
    font-weight: 700;
    color: #000000;
}
.series-description-content ul {
    list-style-type: square;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.series-description-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.series-description-content li {
    margin-bottom: 0.35rem;
}
.series-description-content blockquote {
    border-left: 3px solid #000000;
    padding-left: 1rem;
    font-style: italic;
    color: #525252;
    margin: 1.5rem 0;
}

/* Photo Caption / Freitext Typography */
.photo-caption-content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
.photo-caption-content p:last-child {
    margin-bottom: 0;
}
.photo-caption-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    color: #000000;
    transition: color 0.15s ease;
}
.photo-caption-content a:hover {
    color: #ff5500;
}
.photo-caption-content strong {
    font-weight: 700;
    color: #000000;
}
.photo-caption-content ul {
    list-style-type: square;
    margin-left: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.photo-caption-content ol {
    list-style-type: decimal;
    margin-left: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.photo-caption-content.text-center ul,
.photo-caption-content.text-center ol {
    list-style-position: inside;
    margin-left: 0;
}
.photo-caption-content li {
    margin-bottom: 0.25rem;
}
.photo-caption-content code {
    font-family: monospace;
    font-size: 0.85em;
    background-color: #f3f4f6;
    padding: 0.1em 0.3em;
    border-radius: 2px;
}





