/* styles.css */

/* Google Fonts einbinden */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Material Design Lite CSS einbinden */
@import url('https://code.getmdl.io/1.3.0/material.indigo-pink.min.css');

/* GitHub CSS einbinden */
@import url('https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/4.0.0/github-markdown.min.css');

/* Grundlegende Stile für den gesamten Körper */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* Container für das Formular und die Ergebnisse */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Überschrift */
h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Formularfeld und Button */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

label {
    font-weight: bold;
    text-align: left;
    color: #555;
}

/* Stil für das Eingabefeld */
input[type="text"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Stil für den Button */
button {
    padding: 12px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Ergebnisbereich */
#result {
    margin-top: 20px;
    font-size: 16px;
}

/* Erfolgs- und Fehlermeldungen */
.success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* Footer */
footer {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

/* Spinner-Stile */
.spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Medienabfragen für responsives Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    input[type="text"], button {
        font-size: 14px;
    }
}

/* Neue Stile für ein modernes und professionelles Design */

/* Globale Variablen für Farben und Abstände */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --background-color: #f4f4f4;
    --text-color: #333;
    --border-radius: 10px;
    --transition-duration: 0.3s;
}

/* Verbesserte Typografie */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Container-Stile */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-duration) ease;
}

.container:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Verbesserte Button-Stile */
button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Hinzufügen von Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    animation: fadeIn var(--transition-duration) ease-in;
}

/* Verbesserte Medienabfragen */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    input[type="text"], button {
        font-size: 14px;
    }
}

/* Hinzufügen von CSS Grid für Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Beispiel für ein Grid-Element */
.grid-item {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-duration) ease;
}

.grid-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* GitHub Markdown Stile */
.markdown-body {
    box-sizing: border-box;
    min-width: 200px;
    max-width: 980px;
    margin: 0 auto;
    padding: 45px;
}

.markdown-body img {
    max-width: 100%;
    box-sizing: border-box;
    background-color: #fff;
}