/*
 * Responsive Ergänzungen für arztpraxis-oster.de
 * Die Desktop-Darstellung bleibt oberhalb von 800 px unverändert.
 */

@media only screen and (max-width: 800px) {
  html {
    background-color: #17222c;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 100vh;
    background-attachment: scroll;
  }

  html,
  body {
    min-width: 0;
    width: 100%;
    min-height: 100%;
  }

  body {
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
  }

  #accent {
    display: none;
  }

  #texture {
    min-height: 100vh;
    background-image: none;
  }

  header {
    position: relative;
    z-index: 2;
    float: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 20px 16px 18px;
    background: rgba(11, 20, 28, 0.9);
    text-shadow: none;
  }

  #siteLogo {
    display: none;
  }

  #siteTitle {
    visibility: visible;
    margin: 0;
    padding: 0 0 14px;
    border: 0;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.2;
  }

  nav {
    margin: 0;
    padding: 0;
    border: 0;
  }

  nav > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
  }

  nav > ul > li {
    min-width: 0;
  }

  nav > ul > li > a,
  nav > ul > li > a.current,
  nav > ul > li > a.current:hover,
  nav > ul > li > a:not(.current):hover {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 8px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.12);
    background-image: none;
    color: #fff;
    text-align: center;
  }

  nav > ul > li > a.current,
  nav > ul > li > a.current:hover {
    background-color: #fffbd6;
    color: #17222c;
  }

  header footer {
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.45;
  }

  #container {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 16px;
  }

  section {
    float: none;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  #swatchA,
  #swatchB,
  #swatchC {
    width: 33.3333%;
    height: 6px;
  }

  #socialIcons {
    float: none;
    width: 100%;
    height: 0;
    border: 0;
  }

  #sectionWrap,
  #asideWrap {
    float: none;
    box-sizing: border-box;
    width: 100%;
    padding: 24px 20px;
  }

  #sectionWrap {
    min-height: 0;
  }

  #breadcrumb {
    display: none;
  }

  #featureImage {
    width: 100%;
  }

  #sectionWrap img,
  .imageStyle,
  .centered_image img {
    max-width: 100%;
    height: auto;
  }

  #sectionWrap .text_stack,
  #sectionWrap .privacy-content {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #sectionWrap .text_stack span[style] {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
  }

  #sectionWrap h1 {
    margin-bottom: 0.8rem;
    font-size: 1.7rem;
    line-height: 1.25;
  }

  #sectionWrap h2 {
    margin: 1.6rem 0 0.55rem;
    font-size: 1.3rem;
    line-height: 1.3;
  }

  #sectionWrap p,
  #asideWrap p {
    margin: 0 0 1rem;
  }

  aside {
    float: none;
    width: 100%;
    font-size: 1rem;
    line-height: 1.55;
  }

  #asideTitle {
    padding-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.35;
  }

  a {
    overflow-wrap: anywhere;
  }
}

@media only screen and (max-width: 380px) {
  #container {
    padding: 10px;
  }

  #sectionWrap,
  #asideWrap {
    padding: 21px 16px;
  }

  nav > ul {
    grid-template-columns: 1fr;
  }
}
