body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f8f8;
    padding-top: 130px;
}

.header {
    background: #003366;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
}

.container {
    width: 90%;
    margin: auto;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    margin: 0;
    font-size: 24px;
}

.footer {
    background: #003366;
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 7px;
}

.second-header-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.second-header {
    background: #eaf1ff;
    color: #003366;
    padding: 10px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.horizontal-header {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.horizontal-header h2 {
    font-size: 1rem;
    color: #003366;
    margin: 0;
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.horizontal-header h2:hover {
    border-bottom: 2px solid #003366;
}








h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.5;
    text-transform: none;
    margin: 1rem 10rem;
    padding: 0 10rem;
    text-align: justify;
}

.navigation {
    display: flex;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab, .default-link, .contact-link {
    background: #0055aa;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.tab.active {
    background: #ffaa00;
    color: black;
}

.tab:hover, .default-link:hover, .contact-link:hover {
    background: #0077cc;
    color: white;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: bold;
}

a.styled-link {
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
}

a.styled-link:hover {
    text-decoration: none;
}

a.styled-link-v2 {
    color: #000000;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
}

a.styled-link-v2:hover {
    text-decoration: none;
}

p {
    text-align: center;
    padding: 0 5%;
}





html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}














.toc-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.toc {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 12px;
    background-color: #f4f4f4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toc details {
    margin-bottom: 15px;
    border: 2px solid #003366;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.toc summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 12px 16px;
    background-color: #eaf1ff;
    border-bottom: 1px solid #003366;
    list-style: none;
}

.toc summary::-webkit-details-marker {
    display: none;
}

.toc summary::before {
    content: "➕ ";
    margin-right: 5px;
}

.toc summary.summary2 {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: default;
    padding: 12px 16px;
    background-color: #f8d4d4;
    border-bottom: 1px solid #003366;
    list-style: none;
}

.toc summary.summary2::-webkit-details-marker {
    display: none;
}

.toc summary.summary2::before {
    content: "➖ ";
    margin-right: 5px;
}

.toc details[open] summary::before {
    content: "➖ ";
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}

.toc li {
    margin: 8px 0;
    padding: 8px 12px;
    background-color: #fdfdfd;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.toc li a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.toc li a:hover {
    font-weight: bold;
}









.code-box {
    background: #f5f2e9;
    border: 2px solid #cccccc;
    margin: 10px 300px;
    padding: 20px;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.code-box button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}








.subtitle {
    color: gray; margin-bottom: 20px;
}

.project {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 15px 0;
}

.link-container {
    margin-top: 20px;
    display: flex;
}

.link-container a {
    font-size: 16px;
    color: black;
}

.link-container a:hover {
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.topbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input {
    flex: 1;
    padding: 6px;
}

.date {
    font-size: 12px;
    color: gray;
}







.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.template-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-box {
    height: 140px;
    background: #e0e6ef;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
}

.template-card h3 {
    margin: 0 0 10px 0;
}

.template-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.button-row {
    display: flex;
    justify-content: space-between;
}

.btn {
    background: #003366;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn.secondary {
    background: #0055aa;
}

.btn:hover {
    background: #0077cc;
}




@media screen and (max-width: 850px) {
    body > * {
        display: none !important;
    }

    body::after {
        content: "Die Seite ist nur als Desktop-Version verfügbar.";
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        font-size: 1.5rem;
        color: #000;
        background: #fff;
        padding: 20px;
        box-sizing: border-box;
        z-index: 9999;
    }
}