/* ===== Reset / iOS Fullscreen ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #eee;
  font-family: -apple-system, BlinkMacSystemFont, system-ui;
}

/* ===== Smartphone Frame (nur Desktop) ===== */
.device-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media (max-width: 768px) {
  .device-frame {
    padding: 0;
    background: #fff;
  }
}

@media (min-width: 769px) {
  .app {
    width: 390px;
    height: 844px;
    border-radius: 36px;
    box-shadow: 0 0 40px rgba(0,0,0,.3);
    overflow: hidden;
    background: #fafafa;
  }
}

/* ===== App ===== */
header {
  background: #6b0f1a;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
}

main {
  padding: 1rem;
}

button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  background: #6b0f1a;
  color: #fff;
  border: none;
  border-radius: 12px;
  margin-bottom: 1rem;
}

input, select {
  width: 100%;
  padding: .6rem;
  margin-bottom: .6rem;
  border-radius: 10px;
}

section {
  background: #fff;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 16px;
}

#wines img, #preview {
  width: 100%;
  border-radius: 12px;
}

/* ===== Wine List ===== */
.wine-item {
  margin-bottom: 1rem;
  cursor: pointer;
}

.wine-rating {
  color: #f5a623;
}

/* ===== Loader ===== */
.loader {
  text-align: center;
  margin: 1rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #6b0f1a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
