@charset "utf-8";
/* CSS Document */

body { background-color: rgba(255, 192, 203, 0.4);

  /* Startzustand: Unsichtbar */
  opacity: 0;
  
  /* Animation zuweisen: Name | Dauer | Verlauf | Zustand nach Ende beibehalten */
  animation: fadeIn 1.5s ease-in-out forwards;
}

/* Definition der Einblend-Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 1. Verhindert das ungewollte Wischen der gesamten Seite */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family:Verdana, Geneva, sans-serif;
}
  .del{  margin: 20px; } /*body margin*/
  
  .auswahlmenge{background-color:ivory; padding: 10px; border-radius:4px; border:1px solid #ccc; max-width:600px; margin: auto; box-sizing:border-box;}

/* 2. Normale Divs / Container nutzen die volle Breite */
.card, .container {
  width: 100%;
  box-sizing: border-box; /* Verhindert Breakout durch Padding */
  
}


/* 3. Tabellen-Wrapper macht NUR die Tabelle scrollbar */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Sorgt für weiches Scrollen auf iOS Safari */
  margin-bottom: 1rem;
  padding:10px;
}

/* Optional: Tabelle behält ihre Mindestbreite, damit sie scrollt */
.table-wrapper table {
  width: 100%;
  min-width: 800px; /* Oder min-width: max-content; */
  max-width:1100px;
  border-collapse: collapse;
  margin:auto;
  font-size:0.9em;
}

td {
	padding :2px 5px;
	text-align:center;
	border-top:1px solid #ccc;	
	}
	tr:last-child { border-bottom:1px solid #ccc;}
	
	td.modellist{ text-align:left; width:260px !important;
	}
	
td a { text-decoration:none; max-width:560px;}	

      /*Bildverwaltung*/
        .gallery-bv { display: flex; flex-wrap: wrap; gap: 10px; margin: 5px; }
		.gallery-bv .gallery-img { 
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    cursor: pointer;
    transition: opacity 0.2s;
}

        .card_b { border: 1px solid #ccc; padding: 10px; border-radius: 8px; width: 200px; text-align: center; }
        .card_b img { max-width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
        .delete-btn { display: inline-block; margin-top: 10px; color: #fff; background-color: #d9534f; padding: 6px 12px; text-decoration: none; border-radius: 4px; font-size: 0.9em; }
        .delete-btn:hover { background-color: #c9302c; }
        .info { font-size: 0.8em; color: #666; margin: 5px 0; }
		
		/*ende Bildverwaltun*/

.year-table-detail{ min-width:280px !important; 
					max-width:800px !important;
					margin:auto;}
					
					.year-table-detail table{min-width:280px !important; 
					width:500px;
					max-width:500px !important;
					margin:auto;}
					
	h4.year-table-detail {padding:30px 30px 30px 50px;}
	h2.models {padding:30px 30px 30px 50px;}
	

.btn { display: inline-block;
			padding: 8px 15px;
			background: #007bff;
			color: white !important;
			text-decoration: none;
			border-radius: 4px;
			margin-top: 2px;
			margin-bottom: 2px;}
			.btn:hover {
	background-color: #0056b3;
}
			
.stats-box, .summary-box {  background: ivory;
							padding: 10px;
							width: 800px;
							max-width: 80%; 
							margin: 15px auto;
							border-radius:4px;
							box-sizing:border-box;}
							
.mittiger{					padding: 10px;
							width: 1000px;
							max-width: 80%; 
							margin: 15px auto;
							border-radius:4px;
							box-sizing:border-box;}		
							
							
							/*.bestellung-card bei Index, Komplettliste, Index*/		
 .bestellung-card {
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 20px;
            background-color: ivory;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
			width: 1800px;
			max-width: 90%; 
			margin: 15px auto;
			border-radius:4px;
			box-sizing:border-box;
}

	a.modellist, .bestellung-card a{ text-decoration:none; color:#111;}
	
	a.modellist:hover, .bestellung-card a:hover{
	color: #00C;
}/* Layout-Container: Hält die Liste und das Video zusammen */
.modelluebersicht-layout {
    display: flex;
    flex-direction: column; /* Standard auf mobilen Geräten: untereinander */
    gap: 30px;
}

.modell-liste-spalte {
    flex: 1;
}
	
 .bestell-details {
            background-color: #f8f9fa;
            border-left: 4px solid #007bff;
            padding: 10px 15px;
            margin-top: 30px;
			margin-bottom: 30px;
            border-radius: 0 4px 4px 0;
        }
		.jahrdetails{width:500px; max-width: 90%; margin:15px auto; padding-left:10px;}
		.besuchsdetails {width:500px; max-width: 90%; margin:15px auto; padding-left:10px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; }
  
  .kopfzeile {width:1000px; max-width: 90%; margin:15px auto; padding-left:10px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; }
  
  .alle_modelle {width:1100px; max-width: 85%; margin:30px; padding-left:10px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; }
							
.form-group { margin-bottom: 10px; max-width:90%, margin:auto; }

.form-group label { display: inline-block; width: 220px; padding: 10px; }

button[type="submit"], input[type="file"] {margin:10px;}
/* Standard: Elemente nebeneinander */
.upload-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;               /* Abstand zwischen Dateiauswahl und Button */
}
/* Grundeinstellung für das Video (auf kleineren Screens unsichtbar) */
.hintergrund-video-sidebar {
    display: none; 
}

.deko-video {
    width: 300px;
    height: 100%;
	object-fit: contain;
    border-radius: 4px;
}
/* Container für ein einzelnes Video inklusive Text darunter */
.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stil für den Dateinamen-Text */
.video-caption {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    text-align: center;
    max-width: 300px; /* Gleicht sich der Video-Breite an */
    word-break: break-word;
	margin-bottom:250px;
}
 input[type="text"]{ width: 96%;}
 
/* Media Query: Ab ausreichender Bildschirmbreite (z.B. 1400px) das Video rechts daneben anzeigen */
@media (min-width: 1600px) {
    .modelluebersicht-layout {
        flex-direction: row; /* Nebeneinander */
        justify-content: center;
        align-items: flex-start;
    }
    
    .hintergrund-video-sidebar {
        display: block;
        position: sticky; /* Klebt beim Scrollen am oberen Bildschirmrand, falls die Liste lang ist */
        top: 20px;
        flex-shrink: 0;
		margin-top: 30px;
			    }
}
/* Auf schmalen Bildschirmen (unter 600px) untereinander anordnen */
@media (max-width: 600px) {
  .upload-form {
    flex-direction: column; /* Bricht den Button unter die Dateiauswahl */
    align-items: stretch;   /* Dehnt Elemente auf volle Breite */
  }

  .upload-form input[type="file"],
  .upload-form button {
    width: 100%;            /* Bessere Treffsicherheit auf Mobilgeräten */
  }
}

        
select{max-width:95%;}

		 /* Färbt jede gerade Zeile (2, 4, 6 usw.) ein */
tbody tr:nth-child(even) {
    		background-color: #f2f2f2;}
			
			
			  /*--------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------*/

    @media all and (max-width: 800px) {
.bestellung-card {padding:16px; margin:0 auto;}
		
.del{ margin: 5px; } /*body margin bidverwaltung*/
		
		textarea {max-width: 95% !important; max-height: 550px;padding:3px;}
		
input[name="produkt_id"] {padding:5px 0px;
				width:40px;
				min-width: 40px !important; 
			}
			.table-wrapper table {
  width: 100%;
  min-width: 600px; /* Oder min-width: max-content; */
  max-width:1100px;
  border-collapse: collapse;
  margin:auto;
}
td {width: 50px;
 padding:5px 2px;}
				/*Bildverwaltung*/
        .card_b { border: 1px solid #ccc; padding: 3px; border-radius: 8px; width: 160px; text-align: center; }
        .card_b img { max-width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
		.alle_modelle {margin:15px;}
}
		
		
		
	
			
