/* Grundlegende Zurücksetzung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header-Styling */
header {
    background-color: #2563eb;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    height: 40px;
    width: 40px;
    margin-right: 1rem;
}

h1 {
    font-size: 1.8rem;
}

nav {
    display: flex;
    flex-direction: column;
}

nav ul.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

nav li {
    margin-right: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: #1e40af;
}

/* Sprachumschaltung */
.language-switch {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.lang-btn.active {
    background-color: white;
    color: #2563eb;
    font-weight: bold;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section {
    display: none;
    margin-bottom: 2rem;
}

.active-section {
    display: block;
}

h2 {
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

/* Startseite */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-content {
    flex: 2;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.image-container {
    margin-top: 1.5rem;
}

.main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.01);
}

.image-caption {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.warning-box {
    background-color: #fff9e6;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-top: 1.5rem;
}

/* Demo-Button */
.demo-button-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f0f4ff;
    border-radius: 8px;
    border: 1px dashed #2563eb;
}

.demo-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1rem;
}

.demo-button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.demo-button:active {
    transform: translateY(0);
}

/* Projekte */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.project-card button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-card button:hover {
    background-color: #1e40af;
}

/* Links */
.links-list {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.links-table {
    width: 100%;
    border-collapse: collapse;
}

.links-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.links-table tr:last-child {
    border-bottom: none;
}

.links-table td {
    padding: 1rem 0.5rem;
}

.link-description {
    width: 30%;
    font-weight: bold;
    color: #4b5563;
}

.link-url {
    width: 70%;
}

.link-url a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

.link-url a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Über mich */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
}

.skills-box {
    flex: 1;
    background-color: #f0f4ff;
    padding: 1.5rem;
    border-radius: 6px;
}

.skills-box ul {
    list-style-type: none;
}

.skills-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 1.5rem;
}

.skills-box li:before {
    content: "▶";
    color: #2563eb;
    position: absolute;
    left: 0;
}

.skills-box li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #93c5fd;
}

/* Responsive Design */
@media (min-width: 768px) {
    .logo-container {
        margin-bottom: 0;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    nav {
        flex-direction: row;
        align-items: center;
    }
    
    nav ul.nav-links {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .language-switch {
        margin-top: 0;
    }

    .content-container {
        flex-direction: row;
    }

    .about-container {
        flex-direction: row;
    }
}
