/* === REVISED STYLE: ORIGINAL LAYOUT WITH DARK GLASSMORHISM === */

/* Font-Face Definitions as in original PDF */
@font-face { font-display: swap; font-family: 'Anton'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/anton-v25-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Lato'; font-style: normal; font-weight: 300; src: url('https://societal.business/fonts/lato-v24-latin_latin-ext-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Lato'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/lato-v24-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Lato'; font-style: italic; font-weight: 400; src: url('https://societal.business/fonts/lato-v24-latin_latin-ext-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Lato'; font-style: normal; font-weight: 700; src: url('https://societal.business/fonts/lato-v24-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Merriweather'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/merriweather-v31-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Merriweather'; font-style: italic; font-weight: 400; src: url('https://societal.business/fonts/merriweather-v31-latin_latin-ext-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Merriweather'; font-style: normal; font-weight: 700; src: url('https://societal.business/fonts/merriweather-v31-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/montserrat-v29-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 700; src: url('https://societal.business/fonts/montserrat-v29-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 900; src: url('https://societal.business/fonts/montserrat-v29-latin_latin-ext-900.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Oswald'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/oswald-v53-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Oswald'; font-style: normal; font-weight: 500; src: url('https://societal.business/fonts/oswald-v53-latin_latin-ext-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Oswald'; font-style: normal; font-weight: 700; src: url('https://societal.business/fonts/oswald-v53-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/playfair-display-v37-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 400; src: url('https://societal.business/fonts/playfair-display-v37-latin_latin-ext-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: italic; font-weight: 500; src: url('https://societal.business/fonts/playfair-display-v37-latin_latin-ext-500italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Playfair Display'; font-style: normal; font-weight: 700; src: url('https://societal.business/fonts/playfair-display-v37-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Roboto'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/roboto-v47-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Roboto'; font-style: normal; font-weight: 900; src: url('https://societal.business/fonts/roboto-v47-latin-900.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Code Pro'; font-style: normal; font-weight: 400; src: url('https://societal.business/fonts/source-code-pro-v23-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Code Pro'; font-style: normal; font-weight: 700; src: url('https://societal.business/fonts/source-code-pro-v23-latin_latin-ext-700.woff2') format('woff2'); }

/* Root Variables with Dark Glassmorphism Values */
:root {
    --apple-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --text-color-primary: #e0e0e0; /* Dunkel angepasst */
    --text-color-secondary: #a0a0a0; /* Dunkel angepasst */
    --background-color-light: #1a1a1a; /* Dunkel angepasst */
    --background-color-content: rgba(255, 255, 255, 0.02); /* Transparente Basis für Glas */
    --accent-color: #E91F63; /* Passende Akzentfarbe */
    --accent-color-alt: #00A3FF; /* Passende Akzentfarbe */
    --border-color: rgba(255, 255, 255, 0.08); /* Dunkel angepasst */
    --border-radius-medium: 12px;
    --border-radius-large: 18px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--apple-font-family);
    line-height: 1.65;
    margin: 0;
    padding: 0;
    /* Angepasster Hintergrund für das neue Design */
    background-color: #001927;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800'%3E%3Cstyle%3E.shape{opacity:0.6;fill:rgba(200, 0, 200, 0.4);}.shape-purple{fill:rgba(100, 0, 150, 0.4);}%3C/style%3E%3Cg%3E%3Ccircle class='shape' cx='450' cy='300' r='200'/%3E%3Ccircle class='shape-purple' cx='950' cy='500' r='250'/%3E%3Ccircle class='shape' cx='700' cy='400' r='180'/%3E%3Ccircle class='shape-purple' cx='200' cy='600' r='150'/%3E%3Ccircle class='shape' cx='1200' cy='250' r='220'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper { margin-bottom: 3rem; }
.site-header {
  background-color: rgba(26, 26, 26, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 10rem 1.5rem;
  border-bottom: 0px solid #008080;
  margin-bottom: 2.5rem;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-content { text-align: left; }
.site-header h1 {
    font-family: var(--apple-font-family);
    font-weight: 600;
    font-size: 1.5em;
    color: var(--accent-color-alt);
    margin: 0;
    text-transform: none;
}
.site-header h1 a {  
font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.0em;
    background: linear-gradient(to right, #3AFFF8 50%, #00A3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem 12px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.3s 
ease;
}
.site-header p {
    font-family: var(--apple-font-family);
    font-style: normal;
    font-size: 0.9em;
    color: var(--text-color-secondary);
    margin: 0.1em 0 0 0;
}
.site-header p a { color: var(--accent-color); text-decoration: none; }
.site-header p a:hover { text-decoration: underline; }
.language-switcher {
    position: relative;
    z-index: 11;
    background-color: transparent;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    box-shadow: none;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.2em;
}
.language-switcher a, .language-switcher .current-lang {
    color: var(--text-color-secondary);
    text-decoration: none;
    padding: 0.2em 0.35em;
    display: inline-block;
}
.language-switcher a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.language-switcher .current-lang {
    font-weight: 600;
    color: var(--accent-color);
}
.language-switcher .lang-separator {
    color: #555;
    margin: 0 0.15em;
    font-weight: 300;
}
.theme-toggle-button { display: none; }
#content {
    margin: 0 auto 3rem auto;
    max-width: 820px;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15), inset 0 0 8px rgba(255, 255, 255, 0.03);
    color: var(--text-color-primary);
}
#firstHeading {
    font-family: var(--apple-font-family);
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
    color: var(--text-color-primary);
}
#firstHeading a { color: inherit; text-decoration: none; }
#siteSub {
    font-family: var(--apple-font-family);
    font-size: 1.1em;
    color: var(--text-color-secondary);
    margin-bottom: 3em;
    text-align: center;
}
#content h2, #content h3, #content h4 {
    font-family: var(--apple-font-family);
    font-weight: 600;
    color: var(--accent-color-alt);
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0;
    border-bottom: none;
    line-height: 1.3;
}
#content h2 { font-size: 2em; margin-top: 3em; }
#content h3 { font-size: 1.5em; }
#content h4 { font-size: 1.2em; font-weight: 500; color: var(--accent-color-alt); }
#content p { margin-bottom: 1.5em; font-size: 1.1em; }
#content ul, #content ol { margin-left: 1.5em; margin-bottom: 1.5em; padding-left: 0.8em;}
#content li { margin-bottom: 0.6em; font-size: 1.1em;}
#content strong, #content b { font-weight: 700; color: var(--accent-color-alt); }
#content a { color: var(--accent-color); text-decoration: none; }
#content a:hover { text-decoration: underline; }
#content a.new { color: #d9534f; }
#toc {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.8rem;
    margin-bottom: 3em;
    border-radius: var(--border-radius-medium);
    width: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#toc .toctitle {
    text-align: left;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 1.2em;
    color: var(--text-color-primary);
}
#toc ul { list-style-type: none; margin-left: 0; padding-left: 0; }
#toc > ul > li { margin-bottom: 0.6em; }
#toc ul ul { margin-left: 1em; margin-top: 0.4em; }
#toc .tocnumber { margin-right: 0.6em; color: var(--accent-color); }
#toc .toclevel-1 > a > .toctext { font-weight: 500; }
#toc .toclevel-2 > a > .toctext { font-weight: 400; }
#toc .toclevel-3 > a > .toctext { font-style: normal; color: var(--text-color-secondary); }
#toc a { color: var(--text-color-primary); }
#toc a:hover { color: var(--accent-color); }
.infobox {
    float: right;
    width: 280px;
    margin: 0.5em 0 1.5em 2em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0;
    font-size: 0.95em;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.infobox th {
    background-color: rgba(255, 255, 255, 0.08);
    text-align: left;
    padding: 0.8em 1.2em;
    font-weight: 600;
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-primary);
}
.infobox td {
    padding: 0.8em 1.2em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color-secondary);
}
.infobox table > tbody > tr:first-child > td { border-top: none; }
.infobox a { color: var(--accent-color); }
.table-responsive-stacked-wrapper { margin-top: 2.5em; margin-bottom: 2.5em; }
.comparison-table-stacked caption {
    font-family: var(--apple-font-family);
    font-weight: 600;
    font-size: 1.5em;
    padding: 0 0 1em 0;
    text-align: left;
    color: var(--text-color-primary);
    background-color: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5em;
}
.comparison-table-stacked {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em 0;
    border: none;
    border-radius: 0;
    table-layout: auto;
}
.comparison-table-stacked th,
.comparison-table-stacked td {
    padding: 1em 1.2em;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.comparison-table-stacked tr:last-child td { border-bottom: none; }
.comparison-table-stacked thead th {
    background-color: transparent;
    font-weight: 600;
    color: var(--text-color-secondary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
}
.comparison-table-stacked tbody tr:hover { background-color: rgba(0, 128, 128, 0.1); }
.note {
    background-color: rgba(0, 128, 128, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 2.5em 0;
    border-radius: var(--border-radius-medium);
    font-style: normal;
    color: var(--text-color-primary);
    font-size: 1.05em;
    line-height: 1.6;
}
.note p { margin-bottom: 0.5em; }
.note p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
    .site-header {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }
    .header-content {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    .site-header h1 { font-size: 1.6em; }
    .site-header p { font-size: 0.95em; }
    .language-switcher {
        margin-top: 0;
        justify-content: center;
        width: auto;
        padding: 0.1em 0.7em;
    }
    .comparison-table-stacked caption {
        text-align: center;
        font-size: 1.3em;
    }
    .comparison-table-stacked thead { display: none; }
    .comparison-table-stacked tr {
        display: block;
        margin-bottom: 1.5em;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background-color: rgba(255, 255, 255, 0.02);
        border-radius: var(--border-radius-medium);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    .comparison-table-stacked td {
        display: block;
        text-align: right;
        padding: 0.8em 1em;
        padding-left: 45%;
        position: relative;
        border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    }
    .comparison-table-stacked tr td:last-child { border-bottom: none; }
    .comparison-table-stacked td::before {
        content: attr(data-label);
        position: absolute;
        left: 1em;
        width: calc(45% - 1.5em);
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: var(--text-color-primary);
        font-size: 0.9em;
    }
    .infobox { float: none; width: 100%; margin: 2em 0; }
    #content { padding: 1.5rem; }
    #firstHeading { font-size: 2.2em; }
    #content h2 { font-size: 1.7em; }
    #content h3 { font-size: 1.35em; }
    #content p, #content li { font-size: 1em; }
}
@media (max-width: 480px) {
    body { filter: none; }
    #content { padding: 1.5rem 1rem; border-radius: var(--border-radius-medium); }
    #firstHeading { font-size: 1.9em; }
    #content h2 { font-size: 1.5em; }
    #content h3 { font-size: 1.2em; }
    .comparison-table-stacked td { padding-left: 1em; text-align: left; padding-top: 3em;}
    .comparison-table-stacked td::before { top: 1em; width: calc(100% - 2em); font-size: 0.85em; }
    .language-switcher { font-size: 0.75em; gap: 0.15em; padding: 0.1em 0.5em; }
}
code, .font-source-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-color-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.45em;
    border-radius: 6px;
    font-size: 0.9em;
}
.font-anton { font-family: 'Anton', sans-serif; }
.clear { clear: both; }
.site-footer {
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color-secondary);
    background-color: transparent;
    border-top: 0px solid var(--border-color);
}
.footer-container { max-width: 820px; margin-left: auto; margin-right: auto; padding: 0 1rem; }
.footer-links { margin-bottom: 0.8em; }
.footer-links a { color: var(--text-color-secondary); text-decoration: none; margin: 0 0.8em; }
.footer-links a:hover { color: var(--accent-color); text-decoration: underline; }
.footer-copyright { font-size: 0.9em; }
#section-nav {
    position: fixed;
    top: 50%;
    /* Position auf 10px festgesetzt */
    right: 7px; 
    transform: translateY(-50%);
    display: flex !important; 
    flex-direction: column;
    gap: 12px;
    /* Stark erhöhter Z-Index zur Behebung von Überdeckungsproblemen */
    z-index: 100000; 
}
.section-nav-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #444;
}
.section-nav-dot.dot-icon-top::before { content: "↑"; font-weight: bold; }
.section-nav-dot.dot-icon-bottom::before { content: "↓"; font-weight: bold; }
.section-nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}
.section-nav-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.5);
}
.section-nav-dot.active.dot-icon-top::before,
.section-nav-dot.active.dot-icon-bottom::before { color: rgb(255 255 255); }
@media (max-width: 900px) {
    #section-nav {
        right: 10px;
        gap: 10px;
    }
    .section-nav-dot {
        width: 8px;
        height: 8px;
        font-size: 7px;
    }
}
@media (max-width: 767px) {
    #section-nav {
        right: 8px;
        gap: 8px;
    }
    .section-nav-dot {
        width: 7px;
        height: 7px;
        font-size: 6px;
    }
    .section-nav-dot.active {
        transform: scale(1.2);
    }
}
@media (max-width: 480px) {
    #section-nav {
        right: 5px;
        gap: 7px;
    }
    .section-nav-dot {
        width: 6px;
        height: 6px;
        font-size: 5px;
    }
}