body {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url(img/background.jpg); no-repeat center center fixed;
    background-size: cover;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #dee2e6;
}

/* ---------------------------
   Banner mit Bild, Overlay & Text
   --------------------------- */
.card-banner {
    height: 120px;
    position: relative;
    overflow: hidden;
    background: #495057;
    display: block;
}

.card-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* füllt die Breite, Höhe fix, Bild bleibt proportional */
    object-position: center center;
    z-index: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


/* Overlay-Muster */
.card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.speed-banner::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23495057"/><path d="M20 80h60M30 70h40M25 60h50" stroke="%23fff" stroke-width="2" opacity="0.3"/></svg>');
}
.trash-banner::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23495057"/><circle cx="30" cy="70" r="3" fill="%23fff" opacity="0.3"/><circle cx="50" cy="60" r="4" fill="%23fff" opacity="0.3"/><circle cx="70" cy="75" r="3" fill="%23fff" opacity="0.3"/></svg>');
}
.noise-banner::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23495057"/><path d="M20 50h10M30 40h15M30 60h15M50 30h20M50 70h20" stroke="%23fff" stroke-width="2" opacity="0.3"/></svg>');
}

.card-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    color: #fff;
}

.card-banner-content h3,
.card-banner-content i {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-banner h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-banner i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: auto;
    flex: 1;
}

.btn-report {
    background: #495057;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.btn-report:hover {
    background: #343a40;
    transform: translateY(-1px);
    color: white;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: #495057;
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #ecf0f1;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-info {
    background: #ecf0f1;
    padding: 30px;
    text-align: center;
    color: #7f8c8d;
}

.info-box {
    background: #495057;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-custom {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
}

 .icon-container {
    display: inline-flex;
    align-items: flex-end; /* Herz & Kaffee unten auf einer Linie */
    margin-left: 0.3rem;
  }

  .heart {
    color: red;
    font-size: 1.5rem;
    display: inline-block;
    animation: heartbeat 1s infinite;
    margin-right: 0.3rem;
  }

  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
  }

  .coffee {
    position: relative;
    color: sienna;
    font-size: 1.5rem;
    display: inline-block;
  }

  .coffee .steam {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: 2px;
    height: 15px;
    background: linear-gradient(to top, sienna, transparent);
    border-radius: 50%;
    opacity: 0.7;
    animation: steam 2s infinite ease-in-out;
  }

  .coffee .steam:nth-child(2) {
    left: 60%;
    animation-delay: 0.5s;
  }

  @keyframes steam {
    0% { transform: translateY(0) scaleX(1); opacity: 0.5; }
    50% { transform: translateY(-10px) scaleX(1.2); opacity: 1; }
    100% { transform: translateY(-20px) scaleX(1); opacity: 0; }
  }

/* Grid für Portal */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Karten */
.portal-card {
  background: rgba(255,255,255,0.85); /* leicht transparent */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Banner */
.portal-card .card-banner-content {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Karteninhalt */
.portal-card .card-content {
  padding: 15px 20px;
  flex: 1;
}

.portal-card ul.list-group li {
  background: rgba(128, 0, 128, 0.1); /* lila Info-Box */
}
