@charset "UTF-8";

/* ------------------------------------------------------------------
   ðŸŽ¨ Open Color Palette
   Tufte CSS adapted for Bernd Bosbach
   ------------------------------------------------------------------ */
:root {
    /* Grays */
    --oc-gray-0: #f8f9fa;
    --oc-gray-1: #f1f3f5;
    --oc-gray-2: #e9ecef;
    --oc-gray-3: #dee2e6;
    --oc-gray-4: #ced4da;
    --oc-gray-5: #adb5bd;
    --oc-gray-6: #868e96;
    --oc-gray-7: #495057;
    --oc-gray-8: #343a40;
    --oc-gray-9: #212529;
    
    /* Orange (Akzentfarbe) */
    --oc-orange-0: #fff4e6;
    --oc-orange-1: #ffe8cc;
    --oc-orange-2: #ffd8a8;
    --oc-orange-3: #ffc078;
    --oc-orange-4: #ffa94d;
    --oc-orange-5: #ff922b;
    --oc-orange-6: #fd7e14;
    --oc-orange-7: #f76707;
    --oc-orange-8: #e8590c;
    --oc-orange-9: #d9480f;
    
    /* Anwendungs-Variablen */
    --bg: var(--oc-gray-0);
    --text: var(--oc-gray-9);
    --text-light: var(--oc-gray-7);
    --muted: var(--oc-gray-6);
    --border: var(--oc-gray-3);
    --accent: var(--oc-orange-6);
    --accent-hover: var(--oc-orange-7);
    --accent-light: var(--oc-orange-1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #151515;
        --text: var(--oc-gray-1);
        --text-light: var(--oc-gray-4);
        --muted: var(--oc-gray-5);
        --border: var(--oc-gray-7);
    }
}

/* ------------------------------------------------------------------
   ðŸ“ Atkinson Hyperlegible Font
   ------------------------------------------------------------------ */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('../fonts/AtkinsonHyperlegibleNext-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('../fonts/AtkinsonHyperlegibleNext-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('../fonts/AtkinsonHyperlegibleNext-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    src: url('../fonts/AtkinsonHyperlegibleNext-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ------------------------------------------------------------------
   ðŸŽ¯ Base Styles
   ------------------------------------------------------------------ */
html {
    font-size: 15px;
}

body {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* padding-left: 12.5%;*/
    font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    max-width: 800px;
    counter-reset: sidenote-counter;
    hyphens: none;
}

/* Adds dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg);
        color: var(--text);
    }
}

/* ------------------------------------------------------------------
   ðŸ“ Typography
   ------------------------------------------------------------------ */
h1 {
    font-weight: 400;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--text);
}

h2 {
    font-style: italic;
    font-weight: 400;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--text);
}

h3 {
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1.4rem;
    line-height: 1;
    color: var(--text);
}

hr {
    display: block;
    height: 1px;
    width: 55%;
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1em 0;
    padding: 0;
}

p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
    color: var(--text-light);
}

.danger {
    color: var(--accent);
}

article {
    padding: 5rem 0rem;
}

section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

p,
dl,
ol,
ul {
    font-size: 1.4rem;
    line-height: 2rem;
}

p {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-right: 0;
    vertical-align: baseline;
}

/* ------------------------------------------------------------------
   ðŸ’¬ Blockquotes & Epigraphs
   ------------------------------------------------------------------ */
div.epigraph {
    margin: 5em 0;
}

div.epigraph > blockquote {
    margin-top: 3em;
    margin-bottom: 3em;
}

div.epigraph > blockquote,
div.epigraph > blockquote > p {
    font-style: italic;
}

div.epigraph > blockquote > footer {
    font-style: normal;
}

div.epigraph > blockquote > footer > cite {
    font-style: italic;
}

blockquote {
    font-size: 1.4rem;
}

blockquote p {
    width: 55%;
    margin-right: 40px;
}

blockquote footer {
    width: 55%;
    font-size: 1.1rem;
    text-align: right;
}

/* ------------------------------------------------------------------
   ðŸ“ Width Constraints
   ------------------------------------------------------------------ */
section > p,
section > footer,
section > table {
    width: 55%;
}

section > dl,
section > ol,
section > ul {
    width: 50%;
    -webkit-padding-start: 5%;
}

dt:not(:first-child),
li:not(:first-child) {
    margin-top: 0.25rem;
}

/* ------------------------------------------------------------------
   ðŸ–¼ï¸ Figures
   ------------------------------------------------------------------ */
figure {
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figcaption {
    float: right;
    clear: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    vertical-align: baseline;
    position: relative;
    max-width: 40%;
    color: var(--muted);
}

figure.fullwidth figcaption {
    margin-right: 24%;
}

img {
    max-width: 100%;
}

/* ------------------------------------------------------------------
   ðŸ”— Links
   ------------------------------------------------------------------ */
a:link,
a:visited {
    color: var(--accent);
    text-underline-offset: 0.1em;
    text-decoration-thickness: 0.05em;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--accent-hover);
}

/* ------------------------------------------------------------------
   ðŸ“ Sidenotes & Margin Notes
   ------------------------------------------------------------------ */
.sidenote,
.marginnote {
    float: right;
    clear: right;
    margin-right: -60%;
    width: 50%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
    color: var(--text-light);
}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
    color: var(--accent);
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -0.5rem;
    color: var(--accent);
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
}

/* ------------------------------------------------------------------
   ðŸ“Š Tables
   ------------------------------------------------------------------ */
div.fullwidth,
table.fullwidth {
    width: 100%;
}

div.table-wrapper {
    overflow-x: auto;
    font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

/* ------------------------------------------------------------------
   ðŸ’» Code
   ------------------------------------------------------------------ */
code, pre > code {
    font-family: 'Courier New', Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1.0rem;
    line-height: 1.42;
    background: var(--oc-gray-1);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--oc-gray-8);
}

@media (prefers-color-scheme: dark) {
    code, pre > code {
        background: var(--oc-gray-8);
        color: var(--oc-gray-2);
    }
}

h1 > code,
h2 > code,
h3 > code {
    font-size: 0.80em;
}

.marginnote > code,
.sidenote > code {
    font-size: 1rem;
}

pre > code {
    font-size: 0.9rem;
    width: 52.5%;
    margin-left: 2.5%;
    overflow-x: auto;
    display: block;
    padding: 1em;
}

pre.fullwidth > code {
    width: 90%;
}

/* ------------------------------------------------------------------
   ðŸŽ¨ Special Elements
   ------------------------------------------------------------------ */
.fullwidth {
    max-width: 90%;
    clear: both;
}

span.newthought {
    font-variant: small-caps;
    font-size: 1em;
    color: var(--muted);
}

.sans {
    font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
    letter-spacing: .03em;
}

/* ------------------------------------------------------------------
   âœ¨ Hervorhebungen
   ------------------------------------------------------------------ */
strong, b {
    font-weight: 700;
    color: var(--text);
}

em, i {
    font-style: italic;
    color: var(--text-light);
}

.hervorhebung-akzent {
    color: var(--accent);
}

.hervorhebung-wichtig {
    color: var(--text);
    font-weight: 700;
}

.markierung {
    background: var(--accent-light);
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* ------------------------------------------------------------------
   ðŸŽ¬ Responsive Elements
   ------------------------------------------------------------------ */
input.margin-toggle {
    display: none;
}

label.sidenote-number {
    display: inline-block;
    max-height: 2rem;
}

label.margin-toggle:not(.sidenote-number) {
    display: none;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------------------
   ðŸ“± Mobile Responsive
   ------------------------------------------------------------------ */
@media (max-width: 760px) {
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    hr,
    section > p,
    section > footer,
    section > table {
        width: 100%;
    }

    pre > code {
        width: 97%;
    }

    section > dl,
    section > ol,
    section > ul {
        width: 90%;
    }

    figure {
        max-width: 90%;
    }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0%;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
    }

    blockquote p,
    blockquote footer {
        width: 100%;
    }

    label.margin-toggle:not(.sidenote-number) {
        display: inline;
        color: var(--accent);
    }

    .sidenote,
    .marginnote {
        display: none;
    }

    .margin-toggle:checked + .sidenote,
    .margin-toggle:checked + .marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        padding: 1rem;
        background: var(--oc-gray-1);
        border-left: 3px solid var(--accent);
        vertical-align: baseline;
        position: relative;
    }

    @media (prefers-color-scheme: dark) {
        .margin-toggle:checked + .sidenote,
        .margin-toggle:checked + .marginnote {
            background: var(--oc-gray-8);
        }
    }

    label {
        cursor: pointer;
    }

    div.table-wrapper,
    table {
        width: 85%;
    }

    img {
        width: 100%;
    }
}

/* ------------------------------------------------------------------
   ðŸŽ¯ "UND"-Abschnitte (Custom fÃ¼r Bernd Bosbach)
   ------------------------------------------------------------------ */
.und-abschnitt {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.und-abschnitt::before {
    content: "UND";
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.und-abschnitt h4 {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.abschnitt {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    position: relative;
}

/* ------------------------------------------------------------------
   🧭 Navigation (minimalistisch im Tufte-Stil)
   ------------------------------------------------------------------ */
header {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: auto;
    max-width: 800px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.nav-tufte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-tufte .logo {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    margin-right: 2rem;
}

.nav-tufte .logo:hover {
    color: var(--accent);
}

.nav-tufte ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-tufte ul li {
    margin: 0;
}

.nav-tufte ul li a {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-tufte ul li a:hover,
.nav-tufte ul li a:focus {
    color: var(--accent);
}

/* Aktive Seite hervorheben (optional, kann später mit JS ergänzt werden) */
.nav-tufte ul li a.active {
    color: var(--text);
    font-weight: 700;
}

/* Mobile Navigation */
@media (max-width: 760px) {
    header {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }
    
    .nav-tufte {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-tufte .logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .nav-tufte ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ========================================
   Contact Page
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--accent-hover);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Contact Form */
.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-label a {
    color: var(--primary-color);
}

/* ========================================
   Mobile Responsive für neue Seiten
   ======================================== */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-list,
    .topic-list,
    .format-list,
    .info-grid {
        grid-template-columns: 1fr;
    }
}
/* ------------------------------------------------------------------
   🦶 Footer (minimalistisch)
   ------------------------------------------------------------------ */
.footer-tufte {
    width: 87.5%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12.5%;
    max-width: 1400px;
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--muted);
}

.footer-tufte p {
    margin: 0.5rem 0;
    width: 100%;
}

.footer-tufte .footer-kontakt {
    margin-top: 1rem;
    font-size: 1rem;
}

.footer-tufte .footer-links {
    margin-top: 1.5rem;
    font-size: 1rem;
}

.footer-tufte a {
    color: var(--muted);
}

.footer-tufte a:hover {
    color: var(--accent);
}

@media (max-width: 760px) {
    .footer-tufte {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }
}
