
/* 151 Media Web: component styles. Every value comes from tokens.css. Class prefix m-. */

.m-root, .m-root * { box-sizing: border-box; }
.m-root { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; }
.m-root :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.m-container { max-width: var(--container); margin: 0 auto; padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
.m-section { padding-block: var(--space-24); }
.m-section--sunken { background: var(--surface-sunken); }
@media (max-width: 720px) { .m-section { padding-block: var(--space-16); } }

/* Type */
.m-display, .m-h1, .m-h2, .m-stat { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; color: var(--ink); }
.m-display { font-size: 56px; line-height: 60px; letter-spacing: -0.5px; }
.m-h1 { font-size: 42px; line-height: 46px; letter-spacing: -0.3px; }
.m-h2 { font-size: 32px; line-height: 36px; }
.m-stat { font-size: 56px; line-height: 56px; }
.m-h3 { font-size: 21px; line-height: 27px; font-weight: 700; letter-spacing: -0.2px; margin: 0; }
.m-eyebrow { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--link); margin: 0; }
.m-lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: var(--measure); margin: 0; }
.m-small { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.m-link { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.m-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 720px) {
  .m-display { font-size: 36px; line-height: 40px; }
  .m-h1 { font-size: 32px; line-height: 36px; }
  .m-h2 { font-size: 26px; line-height: 30px; }
}

/* The cut: the horizontal slice that runs through the 151 Media logo */
.m-cut { position: relative; display: inline-block; }
.m-cut::after { content: ""; position: absolute; left: -2px; right: -2px; top: 62%; height: 0.07em; min-height: 3px; background: var(--cut-ground, var(--surface)); }

/* Button */
.m-btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; padding: 14px 26px; border-radius: var(--radius-md); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.m-btn--primary { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.m-btn--primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.m-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.m-btn--secondary:hover { border-color: var(--ink); }
.m-btn--ghost { background: transparent; color: var(--link); padding-inline: 0; border-color: transparent; }
.m-btn--ghost:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-btn--sm { padding: 9px 16px; font-size: 15px; }
.m-btn .m-arrow { font-size: 1.05em; line-height: 1; }
.m-btn[disabled], .m-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.m-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
@media (prefers-reduced-motion: reduce) { .m-btn { transition: none; } }

/* Section header */
.m-sechead { display: grid; gap: var(--space-2); max-width: 760px; margin-bottom: var(--space-12); }
.m-sechead .m-lead { margin-top: var(--space-2); }
.m-sechead--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Site header */
.m-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.m-header__in { height: var(--header-height); display: flex; align-items: center; gap: var(--space-8); }
.m-logo { display: inline-flex; align-items: center; background: var(--logo-plate); border-radius: var(--radius-sm); padding: 4px 6px; }
.m-logo img { height: 40px; width: auto; display: block; }
.m-nav { display: flex; gap: var(--space-6); flex: 1; }
.m-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding-block: 6px; border-bottom: 2px solid transparent; }
.m-nav a:hover, .m-nav a[aria-current="page"] { border-bottom-color: var(--lime); }
.m-header__tools { display: flex; align-items: center; gap: var(--space-4); }
.m-tel { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.m-burger { display: none; width: 44px; height: 44px; border: 2px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--ink); font-size: 20px; }
@media (max-width: 900px) { .m-nav, .m-tel { display: none; } .m-burger { display: inline-grid; place-items: center; } .m-header__in { justify-content: space-between; } }

/* Hero */
.m-hero { padding-block: var(--space-24) var(--space-16); overflow: hidden; }
.m-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.m-hero__copy { display: grid; gap: var(--space-6); }
.m-hero__copy .m-lead b { color: var(--ink); font-weight: 600; }
.m-hero__art { position: relative; aspect-ratio: 5 / 4; max-width: 100%; }
.m-hero__art .slab { position: absolute; transform: skewX(-24deg); border-radius: var(--radius-sm); }
.m-hero__art .slab--lime { background: var(--lime); left: 30%; top: 0; width: 34%; height: 100%; }
.m-hero__art .slab--grey { background: var(--anthrazit); left: 70%; top: 22%; width: 22%; height: 78%; }
.m-hero__art .slab--deep { background: var(--dunkelgruen); left: 6%; top: 44%; width: 16%; height: 56%; }
.m-hero__art .cutline { position: absolute; left: 0; right: 0; top: 60%; height: 10px; background: var(--surface); }
@media (max-width: 860px) { .m-hero__grid { grid-template-columns: 1fr; } .m-hero__art { max-width: 420px; } .m-hero { padding-block: var(--space-16) var(--space-12); } }

/* Logo band (marquee) */
.m-logoband { background: var(--surface-sunken); padding-block: var(--space-8); overflow: hidden; position: relative; }
.m-logoband__label { text-align: center; margin: 0 0 var(--space-4); }
.m-logoband__track { display: flex; gap: var(--space-12); width: max-content; animation: m-marquee 40s linear infinite; }
.m-logoband[data-paused="true"] .m-logoband__track { animation-play-state: paused; }
.m-logoband__item { height: 48px; min-width: 140px; display: grid; place-items: center; padding-inline: var(--space-4); color: var(--ink-muted); font-weight: 700; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.m-logoband__item img { max-height: 48px; width: auto; }
.m-logoband__pause { position: absolute; right: var(--space-4); bottom: var(--space-2); }
@keyframes m-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .m-logoband__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Stat badge */
.m-statbadge { display: inline-grid; gap: 2px; background: var(--lime); color: var(--on-lime); padding: var(--space-4) var(--space-6); border-radius: var(--radius-lg); }
.m-statbadge .m-stat { color: var(--on-lime); --cut-ground: var(--lime); }
.m-statbadge span:last-child { font-weight: 600; font-size: 14px; line-height: 18px; }
.m-statbadge--float { position: absolute; left: var(--space-4); bottom: var(--space-4); }

/* Check list */
.m-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.m-checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-weight: 600; }
.m-checklist li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: var(--radius-sm); background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%232B2B2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Cards */
.m-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.m-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; transition: box-shadow .2s, border-color .2s; }
.m-card:hover { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.m-card__tag { font-weight: 600; color: var(--link); margin: 0; }
.m-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.m-card ul li::marker { color: var(--dunkelgruen); }
.m-card .m-link { margin-top: auto; }
.m-card--cta { background: var(--lime); border-color: var(--lime); color: var(--on-lime); justify-content: center; }
.m-card--cta .m-h3, .m-card--cta p { color: var(--on-lime); }
.m-card--cta .m-btn--secondary { color: var(--on-lime); border-color: var(--on-lime); }
.m-card--cta:hover { border-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { .m-card { transition: none; } }

/* Case card (Referenz) */
.m-case { padding: 0; overflow: hidden; text-decoration: none; color: inherit; gap: 0; }
.m-case__shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.m-case__shot img { width: 100%; display: block; transition: transform 4s ease-in-out; }
.m-case:hover .m-case__shot img { transform: translateY(calc(-100% + 225px)); }
.m-case__body { padding: var(--space-6); display: grid; gap: var(--space-2); }
.m-case__meta { margin: 0; }
.m-case__facts { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.m-case__facts li { font-size: 12px; line-height: 16px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); }
.m-case__ph { height: 100%; display: grid; place-items: center; color: var(--ink-muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .m-case__shot img { transition: none; } .m-case:hover .m-case__shot img { transform: none; } }

/* Reviews */
.m-rating { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; padding: var(--space-6) var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.m-rating .m-stat { font-variant-numeric: tabular-nums; }
.m-stars { color: var(--lime); font-size: 20px; letter-spacing: 2px; line-height: 1; }
.m-review { gap: var(--space-3); }
.m-review__who { display: flex; gap: var(--space-3); align-items: center; }
.m-avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--anthrazit); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.m-review__name { font-weight: 700; margin: 0; line-height: 20px; }
.m-review__date { margin: 0; }
.m-review blockquote { margin: 0; }

/* Week plan */
.m-week { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.m-week__head { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.m-week__grid { display: grid; grid-template-columns: 96px repeat(5, minmax(110px, 1fr)); min-width: 680px; }
.m-week__grid > div { padding: var(--space-3); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 64px; }
.m-week__grid > .d { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--ink-muted); min-height: 0; text-transform: uppercase; background: var(--surface-sunken); }
.m-week__grid > .w { border-left: 0; font-weight: 700; font-size: 14px; }
.m-ev { display: grid; gap: var(--space-1); font-size: 14px; line-height: 18px; font-weight: 600; }
.m-ev .t { justify-self: start; font-size: 12px; line-height: 16px; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--lime); color: var(--on-lime); }
.m-ev--you .t { background: var(--surface-sunken); color: var(--ink); border: 1px solid var(--line-strong); }
.m-ev--live .t { background: var(--band-deep); color: var(--on-deep); }

/* Process steps */
.m-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.m-step { display: grid; gap: var(--space-3); align-content: start; border-top: 4px solid var(--lime); padding-top: var(--space-6); }
.m-step .m-stat { color: var(--ink-muted); font-size: 48px; line-height: 48px; }
.m-step__sub { font-weight: 700; color: var(--link); margin: 0; font-size: 14px; }
.m-step p { margin: 0; }

/* FAQ */
.m-faq { display: grid; gap: var(--space-3); max-width: 860px; }
.m-faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.m-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-6); font-size: 19px; line-height: 26px; font-weight: 700; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--lime); color: var(--on-lime); font-family: var(--font-display); font-size: 20px; transition: transform .2s; }
.m-faq details[open] summary::after { transform: rotate(45deg); }
.m-faq details > div { padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) { .m-faq summary::after { transition: none; } }

/* CTA band */
.m-ctaband { background: var(--band-deep); color: var(--on-deep); padding-block: var(--space-16); position: relative; overflow: hidden; }
.m-ctaband .m-h2 { color: var(--on-deep); }
.m-ctaband p { color: var(--on-deep-muted); max-width: var(--measure); margin: 0; }
.m-ctaband__in { display: grid; gap: var(--space-6); position: relative; z-index: 1; }
.m-ctaband__slice { position: absolute; right: -40px; top: 0; bottom: 0; width: 34%; background: var(--lime); transform: skewX(-24deg); }
.m-ctaband__slice::after { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 10px; background: var(--band-deep); }
@media (max-width: 720px) { .m-ctaband__slice { width: 18%; right: -60px; } }

/* Footer */
.m-footer { background: var(--band-deep); color: var(--on-deep-muted); padding-block: var(--space-16) var(--space-8); font-size: 14px; line-height: 22px; border-top: 6px solid var(--lime); }
.m-footer__cols { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.m-footer h4 { color: var(--on-deep); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 var(--space-3); }
.m-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.m-footer a { color: var(--on-deep-muted); text-decoration: none; }
.m-footer a:hover { color: var(--on-deep); text-decoration: underline; }
.m-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(244,245,239,0.15); }
@media (max-width: 820px) { .m-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .m-footer__cols { grid-template-columns: 1fr; } }

/* Ampel badge */
.m-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.m-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m-badge--gut { background: var(--gut); color: var(--on-lime); }
.m-badge--mittel { background: var(--mittel); color: var(--on-lime); }
.m-badge--kritisch { background: var(--kritisch); color: var(--on-kritisch); }
