/* ===  Reset & Base  === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===  Container  === */
.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.5rem
}

/* ===  Header  === */
header {
    text-align: center;
    padding: 2.5rem 0 1.5rem
}

header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

header .accent {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: clamp(.95rem, 2.5vw, 1.1rem);
    color: rgba(226, 232, 240, .75)
}

/* ===  Theme Toggle  === */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, .25);
    background: rgba(15, 23, 42, .7);
    color: rgba(226, 232, 240, .9);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all .25s ease;
}

.theme-toggle:hover {
    background: rgba(6, 182, 212, .15);
    color: #fff;
    border-color: rgba(6, 182, 212, .45);
}

.theme-toggle .theme-toggle-icon {
    line-height: 1;
}

/* ===  Tab Navigation  === */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: .6rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, .2);
    background: rgba(15, 23, 42, .7);
    color: rgba(226, 232, 240, .7);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
}

.tab-btn:hover {
    background: rgba(6, 182, 212, .1);
    color: #fff;
    border-color: rgba(6, 182, 212, .45);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, .18), rgba(59, 130, 246, .18));
    color: #fff;
    border-color: rgba(6, 182, 212, .55);
    box-shadow: 0 0 14px rgba(6, 182, 212, .15);
}

/* ===  Tab Content  === */
.tab-content {
    display: none;
    animation: fadeIn .35s ease
}

.tab-content.active {
    display: block
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===  Card  === */
.card {
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

.card h2 {
    font-size: clamp(1.15rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 1.25rem 0 .6rem
}

.card p,
.card li {
    color: rgba(226, 232, 240, .85);
    font-size: .95rem
}

.card ul,
.card ol {
    padding-left: 1.5rem;
    margin: .5rem 0
}

.card li {
    margin-bottom: .4rem
}

.card a {
    color: #06b6d4;
    text-decoration: none;
    transition: color .2s
}

.card a:hover {
    color: #38bdf8;
    text-decoration: underline
}

/* ===  Content Wrapper (Unterseiten)  === */
.content-wrapper {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ===  Typography (global für Unterseiten)  === */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid rgba(6, 182, 212, .3);
}

h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: .75rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: .6rem;
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(226, 232, 240, .95);
    margin-top: 1.25rem;
    margin-bottom: .5rem;
}

p {
    margin-bottom: .85rem;
    color: rgba(226, 232, 240, .85);
    font-size: .95rem;
}

/* ===  Lists  === */
ul,
ol {
    padding-left: 1.5rem;
    margin: .5rem 0 1rem
}

li {
    margin-bottom: .4rem;
    color: rgba(226, 232, 240, .85);
    font-size: .95rem;
    line-height: 1.7
}

ul ul,
ol ol,
ul ol,
ol ul {
    margin-top: .35rem;
    margin-bottom: .35rem
}

/* ===  Links  === */
a {
    color: #06b6d4;
    text-decoration: none;
    transition: color .2s
}

a:hover {
    color: #38bdf8;
    text-decoration: underline
}

/* ===  Strong/Bold  === */
b,
strong {
    font-weight: 600;
    color: #fff
}

/* ===  Navigation Section (Index)  === */
.nav-section {
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

.nav-section h2 {
    font-size: clamp(1.15rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(6, 182, 212, .2);
    margin-top: 0;
}

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

.nav-card {
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(6, 182, 212, .15);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all .25s ease;
}

.nav-card:hover {
    border-color: rgba(6, 182, 212, .4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.nav-card h3 {
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: .4rem;
    margin-top: 0;
}

.nav-card p {
    font-size: .85rem;
    color: rgba(226, 232, 240, .6);
    margin-bottom: .75rem;
}

.nav-card a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, .25);
    background: rgba(6, 182, 212, .08);
    transition: all .25s ease;
}

.nav-card a:hover {
    color: #fff;
    background: rgba(6, 182, 212, .18);
    border-color: rgba(6, 182, 212, .5);
    text-decoration: none;
}

/* ===  AVV Section (Index)  === */
.avv-section {
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

.avv-section h2 {
    font-size: clamp(1.15rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(6, 182, 212, .2);
    margin-top: 0;
}

.avv-section p {
    color: rgba(226, 232, 240, .7);
    font-size: .9rem;
    margin-bottom: .5rem;
}

/* ===  AVV Grid  === */
.avv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

.avv-item,
.avv-card {
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(6, 182, 212, .15);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all .25s ease;
}

.avv-item:hover,
.avv-card:hover {
    border-color: rgba(6, 182, 212, .4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3)
}

.avv-item .provider,
.avv-card h3 {
    font-weight: 600;
    color: #fff;
    font-size: .95rem;
    margin-bottom: .2rem;
    margin-top: 0
}

.avv-item .desc {
    font-size: .8rem;
    color: rgba(226, 232, 240, .55);
    margin-bottom: .6rem
}

.avv-card .avv-category {
    color: #06b6d4;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: .6rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.avv-item .link,
.avv-card a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    padding: .4rem .85rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, .25);
    background: rgba(6, 182, 212, .08);
    transition: all .25s ease;
    margin-top: .5rem;
}

.avv-item .link:hover,
.avv-card a:hover {
    color: #fff;
    background: rgba(6, 182, 212, .18);
    border-color: rgba(6, 182, 212, .5);
    text-decoration: none;
}

.avv-card a::after {
    content: " →";
    margin-left: 4px
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #06b6d4;
    flex-shrink: 0
}

/* ===  Contact Section (Index)  === */
.contact-section {
    background: rgba(15, 23, 42, .88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(6, 182, 212, .2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

.contact-section h2 {
    font-size: clamp(1.15rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(6, 182, 212, .2);
    margin-top: 0;
}

.contact-info {
    color: rgba(226, 232, 240, .85);
    line-height: 1.8
}

.contact-info p {
    margin-bottom: .35rem;
    font-size: .95rem
}

.contact-info a {
    color: #06b6d4;
    text-decoration: none
}

.contact-info a:hover {
    color: #38bdf8;
    text-decoration: underline
}

/* ===  Back Link  === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: .6rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, .25);
    background: rgba(6, 182, 212, .08);
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
    transition: all .25s ease;
}

.back-link:hover {
    color: #fff;
    background: rgba(6, 182, 212, .18);
    border-color: rgba(6, 182, 212, .5);
    text-decoration: none;
}

/* ===  Copyright Footer (Unterseiten – IT-Recht Kanzlei)  === */
#itkanzlei_txt_copyright {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(6, 182, 212, .15);
    font-size: .75rem;
    color: rgba(226, 232, 240, .45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

#itkanzlei_img_copyright {
    max-width: 180px;
    height: auto;
    border: none
}

/* Copyright footer inside card */
.copyright {
    margin-top: 3rem;
    font-size: .75rem;
    color: rgba(226, 232, 240, .5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.copyright img {
    max-width: 100%;
    border: none;
    margin-top: -10px
}

/* ===  Page Footer  === */
footer,
.page-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(6, 182, 212, .15);
    text-align: center;
}

footer p,
.page-footer p {
    color: rgba(226, 232, 240, .55);
    font-size: .85rem;
    margin-bottom: .35rem
}

footer a,
.page-footer a {
    color: #06b6d4;
    text-decoration: none
}

footer a:hover,
.page-footer a:hover {
    text-decoration: underline
}

/* ===  Light Theme  === */
html.light body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: #334155;
}

html.light header h1 {
    color: #0f172a;
}

html.light header p {
    color: rgba(15, 23, 42, .7);
}

html.light .theme-toggle {
    border-color: rgba(2, 132, 199, .35);
    background: rgba(255, 255, 255, .9);
    color: #0369a1;
}

html.light .theme-toggle:hover {
    background: rgba(2, 132, 199, .1);
    color: #0284c7;
    border-color: rgba(2, 132, 199, .5);
}

html.light .nav-section,
html.light .avv-section,
html.light .contact-section {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(2, 132, 199, .2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

html.light .nav-section h2,
html.light .avv-section h2,
html.light .contact-section h2 {
    color: #0f172a;
    border-bottom-color: rgba(2, 132, 199, .25);
}

html.light .nav-section p,
html.light .avv-section p,
html.light .contact-section p {
    color: #475569;
}

html.light .nav-card,
html.light .avv-card {
    background: rgba(248, 250, 252, .95);
    border-color: rgba(2, 132, 199, .18);
}

html.light .nav-card:hover,
html.light .avv-card:hover {
    border-color: rgba(2, 132, 199, .4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

html.light .nav-card h3,
html.light .avv-card h3 {
    color: #0f172a;
}

html.light .nav-card p {
    color: #64748b;
}

html.light .avv-card .avv-category {
    color: #0284c7;
}

html.light .nav-card a,
html.light .avv-card a {
    color: #0369a1;
    border-color: rgba(2, 132, 199, .3);
    background: rgba(2, 132, 199, .08);
}

html.light .nav-card a:hover,
html.light .avv-card a:hover {
    color: #0c4a6e;
    background: rgba(2, 132, 199, .15);
    border-color: rgba(2, 132, 199, .5);
}

html.light .contact-info,
html.light .contact-info p {
    color: #475569;
}

html.light .contact-info a {
    color: #0369a1;
}

html.light .contact-info a:hover {
    color: #0284c7;
}

html.light .content-wrapper {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(2, 132, 199, .2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

html.light .card {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(2, 132, 199, .2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

html.light h1,
html.light h2,
html.light h3,
html.light h4 {
    color: #0f172a;
}

html.light h1 {
    border-bottom-color: rgba(2, 132, 199, .3);
}

html.light p,
html.light li {
    color: #475569;
}

html.light b,
html.light strong {
    color: #0f172a;
}

html.light a {
    color: #0369a1;
}

html.light a:hover {
    color: #0284c7;
}

html.light .back-link {
    border-color: rgba(2, 132, 199, .3);
    background: rgba(2, 132, 199, .08);
    color: #0369a1;
}

html.light .back-link:hover {
    color: #0c4a6e;
    background: rgba(2, 132, 199, .15);
    border-color: rgba(2, 132, 199, .5);
}

html.light #itkanzlei_txt_copyright,
html.light .copyright {
    color: #64748b;
    border-top-color: rgba(2, 132, 199, .2);
}

html.light footer p,
html.light .page-footer p {
    color: #64748b;
}

html.light footer a,
html.light .page-footer a {
    color: #0369a1;
}

html.light footer a:hover,
html.light .page-footer a:hover {
    color: #0284c7;
}

/* ===  Responsive  === */
@media(max-width:600px) {
    .container {
        padding: 1.25rem 1rem
    }

    header {
        padding: 1.5rem 0 1rem
    }

    .card,
    .nav-section,
    .avv-section,
    .contact-section {
        padding: 1.25rem;
        margin-bottom: 1rem
    }

    .content-wrapper {
        padding: 1.25rem;
        margin: 1rem .5rem
    }

    .tab-btn {
        padding: .5rem 1rem;
        font-size: .82rem
    }

    #itkanzlei_txt_copyright,
    .copyright {
        flex-direction: column;
        align-items: flex-start
    }

    .avv-grid,
    .nav-grid {
        grid-template-columns: 1fr
    }

    h1 {
        font-size: clamp(1.5rem, 4vw, 2rem)
    }

    ul,
    ol {
        padding-left: 1.2rem
    }
}

/* ===  Print Styles  === */
@media print {
    body {
        background: #fff;
        color: #222
    }

    .content-wrapper {
        box-shadow: none;
        border: none;
        padding: 0;
        background: #fff
    }

    .nav-section,
    .avv-section,
    .contact-section,
    header,
    footer,
    .page-footer,
    .back-link,
    .theme-toggle {
        display: none
    }

    h1,
    h2,
    h3,
    h4 {
        color: #222
    }

    p,
    li {
        color: #333
    }

    a {
        color: #333;
        text-decoration: underline
    }
}
