/* ========================================================
   Smartphone-only overrides for News.php
   Keep mobile behavior isolated to small portrait/mobile viewports
   ======================================================== */
@media screen and (orientation: portrait) and (max-width: 1000px),
       screen and (min-height: 850px) and (max-width: 1000px) {
  body {
    overflow-x: hidden;
  }

  header {
    height: 92px;
  }

  #heading {
    width: 100%;
    justify-content: center;
    gap: 0.6rem;
  }

  .heading_text {
    white-space: normal;
  }

  .heading_text h1 {
    font-size: clamp(1.1rem, 3.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .logo {
    width: 68px;
    margin: 0 12px;
  }

  header img {
    width: 68px;
    height: auto;
  }

  #main-nav {
    display: none;
  }

  .menu-btn {
    display: block;
    position: absolute;
    left: 14px;
    top: 18px;
    width: 44px;
    height: 44px;
    opacity: 0;
    z-index: 30;
    cursor: pointer;
  }

  nav#main-nav_portrait {
    display: none;
    position: absolute;
    top: 92px !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    background: #0782fa;
  }

  .menu-btn:checked ~ nav#main-nav_portrait {
    display: block;
  }

  nav#main-nav_portrait > ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav#main-nav_portrait > ul > li {
    width: 100%;
    margin: 0;
    float: none;
  }

  nav#main-nav_portrait > ul > li > a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 1.05rem;
    line-height: 1.2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #0782fa;
    color: #fff;
  }

  nav#main-nav_portrait > ul > li > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #55abff;
  }

  nav#main-nav_portrait > ul > li > ul > li {
    margin: 0;
    width: 100%;
  }

  nav#main-nav_portrait > ul > li > ul > li > a {
    display: block;
    width: 100%;
    padding: 10px 16px 10px 26px;
    box-sizing: border-box;
    color: #fff;
    font-size: 0.95rem;
  }

  section {
    padding-top: 92px;
    min-height: calc(100% - 92px - 180px);
  }

  .container {
    padding: 8px 12px 24px;
  }

  form[method='get'] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }


  #footer_landscape {
    display: none;
  }

  #footer_portrait {
    display: flex;
    flex-direction: column;
  }

  .footer_oben {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 18px;
  }

  .footer_unten {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }

  .impressum {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
    text-align: right;
    margin-top: 10px;
  }

  .impressum a,
  .creator p {
    font-size: clamp(0.95rem, 2.7vw, 1.4rem);
  }

  .social-icons ul {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
  }

  .social-icons ul li {
    width: 42px;
    height: 42px;
    margin-left: 0;
    background-size: cover;
  }
}
