@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=EB+Garamond&display=swap');

.paywall { display: flex; justify-content: center; }

.paywall__inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    max-width: 440px;
    width: 100%;
}

.paywall__layout { display: flex; align-items: center; gap: 1rem; }

.paywall__badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #E4F5FF; color: #0089CC;
    font-size: 11px; font-weight: 500;
    border-radius: 6px; padding: 3px 10px;
    margin-bottom: 0.5rem;
}

.paywall__title {
    font-size: 20px; font-weight: 500; margin: 0 0 0.35rem;
    line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.paywall__description { font-size: 13px; color: #6b7280; margin: 0 0 0.75rem; line-height: 1.5; }

.paywall__price { font-size: 16px; display: flex; align-items: baseline; gap: 6px;  font-weight: bold; }

.paywall__price-label { font-size: 16px; font-weight: 400; }

.paywall__qr {border-radius: 8px; padding: 0.6rem; flex-shrink: 0; }

.paywall__qr img { display: block; border-radius: 3px; }


img {    
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#blurred::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;
    z-index: 10;

    background: linear-gradient(transparent, white);
}
.watermark {
    position: absolute;

    bottom: 10px;
    right: 10px;

    width: 25px;
    height: 25px;
    filter: invert(1);

    transition: transform 500ms ease;
    /* transform-origin: bottom right; */
}
.image-wrap img {
    width: 100%;
}

a {
    text-decoration: none;
    color: gray;
}

/* Header */
.logo-image { 
    transform: scale(0.4);
    height: 100px;
}
header {
    margin-top: 8px;
    text-align: center;
}
header a {
    color: black;
    transition: color 0.3s ease-in-out;
}
header a:hover {
    color:gray;
}

.main-logo {
    text-transform: uppercase;
    font-size: 30px;
}
.sub-logo {
    font-size: 20px;
}

/* Navigation */
nav {
    z-index: 1;

    display: flex;
    position: sticky;
    position: -webkit-sticky;
    margin-top: 45px;
    top: 0;

    justify-content: space-around;

    background-color: white;
    border-bottom: 1px solid lightgray;
}
nav a {
    color: black;
    padding: 10px 0px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
nav a:hover {
    color: lightgray;
    border-bottom: 1px solid lightgray;
}

/* Quote */
.quote {
    text-align: center;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
}
.quote a {
    color: black;
    font-style: italic;
    transition: color 500ms;
}
.quote a p {
    margin: 0;
}
.quote a:hover {
    color: gray;
}
.quote-by {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    margin: 10px 0px 0px 0px;
}

/* Body */
body {
    margin: 0px;
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    /* text-align: justify; */

    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto auto 1fr auto;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    margin-top: 45px;
}
.article {
    padding: 0 10%;
}
.article figure img{
    width: 100%;
    height: auto;
}
.article-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin: 60px 25px 20px 25px;
    padding-bottom: 10px;

    border-bottom: 1px solid lightgray;
    transition: border-color 500ms ease;
}
.article-widget:hover {
    border-color: black;
}
.article-widget:hover img {
    transform: scale(1.1);
}
.article-widget-main-title {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: black;
}
.article-widget-sub-title{
    margin-top: 5px;
    font-size: 13px;
    color: black;
}

.thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 4px;
}
.thumbnail > img:first-child { /* excluding the watermark */
    /* The 16:9 frame comes from .thumbnail alone. The img must fill that frame
       even though it carries real width/height attributes (SEO, PR #75):
       without an explicit height + object-fit, Safari sizes the img from its
       intrinsic dimensions and portrait/stage photos overflow the hidden box.
       fill (not cover) matches production: the complete source image is shown
       stretched into the 16:9 box, never cropped. */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 500ms ease;
}

/* Content */
.title {
    font-size: 40px;
    text-align: left;
}
.subtitle {
    font-size: 25px;
    text-align: left;
}
.info {
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 30px;
    font-style: italic;
}
.text {
    position: relative;
    hyphens: auto;
    
    column-count: 2;
    column-gap: 50px;
    column-rule: 1px solid black;

    font-size: 18px;
    line-height: 1.3;
}
.text p:first-child { /* Removes space of first paragraph*/
    margin-top: 0;
}
.image-wrap {
    padding: 30px 0 10px 0;
}
.copyright {
    font-size: 16px;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid lightgray;

    font-size: 15px;
    margin-top: 35px;
}
footer a {
    padding: 10px 0px 10px 0px;

    color: black;
    transition: color 0.4s;
}
footer a:hover {
    color: gray;
}

/* Desktop */
@media only screen and (min-width: 1000px) { 
    .hamburger-menu {
        display: none;
    }
    body {
        padding: 0 10% 0 10%;
    }
    .articles {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Tablet */
@media only screen and (min-width: 700px) and (max-width: 999px) {
    .hamburger-menu {
        display: none;
    }
    body {
        padding: 0 5% 0 5%;
    }
    .articles {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .article {
        padding: 0 5%;
    }

}

@media (max-width: 700px) {
    .paywall__inner {
        padding: 0;
        border: none;
    }
    /* TODO refactoring */
    .navigation {
        display: none;
    }
    .hamburger-menu {
        z-index: 1;
        position:sticky;
        top: 0px;
        width: 100%;
        background-color: white;
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 62px;
    }
    .hamburger-menu .menu-items {
        display: flex;
    }
    .hamburger-menu .nav-container a {
        font-size: 20px;
        padding: 15px;
        margin: 0 5px 0 5px;

        color: black;
        border-bottom: 1px solid lightgray;
    }
    .nav-container a:first-child {
        margin-top: 60px;
    }
    .nav-container {
        display: block;
        position: relative;
        height: 60px;
    }
    .nav-container .checkbox {
        position: absolute;
        display: block;
        height: 32px;
        width: 32px;
        top: 10px;
        right: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }
    .nav-container .hamburger-lines {
        display: block;
        height: 23px;
        width: 32px;
        position: absolute;
        top: 17px;
        right: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .nav-container .hamburger-lines .line {
        display: block;
        height: 1px;
        width: 100%;
        /* border-radius: 10px; */
        background: gray;
    }
    .nav-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .nav-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }
    .nav-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }
    .hamburger-menu .menu-items {
        background-color: white;
        height: 100vh;
        width: 100%;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;

        transition: transform 0.5s ease-in-out;
    }
    .nav-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }
    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg);
    }
    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }
    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg);
    }
    .nav-container input[type="checkbox"]:checked ~ .logo{
        display: none;
    }
    .logo-image img {
    	/* width: 100%; */
    }
    main {
        margin-top: 30px;
    }
    .article {
        padding: 0 5%;
    }
    .title {
        font-size: 28px;
    }
    .subtitle {
        margin-top: 5px;
        font-size: 20px;
    }
    .info {
        margin-bottom: 20px;
    }
    .text {
        font-size: 20px;
        column-count: 1;
    }
    .copyright {
        font-size: 12px;
    }
    footer a {
        padding: 5px 0px 5px 0px;
    }
}


/* Fieldtest header search, aligned with production navigation behavior */
.navigation .search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 32px;
    height: 32px;
    overflow: visible;
}

.navigation .search .form {
    margin: 0;
}

.navigation .search-input {
    width: 0;
    opacity: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    outline: none;
    padding: 2px 0;
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    background: transparent;
    transition: width 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, margin-right 0.25s ease;
}

.navigation .search:hover .search-input,
.navigation .search:focus-within .search-input {
    width: 140px;
    opacity: 1;
    border-bottom-color: #d0d0d0;
    margin-right: 8px;
}

.navigation .search-icon {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 768px) {
    .navigation .search {
        justify-content: center;
        width: 100%;
    }

    .navigation .search:hover .search-input,
    .navigation .search:focus-within .search-input {
        width: 160px;
    }
}


/* NMB_FIX_BUDDENBROOKS_TICKET_FINAL_20260703
   Only /artikel/125-jahre-buddenbrooks-ticket.
   Desktop only. Mobile/iOS unchanged. */
@media (min-width: 1024px) {
  body.nmb-buddenbrooks-ticket-page main {
    max-width: none !important;
    width: 100% !important;
  }

  body.nmb-buddenbrooks-ticket-page main article {
    display: block !important;
    float: none !important;
    box-sizing: border-box !important;
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    columns: auto !important;
    column-count: 1 !important;
    column-width: auto !important;
  }

  body.nmb-buddenbrooks-ticket-page main article * {
    columns: auto !important;
    column-count: 1 !important;
    column-width: auto !important;
  }

  body.nmb-buddenbrooks-ticket-page main article img,
  body.nmb-buddenbrooks-ticket-page main article figure {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* NMB_FIX_BUDDENBROOKS_TICKET_V4_20260703
   Correct real markup: main > .article > .text.text--nemosgo-event.
   Only Buddenbrooks ticket page. Desktop only. */
@media (min-width: 1024px) {
  body.nmb-buddenbrooks-ticket-page main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.nmb-buddenbrooks-ticket-page main .article {
    width: 100% !important;
    max-width: none !important;
  }

  body.nmb-buddenbrooks-ticket-page main .text.text--nemosgo-event {
    display: block !important;
    float: none !important;
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    columns: auto !important;
    column-count: 1 !important;
    column-width: auto !important;
  }

  body.nmb-buddenbrooks-ticket-page main .text.text--nemosgo-event * {
    columns: auto !important;
    column-count: 1 !important;
    column-width: auto !important;
  }
}

/* NMB_FIX_BUDDENBROOKS_TICKET_TITLE_V5_20260703
   Only Buddenbrooks ticket article. Desktop only.
   Align upper headline area with the centered event text column. */
@media (min-width: 1024px) {
  body.nmb-buddenbrooks-ticket-page main .article > h1,
  body.nmb-buddenbrooks-ticket-page main .article > h2,
  body.nmb-buddenbrooks-ticket-page main .article > .title,
  body.nmb-buddenbrooks-ticket-page main .article > .article-title,
  body.nmb-buddenbrooks-ticket-page main .article > .headline,
  body.nmb-buddenbrooks-ticket-page main .article > .sub-title,
  body.nmb-buddenbrooks-ticket-page main .article > .subtitle {
    display: block !important;
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  body.nmb-buddenbrooks-ticket-page main .text.text--nemosgo-event > h1:first-child,
  body.nmb-buddenbrooks-ticket-page main .text.text--nemosgo-event > h2:first-child {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
}

/* NMB_FIX_BUDDENBROOKS_TICKET_TITLE_V5_20260703
   Only Buddenbrooks ticket article. Desktop only.
   Align upper headline area with the centered event text column. */
@media (min-width: 1024px) {
  body.nmb-buddenbrooks-ticket-page main .article > h1,
  body.nmb-buddenbrooks-ticket-page main .article > h2,
  body.nmb-buddenbrooks-ticket-page main .article > .title,
  body.nmb-buddenbrooks-ticket-page main .article > .article-title,
  body.nmb-buddenbrooks-ticket-page main .article > .headline,
  body.nmb-buddenbrooks-ticket-page main .article > .sub-title,
  body.nmb-buddenbrooks-ticket-page main .article > .subtitle {
    display: block !important;
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  body.nmb-buddenbrooks-ticket-page main .text.text--nemosgo-event > h1:first-child,
  body.nmb-buddenbrooks-ticket-page main .text.text--nemosgo-event > h2:first-child {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
}

/* NMB_FIX_BUDDENBROOKS_TICKET_TITLE_NOEOF_20260703
   Only Buddenbrooks ticket article. Desktop only. */
@media (min-width: 1024px) {
  body.nmb-buddenbrooks-ticket-page main .article {
    max-width: none !important;
    width: 100% !important;
  }

  body.nmb-buddenbrooks-ticket-page main .article > h1,
  body.nmb-buddenbrooks-ticket-page main .article > h2,
  body.nmb-buddenbrooks-ticket-page main .article > p:first-of-type,
  body.nmb-buddenbrooks-ticket-page main .article > .title,
  body.nmb-buddenbrooks-ticket-page main .article > .subtitle,
  body.nmb-buddenbrooks-ticket-page main .article > .article-title,
  body.nmb-buddenbrooks-ticket-page main .article > .article-subtitle,
  body.nmb-buddenbrooks-ticket-page main .article > .headline {
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }
}

/* NMB_FIX_BUDDENBROOKS_TICKET_DATE_20260703
   Align date/location line with Buddenbrooks ticket text column. Desktop only. */
@media (min-width: 1024px) {
  body.nmb-buddenbrooks-ticket-page main .article > .info {
    display: block !important;
    width: min(760px, calc(100vw - 64px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }
}
