/* Grundlegende Einstellungen */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f6fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Layout-Container */
.container {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #3498db;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
}

.header h1 {
    margin-bottom: 5px;
    font-size: 1.5em;
}

.info {
    text-align: center;
    padding: 15px;
    font-size: 1.1em;
    color: #2c3e50;
}

.info .phone {
    color: #3498db;
    text-decoration: none;
}

/* Formular */
.form-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

input[type="text"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

/* Aktionen */
.actions {
    display: flex;
    padding: 15px;
    gap: 10px;
    background-color: #f5f6fa;
    justify-content: space-around;
}

.button {
    flex: 1;
    padding: 12px 20px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.button.delete {
    background-color: #e74c3c;
    color: #fff;
}

.button.new {
    background-color: #3498db;
    color: #fff;
}

.button.save {
    background-color: #2ecc71;
    color: #fff;
}

.button.save:disabled {
    background-color: #b2bec3;
    color: #dfe6e9;
    cursor: not-allowed;
    opacity: 0.7;
}

.button:hover {
    opacity: 0.9;
}

/* Select-Section */
.select-section {
    padding: 20px;
    text-align: center;
}

.select-label {
    font-size: 1em;
    color: #555;
    margin-right: 10px;
}

.horse-select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.horse-select:focus {
    border-color: #3498db;
    outline: none;
}

/* Sidebar */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #3498db;
    color: #fff;
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar h2 {
    font-size: 1.5em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px 20px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

.sidebar ul li a:hover {
    background-color: #2980b9;
    padding-left: 15px;
    transition: all 0.2s ease;
}

/* Inhaltsanpassung bei aktiver Sidebar */
.container.active {
    margin-left: 250px;
}

/* Hauptinhalt */
.main-content {
    margin: 20px;
    max-width: 900px;
    flex: 1;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: margin-left 0.3s ease;
}

.main-content.shifted {
    margin-left: 250px;
}

/* Hauptmenü-Header */
.main-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 2em;
    color: #3498db;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1.2em;
    color: #555;
}

/* App-Karten */
.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.card p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.card a.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.card a.button:hover {
    background-color: #2980b9;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Links */
.phone-link {
    color: #3498db;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.email-link {
    color: #3498db;
    background-color: #ecf0f1;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
}

.email-link:hover {
    background-color: #dce4ea;
}

.menu-link {
    position: fixed; /* Fixiert die Position */
    top: 20px;
    left: 20px;
    font-size: 1em;
    color: #3498db; /* Warme Farbe beibehalten */
    background-color: #f5f6fa; /* Hintergrundfarbe anpassen */
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1000; /* Damit es über anderen Elementen bleibt */
}

.menu-link:hover {
    background-color: #3498db;
    color: #f5f6fa;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hamburger {
        top: 15px;
        left: 15px;
    }

    .sidebar {
        width: 200px;
    }

    .container.active {
        margin-left: 200px;
    }

    .main-content {
        padding: 20px;
    }

    .main-content.shifted {
        margin-left: 200px;
    }
}

@media (max-width: 600px) {
    .form-container {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
    }
}

.horse-info {
    padding: 20px; /* Fügt Innenabstand hinzu, damit der Text nicht am Rand klebt */
    margin: 15px; /* Fügt Außenabstand um das Element hinzu */
    background-color: #fff; /* Angenehme Hintergrundfarbe passend zum Design */
    border-radius: 8px; /* Runde Ecken */
}

.horse-info h3 {
    margin-top: 20px; /* Abstand vor den Überschriften */
    font-size: 1.2em; /* Größere Schriftgröße für die Überschriften */
    color: #3498db; /* Farblich passend zur warmen Palette */
}

.horse-info p {
    line-height: 1.6; /* Erhöht den Zeilenabstand für bessere Lesbarkeit */
    font-size: 1em; /* Einheitliche Schriftgröße für Text */
    color: #3498db; /* Dunkelbrauner Text für besseren Kontrast */
    margin-bottom: 10px; /* Fügt Abstand zwischen den Absätzen hinzu */
}
