/* Farbvariablen */
:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #FF7F32;
    --secondary: #00B0B9;
}

[data-theme="dark"] {
    --bg: #333;
    --text: white;
    --accent: #FF7F32;
    --secondary: #00B0B9;
}

/* Grundlegende Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: 198px;
}

h1, h2, h3 {
    font-weight: 700;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 20px;
    text-align: center;
    z-index: 1000;
}

header h1 {
    font-size: 3rem;
    color: var(--secondary);
}

header p {
    font-size: 1.2rem;
    color: var(--text);
}
header .logo img {
    max-height: 100px; /* Maximalhöhe des Logos anpassen */
    width: auto;
}

/* Navigation */
nav {
    margin-top: 20px;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.menu li {
    margin: 0 20px;
}

.menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 15px;
}

.menu a:hover {
    background-color: var(--accent);
    border-radius: 5px;
}

/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg);
    min-width: 160px;
    z-index: 1;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--accent);
}

.dropdown:hover .dropbtn {
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    background: var(--bg);;
    padding: 50px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--accent);
}

.hero p {
    font-size: 1.5rem;
    margin: 20px 0;
}

/* Buttons */
.cta-button, .demo-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    margin-right: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover, .demo-button:hover {
    background-color: #e66f27;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.demo-button {
    background-color: var(--secondary);
}

.demo-button:hover {
    background-color: #008b8e;
}

/* Sections nebeneinander */
.section-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 20px;
}

.section-left, .section-right {
    width: 48%;
}

/* Features */
.features {
    background-color: var(--bg);
    padding: 40px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Service-Optionen */
.service-option {
    background-color: var(--bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 30px;
}

.service-option h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.service-option p {
    font-size: 1rem;
    color: var(--text);
}

.service-option:hover {
    background-color: #333;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Call-to-Action */
.cta {
    background-color: var (--bg);
    padding: 50px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

footer {
    background-color: #222;
    text-align: center;
    padding: 20px;
    color: #aaa;
}

footer p {
    font-size: 1rem;
}

.footerlink {
    color: grey;
    text-decoration: none;
}

/* Cookie-Banner */
.cookie-banner {
    background-color: #222;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: none;
}

.cookie-banner p {
    font-size: 1rem;
    margin: 0;
    display: inline-block;
    padding-right: 15px;
}

.cookie-banner button {
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: #e66f27;
}

.cookie-banner a {
    color: var(--secondary);
    text-decoration: none;
}

/* Mobile & Top Controls */
.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
	left: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        gap: 20px;
    }

    .section-left, .section-right {
        width: 100%;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: var(--bg);
        position: absolute;
        left: 20px;
        top: 80px;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .menu li {
        margin: 10px 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        opacity: 1;
    }
}
/* ------------------------ */
/* LIGHTMODE OVERRIDES     */
/* ------------------------ */

body.light {
    background: #fdfdfd;
    color: #000;
}

/* Header */
body.light header {
    background: rgba(255, 255, 255, 0.9);
}

body.light header h1 {
    color: #007a82;
}

body.light header p {
    color: #000;
}

/* Navigation */
body.light .menu a {
    color: #000;
}

body.light .menu a:hover {
    background: #FF7F32;
}

body.light .dropdown-content {
    background: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
}

body.light .dropdown-content a {
    color: #000;
}

body.light .dropdown-content a:hover {
    background: #FF7F32;
}

/* Hero Section */
body.light .hero {
    background: #f5f5f5;
}

/* Service-Optionen */
body.light .service-option {
    background: #f4f4f4 !important;
    color: #000 !important;
}

body.light .service-option:hover {
    background: #eaeaea;
}

/* Features */
body.light .features {
    background: #f4f4f4;
    color: #000;
}

body.light .features li {
    color: #000;
}

/* CTA Section */
body.light .cta {
    background: #eaeaea;
    color: #000;
}

body.light .cta h2 {
    color: #FF7F32;
}

/* Footer */
body.light footer {
    background: #f4f4f4;
    color: #333;
}

body.light .footerlink {
    color: #555;
}

/* Cookie-Banner */
body.light .cookie-banner {
    background: #f4f4f4;
    color: #000;
}

body.light .cookie-banner a {
    color: #00B0B9;
}

body.light .cookie-banner button {
    background: #FF7F32;
    color: #fff;
}

body.light .cookie-banner button:hover {
    background: #e66f27;
}
[data-theme="light"] .logo img {
    content: url('images/dowotech-logo-light.png'); /* Lightmode-Logo */
}
[data-theme="dark"] .logo img {
    content: url('images/dowotech-logo-dark.png'); /* Darkmode-Logo */
}
