/* Grundlayout dll04 */


:root {
  --mainColor: #00b5f1; /* Deklariere eine Variable für die Textfarbe */
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: #ffffff;
  position: relative;
  background-image: url("../data/images/websiteBackground/background.jpg");
  background-size: cover;         /* Füllt gesamte Seite aus */
  background-position: center;    /* Zentriert das Bild */
  background-repeat: no-repeat;   /* Kein Kacheln */
  background-attachment: fixed;   /* Scrollt nicht mit */
  background-color: black;        /* Falls das Bild nicht lädt */
  
  display: flex;
  flex-direction: column;
  /* font-family: Arial, sans-serif; */
}


/* Fixer Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #000000;
  color: white;
  border-bottom: 3px solid white;
  z-index: 1000;
}


/* Innenbereich auf 1600px begrenzen */

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  flex-wrap: wrap; /* WICHTIG: erlaubt Umbruch, wenn kein Platz */
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;  /* Logo + Links untereinander */
    align-items: flex-start; /* Links linksbündig */
    gap: 10px;               /* Abstand zwischen Logo und Navigation */
  }

  .nav-links {
    width: 100%;            /* Navigation nimmt ganze Breite */
    display: flex;
    flex-direction: column; /* Links untereinander */
    gap: 0px;
  }

  .nav-links a {
    width: 100%;            /* Jede Link-Box nimmt volle Breite */
    text-align: center;     /* optional: Text zentrieren */
  }
  

  
}


/* Logo */
.logo a {
  color: white;
  text-decoration: none;
  font-size: 2.0em;
  font-weight: bold;
  font-family: "Prompt", sans-serif;
}

.logo a:hover {
  color: var(--mainColor);
}

a {
  color: var(--mainColor);
  text-decoration: none;
}
a:hover {
  color: #ffffff;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 0px 15px;
}

.nav-links a {
  color: var(--mainColor);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  background: #000000;
  transition: background 0.2s;
  font-family: "Prompt", sans-serif;
}

/* Hover & aktive Seite */
.nav-links a:hover {
  background: var(--mainColor);
  color:#000000;
}

.nav-links a.active {
  background: var(--mainColor); /* z. B. blau für aktive Seite */
  color:#000000;
}

p {
	font-family: "Geologica", sans-serif;
	margin: 30px;
}

h1 {
	color:#FFFFFF;
	font-size: 40px;
	font-weight: bold;
	/* font-family: "Geologica", sans-serif; */
	font-family: "Prompt", sans-serif;
	font-weight: 700;
	font-style: normal;
}

h2 {
	color:#FFFFFF;
	font-weight: bold;
	font-family: "Prompt", sans-serif;
	font-weight: 400;
	font-style: normal;
	margin: 10px;
}

h3 {
	color: var(--mainColor);
	font-weight: bold;
	font-family: "Prompt", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.blueHeadline {
	color: var(--mainColor);
	font-weight: bold;
		font-size: 20px; 
	font-family: "Prompt", sans-serif;
	font-weight: 400;
	font-style: normal;	
}


/* Hauptinhalt */
main {
  margin-top: 20px; /* Platz für fixen Header */
   flex: 1; 
}



.content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  /*background: #ff0000;*/
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 6px;
  color: #ffffff;
}

/* Footer */
footer {
  margin-top: 10px;
  position: relative;  /* oder fixed, wenn er immer sichtbar sein soll */
  background: #000000;
  color: #ffffff;
  padding: 0px 0;
  font-size: 12px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  text-align: right;
}

/* --- Loops Grid --- */
.loops-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px; /* Kein Leerzeichen! */
}

.loops-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Grid Layout: 8 Boxen pro Zeile mit nur 5px Abstand */
.loops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px; /* Nur 5px Abstand zwischen Boxen */
    justify-items: center;
}

/* Box für jedes Thumbnail */
.loop-card {
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    padding: 0px; /* Nur 5px Abstand innen */
    text-align: center;
    width: 100%;
    border: 1px solid #888888;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    box-sizing: border-box; /* Damit Padding und Border korrekt eingerechnet werden */
}
.loop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
	background: #000000;
	border: 1px solid var(--mainColor);
}

/* Kreisförmiges Thumbnail mit Rahmen */
.loop-thumb-wrapper {
    width: 142px;
    height: 142px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px auto; /* 5px über/unter dem Thumbnail */
    background: radial-gradient(circle at center, #333 0%, #222 100%);
}

.loop-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Titel unterhalb */
.loop-name {
    font-size: 0.9rem;
    color: #fff;
    margin: 5px 0; /* 5px Abstand oben/unten */
}

/* Container für Video + Hintergrund-Thumbnail */
.loop-thumb-wrapper {
    position: relative;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    border: 1px solid #fff;
    padding: 0px;
    overflow: hidden; /* damit nichts über den Kreis hinausragt */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #333 0%, #222 100%);
}

/* Hintergrundbild (Thumbnail bleibt sichtbar, bis Video lädt) */
.loop-thumb-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Das Video liegt darüber */
.loop-thumb-video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0; /* unsichtbar bis zum Start */
    transition: opacity 0.3s ease;
}
.loop-thumb-video.playing {
    opacity: 1; /* sanft einblenden, wenn es läuft */
}
/* --- Modal Overlay --- */
.loop-modal.hidden {
    display: none;
}
.loop-modal {
    position: fixed;
    inset: 0;
    z-index: 9999; /* war 999 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.loop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}
.loop-modal-content {
    position: relative;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 1.2rem;
    max-width: 700px;
    width: 100%;
    text-align: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
	transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Schließen-Button */
.loop-modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 1.8rem;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 20;
}
.loop-modal-close:hover { opacity: 0.6; }

/* Titel */
.loop-modal-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}



.video-loader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
	background: url('../data/images/loader.png') center center / cover no-repeat;
    transition: opacity 0.3s ease;
}


.loop-modal-video-wrapper {
    position: relative;
    /* width: 90vw; */
	max-height: 95vh;
	width: min(85vw, 65vh);
    max-width: 600px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
}


.loop-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    opacity: 0; /* unsichtbar, bis ready */
    transition: opacity 0.3s ease;
	position: relative;
    z-index: 1;
}
.loop-modal-video::-webkit-media-controls {
    display: none !important;
}





.loop-modal-video.visible {
    opacity: 1;
}


/* FPS Buttons */
.loop-modal-buttons {
    margin-top: 1rem;
	display: flex;
    flex-wrap: nowrap;       /* verhindert Zeilenumbruch */
    justify-content: center; /* optional: zentriert die Buttons */
}
.fps-btn {
    background: #000000;
    border: 1px solid var(--mainColor);
    color: white;
    padding: 0.6rem 1.2rem;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
	font-family: "Prompt", sans-serif;
}
.fps-btn:hover {
    background: var(--mainColor);
	color:#000000;
}
.fps-btn.active {
    background: var(--mainColor);
	color:#000000;
}


.switchVideoButton {
    background: #000000;
    border: 1px solid #ffffff;
    color: white;
    padding: 0.6rem 1.2rem;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
	font-family: "Prompt", sans-serif;
}
.switchVideoButton:hover {
    background: #444444;
	color:#ffffff;
}

.singleDownloadButton {
    background: #000000;
    border: 1px solid #00ff00;
    color: white;
    padding: 0.6rem 1.2rem;
    margin: 0 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
	font-family: "Prompt", sans-serif;
}
.singleDownloadButton:hover {
    background: #444444;
	color:#ffffff;
}

/* Info unten */
.loop-modal-info {
    color: #ccc;
    margin-top: 1rem;
    text-align: left;
    font-size: 0.9rem;
    width: 100%;
    max-width: 600px;
}
.loop-modal-info p {
    margin: 3px 0;
}

.modal-info-table {
	
	font-family: "Prompt", sans-serif;
	
}


.loop-modal:not(.hidden) .loop-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* --- Responsiveness --- */
@media (max-width: 600px) {
    .loop-modal-content {
        padding: 1rem;
        border-radius: 10px;
    }
    .loop-modal-title {
        font-size: 1.2rem;
    }
    .fps-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
	.switchVideoButton {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .loop-modal-info {
        font-size: 0.8rem;
    }
}


  /* Fullscreen video as background */
  .hero-video-wrapper {
    position: fixed;      /* fixed, damit das Video immer im Hintergrund bleibt */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;          /* Video hinten, Content darüber */
  }
  .hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
	filter: blur(0px);
  }
  
  /* Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); /* 0.4 = 40% schwarz */
}


/* Styling für das Kontaktformular Input-Feld */
input,textarea {
    background-color: rgba(255, 255, 255, 0.1); /* weiß mit 20% Deckkraft */
    color: white; /* weiße Schrift */
    border: 1px solid rgba(255, 255, 255, 0.5); /* leicht sichtbarer weißer Rand */
    border-radius: 8px; /* abgerundete Ecken */
    padding: 10px 12px; /* etwas Innenabstand */
    font-size: 16px;
	font-family: "DM Sans", sans-serif;
    outline: none; /* entfernt den Standard-Fokus-Rahmen */
    transition: all 0.3s ease; /* sanfte Übergänge bei Fokus oder Hover */
}

/* Fokus-Effekt */
input:focus,textarea:focus {
    border-color: white; /* Rand bei Fokus etwas stärker sichtbar */
    background-color: rgba(255, 255, 255, 0.2); /* leicht stärkerer Hintergrund */
}

label {
	font-family: "DM Sans", sans-serif;
}
.stepNumber {
	
	position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 181, 241, 0.2);
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
	border:1px solid var(--mainColor);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	
}

.downloadButton {
    display: inline-block;
    background-color: rgba(0, 181, 241, 0.4);
	border:1px solid var(--mainColor);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px; /* abgerundete Ecken */
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* kleiner Schatten wie Kasten */
    max-width: 90%;
    white-space: normal;
    transition: background-color 0.1s, transform 0.1s, box-shadow 0.1s;
}

.downloadButton:hover {
    background-color: rgba(0, 181, 241, 0.8); /* leicht dunkler / transparent */
    box-shadow: 0 4px 10px rgba(0,0,0,0.25); /* etwas stärker beim Hover */
}

/* ================================= */
/* GLOBAL BUTTON STYLE */
/* ================================= */

.ui-btn {
    background: #000000;
    border: 1px solid var(--mainColor);
    color: white;
    padding: 0.6rem 1.2rem;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
    font-family: "Prompt", sans-serif;
}

/* Hover */
.ui-btn:hover {
    background: var(--mainColor);
}

/* ADD BUTTON */
.select-btn.add {
    border-color: #00cc44;
}

.select-btn.add:hover {
    background: #00cc44;
}

/* REMOVE BUTTON */
.select-btn.remove {
    border-color: #cc3333;
}

.select-btn.remove:hover {
    background: #cc3333;
}
/* =========================
   SAVE BUTTON STATES
   ========================= */

/* DEFAULT = UNSAVED (SAVE) → Grün blinkend */
#save-btn.unsaved {
    border-color: #00cc44;
    background: #001a0d;
    animation: pulseGreen 0.6s infinite;
}

#save-btn.unsaved:hover {
    background: #00cc44;
    color: black;
}

/* SAVED → Blau ruhig */
#save-btn.saved {
    border-color: #2a6bff;
    background: #0a0a0a;
    animation: none;
}

#save-btn.saved:hover {
    background: #2a6bff;
}

/* =========================
   Green Pulse Animation
   ========================= */

@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0px #00cc44; }
    50%  { box-shadow: 0 0 12px #00cc44; }
    100% { box-shadow: 0 0 0px #00cc44; background: #004400; }
}


/* MODAL SELECT BUTTON */
#modal-select-btn.add {
    border-color: #00cc44;
    color: #00cc44;
}

#modal-select-btn.add:hover {
    background: #00cc44;
    color: #fff;
}

#modal-select-btn.remove {
    border-color: #cc3333;
    color: #cc3333;
}

#modal-select-btn.remove:hover {
    background: #cc3333;
    color: #fff;
}


/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding-left:5px;
  padding-right:5px;
}

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background-color: black;
  color: #ffffff;
  text-align: center;
  padding: 0px 10px;
  border-radius: 6px;
  border: 1px solid var(--mainColor);
  position: absolute;
  z-index: 1; /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
}