
/* Grundlegende mobile-freundliche Stile */
body {
    background: #f9f9f9;
    padding: 2em;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Times New Roman', Times, serif;
}

/* Media Query für Desktop-Ansichten */
@media (min-width: 900px) {
    body {
        min-width: 900px;
    }
}

header {
    background: #4CAF50;
    color: white;
    padding: 1em 0;
    text-align: center;
    margin-bottom: 2em;
    border-radius: 8px;
}



nav a {
    margin-right: 1em;
    text-decoration: none;
    color: #4CAF50;
    }




.autocomplete-items {
    position: absolute;
    border: 1px solid #ccc;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
}

.autocomplete-item {
    padding: 8px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #e9e9e9;
}

.ort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-container {
     display: flex;
   /*  gap: 20px;
   Fügt einen Abstand zwischen den Spalten hinzu 
    align-items: flex-start;*/
    /* Stellt sicher, dass die Elemente oben ausgerichtet sind */
        flex-wrap: wrap; /* Diese Zeile macht den Unterschied! */
        align-items: center;
        width: 98%;
}



.map-container {
    flex-shrink: 0;
    /* Verhindert, dass die Karte verkleinert wird */
}

/* CSS für die Filter-Anzeige */
.filter-form {
    margin-bottom: 2em;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}



.box    { background-color: rgb(211, 130, 144);
    border: 2px solid black;
    border-radius: 25px;
    padding: 20px;
    margin: 10px;
    /*text-align: center;*/
    box-shadow: #c90a0a 5px 5px 15px   ;
    
}
.loginbox    { 
    background-color: rgb(211, 130, 144);
    border: 2px solid black;
    border-radius: 25px;
    padding: 20px;
    margin: 10px;
    display: inline-block;
    /*text-align: center;*/
    box-shadow: #c90a0a 5px 5px 15px   ;
    
}
    .box_center   { background-color: rgb(211, 130, 144);
    border: 2px solid black;
    border-radius: 25px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    box-shadow: #c90a0a 5px 5px 15px   ;
    
}


/* Container for all rating boxes */
.ratings-container {
    display: flex;
    flex-wrap: wrap; /* Allows the items to wrap to the next line */
    gap: 20px; /* Provides space between the rating boxes */
    justify-content: flex-start; /* Aligns items to the start of the container */
    align-items: stretch; /* Makes all items the same height */
    margin-top: 20px;
}

/* Updated styling for the individual rating box */
.rating-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5em;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    /* This allows the box to grow, shrink, and sets a preferred width of 300px. */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
    display: flex; /* Makes the content within the box a flex container */
    flex-direction: column; /* Stacks the content vertically */
    justify-content: space-between; /* Pushes the image to the bottom if there's no photo */
}

/* Ensure the image and text within the box are handled well */
.rating-box .rating-text {
    margin-bottom: 10px; /* Adds space between the text and the image */
}




.rating-box h3 {
    margin-top: 0;
    color: #333;
}

.rating-box p {
    margin: 0.5em 0;
}

.content-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.rating-details {
    flex: 1;
}

.image-display {
    flex-shrink: 0;
    width: 500px;
    max-height: 300px;
    overflow: hidden;
}

.image-display img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid black;
}

.detail-content-container {
    display: flex;
    gap: 30px;
    /* Space between text and image */
    align-items: flex-start;
    /* Aligns items to the top */
    margin-bottom: 20px;
    /* Space below this section */
}

.detail-text-column {
    flex: 1;
    /* Allows this column to take available space */
}

.detail-image-column {
    flex-shrink: 0;
    /* Prevents image column from shrinking */
    width: 300px;
    /* Adjust image container width as needed */
    max-height: 300px;
    /* Max height for image container */
    overflow: hidden;
    /* Hide overflow if image is too large */
}

.detail-image-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
}

/* CSS for the Lightbox */
.lightbox {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    text-align: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.rating-text {
    flex: 1;
    /* Allows this container to grow and take up available space */
}

.rating-image {
    width: 150px;
    /* Fixed width for the thumbnail */
    height: auto;
    border-radius: 5px;
}

.row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.header-row {
    font-weight: bold;
    background-color: #f2f2f2;
    padding: 10px 0;
     }

.cell {
    flex: 1;
     padding: 0 5px;
    box-sizing: border-box;
    word-wrap: break-word;
    /* Prevents long text from overflowing */
}

.comment-container {
    width: 100%;
    
    /* Stellt sicher, dass das Element 100% des Bildschirms einnimmt */
}

.kommentar {
    width: 100%;
    /* Füllt den Container vollständig aus */
}
.full-width-container {
    width: 90%;
    margin: 0 auto;
}

/* Container für das gesamte Formular */
.form-center {
    display: flex;
    flex-direction: column; /* Stapelt die Reihen untereinander */
    align-items: center; /* Zentriert die Form horizontal */
    gap: 20px; /* Abstand zwischen den Reihen */
}
.form-fields {
    flex: 1;
    /* Nimmt den verbleibenden Platz ein */
}


/* Container für das gesamte Formular */
.form-main {
    display: flex;
    flex-direction: column; /* Stapelt die Reihen untereinander */
 
    align-items: center;   /* Zentriert die Form horizontal */
     align-items: flex-start;
    gap: 20px; /* Abstand zwischen den Reihen */
    /*background-color: #4CAF50; */
}

/* Container für die Filterfelder */
.filter-row {
    display: flex;
    justify-content: center; /* Zentriert die Felder als Gruppe */
    gap: 10px; /* Abstand zwischen den einzelnen Feldern */
    align-items: center;
    width:98%
}

/* Container für jedes Label-Input-Paar */
.field-group {
    display: flex;
    flex-direction: column ; /* Stapelt Bezeichnung und Eingabefeld vertikal */
width: 200px;
}

/* CSS, das den Text standardmäßig kürzt */
.input-container {
  width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* Verhindert Zeilenumbruch */
}
/* CSS, das den vollen Text anzeigt, wenn das Feld den Fokus hat */
.input-container.focused {
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}

/* Container für sterne Label-Input-Paar */
.field-sterne {
    display: flex;
    flex-direction: row; /* Stapelt Bezeichnung und Eingabefeld vlnr */
}
/* Container für die Buttons */
.button-row {
    display: flex;
    justify-content: center; /* Zentriert die Buttons */
    gap: 10px; /* Abstand zwischen den Buttons */
    width:98%

}


@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .cell {
        padding: 5px;
    }
}

.center
{
text-align:center;
}

nav {
    display: flex;
    justify-content: center; /* Zentriert horizontal */
    align-items: center;  /* Zentriert vertikal */
    background-color: #4CAF50; 
    height: 20px;
    border-radius: 25px; /*  runde Enden*/
    min-width: 960px; /* **Hier wird die Mindestbreite hinzugefügt** */
    gap: 10px;
    width: 98%;
}

.button
{
border-radius: 25px; 
justify-content: center;
color: #000000;
background-color: #4CAF50;
  gap: 10px; /* Abstand zwischen den Buttons */
}

button_ori {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5em 1em;
}

.button:hover
{
border-radius: 25px; 

justify-content: center;
color: #c90a0a;
background-color: #4CAF50;
  gap: 10px; /* Abstand zwischen den Buttons */

}

.sterne
{
     width: 50px;
     background-color: #eee;
}




/* Update these styles for the table layout */
.predi-container {
    width: 100%;
    min-width: 800px;
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.predi-row {
    display: flex;
    border-bottom: 1px solid #ccc;
    align-items: center;
}

.predi-header-row {
    font-weight: bold;
    background-color: #f2f2f2;
    white-space: nowrap;
}

.predi-cell {
    padding: 5px 5px;
    text-align: left;
    border-right: 1px solid #4CAF50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box; /* Crucial for consistent sizing */
}

/* Specific flex properties for each column */
.predi-cell:first-child { /* ID */
    flex: 0 0 50px; /* flex-grow:0, flex-shrink:0, flex-basis:50px */
    text-align: center;
}

.predi-cell:nth-child(2) { /* Turnier */
    flex: 1 1 200px; /* Allows it to grow and shrink from a base of 200px */
}

.predi-cell:nth-child(3) { /* Ort */
    flex: 1 1 150px; /* Allows it to grow and shrink from a base of 150px */
}

.predi-cell:nth-child(4) { /* Datum */
    flex: 0 0 100px;
    text-align: center;
}

.predi-cell:nth-child(5) { /* Sterne */
    flex: 0 0 70px;
    text-align: center;
}

.predi-cell:last-child { /* Aktion */
    border-right: none;
    flex: 0 0 70px;
    text-align: center;
}

/* Generic styles for any data table */
.data-table {
    width: 100%;
    min-width: 800px;
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.data-table-center{
    width: fit-content; /* Makes the container only as wide as its content */
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #ccc;
    align-items: center;
}

.table-header {
    font-weight: bold;
    background-color: #f2f2f2;
}

.table-cell {
    padding: 5px 5px;
    text-align: left;
    border-right: 1px solid #4CAF50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    flex: 1 1 auto; /* Default flexible sizing for all cells */
}

/* Specific overrides for columns that need fixed widths */
.table-cell.col-id {
    flex: 0 0 50px;
    text-align: center;
}

.table-cell.col-date {
    flex: 0 0 100px;
    text-align: center;
}

.table-cell.col-stars,
.table-cell.col-action {
    flex: 0 0 70px;
    text-align: center;
}

.table-cell:last-child {
    border-right: none;
}

.small {
  font-size: x-small;
 font-family: sans-serif;
}
.xx-small{
font-size: xx-small;
}