/* style_v3.css - Finale konsolidierte Version */

:root {
  --etchit-blau: #006499;
  --etchit-dklgrau: #6d8d9f;
  --etchit-blau-mittel: #1b88c3;
  --etchit-gruen: #22c55e;
  --gelb-hell: #fffbd3;
  --gelb-voll: #ffff00;
  --bg-hell: #f8fafc;
  --text-dunkel: #1e293b;
  --box-bg: #f1f5f9;
  --box-border-color: #ccdcf0;
}

/* --- FEHLERANZEIGE (Pflichtfelder) --- */

/* Markiert ungültige Pflichtfelder (nur wenn sie das Attribut 'required' haben) */
.form-row input:required:invalid, 
.form-row select:required:invalid {
  border-color: #ef4444 !important; /* Kräftiges Rot */
  background-color: #fef2f2 !important; /* Zartes Rot im Hintergrund */
  border-width: 2px; /* Etwas dickerer Rahmen, damit man es besser sieht */
}

/* Markiert korrekt ausgefüllte Pflichtfelder grün */
.form-row input:required:valid, 
.form-row select:required:valid {
  border-color: #22c55e !important; /* etchIT-Grün */
  border-width: 1px;
}

/* --- ALLGEMEINES STYLING --- */
body {
  font-family: "Arial, Helvetica, sans-serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-hell);
  color: var(--text-dunkel);
  margin: 0;
  padding: 20px;
  line-height: 1.5;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  border-radius: 0 3rem 0 0;
  overflow: hidden;
  border: 1px solid var(--box-border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- HEADER --- */
#haupt-header {
  background-color: var(--etchit-blau);
  color: white;
  padding: 1.1rem;
  text-align: left;
  border-radius: 0 2.5rem 0rem 0;
}

#haupt-header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 650;
  color: white;
}

#haupt-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 620;
  color: white;
}

#haupt-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gelb-voll);
}

#haupt-header p {
  margin: 0.5rem 0 0 0;
  color: #e0f2fe;
  font-size: 0.9rem;
}

#gelb { color: #ffff66 !important; }

/* --- INHALTS-BOXEN (für planserie.html) --- */
.content-section {
  padding: 1.5rem;
}

.info-box {
  background-color: var(--box-bg);
  border-left: 4px solid var(--etchit-blau);
  padding: 1rem;
  margin-bottom: 1.3rem;
  border-radius: 0.5rem;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* --- FORMULAR-STILE (für vorbestell.html) --- */
form { padding-left: 1.5rem; }

.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 0 0;
display: flex;
  align-items: center;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--box-border-color);
  margin-left: 1rem;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
}

.form-row label {
  width: 140px;
  text-align: right;
  margin-right: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.form-row input, .form-row select {
  width: 300px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--box-border-color);
  border-radius: 0 1rem 0 0;
  font-size: 0.9rem;
  background-color: #fff;
}

/* --- MODELLAUSWAHL --- */
.checkbox-group {
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--box-border-color);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-weight: 700;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-label input { margin-right: 12px; margin-top: 4px; width: 18px; height: 18px; }

.model-controls-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.image-placeholder {
  width: 240px; height: 120px;
  background-color: var(--box-bg);
  border: 1px solid var(--box-border-color);
  border-radius: 0 1.5rem 0 0;
  overflow: hidden;
}

.image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.controls-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-row { display: flex; align-items: center; }
.control-row label { width: 180px; text-align: right; margin-right: 1rem; font-size: 0.85rem; font-weight: 600; }
.control-row select { width: 120px; }

button {
  width: 100%; max-width: 400px; display: block; margin: 2rem auto;
  background-color: var(--etchit-blau); color: white; padding: 1rem;
  border: none; border-radius: 0.6rem; cursor: pointer; font-weight: 500;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover { background-color: #ff6600; }

.footer { text-align: center; margin-top: 2rem; color: #64748b; font-size: 0.8rem; padding-bottom: 2rem; }

@media (max-width: 768px) {
  .form-row, .control-row { flex-direction: column; align-items: flex-start; }
  .form-row label, .control-row label { text-align: left; width: 100%; margin-bottom: 0.25rem; }
  .model-controls-layout { grid-template-columns: 1fr; }
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 0;
  margin-bottom: 0;
}

.model-card {
  background: var(--gelb-hell);
  border: 1px solid #e2e8f0;
  border-radius: 0 1.5rem 0 0;
  
  overflow: hidden;
  transition: tranSsform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.model-header {
  background-color: var(--gelb-hell); 
  padding: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.model-header b {
  color: var(--etchit-blau);
}

.video-container {
  width: 100%;
  background-color: #000;
  aspect-ratio: 16 / 9;
}

video {
  width: 100%;
  height: 100%;
  display: block;
}


/* --- DEINE INFO-BOXEN --- */
.info-box {
  background-color: var(--box-bg);
  border-left: 4px solid var(--etchit-blau);
  padding: 0rem;
  padding-left: 0.7rem; /* Hier hast du jetzt mehr Platz links */
  margin-top: 0;   /* Korrigiert: 1rem statt nur rem */
  border-radius: 0 0 2rem 0;
  border: 1px solid #e2e8f0;
}

.info-box2 {
  background-color: var(--gelb-hell); /* Hier mal die gelbe Variable als Test */
  border-left: 8px solid var(--etchit-gruen);
  padding: 0.5rem;
  padding-left: 0.7rem;
  margin-top: 0;   /* Korrigiert: 1rem statt nur rem */
  border-radius: 0 2.5rem 0 0;
    border: 1px solid #e2e8f0;
}

/*-- Sonderbox pulsieren lassen --*/
@keyframes pulsieren {
    0% { background-color: #e2e8f0; }
    50% { background-color: #ffff00; } /* Wert verringert, damit man das Blinken deutlicher sieht */
    100% { background-color: #e2e8f0; }

}

.sonder-box {
  background-color: var(--gelb-voll); 
  padding: 0rem;
  padding-left: 0.7rem;
  border-radius: 0 2.5rem 0 0;
  border-top: 1px solid #e2e8f0;
  border-left: 8px solid var(--etchit-gruen);
    display: flex;
    flex-wrap: wrap;       /* Erlaubt Umbruch, falls der Platz nicht reicht */
    align-items: flex-start ;/* Richtet Text und Button mittig aneinander aus */
    gap: 20px;             /* Abstand zwischen Text und Button */
    
    /* Animation */
    animation: pulsieren 3s ease-in-out infinite;
  
}

/* 1. Zeile: h1 in blau und fett */
.sonder-box h1 {
  color: var(--etchit-blau);
  font-weight: bold;
  margin: 0; /* Verhindert ungewollte Abstände */
}

/* 2. Zeile: h2 in dunkelgrau und fett */
.sonder-box h2 {
  color: var(--etchit-dklgrau);
  font-size: 1.4rem;
  margin: 0;
    margin-bottom: 1rem
}

/* 3. Zeile: Standard-Text in schwarz */
.sonder-box p, .sonder-box-text {
  color: black;
  margin: 0;
}

.info-text {
  color: #475569;
  font-size: 0.9rem;
  font-style: italic;
    
}.info-text2 {
  color: #000000;
  font-size: 0.9rem;
  
}

/* --- LINKS IN INFO-BOXEN (Zentral) --- */
.info-box a {
  color: var(--etchit-blau);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease; /* Macht den Farbübergang weicher */
}

.info-box a:hover {
  color: #ff6600 !important;   /* Das gewünschte Orange */
  text-decoration: underline;
}

/* Speziell für die Tutorial-Bilder: Ein kleiner Effekt beim Drüberfahren */
.info-box a img {
  transition: transform 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.info-box a img:hover {
  transform: scale(1.05);      /* Bild wird minimal größer */
  border-color: #ff6600;       /* Orangefarbener Rahmen um das Bild */
}

        
/* Styling für alle Links innerhalb einer Info-Box */
.info-box2 a {
  color: var(--etchit-blau); /* Nutzt deine Variable von oben! */
  font-weight: bold;         /* Macht den Link fett */
  text-decoration: none;     /* Entfernt den Standard-Unterstrich */
}

.info-box2 a:hover {
  text-decoration: underline; /* Unterstreicht den Link nur, wenn man mit der Maus drüberfährt */
  color: #ff6600;             /* Ändert die Farbe beim Drüberfahren (Hover-Effekt) */
}



.nav-links {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  padding-left: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  background-color: var(--etchit-blau-mittel);
  color: white !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.5rem 0.5rem;
  border-radius: 0 1.2rem 0 0;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  background-color: #ff6600;
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
}@media (max-width: 640px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}


.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.model-header {
  background-color: var(--gelb-hell); 
  padding: 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.model-header b {
  color: var(--etchit-blau);
}#gelb {
  color: #ffff66 !important;
}

/* --- ERGÄNZUNGEN FÜR DIE INDEX-SEITE (Landingpage) --- */

/* Erhöht die Container-Breite für das 3-spaltige Layout auf der Startseite */
.container {
  max-width: 1300px !important;
}

/* Spezifische Stile für die Inhalts-Karten auf der Startseite */
.model-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 350 / 233;
  object-fit: cover;
  border-bottom: 1px solid #e2e8f0;
}

.model-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--etchit-blau);
}

.model-card p {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}

.model-card .date-badge {
  font-size: 0.85rem;
  color: var(--etchit-gruen);
    line-height: 0rem;
  font-weight: 700;
}

.model-card .card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--etchit-blau);
  text-decoration: none;
  margin-top: 0.5rem;
}

.model-card .card-link:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* Navigation-Anpassung für die Startseite (Abstände) */
/* (Bereinigt, da jetzt global als Tabs definiert) */

/* --- MODERNES COOKIE MODAL (OVERLAY) --- */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dunkelt den Hintergrund ab */
  display: none; /* Wird per JS auf 'flex' gesetzt */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ganz nach vorne */
  padding: 20px;
}

.cookie-modal {
  background-color: white;
  max-width: 600px;
  width: 100%;
  border-radius: 0 3rem 0 0; /* Passend zu Ihrem Container-Design */
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--box-border-color);
}

.cookie-header {
  background-color: var(--etchit-blau);
  padding: 1.5rem;
  text-align: center;
}

.cookie-body {
  padding: 2rem;
  font-size: 0.95rem;
  color: var(--text-dunkel);
  line-height: 1.6;
}

.cookie-body p {
  margin-bottom: 1rem;
}

.cookie-body a {
  color: var(--etchit-blau);
  font-weight: bold;
  text-decoration: none;
}

.cookie-body a:hover {
  text-decoration: underline;
}

.cookie-footer {
  padding: 0 2rem 2rem 2rem;
  text-align: center;
}

.cookie-btn {
  background-color: var(--etchit-blau);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  width: auto; /* Nicht über die volle Breite */
  margin: 0; /* Reset für den Button-Stil */
}

.cookie-btn:hover {
  background-color: #ff6600; /* Ihr Hover-Orange */
}
