* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f3f4f6;
  padding: 30px;
  color: #222;
}

h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.topbar {
  background: white;
  padding: 25px;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 20px;
}

.info-text {
  margin-bottom: 20px;
  color: #555;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

/*
=================================================
BILDDARSTELLUNG
=================================================
*/

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #ddd;
}

.card-image-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;

  filter: blur(18px);
  transform: scale(1.15);

  opacity: 0.7;
}

.card-image {
  position: relative;

  width: 100%;
  height: 100%;

  object-fit: contain;

  z-index: 2;

  display: block;
}

.card-content {
  padding: 20px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.top-row h3 {
  font-size: 22px;
}

.stars {
  background: #fff3cd;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.tag {
  background: #f1f1f1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

details {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 16px;
  margin-top: 15px;
}

summary {
  cursor: pointer;
  font-weight: bold;
}

.details-content {
  margin-top: 15px;
  line-height: 1.8;
}

.website-btn {
  display: inline-block;
  margin-top: 15px;
  margin-right: 8px;
  background: black;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
}

.website-btn:hover {
  background: #333;
}

.favorite {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

.visited {
  background: #d1fae5;
  color: #065f46;
}

.planned {
  background: #dbeafe;
  color: #1e40af;
}

/*
=================================================
LOGIN
=================================================
*/

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111827;

  display: flex;
  justify-content: center;
  align-items: center;
}

.login-screen.hidden {
  display: none;
}

.login-box {
  background: white;
  padding: 35px;
  border-radius: 24px;
  width: min(90vw, 380px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.login-box h1 {
  font-size: 32px;
}

.login-box input {
  width: 100%;
  padding: 14px;
  margin: 20px 0 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
}

.login-box button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: black;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.login-box button:hover {
  background: #333;
}

.login-error {
  color: red;
  margin-top: 12px;
}

.logout-button {
  background: black;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
}

.logout-button:hover {
  background: #333;
}

.error-box {
  background: white;
  border-radius: 20px;
  padding: 20px;
  color: #991b1b;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/*
=================================================
HANDY-ANSICHT
=================================================
*/

@media (max-width: 700px) {
  body {
    padding: 18px;
  }

  h1 {
    font-size: 32px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-image-wrapper {
    height: 240px;
  }
}