/* Design "Magazin" (loaded after modern.css, only when the Magazin design is chosen):
   logo left, menu right, bold sans-serif headings, big start picture, 3 picture tiles, posts in 2 columns. */
html[data-magazin] { --serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[data-magazin][data-design="modern"] h1,
html[data-magazin][data-design="modern"] h2,
html[data-magazin][data-design="modern"] h3,
html[data-magazin][data-design="modern"] .brand-name,
html[data-magazin][data-design="modern"] .mag-title,
html[data-magazin][data-design="modern"] .tile-title { font-weight: 800; letter-spacing: 0; }

/* ---- header: logo + name left, menu right, in one row ---- */
html[data-magazin][data-design="modern"] .header-top { flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 1.4rem; padding-bottom: 1.1rem; }
html[data-magazin][data-design="modern"] .brand { align-items: flex-start; text-align: left; flex: 0 1 auto; }
html[data-magazin][data-design="modern"] .brand-row { justify-content: flex-start; gap: .9rem; }
html[data-magazin][data-design="modern"] .brand-text { align-items: flex-start; }
html[data-magazin][data-design="modern"] .brand-name { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
html[data-magazin][data-design="modern"] .brand-tagline { margin-top: .15rem; }
html[data-magazin][data-design="modern"] .brand-logo { max-height: 2.5rem; max-width: 4.5rem; }

html[data-magazin][data-design="modern"] .main-nav { background: transparent; padding: 0; }
html[data-magazin][data-design="modern"] .main-nav ul { flex-wrap: wrap; justify-content: flex-end; gap: .2rem 1.6rem; margin: 0; max-width: none; padding: 0; }
html[data-magazin][data-design="modern"] .main-nav li { flex: 0 0 auto; }
html[data-magazin][data-design="modern"] .main-nav a,
html[data-magazin][data-design="modern"] .topics-menu summary,
html[data-magazin][data-design="modern"] .display-menu summary {
    display: flex; align-items: center; gap: .45rem; min-height: 3rem; padding: .4rem 0;
    background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none;
    color: var(--accent); font-weight: 800; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; list-style: none; cursor: pointer;
}
html[data-magazin][data-design="modern"] .topics-menu summary::-webkit-details-marker { display: none; }
html[data-magazin][data-design="modern"] .main-nav a:hover,
html[data-magazin][data-design="modern"] .topics-menu summary:hover,
html[data-magazin][data-design="modern"] .display-menu summary:hover,
html[data-magazin][data-design="modern"] .topics-menu[open] summary,
html[data-magazin][data-design="modern"] .display-menu[open] summary { background: transparent; border-bottom-color: var(--accent); }
html[data-magazin][data-design="modern"] .main-nav a[aria-current] { background: transparent; color: var(--accent); border-bottom-color: var(--accent); box-shadow: none; }
html[data-magazin][data-design="modern"] .main-nav a:focus-visible,
html[data-magazin][data-design="modern"] .topics-menu summary:focus-visible,
html[data-magazin][data-design="modern"] .display-menu summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* small arrow after the menu items that open something */
html[data-magazin][data-design="modern"] .topics-menu summary::after,
html[data-magazin][data-design="modern"] .display-menu summary::after {
    content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); font-size: 1rem;
}
html[data-magazin][data-design="modern"] .topics-menu[open] summary::after,
html[data-magazin][data-design="modern"] .display-menu[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }

/* drop-down with the topics */
html[data-magazin][data-design="modern"] .main-nav .topics-panel { display: block; gap: 0; justify-content: flex-start; }
.nav-topics { position: relative; }
.topics-panel {
    list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: calc(100% + .35rem); left: -1rem; z-index: 25; min-width: 13rem;
    background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .35);
}
html[data-magazin][data-design="modern"] .topics-panel li { flex: none; }
html[data-magazin][data-design="modern"] .topics-panel a {
    display: flex; justify-content: flex-start; text-align: left; min-height: 3rem; padding: .5rem 1.25rem; color: var(--text); border-bottom: 0;
    font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
html[data-magazin][data-design="modern"] .topics-panel a:hover { background: var(--bg-soft); }
html[data-magazin][data-design="modern"] .topics-panel a[aria-current] { color: var(--accent); }

html[data-magazin][data-design="modern"] .topics-menu.is-current summary { border-bottom-color: var(--accent); }
.topics-panel { min-width: 15rem; max-width: 22rem; }

/* "Anzeige" as a monitor icon (no text, no arrow) */
html[data-magazin][data-design="modern"] .display-menu summary { gap: 0; padding-inline: .35rem; }
html[data-magazin][data-design="modern"] .display-menu summary::after { content: none; }
.icon-monitor { display: block; transition: transform .2s ease; }
html[data-magazin][data-design="modern"] .display-menu summary:hover .icon-monitor,
html[data-magazin][data-design="modern"] .display-menu[open] .icon-monitor { transform: scale(1.15); }

/* hover effects (mouse only, wide windows): colour change on the menu items, drop-downs open on hover */
@media (hover: hover) and (min-width: 64.01rem) {
    html[data-magazin][data-design="modern"] .main-nav a,
    html[data-magazin][data-design="modern"] .topics-menu summary,
    html[data-magazin][data-design="modern"] .display-menu summary { transition: color .2s ease, border-color .2s ease; }
    html[data-magazin][data-design="modern"] .main-nav > ul > li > a:hover,
    html[data-magazin][data-design="modern"] .topics-menu summary:hover,
    html[data-magazin][data-design="modern"] .display-menu summary:hover { color: var(--text); border-bottom-color: var(--accent); }
    html[data-magazin][data-design="modern"] .topics-panel a { transition: background-color .15s ease, padding-left .15s ease; }
    html[data-magazin][data-design="modern"] .topics-panel a:hover { padding-left: 1.6rem; }
    .topics-panel, .display-panel { top: 100%; }
    @supports selector(::details-content) {
        html[data-magazin] .topics-menu:hover::details-content,
        html[data-magazin] .display-menu:hover::details-content { content-visibility: visible; }
        html[data-magazin][data-design="modern"] .topics-menu:hover summary { border-bottom-color: var(--accent); }
        html[data-magazin][data-design="modern"] .topics-menu:hover summary::after { transform: rotate(-135deg) translate(-2px, 0); }
    }
}

/* menu button (phone / narrow window): checkbox + label, works without JavaScript */
.navtoggle, .menubtn { display: none; }

/* ---- start page: hero ---- */
html[data-magazin][data-design="modern"] .hero { justify-content: flex-start; min-height: clamp(19rem, 42vw, 31rem); }
html[data-magazin][data-design="modern"] .hero-text { text-align: left; margin-inline: 0; width: auto; max-width: 52rem; }
html[data-magazin][data-design="modern"] .hero-motto {
    font-family: var(--serif); font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 1.08;
    font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.5rem); margin: 0;
}

/* ---- start page: 3 picture tiles ---- */
.mz-tiles { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mz-tiles li { max-width: none; }
.mz-tile {
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 12rem; padding: 1.25rem;
    border-radius: var(--r); overflow: hidden; background: var(--tone-bg, var(--accent)); color: var(--tone-fg, #fff); text-decoration: none; isolation: isolate;
}
.mz-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.mz-tile::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); z-index: -1; }
.mz-tile:not(:has(img))::before { display: none; }
.mz-tile:has(img) { color: #fff; }
.mz-tile:hover img { transform: scale(1.05); }
.mz-tile-title { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; line-height: 1.3; text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.mz-tile:not(:has(img)) .mz-tile-title { text-shadow: none; }
.mz-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---- start page: posts in 2 columns ---- */
.mz-list { list-style: none; margin: 3rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
.mz-post { max-width: none; text-align: left; }
.mz-post-img { display: block; }
.mz-post-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.mz-meta { margin: 1rem 0 .25rem; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }
.mz-meta a { color: var(--accent); text-decoration: none; }
.mz-meta a:hover { text-decoration: underline; }
.mz-post h2 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .5rem; text-align: left; }
.mz-post h2 a { color: var(--text); text-decoration: none; }
.mz-post h2 a:hover { text-decoration: underline; }
.mz-text { margin: 0 0 .5rem; max-width: none; }
.mz-noimg { aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--tone-bg, var(--accent)); }
.mz-more { margin: 0; }
.mz-more a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 800; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.mz-more a:hover { text-decoration: underline; }
.mz-older { text-align: center; margin: 2rem 0 3.5rem; max-width: none; }

/* ---- narrow window / phone: menu button instead of the menu row ---- */
@media (max-width: 64rem) {
    html[data-magazin][data-design="modern"] .header-top { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding-top: 1rem; padding-bottom: .8rem; }
    html[data-magazin][data-design="modern"] .main-nav { display: contents; }
    .navtoggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
    .menubtn {
        display: inline-flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .5rem 1.1rem; border-radius: .7rem; cursor: pointer;
        background: var(--accent); color: var(--on-accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1rem;
    }
    .menubtn-icon { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
    .navtoggle:focus-visible + .menubtn { outline: 3px solid var(--focus); outline-offset: 3px; }
    html[data-magazin][data-design="modern"] .brand { flex: 1 1 8rem; min-width: 0; }
    html[data-magazin][data-design="modern"] .menubtn { flex: none; }
    html[data-magazin][data-design="modern"] .menubtn { padding: .45rem .75rem; gap: .5rem; font-size: .9rem; }
    html[data-magazin][data-design="modern"] .brand-name { font-size: 1.1rem; letter-spacing: 0; word-break: keep-all; overflow-wrap: normal; }
    html[data-magazin][data-design="modern"] .brand-tagline { font-size: .8rem; line-height: 1.3; }
    html[data-magazin][data-design="modern"] .brand-row { gap: .6rem; }
    html[data-magazin][data-design="modern"] .brand-logo { max-height: 1.9rem; max-width: 2.4rem; }
    html[data-magazin][data-design="modern"] .main-nav ul { display: none; width: 100%; flex: 0 0 100%; order: 3; flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--edge); }
    html[data-magazin][data-design="modern"] .navtoggle:checked ~ ul { display: flex; }
    html[data-magazin][data-design="modern"] .main-nav li { width: 100%; }
    html[data-magazin][data-design="modern"] .main-nav a,
    html[data-magazin][data-design="modern"] .topics-menu summary,
    html[data-magazin][data-design="modern"] .display-menu summary { justify-content: flex-start; }
    html[data-magazin][data-design="modern"] .main-nav a,
    html[data-magazin][data-design="modern"] .topics-menu summary,
    html[data-magazin][data-design="modern"] .display-menu summary { min-height: 3.25rem; border-bottom: 1px solid var(--edge); padding: .5rem 0; }
    html[data-magazin][data-design="modern"] .main-nav a[aria-current] { border-bottom-color: var(--edge); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 3px; }
    .topics-panel, html[data-magazin][data-design="modern"] .display-panel { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; margin: 0; padding: .25rem 0 .75rem 1rem; background: transparent; width: auto; max-width: none; min-width: 0; }
    html[data-magazin][data-design="modern"] .topics-panel a { border-bottom: 0; }
}
@media (max-width: 48rem) {
    .mz-tiles { grid-template-columns: 1fr; gap: 1rem; }
    .mz-tile { min-height: 9rem; }
    .mz-list { grid-template-columns: 1fr; gap: 2.5rem; }
    html[data-magazin][data-design="modern"] .hero { min-height: 18rem; }
}
@media print { .menubtn, .navtoggle { display: none; } }

/* buttons inside the "Anzeige" panel: normal case */
html[data-magazin][data-design="modern"] .main-nav .nav-display .display-panel a { text-transform: none; letter-spacing: 0; font-weight: 700; }
