/* =========================================
   RESPONSIVE STYLES (Media Queries)
   - Tablet: max-width 1200px
   - Mobile: max-width 600px
   - Große Bildschirme: min-width 1900px
   ========================================= */

/* --- Tablet & kleinere Desktops (max-width: 1200px) QUERFORMAT --- */
@media (max-width: 1200px) and (orientation: landscape) {
  .hero {
    background-image: url("../bilder/hero-katze-weiss-portrait-1600x1200.webp");
  }

  .hero-content .hero-logo {
    height: 140px;
    object-fit: contain;
    object-position: left center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  /* Logo auf kleineren Bildschirmen */
  .logo img {
    content: url("../logo/logo.svg");
    height: 100px;
  }

  .leistungen {
    flex-direction: column;
  }
  .leistungen-wrapper {
    flex-direction: column;
  }
  .praxisinfo-wrapper {
    flex-direction: column;
  }
  .index-wrapper {
    flex-direction: column;
  }
  .kontakt-wrapper {
    flex-direction: column;
  }

  /* Tablet-Hintergrundbilder */
  .leistungen-wrapper::before {
    background-image: url("../bilder/hg-leistungen-naturheilkunde-1200x900.webp");
    background-attachment: scroll;
    position: fixed;
  }

  .praxisinfo-wrapper::before {
    background-image: url("../bilder/hg-praxisinfo-papagei-1200x900.webp");
    background-attachment: scroll;
    position: fixed;
  }

  .ueber-mich-wrapper::before {
    background-image: url("../bilder/hg-uebermich-ratte-1200x900.webp");
    background-attachment: scroll;
    position: fixed;
  }

  .kontakt-wrapper::before {
    background-image: url("../bilder/hg-kontakt-kaninchen-1200x900.webp");
    background-attachment: scroll;
    position: fixed;
  }

  /* Impressum/AGB/Datenschutz auf Tablet anpassen */
  .impressum-wrapper {
    padding: 0 1.5rem;
    margin: 2rem auto;
  }

  .impressum-content h1 {
    font-size: 2.2rem;
  }

  .impressum-content h2 {
    font-size: 1.4rem;
  }
}

/* --- Tablet Hochformat (Portrait) --- */
@media (max-width: 1200px) and (orientation: portrait) and (min-width: 601px) {
  .topbar::before {
    background-attachment: scroll;
  }

  .hero {
    background-image: url("../bilder/hero-katze-weiss-portrait-1200x1600.webp");
  }

  .hero-content .hero-logo {
    height: 120px;
    object-fit: contain;
    object-position: left center;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content .subtitle {
    font-size: 0.95rem;
  }

  /* Logo auf kleineren Bildschirmen */
  .logo img {
    content: url("../logo/logo.svg");
    height: 100px;
  }

  .leistungen {
    flex-direction: column;
  }
  .leistungen-wrapper {
    flex-direction: column;
  }
  .praxisinfo-wrapper {
    flex-direction: column;
  }
  .index-wrapper {
    flex-direction: column;
  }
  .kontakt-wrapper {
    flex-direction: column;
  }

  /* Tablet-Hochformat-Hintergrundbilder */
  .leistungen-wrapper::before {
    background-image: url("../bilder/hg-leistungen-naturheilkunde-1200x1600.webp");
    background-attachment: scroll;
    position: fixed;
  }

  .praxisinfo-wrapper::before {
    background-image: url("../bilder/hg-praxisinfo-papagei-1200x1600.webp");
    background-attachment: scroll;
    position: fixed;
  }

  .ueber-mich-wrapper::before {
    background-image: url("../bilder/hg-uebermich-ratte-1200x1600.webp");
    background-attachment: scroll;
    position: fixed;
  }

  .kontakt-wrapper::before {
    background-image: url("../bilder/hg-kontakt-kaninchen-1200x1600.webp");
    background-attachment: scroll;
    position: fixed;
  }

  /* Impressum/AGB/Datenschutz auf Tablet anpassen */
  .impressum-wrapper {
    padding: 0 1.5rem;
    margin: 2rem auto;
  }

  .impressum-content h1 {
    font-size: 2.2rem;
  }

  .impressum-content h2 {
    font-size: 1.4rem;
  }
}

/* --- Mobile (max-width: 600px) --- */
@media (max-width: 1024px) {
  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-copyright {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
  }

  .footer-social {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .footer-links {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .footer-links a,
  .cookie-settings-link {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .topbar::before {
    background-attachment: scroll;
  }

  .hero {
    background-image: url("../bilder/hero-katze-weiss-portrait-1080x1920.webp");
  }

  .hero-content .hero-logo {
    height: 80px;
    object-fit: contain;
    object-position: left center;
  }

  .hero-content h1 {
    font-size: 1.3rem;
  }
  .hero-content .subtitle {
    font-size: 0.85rem;
  }

  /* Layout: Alles untereinander auf schmalen Bildschirmen */
  .leistungen-wrapper {
    flex-direction: column;
  }
  .praxisinfo-wrapper {
    flex-direction: column;
  }
  .ueber-mich-wrapper {
    flex-direction: column;
  }
  .index-wrapper {
    flex-direction: column;
  }
  .kontakt-wrapper {
    flex-direction: column;
  }
  .leistungen {
    flex-direction: column;
  }

  /* Mobile-Hintergrundbilder (Hochformat) */
  .leistungen-wrapper::before {
    background-image: url("../bilder/hg-leistungen-naturheilkunde-800x1200.webp");
    background-size: cover;
    background-attachment: scroll;
    position: fixed;
  }

  .praxisinfo-wrapper::before {
    background-image: url("../bilder/hg-praxisinfo-papagei-800x1200.webp");
    background-size: cover;
    background-attachment: scroll;
    position: fixed;
  }

  .ueber-mich-wrapper::before {
    background-image: url("../bilder/hg-uebermich-ratte-800x1200.webp");
    background-size: cover;
    background-attachment: scroll;
    position: fixed;
  }

  .kontakt-wrapper::before {
    background-image: url("../bilder/hg-kontakt-kaninchen-800x1200.webp");
    background-size: cover;
    background-attachment: scroll;
    position: fixed;
  }

  /* Footer auf Mobile: FB rechts, Links in Zeile 2 */
  footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .footer-copyright {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .footer-social {
    flex: 0 0 auto;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .footer-links {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
  }

  .footer-links a,
  .cookie-settings-link {
    white-space: normal;
  }

  .footer-links a:not(:last-child)::after {
    margin-left: 12px;
  }

  /* Impressum/AGB/Datenschutz auf Mobile anpassen */
  .impressum-wrapper {
    max-width: 100%;
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .impressum-content {
    padding: 1rem;
  }

  .impressum-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .impressum-content h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }

  /* Labels umbrechen lassen: Wert erscheint unter dem Label */
  .impressum-content p {
    margin-top: 1.8rem;
    margin-bottom: 0;
  }

  .impressum-content p:first-of-type {
    margin-top: 0;
  }

  .impressum-content p strong {
    display: block !important;
    min-width: auto !important;
    margin-bottom: 0.15rem;
    font-weight: 600;
  }

  /* AGB Checkbox größer auf Mobile für bessere Touch-Bedienung */
  .formular-kachel .agb-label input[type="checkbox"] {
    min-width: 24px;
    min-height: 24px;
    margin-top: 0;
  }

  .formular-kachel .agb-label {
    padding: 10px 0;
    gap: 12px;
  }

  .menu {
    display: flex;
    position: absolute;
    top: 68px;
    right: 20px;
    background: rgba(175, 208, 194, 0.85);
    padding: 8px 12px;
    border-radius: 8px;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform-origin: top right;
    transition:
      max-height 0.28s ease,
      opacity 0.25s ease,
      transform 0.28s ease,
      background 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 50;
    pointer-events: none;
  }
  .page-home:not(.hero-scrolled) .menu {
    background: transparent;
  }
  .menu.show {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }
  .menu li {
    margin: 0;
    text-align: right;
  }
  .menu a,
  .topbar .menu a,
  .topbar.solid .menu a {
    display: block;
    color: #fff !important;
    text-align: right;
  }
  .menu-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    z-index: 100;
  }
  .logo {
    order: 0;
    z-index: 101;
  }
}

/* --- Große Bildschirme (min-width: 1900px) --- */
@media (min-width: 1900px) {
  .hero {
    background-image: url("../bilder/hero-katze-weiss-portrait-2560x1440.webp");
  }

  /* Große Desktop-Hintergrundbilder */
  .leistungen-wrapper::before {
    background-image: url("../bilder/hg-leistungen-naturheilkunde-2560x1440.webp");
  }

  .praxisinfo-wrapper::before {
    background-image: url("../bilder/hg-praxisinfo-papagei-2560x1440.webp");
  }

  .ueber-mich-wrapper::before {
    background-image: url("../bilder/hg-uebermich-ratte-2560x1440.webp");
  }

  .kontakt-wrapper::before {
    background-image: url("../bilder/hg-kontakt-kaninchen-2560x1440.webp");
  }
}
