/* style.css */

/* CSS Variables for theming */
:root {
    --primary-bg: #0A1F44;
    --secondary-bg: #0d2a5a;
    --text-color: #ffffff;
    --accent-color: #FF7F00;
    --highlight-color: #FFD700;
    --link-color: #FFD700;
    --link-hover: #FF7F00;
    --menu-hover: rgba(255, 127, 0, 0.1);
    --content-bg: #0f2d5e;
}

body.light-mode {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --text-color: #1a1a1a;
    --accent-color: #FF6B00;
    --highlight-color: #0099CC;
    --link-color: #0066FF;
    --link-hover: #FF6B00;
    --menu-hover: rgba(0, 153, 204, 0.15);
    --content-bg: #FFFFFF;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 77%; /* 77% der Originalgröße */
}

/* Header styles */
header {
    background-color: var(--secondary-bg);
    padding: 1.155rem 1.54rem; /* 77% von 1.5rem 2rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1.54px 7.7px rgba(0, 0, 0, 0.3); /* 77% von 0 2px 10px */
    transition: background-color 0.3s ease;
}

body.light-mode header {
    box-shadow: 0 1.54px 7.7px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.77rem; /* 77% von 1rem */
}

.logo {
    width: 38.5px; /* 77% von 50px */
    height: 38.5px;
}

header h1 {
    color: var(--accent-color);
    font-size: 1.386rem; /* 77% von 1.8rem */
    font-weight: 600;
}

/* Theme toggle button */
#theme-toggle {
    background-color: var(--accent-color);
    border: none;
    padding: 0.5775rem 0.9625rem; /* 77% von 0.75rem 1.25rem */
    border-radius: 19.25px; /* 77% von 25px */
    cursor: pointer;
    font-size: 0.924rem; /* 77% von 1.2rem */
    transition: transform 0.2s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.385rem; /* 77% von 0.5rem */
}

#theme-toggle:hover {
    transform: scale(1.05);
    background-color: var(--highlight-color);
}

body.light-mode #theme-toggle:hover {
    background-color: #007AA3;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: inline;
}

body.light-mode .sun-icon {
    display: inline;
}

body.light-mode .moon-icon {
    display: none;
}

/* Container layout */
.container {
    display: flex;
    min-height: calc(100vh - 69.3px); /* 77% von 90px */
}

/* Sidebar navigation */
.sidebar {
    width: 215.6px; /* 77% von 280px */
    background-color: var(--secondary-bg);
    padding: 1.54rem 0; /* 77% von 2rem */
    box-shadow: 1.54px 0 7.7px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    position: sticky;
    top: 0;
    height: calc(100vh - 69.3px);
    overflow-y: auto;
}

body.light-mode .sidebar {
    box-shadow: 1.54px 0 7.7px rgba(0, 0, 0, 0.08);
    border-right: 0.77px solid #e0e0e0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 0;
}

.sidebar a {
    display: block;
    padding: 0.77rem 1.54rem; /* 77% von 1rem 2rem */
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    border-left: 2.31px solid transparent; /* 77% von 3px */
}

.sidebar a:hover {
    background-color: var(--menu-hover);
    color: var(--accent-color);
    padding-left: 1.925rem; /* 77% von 2.5rem */
    border-left-color: var(--accent-color);
}

body.light-mode .sidebar a:hover {
    border-left-color: var(--highlight-color);
}

.sidebar a.active {
    background-color: var(--menu-hover);
    color: var(--accent-color);
    border-left-color: var(--highlight-color);
    font-weight: 600;
}

body.light-mode .sidebar a.active {
    color: var(--highlight-color);
    font-weight: 700;
}

/* Main content area */
.content {
    flex: 1;
    padding: 2.31rem; /* 77% von 3rem */
    background-color: var(--primary-bg);
    transition: background-color 0.3s ease;
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(15.4px); /* 77% von 20px */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-section.active {
    display: block;
    animation: fadeInSlide 0.3s ease forwards;
}

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

/* Content typography */
.content h2 {
    color: var(--accent-color);
    font-size: 1.54rem; /* 77% von 2rem */
    margin-bottom: 1.155rem; /* 77% von 1.5rem */
    border-bottom: 2.31px solid var(--highlight-color); /* 77% von 3px */
    padding-bottom: 0.385rem; /* 77% von 0.5rem */
}

body.light-mode .content h2 {
    color: var(--accent-color);
    border-bottom-color: var(--highlight-color);
}

.content h3 {
    color: var(--highlight-color);
    font-size: 1.155rem; /* 77% von 1.5rem */
    margin-top: 1.54rem; /* 77% von 2rem */
    margin-bottom: 0.77rem; /* 77% von 1rem */
}

body.light-mode .content h3 {
    color: var(--highlight-color);
}

.content p {
    margin-bottom: 0.77rem;
    line-height: 1.8;
}

.content ul {
    margin-left: 1.54rem; /* 77% von 2rem */
    margin-bottom: 0.77rem;
}

.content li {
    margin-bottom: 0.385rem; /* 77% von 0.5rem */
}

.content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 0.77px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    font-weight: 500;
}

.content a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

body.light-mode .content a {
    font-weight: 600;
}

/* Link blocks */
.link-block {
    background-color: var(--content-bg);
    padding: 1.155rem; /* 77% von 1.5rem */
    margin-bottom: 1.54rem; /* 77% von 2rem */
    border-radius: 6.16px; /* 77% von 8px */
    border-left: 3.08px solid var(--accent-color); /* 77% von 4px */
    box-shadow: 0 1.54px 6.16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.light-mode .link-block {
    background-color: #FFFFFF;
    border-left-color: var(--highlight-color);
    box-shadow: 0 1.54px 9.24px rgba(0, 153, 204, 0.15);
    border: 0.77px solid rgba(0, 153, 204, 0.2);
}

.link-block:hover {
    transform: translateX(3.85px); /* 77% von 5px */
    box-shadow: 0 3.08px 9.24px rgba(0, 0, 0, 0.3);
}

body.light-mode .link-block:hover {
    box-shadow: 0 3.08px 15.4px rgba(0, 153, 204, 0.3);
    border-left-color: var(--accent-color);
}

.link-block h3 {
    margin-top: 0;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6.16px; /* 77% von 8px */
}

.sidebar::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3.08px; /* 77% von 4px */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--highlight-color);
}

body.light-mode .sidebar::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
}

body.light-mode .sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.155rem 0; /* 77% von 1.5rem */
    background-color: var(--content-bg);
    border-radius: 6.16px; /* 77% von 8px */
    overflow: hidden;
}

body.light-mode table {
    background-color: #FFFFFF;
    border: 0.77px solid #e0e0e0;
}

th, td {
    padding: 0.77rem; /* 77% von 1rem */
    text-align: left;
    border-bottom: 0.77px solid rgba(255, 255, 255, 0.1);
}

body.light-mode th,
body.light-mode td {
    border-bottom: 0.77px solid #e0e0e0;
}

th {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
}

body.light-mode th {
    background-color: var(--highlight-color);
    color: #FFFFFF;
}

tr:hover {
    background-color: var(--menu-hover);
}

body.light-mode tr:hover {
    background-color: rgba(0, 153, 204, 0.08);
}
