#root main div:has(> img[src*="qr-code-aufnahmeantrag"]) {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(28, 43, 31, 0.1);
  border-left: 5px solid #1c2b1f;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f1e9 0%, #fbfaf7 100%);
  box-shadow: 0 8px 20px rgba(28, 43, 31, 0.06);
}

#root main div:has(> img[src*="qr-code-aufnahmeantrag"]) > img {
  width: 104px;
  height: 104px;
  padding: 7px;
  border: 1px solid rgba(28, 43, 31, 0.12);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(28, 43, 31, 0.1);
}

#root main div:has(> img[src*="qr-code-aufnahmeantrag"]) > :not(img) {
  min-width: 0;
  color: #53605a;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #root > * {
    min-width: 0;
    max-width: 100%;
  }

  #root main,
  #root section,
  #root article,
  #root form,
  #root [class*="rounded"] {
    min-width: 0;
    max-width: 100%;
  }

  #root input,
  #root textarea,
  #root select,
  #root button {
    max-width: 100%;
  }

  #root [class*="grid"] > *,
  #root [class*="flex"] > * {
    min-width: 0;
  }

  #root [class*="whitespace-nowrap"] {
    white-space: normal;
  }

  #root [class*="items-start"][class*="justify-between"] {
    flex-direction: column;
    align-items: stretch;
  }

  #root [class*="items-start"][class*="justify-between"] > [class*="flex-shrink-0"] {
    flex-shrink: 1;
    flex-wrap: wrap;
    width: 100%;
  }

  #root main [class*="grid-cols-[230px_1fr]"] {
    grid-template-columns: minmax(0, 1fr);
  }

  #root main [style*="grid-template-columns: 230px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root header {
    height: auto !important;
    min-height: 92px;
    padding: 8px 12px !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  #root header > div:first-child {
    flex: 1 1 100%;
    min-width: 0;
  }

  #root header img {
    width: min(220px, 42vw) !important;
    height: 32px !important;
  }

  #root header > div:last-child {
    margin-left: auto;
  }

  #root main div:has(> img[src*="qr-code-aufnahmeantrag"]) {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px 10px 10px;
  }

  #root main div:has(> img[src*="qr-code-aufnahmeantrag"]) > img {
    width: 88px;
    height: 88px;
    padding: 6px;
  }

  .site-nav-inner {
    height: 56px;
    padding-inline: 14px;
    gap: 8px;
  }

  .site-brand-text {
    display: none;
  }

  .site-nav-cta {
    display: inline-flex !important;
    height: 34px;
    padding-inline: 12px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .site-nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: 2px;
  }

  .home-hero {
    min-height: 100svh;
    padding-top: 64px;
  }

  .home-hero-content {
    padding: 18px 16px 22px;
  }

  .home-hero-panel {
    max-width: 100%;
  }

  .home-hero-title {
    font-size: clamp(2.1rem, 9vw, 3.4rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.05em;
  }

  .home-hero-copy {
    max-width: 100%;
    font-size: clamp(0.96rem, 3.9vw, 1.12rem) !important;
    line-height: 1.55;
  }

  .home-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 1.25rem;
  }

  .home-hero-action {
    min-height: 46px;
    border-radius: 12px;
    padding: 0 10px;
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .site-mobile-menu {
    max-height: calc(100svh - 56px);
    padding: 12px 16px 16px;
  }

  .site-mobile-menu a,
  .site-mobile-menu button {
    font-size: 1rem;
    min-height: 44px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-nav-inner {
    padding-inline: 16px;
  }

  .home-hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
  }

  .home-hero-copy {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
  }

  .home-hero-actions {
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .home-hero-actions {
    grid-template-columns: 1fr;
  }

  .home-hero-title {
    font-size: clamp(1.9rem, 10vw, 2.7rem) !important;
  }
}
