/* mobile.css */
/* Full responsive overrides */

/* Small devices (phones) */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 1.2rem 0.8rem;
  }

  header h1 a {
    font-size: 1.8rem;
  }

  main {
    margin: 1rem auto;
    padding: 0 0.8rem;
  }

  /* Single column grid on mobile */
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  article {
    padding: 1rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  /* Images full width */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Video full width on mobile */
  .video-wrapper {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
  }

  .video-wrapper video {
    width: 100%;
    height: auto;
  }

  /* Header layout */
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav-left {
    margin-left: 0;
    justify-content: center;
  }

  header img[alt="Logo"] {
    max-width: 200px;
    margin-left: 0;
  }

  /* Footer */
  footer {
    font-size: 0.75rem;
    padding: 1.2rem 0.8rem;
  }
  .tag-cloud-container {
    margin: 2rem auto;
    max-width: 90%; /* etwas Luft links/rechts */
    padding: 0 0.5rem;
  }

  .tag-cloud {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
  }

  .tag-cloud-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.6rem; /* vertikaler und horizontaler Abstand etwas kleiner */
    margin-top: 0.8rem;
  }

  .tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef1f4;
    color: #2c3e50;
    font-size: 0.75rem;
    transition:
      transform 0.2s,
      background 0.2s;
  }

  .tag:hover {
    background: #d0d7e0;
    transform: scale(1.05);
  }
}

/* Very small devices */
@media (max-width: 480px) {
  header h1 a {
    font-size: 1.5rem;
  }

  .post-meta {
    font-size: 0.7rem;
  }
  .tag-cloud {
    margin: 2rem 0;
  }

  .tag {
    font-size: 0.75rem;
  }
}
