/* Load after main.css and fonts.css. Phone styles remain in main.css. */
@media screen and (min-width: 650px) {
  :root {
    --page-gutter: clamp(24px, 4vw, 44px);
    --content-width: 960px;
    --page-edge: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    --body-size: clamp(17px, 2.1vw, 20px);
    --row-size: clamp(22px, 3vw, 27px);
    --title-size: clamp(24px, 3.5vw, 32px);
    --headline-size: clamp(48px, 6.5vw, 64px);
    --section-gap: clamp(72px, 11vw, 120px);
    --project-gap: 28px;
    --project-image-height: clamp(200px, 25vw, 280px);
  }

  body { margin: 0; }
  .main-img-1 {
    height: 100vh !important;
    height: 100dvh !important;
    transition-property: background-color, background-position, background-size, filter, opacity, transform;
  }

  .logo, .main-headline, .main-headline-2, .gebetszeiten,
  .besuch-hinweis, .aktut, .projekts, .impressum, .addresse, .menuitems {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--page-gutter));
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .logo { align-items: center; padding-top: 20px; padding-bottom: 20px; }
  .logoimg { flex: 0 0 64px; width: 64px; height: 64px; }
  .logoname { height: auto; margin-top: 0; padding-left: 16px; }
  .logoname p { font-size: 20px; }

  .lines, .menucross {
    left: auto;
    right: var(--page-edge);
    top: 28px;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .lines > .line { top: 14px; left: 6px; width: 32px; height: 3px; }
  .menucross::before, .menucross::after {
    top: 19px;
    left: 6px;
    width: 32px;
    height: 3px;
  }

  .menu { overflow-x: hidden; overflow-y: auto; }
  .menuitems { position: relative; margin-top: clamp(88px, 13vh, 128px); padding-bottom: 48px; }
  .menuitems a { width: auto; margin-left: 0; font-size: clamp(32px, 4.5vw, 48px); padding-top: 24px; }
  .menuitems a::before { font-size: 24px; }
  .menuitems a::after { position: static; height: 1px; margin-top: 8px; }
  /* Keep the same circular reveal; cover wide and short screens as well. */
  @keyframes menuactive { to { clip-path: circle(150vmax at 90% -10%); } }
  @keyframes menuactivere {
    from { clip-path: circle(150vmax at 90% -10%); }
    to { clip-path: circle(0vh at 90% -20%); }
  }

  .main-headline, .main-headline-2 { margin-top: 96px; }
  .main-headline h1, .main-headline h2, .main-headline-2 h2 {
    margin: 0;
    font-size: var(--headline-size);
  }
  .gebetszeiten, .aktut, .projekts, .impressum { margin-top: var(--section-gap); }
  .gebetszeiten section { margin-top: 24px; }
  .gebetszeiten p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10ch, 1fr);
    gap: 24px;
    font-size: var(--row-size);
    padding-bottom: 8px;
  }
  /* The Friday row has inline phone padding in the existing HTML. */
  .gebetszeiten p span.time { width: auto; min-width: 0; padding-right: 0 !important; overflow: visible; }
  .gebetszeiten section::after, .gebetszeiten section:first-child::after,
  .aktut-o-cover::after, .read-user-aktut-cover-container::after,
  .read-user-aktut-date-cover::after, .projekt-cover::after, .po::after {
    height: 1px;
    margin-top: 4px;
  }
  .updated-time { margin-top: 20px; height: 36px; }
  .updated-time span { font-size: 14px; }
  .updated-time span::after { width: 6px; margin-left: 16px; flex-shrink: 0; }

  .besuch-hinweis { margin-top: 32px; gap: 24px; padding-bottom: 10px; border-bottom-width: 1px; }
  .besuch-hinweis a { font-size: var(--row-size); }
  .besuch-hinweis section:nth-child(2) { flex: 0 0 32px; width: 32px; height: 32px; }

  .aktut-o h3, .aktut-o p, .aktut-o a, .po h3 { font-size: var(--row-size); padding-bottom: 8px; }
  .read-aktut-extras-mehr { flex: 0 0 44px; width: 44px; }
  .read-user-aktut-cover-container { margin-top: 24px; }
  .read-user-aktut-date p { font-size: var(--row-size); padding-top: 12px; padding-bottom: 16px; }
  .read-user-aktut-cover { margin-top: 28px; margin-bottom: 28px; }
  .read-user-aktut-o { width: 100%; }
  .read-user-aktut-o p { font-size: var(--title-size); overflow-wrap: anywhere; }
  .read-user-aktut-time-infos { margin-top: 28px; gap: 24px; flex-wrap: wrap; }
  .read-user-aktut-time-infos p { font-size: var(--row-size); }
  .read-user-aktut-time-infos p:nth-child(2) { margin-left: 0; }
  .read-user-aktut-tag { margin-top: 28px; }
  .read-user-aktut-tag p { width: auto; font-size: var(--body-size); }
  .read-user-aktut-tag p span { font-size: var(--row-size); }
  .mehr-infos-aktut { padding-top: 24px; padding-bottom: 40px; }
  .mehr-infos-aktut p { font-size: var(--body-size); line-height: 1.5; overflow-wrap: anywhere; }
  .mehr-infos-aktut-wo p:first-child { padding-bottom: 12px; }
  .mehr-infos-aktut-hinweis { padding-top: 32px; }
  .mehr-infos-aktut-img { padding-top: 0; margin-top: 32px; height: clamp(220px, 42vw, 460px); }

  .projekt {
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    gap: var(--project-gap);
    margin-top: 12px;
    padding-top: 32px;
    padding-bottom: 36px;
  }
  .projektinfos { min-width: 0; max-width: none; }
  .projekto p { width: auto; font-size: var(--title-size); padding-bottom: 8px; overflow-wrap: anywhere; }
  .projekttext p { font-size: var(--body-size); line-height: 1.5; padding-top: 12px; padding-right: 0; }
  .projektimg { position: relative; min-width: 0; min-height: var(--project-image-height); }
  .projektimg img { position: absolute; inset: 0; display: block; }

  .impressum p a { font-size: 32px; }
  .addresse { margin-top: 64px; padding-bottom: clamp(80px, 15vh, 160px); }
  .addresse-o p { font-size: 40px; }
  .user-read { padding-left: 0; padding-right: 0; margin-top: 32px; }
  .user-read p { font-size: var(--row-size); padding-top: 12px; padding-bottom: 10px; }
  .user-read:not(:nth-child(4)) p, .user-read:nth-child(4) p:last-child { border-bottom-width: 1px; }
  .user-read:nth-child(4) p { padding-top: 6px; padding-bottom: 10px; }
  .user-read p a { height: auto; min-height: 44px; gap: 24px; align-items: center; }
  .addresse p a svg { flex: 0 0 28px; width: 28px; height: 28px; }

  .alertxt {
    box-sizing: border-box;
    flex-direction: column;
    padding-top: 96px;
    padding-bottom: 48px;
    overflow-y: auto;
  }
  .alertxto, .alertxttxt {
    position: static;
    flex-shrink: 0;
    width: calc(100% - 2 * var(--page-gutter));
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  .alertxto p { font-size: 36px; margin: 0; }
  .alertxto p:first-child { margin-top: 0; }
  .wordaxt { position: static; }
  .alertxttxt p { margin-top: 32px; padding-left: 0; padding-right: 0; font-size: var(--row-size); line-height: 1.5; overflow-wrap: anywhere; }
  .alertxtclose { left: auto; right: var(--page-edge); top: 24px; width: 88px; height: 44px; }
  .alertxtclose p { font-size: 18px; }

  .event-info { position: relative; box-sizing: border-box; width: 100%; min-height: 0; padding: 24px var(--page-gutter); }
  .event-info .event-p-tags { box-sizing: border-box; width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 0; }
  .event-info .event-p-tags p:first-child { font-size: 32px; margin-top: 0; margin-bottom: 12px; }
  .event-info .event-p-tags p:nth-child(2) { width: max-content; max-width: 100%; font-size: 22px; border-bottom-width: 1px; }
  .event-info .event-p-tags p:nth-child(2) a { gap: 16px; }
  .event-info .event-p-tags p:nth-child(2) svg { flex: 0 0 28px; width: 28px; height: 28px; }
  .event-info::after { bottom: 16px; pointer-events: none; }
}

@media screen and (min-width: 650px) and (max-height: 600px) {
  :root { --headline-size: 48px; --section-gap: 72px; }
  .main-headline, .main-headline-2 { margin-top: 56px; }
  .menuitems { margin-top: 72px; }
  .menuitems a { font-size: 32px; padding-top: 14px; }
}
