/* REGINA STEINER — SIMPLIFIED RESPONSIVE STYLESHEET
   Navigation: portrait phones/tablets = menu; landscape tablets/desktop = links.
*/

/* 1. SITE-WIDE SETTINGS */
:root {
  --text-color: #949494;
  --background: #ffffff;
  --link-hover: #c33;
  --content-width: 980px;
  --reading-width: 700px;
  --page-padding: clamp(18px, 5vw, 54px);
  --body-size: 15px;
  --nav-size: 15px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 280px;
  background: var(--background);
  color: var(--text-color);
  font-family: sans-serif;
  font-size: var(--body-size);
  font-weight: 200;
  text-align: center;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a,
a:visited {
  color: var(--text-color);
}
a {
  text-decoration: none;
}
a:hover,
a:focus-visible {
  color: var(--link-hover);
}

/* 2. SITE NAME AND NAVIGATION */
.site-header {
  width: min(100% - 2 * var(--page-padding), var(--content-width));
  margin: 0 auto;
  padding-top: clamp(24px, 4vw, 56px);
}
.header-left {
  text-align: center;
}
.name {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
div.page-title {
  font-size: clamp(26px, 3vw, 44px);
  /* Removed invalid margin-top: auto-10%; */
}
.navig {
  position: relative;
  margin-top: clamp(16px, 3vw, 32px);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  font-size: var(--nav-size);
  font-style: italic;
}
.main-nav a {
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* 3. MAIN CONTENT AND READING TEXT */
.container {
  width: min(100% - 2 * var(--page-padding), var(--content-width));
  margin: 0 auto;
  padding-top: clamp(20px, 3vw, 42px);
  padding-bottom: 70px;
}
.container p {
  margin: 0 0 1.3em;
}
.container footer {
  margin: 0;
}
.quote-supp,
.quote-lehr,
.quote-musik {
  max-width: var(--reading-width);
  margin: 28px auto 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* 4. HOME PAGE */
.main_img {
  width: min(100%, 610px);
  margin: 22px auto 0;
}
.globe {
  width: 100%;
  margin: 0 auto;
}
.globe img {
  margin: 0 auto;
}

/* 5. MUSIKTHERAPIE AND SUPERVISION */
.musik {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  width: min(100%, 720px);
  margin: 0 auto;
}
.supp-img {
  flex: 1 1 55%;
  min-width: 0;
}
.supp-img img {
  width: 70%;
  margin-top: -5%;
}
.supp-text {
  flex: 1 1 35%;
  min-width: 0;
  text-align: center;
  font-style: italic;
}
.page-title {
  font-size: clamp(20px, 4vw, 64px);
  text-align: center;
  margin-top: 5%;
}
.musik-text p {
  margin: 0;
  font-size: clamp(12px, 1.3vw, 15px);
  font-style: italic;
  line-height: 1.35;
}
.musik-text,
.musik-img {
  min-width: 0;
}

/* 6. LEHRTHERAPIE */
.lehr-img {
  width: min(100%, 450px);
  margin: 0 auto;
}
.lehr-img img {
  margin: 0 auto;
}
.quote-lehr {
  margin-top: 30px;
}

/* 7. PORTRAIT PAGE */
.container:has(.port-img) {
  display: grid;
  grid-template-columns: minmax(160px, 30%) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.container:has(.port-img) > .musik {
  width: 100%;
  margin: 0;
}
.port-img {
  width: 70%;
  max-width: 260px;
  margin: 0 auto;
}
.port-img img {
  width: 100%;
}
.container:has(.port-img) > .port {
  min-width: 0;
}
.quote-portrait {
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
}
.quote-portrait ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quote-portrait li {
  margin: 0;
  overflow-wrap: anywhere;
}
.port_cat {
  font-weight: 700;
  text-decoration: underline;
}

/* 8. CONTACT PAGE */
/* 8. CONTACT PAGE */
.contact {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}
.contact li {
  margin: 0;
}
.contact a {
  font-style: italic;
}

/* 9. PHONE + PORTRAIT TABLET NAVIGATION */
@media (max-width: 767px),
  (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .navig {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 14px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: relative;
    z-index: 10;
    width: max-content;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 10px;
    background: var(--background);
    font-size: 15px;
  }
  .main-nav.menu-open,
  .main-nav.open {
    display: flex;
  }
}

/* 10. PHONES — preserve the existing phone layout */
@media (max-width: 767px) {
  :root {
    --page-padding: 22px;
    --body-size: 14px;
  }
  .site-header {
    padding-top: 28px;
  }
  .name {
    font-size: clamp(34px, 9vw, 46px);
  }
  .container {
    padding-top: 22px;
  }
  .main_img {
    margin-top: 18px;
  }
  .musik {
    gap: 12px;
  }
  .supp-img {
    flex-basis: 52%;
    margin-left: 24%;
    margin-right: auto;
    margin-top: -5%;
  }
  .supp-img img {
    width: 100%;
    height: auto;
  }
  .lehr-img {
    flex-basis: 52%;
    width: 60%;
    margin-top: -3%;
    margin-bottom: 2%;
  }
  .supp-text {
    flex-basis: 48%;
  }
  .supp-text p {
    font-size: 11px;
    line-height: 1.25;
    font-style: italic;
    text-align: center;
  }
  .quote-supp,
  .quote-lehr,
  .quote-musik {
    margin-top: 10px;
    font-size: 12px;
    width: 95%;
  }
  .quote-portrait li {
    margin-top: 15px;
    font-size: 0.9rem;
    width: 95%;
    line-height: 1.1rem;
  }
  .container:has(.port-img) {
    display: block;
  }
  .port-img {
    max-width: 40vw;
    margin-top: -10%;
  }
  .port_cat {
    text-align: center;
    font-weight: 400;
  }
  .quote-portrait {
    margin-left: 4%;
  }
  .quote-portrait li {
    font-size: 0.8rem;
  }
  .contact {
    margin-bottom: 24px;
  }
  /* Working phone portrait layout for Musiktherapie and Supervision */
  .musik {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .supp-img {
    flex: 0 0 45%;
    margin: 0;
  }
  .supp-text {
    flex: 0 0 45%;
    margin: 0;
  }
}

/* 11. PORTRAIT TABLETS — iPad mini and iPad Pro */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .site-header {
    padding-top: 40px;
  }
  .name {
    font-size: clamp(48px, 6vw, 68px);
  }
  .container {
    padding-top: 30px;
  }
  .port-img {
    max-width: 220px;
  }
  .lehr-img {
    max-width: 320px;
    margin-top: -10%;
  }
  .container:has(.port-img) {
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
  }

  /* IMPORTANT: the image itself fills its column, so gap is the real spacing. */
  .musik {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Change this to 4px or 16px to adjust spacing */
    width: 90%;
    max-width: 850px;
    margin: 35px auto 25px;
  }
  .supp-img {
    flex: 0 0 36%;
    width: 36%;
    min-width: 0;
    margin: 0;
  }
  .supp-img img {
    width: 100%;
    height: auto;
    margin-top: -5%;
  }
  .supp-text {
    flex: 0 0 45%;
    width: 45%;
    min-width: 0;
    margin: 0;
    text-align: center;
  }
  .supp-text p {
    font-size: 1.1rem;
    line-height: 1.4;
  }
}

/* 12. LANDSCAPE TABLETS AND DESKTOPS */
@media (min-width: 768px) and (orientation: landscape) {
  .site-header {
    padding-top: 26px;
  }
  .navig {
    margin-top: 12px;
  }
  .menu-toggle {
    display: none;
  }
  .main-nav {
    display: flex;
    flex-direction: row;
  }
}

/* 13. VERY NARROW PHONES */
@media (max-width: 380px) {
  :root {
    --page-padding: 15px;
  }
  .musik {
    flex-direction: column;
  }
  .supp-img,
  .supp-text {
    width: min(100%, 360px);
  }
}

/* 14. iPad Pro 13 portrait — larger reading text and content area */
@media (min-width: 1000px) and (max-width: 1100px) and (orientation: portrait) {
  .container {
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .quote-supp {
    width: 90%;
    max-width: 850px;
    margin: 25px auto;
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .quote-supp p {
    font-size: inherit;
    line-height: inherit;
  }
}

/* 15. iPHONE LANDSCAPE */
@media (min-width: 600px) and (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  /* Site name */
  .site-header {
    padding-top: 8px;
  }

  .name {
    font-size: 2rem;
    line-height: 1.05;
  }

  /* Page title */
  .page-title,
  div.page-title {
    font-size: 1.35rem;
    margin-top: 3px;
    margin-bottom: 3px;
  }

  /* Navigation */
  .navig {
    margin-top: 4px;
  }

  /* Main content */
  .container {
    padding-top: 6px;
  }

  /* Musiktherapie and Supervision */
  .musik {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(92%, 430px);
    margin: 0 auto;
  }

  .supp-img {
    flex: 0 0 120px;
    width: 120px;
    min-width: 0;
    margin: 0;
  }

  .supp-img img {
    display: block;
    width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    margin: 0;
  }

  .supp-text {
    flex: 0 1 260px;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .supp-text p {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .quote-supp {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Lehrtherapie — smaller photograph */
  .lehr-img {
    width: 30%;
    max-width: 150px;
    margin: 0 auto;
  }

  .lehr-img img {
    width: 100%;
    height: auto;
  }

  /* Contact — smaller slider */
  /* Contact slider — smaller in iPhone landscape */
  .slider {
    width: 45%;
    max-width: 220px;
    margin: 0 auto;
  }

  .slider img {
    max-width: 100%;
    height: auto;
  }
  /* Contact page — move contact details upward */
  .contact {
    margin-top: -25px;
  }
  /* Contact slider — iPhone landscape */
  .image-slider {
    width: 100%;
    max-width: 300px;
    margin: 5px auto 0;
  }

  .slider-frame {
    width: 100%;
    max-width: 300px;
    height: 160px;
    margin: 0 auto;
    left: 0;
  }

  .slider-frame img {
    width: auto;
    max-width: 100%;
    height: 130px;
    object-fit: contain;
  }

  .slider-arrow {
    bottom: 0;
  }
}
/* 16. LARGER iPHONES — LANDSCAPE */
@media (min-width: 933px) and (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  /* Supervision and Musiktherapie */
  .supp-img {
    flex: 0 0 110px;
    width: 110px;
  }

  .supp-img img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
  }

  /* Lehrtherapie */
  .lehr-img {
    width: 25%;
    max-width: 130px;
    margin: 0 auto;
  }

  .lehr-img img {
    width: 100%;
    height: auto;
  }

  /* Contact slider */
  .image-slider {
    max-width: 280px;
    margin: 5px auto 0;
  }

  .slider-frame {
    max-width: 280px;
    height: 145px;
    margin: 0 auto;
    left: 0;
  }

  .slider-frame img {
    height: 115px;
    max-width: 100%;
    object-fit: contain;
  }
}
/* 17. HOME PAGE GLOBE — iPHONE LANDSCAPE */
@media (min-width: 600px) and (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .globe {
    width: 50%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
  }

  img.globe {
    max-height: 220px;
    object-fit: contain;
  }
}
/* ==================================================
   18. iPAD MINI — LANDSCAPE (1024 × 768)
   ================================================== */

@media (min-width: 1001px) and (max-width: 1100px) and (orientation: landscape) {
  /* Musiktherapie and Supervision */

  .container:not(:has(.port-img)) > .musik {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 500px;
    max-width: 95%;
    margin: 0 auto;
  }

  .musik .supp-img {
    flex: 0 0 200px;
    width: 200px;
    min-width: 0;
    margin: 0;
  }

  .musik .supp-img img {
    display: block;
    width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    margin: 0;
  }

  .musik .supp-text {
    flex: 0 1 260px;
    width: 260px;
    min-width: 0;
    margin: 0;
    text-align: center;
  }

  .musik .supp-text p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Lehrtherapie — smaller photograph */

  .container .lehr-img {
    width: 200px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .container .lehr-img img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Contact slider */

  .image-slider {
    width: 100%;
    max-width: 350px;
    margin: 15px auto 0;
  }

  .slider-frame {
    width: 100%;
    max-width: 350px;
    height: 300px;
    margin: 0 auto;
    left: 0;
  }

  .slider-frame img {
    width: auto;
    max-width: 100%;
    height: 260px;
    object-fit: contain;
  }

  .slider-arrow {
    bottom: 4px;
  }

  /* Portrait page — preserve working layout */

  .container:has(.port-img) {
    display: grid;
    grid-template-columns: 140px 500px;
    column-gap: 18px;
    justify-content: center;
    align-items: start;
  }

  .container:has(.port-img) > .musik {
    width: 140px;
    margin: 0;
  }

  .container:has(.port-img) .port-img {
    width: 140px;
    max-width: 140px;
    margin: 0;
  }

  .container:has(.port-img) .port-img img {
    display: block;
    width: 100%;
    height: auto;
  }

  .container:has(.port-img) > .port {
    width: 500px;
    margin: 0;
  }

  .container:has(.port-img) .quote-portrait {
    width: 100%;
    margin: 0;
    text-align: left;
  }
}
/* ==================================================
   19. iPAD PRO 13" — LANDSCAPE
   ================================================== */

@media (min-width: 1200px) and (max-width: 1400px) and (orientation: landscape) {
  /* Musiktherapie and Supervision */

  .container:not(:has(.port-img)) > .musik {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4;
    width: 600px;
    max-width: 95%;
    margin: 0 auto;
  }

  .musik .supp-img {
    flex: 0 0 250px;
    width: 250px;
    margin: 0;
  }

  .musik .supp-img img {
    width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    margin: 0;
  }

  .musik .supp-text {
    flex: 0 1 300px;
    width: 300px;
    margin: 0;
    text-align: center;
  }

  /* Lehrtherapie */

  .container .lehr-img {
    width: 280px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .container .lehr-img img {
    width: 100%;
    height: auto;
  }
}
/* ==================================================
   20. iPAD PRO 13" — PORTRAIT — CONTACT PAGE
   ================================================== */

@media (min-width: 1000px) and (max-width: 1100px) and (orientation: portrait) {
  /* Move contact information upward */
  .container:has(.contact) {
    padding-top: 0;
  }

  .contact {
    margin-top: -25px;
    margin-bottom: 5%;
  }

  /* Center the slider */
  .image-slider {
    width: 100%;
    max-width: 800px;
    margin: 15px auto 0;
    align-items: center;
  }

  .slider-frame {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    transform: none;
  }
}
/* ==================================================
   21. DESKTOP — 1440px AND LARGER
   ================================================== */

@media (min-width: 1401px) {
  /* Musiktherapie and Supervision */

  .container:not(:has(.port-img)) > .musik {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 580px;
    max-width: 100%;
    margin: 0 auto;
  }

  .musik .supp-img {
    flex: 0 0 280px;
    width: 280px;
    min-width: 0;
    margin: 0;
  }

  .musik .supp-img img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .musik .supp-text {
    flex: 0 0 280px;
    width: 280px;
    min-width: 0;
    margin: 0;
    text-align: center;
  }

  /* Contact — move information slightly upward */

  .container:has(.contact) {
    padding-top: 10px;
  }

  .contact {
    margin-top: -20px;
  }

  /* Contact — center slider */

  .image-slider {
    width: 100%;
    max-width: 800px;
    margin: 15px auto 0;
    align-items: center;
  }

  .slider-frame {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    transform: none;
  }
  /* Lehrtherapie — smaller desktop photograph */

  .container .lehr-img {
    width: 350px;
    max-width: 100%;
    margin: 0 auto;
  }

  .container .lehr-img img {
    display: block;
    width: 100%;
    height: auto;
  }
}
/* ==================================================
   22. LARGE DESKTOP — 1600px AND ABOVE
   ================================================== */

@media (min-width: 1600px) {
  /* Header and navigation */

  .site-header {
    max-width: 1400px;
  }

  .name {
    font-size: 4.5rem;
  }

  .main-nav {
    font-size: 19px;
    gap: 12px 26px;
  }

  /* Main content area */

  .container {
    width: min(90%, 1400px);
    max-width: 1400px;
  }

  /* Wider body text for less scrolling */

  .quote-supp,
  .quote-lehr,
  .quote-musik {
    max-width: 1000px;
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* Musiktherapie and Supervision */

  .container:not(:has(.port-img)) > .musik {
    width: 850px;
    max-width: 100%;
    gap: 18px;
  }

  .musik .supp-img {
    flex: 0 0 400px;
    width: 400px;
  }

  .musik .supp-img img {
    width: 100%;
    max-height: 310px;
    height: auto;
    object-fit: contain;
  }

  .musik .supp-text {
    flex: 0 0 400px;
    width: 400px;
  }

  .musik .supp-text p {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  /* Lehrtherapie */

  .container .lehr-img {
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
  }

  .container .lehr-img img {
    width: 100%;
    height: auto;
  }

  /* Portrait biography */

  /* Portrait — larger photograph on large desktops */

  .container:has(.port-img) {
    grid-template-columns: 280px minmax(0, 850px);
    column-gap: 30px;
    justify-content: center;
  }

  .container:has(.port-img) .port-img {
    width: 260px;
    max-width: 260px;
    margin: 0 auto;
  }

  .container:has(.port-img) .port-img img {
    width: 100%;
    height: auto;
  }

  .quote-portrait {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  /* Contact slider — maintain centering */

  .image-slider {
    margin-left: auto;
    margin-right: auto;
  }

  .slider-frame {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    transform: none;
  }
  /* CONTACT PAGE — LARGE DESKTOP */

  /* Move contact information and slider downward */
  .container:has(.contact) {
    padding-top: 55px;
  }

  .container:has(.contact) .contact {
    margin-top: 0;
  }

  /* Enlarge contact information */
  .container:has(.contact) .contact,
  .container:has(.contact) .contact p,
  .container:has(.contact) .contact a {
    font-size: 19px;
    line-height: 1.6;
  }

  /* Keep slider centered and move it slightly down */
  .container:has(.contact) .image-slider {
    margin: 25px auto 0;
  }
}
