﻿/************************************************************************************
* Dieser Code definiert globale Stile innerhalb des kompletten Programms.
* Das wird erreicht, weil in der index.html auf dieses Dokument verwiesen wurde.
**************************************************************************************/

/*******************************************************************************************************
* Es gibt drei Möglichkeiten:
*   Beispiel{}  -> das sind globale Styles, damit z.B. alle Buttons gleich aussehen 
*   .Beispiel{} -> das sind Klassen, welche man für jedes Objekt einzeln verwenden kann
*   :Beispiel{} -> für Pseudo-Klasse, welche spezielle Zustände/Eigenschaften eines Objekts ausführen (z.B. mit der Maus hovern)
*
*
*
* auf jeder Page (z.B. Startseite.razor) muss der Link zum Stylesheet hergestellt werden:
*  <link href="css/eigenerstyle.css" rel="stylesheet" />
* ansonsten wird der Style nicht übergeben!
*
************************************************************************************************/

button {
    background: linear-gradient(to bottom right, #c20961, #EF5065); /* Hintergrundverlauf von oben links nach unten rechts */
    border: 0; /* Kein Rand */
    border-radius: 5px; /* Abrundung der Ecken */
    color: #FFFFFF; /* Textfarbe */
    cursor: pointer; /* Zeiger wird zur Hand */
    display: inline-block; /* Inline-Block-Element */
    font-size: 13px; /* Schriftgröße */
    font-weight: 500; /* Schriftgewicht */
    line-height: 2.5; /* Zeilenhöhe */
    justify-content: space-between;
    outline: transparent; /* Transparente Umrandung */
    padding: 0 1rem; /* Innenabstand links und rechts */
    text-align: center; /* Zentrierte Ausrichtung des Textes */
    text-decoration: none; /* Keine Textdekoration */
    transition: box-shadow .2s ease-in-out; /* Übergangseffekt für den Schatten */
    user-select: none; /* Nicht auswählbar */
    -webkit-user-select: none; /* Nicht auswählbar in WebKit-basierten Browsern */
    touch-action: manipulation; /* Touch-Interaktion */
    white-space: nowrap; /* Kein Zeilenumbruch */
}

    button:not([disabled]):focus {
        box-shadow: 0 0 .25rem rgba(0, 0, 0, 0.5), -.125rem -.125rem 1rem rgba(239, 71, 101, 0.5), .125rem .125rem 1rem rgba(255, 154, 90, 0.5); /* Schatten bei Fokus */
    }

    button:not([disabled]):hover {
        box-shadow: 0 0 .25rem rgba(0, 0, 0, 0.5), -.125rem -.125rem 1rem rgba(239, 71, 101, 0.5), .125rem .125rem 1rem rgba(255, 154, 90, 0.5); /* Schatten bei Hover */
    }


.dropdown-toggle {
    /*background: linear-gradient(to bottom right, #c20961, #EF5065);*/
    border: 0;
    border-radius: 10px;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2; /*hierdurch ggf. die Höhe anpassen!*/
    justify-content: space-between;
    outline: transparent;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: box-shadow .2s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    height: auto; 
}

.dropdown-toggle:not([disabled]):focus {
  box-shadow: 0 0 .25rem rgba(0, 0, 0, 0.5), -.125rem -.125rem 1rem rgba(239, 71, 101, 0.5), .125rem .125rem 1rem rgba(255, 154, 90, 0.5);
}

.dropdown-toggle:not([disabled]):hover {
  box-shadow: 0 0 .25rem rgba(0, 0, 0, 0.5), -.125rem -.125rem 1rem rgba(239, 71, 101, 0.5), .125rem .125rem 1rem rgba(255, 154, 90, 0.5);
}

textarea {
    width: 1000px; /* Ändere die Breite nach Bedarf */
    height: 800px; /* Ändere die Höhe nach Bedarf */
}

.FehlermeldungStyle {
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    padding: 1rem;
    background-color: #FFFFFF;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
}

/************************************************************************************
*  Formular-Styles
**************************************************************************************/

/* Container für Formulare */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Grid-Layout für Formulare */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Einzelnes Formularfeld */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field label {
    font-size: 0.9em;
    color: #666;
}

/* Formularfeld für Checkboxen - vertikal zentriert */
.form-field-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

/* Grid-Span-Klassen für flexible Layouts */
.form-field-half {
    grid-column: span 1;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field-new-row {
    grid-column: 1 / span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

/* Formulargruppen */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    min-height: 32px;
}

 .e-group-title {
    font-weight: 600;
    font-size: 1em;
    color: #333;
} 

.form-group-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Formular-Aktionen (Buttons) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.form-actions-left {
    display: flex;
    gap: 10px;
}

.form-actions-right {
    display: flex;
    gap: 10px;
}

/* Adress-Container (2-Spalten-Layout) */
.address-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    padding-top: 20px;
}

.address-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    min-height: 32px;
}

.address-section-header > div:last-child {
    display: flex;
    align-items: center;
    height: 32px;
}

.address-section-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Formular-Zeilen mit speziellen Layouts */
.form-field-row {
    display: grid;
    gap: 10px;
}

.form-field-row.street-row {
    grid-template-columns: 2fr 1fr;
}

.form-field-row.address-row {
    grid-template-columns: 1fr 1fr 2fr;
}

