/* Allgemeine Einstellungen */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Verhindert zu große vertikale Verteilung */
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    font-size: calc(16px + (28 - 16) * ((100vw - 320px) / (1600 - 320)));
    background-image: url('hintergrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Container für die Hauptbereiche */
#admin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: auto;
    padding: 10px;
    gap: 10px; /* Weniger Abstand zwischen Bereichen */
}

/* Dropdown-Feld für Visitenkartenauswahl */
#card-select {
    max-width: 300px;
    margin-bottom: 5px; /* Weniger Abstand zum nächsten Bereich */
}

/* Visitenkarten-Formular */
#card-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px; /* Weniger Abstand zwischen Feldern */
}

/* Eingabegruppen */
.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Zwei-Spalten-Struktur */
    align-items: center;
    gap: 8px; /* Reduzierter Abstand */
    margin-bottom: 5px; /* Verhindert große Abstände zwischen Zeilen */
}

.form-row label {
    font-weight: bold;
    text-align: right;
}

.form-row input {
    width: 100%;
    padding: 5px;
}

/* Speichern-Button */
.form-row.full-width {
    grid-column: span 2;
    text-align: center;
}

/* Social-Media-Bereich */
#social-media-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 10px; /* Weniger Abstand zum vorherigen Bereich */
}

/* Social-Media-Tabelle */
#social-media-table {
    width: 100%;
    border-collapse: collapse;
}

#social-media-table th, #social-media-table td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
}

#social-media-table th {
    background-color: #e3f2fd;
    font-weight: bold;
}

/* Button für neue Social-Media-Links */
#addSocialMedia {
    display: block;
    margin: 10px auto; /* Zentrierte Darstellung mit weniger Abstand */
}

.contact-icons, .social-icons {
    display: flex;
    justify-content: center;
    gap: 12px; /* Fügt einen Abstand zwischen den Icons hinzu */
}


/* Icon-Styling */
.contact-icons img, .social-icons img {
    width: min(40px, 8vw); /* Dynamische Anpassung */
}

/* Hover-Effekte */
.contact-icons img:hover, .social-icons img:hover {
    transform: scale(1.1);
}

.card {
    background: white;
    padding: 2vw;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 10px auto;
}

.card-container {
    display: flex;
    flex-direction: column; /* Karten untereinander */
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

@media (min-width: 768px) {
    .card-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.profile-img {
    width: min(60%, 250px); /* Passt sich dynamisch an die Bildschirmbreite an */
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    object-fit: contain;
}

.swoosh-img {
    width: min(80%, 350px); /* Skaliert je nach Bildschirmbreite */
    height: auto;
    display: block;
    margin: 0 auto;
}
