:root {
    /* Light Mode - Mac OS 9 Style (Authentische Farben) */
    --bg-page: #C0C0C0;
    --bg-window: #FFFFFF;
    --bg-sidebar: #E8E8E8;
    --bg-content: #FFFFFF;
    --bg-titlebar: #D0D0D0;
    --bg-infobar: #E8E8E8;
    --text-primary: #000000;
    --text-secondary: #404040;
    --border-color: #808080;
    --border-dark: #000000;
    --border-light: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.4);
    --sidebar-hover: #D0D0D0;
    --sidebar-active: #B0B0B0;
    --button-bg: #E0E0E0;
    --button-hover: #D0D0D0;
    --titlebar-bg: #D0D0D0;
    --titlebar-text: #000000;
    --selection-bg: #0066CC;
    --selection-text: #FFFFFF;
}

[data-theme="dark"] {
    /* Dark Mode - Mac OS 9 Style (Dunkler Grau) */
    --bg-page: #404040;
    --bg-window: #505050;
    --bg-sidebar: #484848;
    --bg-content: #505050;
    --bg-titlebar: #484848;
    --bg-infobar: #505050;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --border-color: #606060;
    --border-dark: #000000;
    --border-light: #707070;
    --shadow: rgba(0, 0, 0, 0.6);
    --sidebar-hover: #585858;
    --sidebar-active: #606060;
    --button-bg: #606060;
    --button-hover: #686868;
    --titlebar-bg: #484848;
    --titlebar-text: #E0E0E0;
    --selection-bg: #0066CC;
    --selection-text: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geneva', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-page);
    background-image: 
        repeating-linear-gradient(45deg, #C0C0C0 0px, #C0C0C0 1px, #B8B8B8 1px, #B8B8B8 2px);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-image: 
        repeating-linear-gradient(45deg, #404040 0px, #404040 1px, #383838 1px, #383838 2px);
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Mac OS 9 Window - 3D Beveled Frame */
.os9-window {
    width: 97%;
    max-width: 1500px;
    min-height: 800px;
    height: 86vh;
    background: var(--bg-window);
    border: 4px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    box-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        4px 4px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Window Title Bar - Mac OS 9 Style */
.window-titlebar {
    height: 20px;
    background: var(--bg-titlebar);
    border-bottom: 1px solid var(--border-dark);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 4px;
    user-select: none;
    font-size: 11px;
    font-weight: bold;
    color: var(--titlebar-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.window-controls {
    display: flex;
    gap: 4px;
    margin-right: 4px;
}

.window-control {
    width: 12px;
    height: 12px;
    border: 1px solid var(--border-dark);
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    cursor: pointer;
    position: relative;
    background: var(--button-bg);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.window-control:hover {
    background: var(--button-hover);
}

.window-control.close {
    background: #FF6B6B;
    border-color: var(--border-dark);
}

.window-control.close:hover {
    background: #FF5555;
}

.window-control.zoom {
    background: #4ECDC4;
    border-color: var(--border-dark);
}

.window-control.zoom:hover {
    background: #3ED4CC;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--titlebar-text);
    letter-spacing: 0.5px;
}

/* Information Bar - Mac OS 9 Style */
.window-infobar {
    height: 18px;
    background: var(--bg-infobar);
    border-bottom: 1px solid var(--border-dark);
    border-top: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Window Content */
.window-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: var(--bg-content);
}

/* Sidebar - Mac OS 9 Style */
.os9-sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    overflow: hidden; /* Keine Scrollbars */
}

.sidebar-logo {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--button-bg);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.sidebar-logo-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.sidebar-nav {
    flex: 1;
}

.sidebar-section {
    margin-bottom: 1rem;
}

.sidebar-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 12px;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: var(--selection-bg);
    color: var(--selection-text);
    border-left-color: var(--border-dark);
}

.sidebar-item.active {
    background: var(--selection-bg);
    color: var(--selection-text);
    border-left-color: var(--border-dark);
    font-weight: bold;
}

.sidebar-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Main Content */
.os9-content {
    flex: 1;
    overflow: hidden; /* Keine Scrollbars */
    padding: 2rem;
    background: var(--bg-content);
}

.os9-page {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* Scrollbar verstecken */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.os9-page::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.os9-page {
    display: none;
}

.os9-page.active {
    display: block;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.content-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.content-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Buttons - Mac OS 9 Style (3D-Effekt) */
button, .btn {
    background: var(--button-bg);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    border-radius: 0;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

button:hover, .btn:hover {
    background: var(--button-hover);
}

button:active, .btn:active {
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    border-top-color: var(--border-dark);
    border-left-color: var(--border-dark);
    border-right-color: var(--border-light);
    border-bottom-color: var(--border-light);
}

/* Content Sections */
.company-intro, .content-grid, .portfolio, .magazin, .kontakt, .studio-status, .company-meta {
    margin-bottom: 2rem;
}

.company-intro h2, .portfolio h1, .magazin h1, .kontakt h1, .studio-status h1 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.company-intro p, .portfolio p, .magazin p, .kontakt p, .studio-status p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-item {
    background: var(--bg-sidebar);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.content-item i {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-item h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.content-item p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.portfolio-grid, .magazin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.portfolio-item, .magazin-item {
    background: var(--bg-sidebar);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    padding: 1.5rem;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.portfolio-item h3, .magazin-item h3 {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.portfolio-item p, .magazin-item p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.company-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.meta-column h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-column p, .meta-column ul {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.meta-column ul {
    padding-left: 1.5rem;
}

.meta-column li {
    margin-bottom: 0.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--button-bg);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.contact-link:hover {
    background: var(--button-hover);
}

.contact-link:active {
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    border-top-color: var(--border-dark);
    border-left-color: var(--border-dark);
    border-right-color: var(--border-light);
    border-bottom-color: var(--border-light);
}

/* Footer */
.os9-footer {
    height: 20px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-size: 11px;
    color: var(--text-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.os9-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
}

.os9-footer a:hover {
    text-decoration: underline;
}

/* Theme Tab - Mac OS 9 Style */
.theme-tab {
    position: absolute;
    right: 7.2rem;
    bottom: 7rem;
    transform: translateX(28px);
    display: flex;
    align-items: center;
    z-index: 1;
    transition: transform 0.3s ease;
}

.theme-tab-handle {
    width: 28px;
    height: 60px;
    background: var(--button-bg);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        2px 2px 4px var(--shadow);
    font-size: 0.85rem;
}

.theme-tab-content {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--button-bg);
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    border-right: none;
    margin-right: 0;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        2px 2px 4px var(--shadow);
}

.theme-tab:hover {
    transform: translateX(135px);
}

.theme-btn {
    width: 26px;
    height: 26px;
    border: 2px solid;
    border-top-color: var(--border-light);
    border-left-color: var(--border-light);
    border-right-color: var(--border-dark);
    border-bottom-color: var(--border-dark);
    background: var(--bg-content);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    font-size: 0.85rem;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.theme-btn:hover {
    background: var(--button-hover);
}

.theme-btn.active {
    background: var(--sidebar-active);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    border-top-color: var(--border-dark);
    border-left-color: var(--border-dark);
    border-right-color: var(--border-light);
    border-bottom-color: var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
    .os9-window {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .os9-sidebar {
        width: 180px;
    }
    
    .content-grid, .portfolio-grid, .magazin-grid {
        grid-template-columns: 1fr;
    }
}
