/* -----------------------------
   Grundfarben & Hintergrund
----------------------------- */
body {
    background-color: #fcfcf7; /* heller, neutraler Hintergrund */
    color: #333333; /* dunkler Text für Lesbarkeit */
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* -----------------------------
   Header
----------------------------- */
header {
    background-color: #fcfcf7;
    text-align: center;
    padding: 1rem 1rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    color: #4a6fa5; /* Akzentfarbe */
    text-shadow: none;
}

header p {
    font-size: 1.2rem;
    color: #333333;
}

/* -----------------------------
   Navigation
----------------------------- */
.topmenu {
    display: flex;
    justify-content: center;
    background-color: #fcfcf7;
    padding: 0.5rem 0;
}

.topmenu a {
    color: #4a6fa5; /* Akzentfarbe */
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.topmenu a:hover {
    color: #333333; /* Textfarbe beim Hover */
}

/* -----------------------------
   Hauptbereich
----------------------------- */
main {
    padding: 2rem;
}

/* -----------------------------
   Cards / Sections
----------------------------- */
.card {
    background-color: #fcfcf7;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(74, 111, 165, 0.2); /* sanfte Akzent-Schatten */
}

/* Überschriften in Cards */
.card h2 {
    color: #4a6fa5; /* Akzentfarbe */
    text-shadow: none;
    margin-bottom: 1rem;
}

/* Text in Cards */
.card p, .card ul {
    color: #333333;
}

body.dark-mode .card p,
body.dark-mode .card ul {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* -----------------------------
   Buttons / Links
----------------------------- */
.button {
    display: inline-block;
    text-decoration: none;
    color: #4a6fa5; /* Akzentfarbe */
    border: 2px solid #4a6fa5;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.button:hover {
    color: #fcfcf7; /* heller Text auf Hover */
    background-color: #4a6fa5; /* Akzentfarbe als Hintergrund */
    border-color: #4a6fa5;
    transform: scale(1.05);
}

/* -----------------------------
   Footer
----------------------------- */
footer {
    background-color: #fcfcf7;
    color: #333333;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.1);
}

/* -----------------------------
   Responsive Anpassungen
----------------------------- */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    .card {
        padding: 1rem;
    }
    .topmenu {
        flex-direction: column;
    }
    .topmenu a {
        margin: 0.5rem 0;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* wichtig, damit padding nicht die Breite sprengt */
}

.contact-form button {
    margin-top: 15px;
    align-self: flex-start; /* Button links ausrichten */
}


/*   -------------------------           DARKMODE BUTTON    Knopf bzw. Button        ---------------------------------*/


body {
    transition: background-color 0.3s, color 0.3s;
    background-color: #fff;
    color: #000;
}

body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 30px;
}

.dark-mode-toggle input {
    display: none;
}

.dark-mode-toggle label {
    display: block;
    width: 100%;
    height: 100%;
    background: #ccc;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.dark-mode-toggle label::after {
    content: '';
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.dark-mode-toggle input:checked + label {
    background: #4d4d4d;
}

.dark-mode-toggle input:checked + label::after {
    left: 32px; /* schiebt den Kreis nach rechts */
}

/* DARK MODE */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

body.dark-mode header,
body.dark-mode .topmenu,
body.dark-mode .card,
body.dark-mode footer {
    background-color: #121212; /* dunkler Hintergrund für Container */
    color: #f0f0f0;
}

body.dark-mode a,
body.dark-mode .button {
    color: #80c0ff; /* hellere Akzentfarbe */
    border-color: #80c0ff;
}

body.dark-mode .button:hover {
    background-color: #80c0ff;
    color: #121212;
}

body.dark-mode .card:hover {
    box-shadow: 0 0 10px rgba(128, 192, 255, 0.3);
}

/* Dark Mode für Input/Textarea */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #1e1e1e !important; /* dunkler Hintergrund */
    color: #ffffff !important;            /* Textfarbe */
    border: 1px solid #444 !important;
}

/* Platzhalterfarbe im Dark Mode */
body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: #fbfbfb !important;  /* heller Grauton für Platzhalter */
}

/* Fokus-Stil */
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: #80c0ff !important;
    outline: none;
}

/* Dark Mode: Header-H1 */
body.dark-mode header h1 {
    color: #80c0ff; /* gleiche Farbe wie Navbar-Links */
}

body.dark-mode header p {
    color: #ffffff;
}


