/* --- HERO CAROUSEL --- */

.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px;
}

.hero-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #08325C, #18325B);
  color: white;
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile-carousel-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: #e6ecf5;
  overflow: hidden;
  padding: 20px 60px;
}

/* SCROLLER */
.tile-scroller {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

/* TILE – aktualisiert für das Umdrehen */
.tile {
  flex: 1;
  height: 220px;
  max-width: 350px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.tile.flipped .tile-inner {
  transform: rotateY(180deg);
}

.tile-front,
.tile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.tile-front {
  background: #fff;
}

.tile-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-back {
  background: #ffffff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tile:hover .tile-front {
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}

/* ACTIVE TILE (für ein laufendes Projekt) */
.tile-active {
  flex: 1;
  height: 220px;
  max-width: 350px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  border: 3px solid #DFC74E;
}

.tile-active-content {
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f7f9fc, #ffffff);
}

.tile-active-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.tile-active-header img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.tile-active-info h4 {
  margin: 0;
  font-size: 16px;
  color: #08325C;
  font-weight: 700;
}

.tile-active-timer {
  font-size: 24px;
  font-weight: 800;
  color: #DFC74E;
  text-align: center;
  margin: auto 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.tile-active-finish {
  width: 100%;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b6b, #ee5555);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tile-active-finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 85, 85, 0.4);
}

/* BEGINNEN SIE MIT DEM FORMULAR AUF DER RÜCKSEITE */
.start-form-tile {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
}

.start-form-tile h4 {
  margin: 0 0 6px 0;
  color: #08325C;
  text-align: center;
  line-height: 1.2;
}

.start-form-tile .project-name {
  font-weight: 700;
  color: #DFC74E;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.2;
}

.start-form-tile label {
  color: #555;
  margin-bottom: 3px;
  line-height: 1.2;
}

.start-form-tile input {
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border 0.3s;
  width: 100%;
}

.start-form-tile input:focus {
  outline: none;
  border-color: #08325C;
}

.start-form-tile .btn-group {
  display: flex;
  gap: 6px;
}

.start-form-tile button {
  flex: 1;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.start-form-tile .btn-start {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.start-form-tile .btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.start-form-tile .btn-cancel {
  background: #888;
  color: white;
}

.start-form-tile .btn-cancel:hover {
  background: #666;
}

/* MOBIL (1 Kachel) - große Elemente */
@media (max-width: 599px) {
  .start-form-tile {
    gap: 14px;
    padding: 20px;
  }
  
  .start-form-tile h4 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .start-form-tile .project-name {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .start-form-tile label {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .start-form-tile input {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .start-form-tile .btn-group {
    margin-top: 10px;
    gap: 10px;
  }
  
  .start-form-tile button {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* TABLETTEN (2 Kacheln) - mittlere Elemente */
@media (min-width: 600px) and (max-width: 899px) {
  .start-form-tile {
    gap: 8px;
    padding: 12px;
  }
  
  .start-form-tile h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .start-form-tile .project-name {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .start-form-tile label {
    font-size: 11px;
    margin-bottom: 2px;
  }
  
  .start-form-tile input {
    padding: 6px 8px;
    font-size: 13px;
  }
  
  .start-form-tile .btn-group {
    margin-top: 6px;
    gap: 5px;
  }
  
  .start-form-tile button {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* DESKTOP (3 Kacheln) - kompakte Elemente */
@media (min-width: 900px) {
  .start-form-tile {
    gap: 6px;
    padding: 10px;
  }
  
  .start-form-tile h4 {
    font-size: 14px;
    margin-bottom: 3px;
  }
  
  .start-form-tile .project-name {
    font-size: 13px;
    margin-bottom: 5px;
  }
  
  .start-form-tile label {
    font-size: 10px;
    margin-bottom: 2px;
  }
  
  .start-form-tile input {
    padding: 5px 8px;
    font-size: 12px;
  }
  
  .start-form-tile .btn-group {
    margin-top: 5px;
    gap: 4px;
  }
  
  .start-form-tile button {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* NAVIGATIONSTASTEN */
.left-btn, .right-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f7e8a9, #DFC74E);
  border: 2px solid #bfa53b;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  color: #08325C;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.2),
    inset 0 2px 6px rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s ease;
}

.left-btn { left: 14px; }
.right-btn { right: 14px; }

.left-btn:hover:not(:disabled),
.right-btn:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.12);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.25),
    0 0 18px rgba(223,199,78,0.6);
}

.left-btn:active,
.right-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.arrow-icon {
  /*width: 22px;
  height: 22px;*/
  stroke: #08325C;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

.left-btn:hover .arrow-icon,
.right-btn:hover .arrow-icon {
  stroke: #2369c9;
}

/* PUNKTEANZEIGEN */
.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.2);
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: #08325C;
}

/* Adaptiv */
@media (max-width: 599px) {
  .tile, .tile-active {
    max-width: 100%;
    height: 250px;
  }
  .tile-carousel-wrapper {
    padding: 20px 50px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .tile, .tile-active {
    max-width: 45%;
    height: 200px;
  }
}

@media (min-width: 900px) {
  .tile, .tile-active {
    max-width: 30%;
    height: 220px;
  }
}

/* --- BEAUTIFUL HEADER --- */

.beautiful-header {
  min-height: 200px;
  background: linear-gradient(135deg, #08325C, #18325B);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 30px 40px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.header-left {
  max-width: 60%;
  display: flex;
  flex-direction: column;
}

.main-title {
  /* Syntax: clamp(MINIMUM_SIZE, DESIRED_SIZE, MAXIMUM_SIZE)
  Beispiel: 30px – Minimum, 3,5vw – responsiv, 42px – Maximum
  */
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.25);
}

#workStatus {
  font-size: clamp(12px, 1.5vw, 20px) !important;
}

/* Для нижнего подзаголовка .subtitle */
.subtitle {
  margin-top: auto;
  font-size: clamp(12px, 1vw, 14px);
  font-style: italic;
  color: #ffffff;
  opacity: 0.8;
}

.hidden {
  display: none !important;
}

@media (max-width: 370px) {
    #bahnhofsuhr-container {
        display: none;
    }
    .header-left {
        max-width: 100%;
    }
}

.corner-logo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 20vw;           
  opacity: 0.7;
  z-index: 10;
  transition: opacity 0.3s, transform 0.3s;
}

.corner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.notify-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.notify {
    background: #333;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}
.notify.show {
    opacity: 1;
    transform: translateY(0);
}
.notify.error {
    background: #e53935;
}
.notify.success {
    background: #43a047;
}

.empty-tile .tile-front {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}


