/* Tonstation · September 2026
   Shared design plus an editor-compatible layout for the existing home blocks.
   No external fonts, scripts or tracking. Loaded after the existing styles. */

:root {
    --ts-bg: #111315;
    --ts-bg-soft: #1a1d20;
    --ts-card: #1a1d20;
    --ts-text: #f6f4ef;
    --ts-muted: #b9bdc1;
    /* Original Tonstation red restored for labels, links and controls. */
    --ts-accent: #d73a42;
    --ts-accent-city: var(--ts-accent);
    --ts-accent-dark: #b52c33;
    --ts-button-red: #d73a42;
    --ts-hero-arrow: #8f3147;
    --ts-line: #34383c;
    --ts-paper: #1a1d20;
    --ts-max: 1200px;
    --ts-desktop-width: 1200px;
    color-scheme: dark;
}

html { scroll-padding-top: 104px; }
body { background: var(--ts-bg); -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
a { text-underline-offset: .22em; }
.page a:focus-visible, .ts-navbar a:focus-visible, .ts-mobile-menu summary:focus-visible,
.ts-footer a:focus-visible {
    outline: 3px solid var(--ts-accent) !important;
    outline-offset: 5px;
}

/* Navigation stays usable before eight desktop links become cramped. */
.ts-navbar { background: #111315; border-bottom: 1px solid var(--ts-line); }
.ts-nav-inner {
    width: min(1200px, calc(100% - 48px));
    min-height: 88px;
    gap: 28px;
}
.ts-logo { flex-shrink: 0; }
.ts-logo img { width: 176px; height: auto; filter: brightness(2.2); }
.ts-nav { gap: 21px; align-items: center; }
.ts-nav a { font-size: 14px; line-height: 1.5; color: var(--ts-muted); white-space: nowrap; }
.ts-nav a[aria-current="page"] { color: var(--ts-text); }
.ts-nav a.is-desktop-current,
.ts-nav a[aria-current="page"] {
    position: relative;
    color: var(--ts-text);
    text-decoration: none;
}
/* F1 brush accents: each active top-level item gets a related, slightly curved stroke. */
.ts-nav a.is-desktop-current:nth-child(1)::after,
.ts-nav a[aria-current="page"]:nth-child(1)::after,
.ts-nav a.is-desktop-current:nth-child(2)::after,
.ts-nav a[aria-current="page"]:nth-child(2)::after,
.ts-nav a.is-desktop-current:nth-child(3)::after,
.ts-nav a[aria-current="page"]:nth-child(3)::after,
.ts-nav a.is-desktop-current:nth-child(4)::after,
.ts-nav a[aria-current="page"]:nth-child(4)::after,
.ts-nav a.is-desktop-current:nth-child(5)::after,
.ts-nav a[aria-current="page"]:nth-child(5)::after,
.ts-nav a.is-desktop-current:nth-child(6)::after,
.ts-nav a[aria-current="page"]:nth-child(6)::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    display: block;
    width: 70%;
    height: 3px;
    content: "";
    border-radius: 100%;
    background: linear-gradient(90deg, var(--ts-accent-dark), #ed4b57 50%, var(--ts-accent-dark));
    box-shadow: 0 2px 8px #d73a4252;
    clip-path: polygon(0 58%, 14% 42%, 28% 52%, 44% 26%, 60% 40%, 77% 22%, 100% 42%, 94% 78%, 78% 62%, 61% 90%, 44% 67%, 27% 86%, 10% 66%);
    transform: translateX(-50%) rotate(-.8deg);
}
.ts-nav a.is-desktop-current:nth-child(2)::after,
.ts-nav a[aria-current="page"]:nth-child(2)::after { transform: translateX(-50%) rotate(-1.4deg); width: 76%; }
.ts-nav a.is-desktop-current:nth-child(3)::after,
.ts-nav a[aria-current="page"]:nth-child(3)::after { transform: translateX(-50%) rotate(.2deg); width: 64%; height: 2px; }
.ts-nav a.is-desktop-current:nth-child(4)::after,
.ts-nav a[aria-current="page"]:nth-child(4)::after { transform: translateX(-50%) rotate(-1.8deg); width: 78%; }
.ts-nav a.is-desktop-current:nth-child(5)::after,
.ts-nav a[aria-current="page"]:nth-child(5)::after { transform: translateX(-50%) rotate(.6deg); width: 72%; }
.ts-nav a.is-desktop-current:nth-child(6)::after,
.ts-nav a[aria-current="page"]:nth-child(6)::after { transform: translateX(-50%) rotate(1.1deg); width: 70%; }

/* A hash navigation state must replace the page state, never stack on top of it. */
body:has(#proberaeume:target) .ts-nav a.is-desktop-current:first-child::after,
body:has(#proberaeume:target) .ts-nav a[aria-current="page"]:first-child::after,
body:has(#music-lessons:target) .ts-nav a.is-desktop-current:first-child::after,
body:has(#music-lessons:target) .ts-nav a[aria-current="page"]:first-child::after {
    display: none;
}
body:has(#proberaeume:target) .ts-nav a[aria-current="page"]:first-child,
body:has(#music-lessons:target) .ts-nav a[aria-current="page"]:first-child {
    color: var(--ts-muted);
}
body:has(#proberaeume:target) .ts-nav a[href*="#proberaeume"],
body:has(#music-lessons:target) .ts-nav a[href*="#music-lessons"] {
    position: relative;
    color: var(--ts-text);
}
body:has(#proberaeume:target) .ts-nav a[href*="#proberaeume"]::after,
body:has(#music-lessons:target) .ts-nav a[href*="#music-lessons"]::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    display: block;
    width: 70%;
    height: 3px;
    content: "";
    border-radius: 100%;
    background: linear-gradient(90deg, var(--ts-accent-dark), #ed4b57 50%, var(--ts-accent-dark));
    box-shadow: 0 2px 8px #d73a4252;
    clip-path: polygon(0 58%, 14% 42%, 28% 52%, 44% 26%, 60% 40%, 77% 22%, 100% 42%, 94% 78%, 78% 62%, 61% 90%, 44% 67%, 27% 86%, 10% 66%);
    transform: translateX(-50%) rotate(-.8deg);
}
body:has(#proberaeume:target) .ts-nav a[href*="#proberaeume"]::after { transform: translateX(-50%) rotate(-1.4deg); width: 76%; }
body:has(#music-lessons:target) .ts-nav a[href*="#music-lessons"]::after { transform: translateX(-50%) rotate(-1.8deg); width: 78%; }
body:has(#proberaeume:target) .ts-mobile-menu nav a[aria-current="page"],
body:has(#music-lessons:target) .ts-mobile-menu nav a[aria-current="page"] { background: transparent; color: var(--ts-text); }
body:has(#proberaeume:target) .ts-mobile-menu nav a[href*="#proberaeume"],
body:has(#music-lessons:target) .ts-mobile-menu nav a[href*="#music-lessons"] { background: #2b3035; color: #fff; }

.ts-nav a[href$="/kontakt/"], .ts-nav a[href$="/contact/"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 17px;
    border: 1px solid #5b5e61;
    border-radius: 8px;
    color: var(--ts-text);
    text-decoration: none;
}
.ts-nav a[href$="/kontakt/"]:hover, .ts-nav a[href$="/contact/"]:hover {
    background: var(--ts-button-red); border-color: var(--ts-button-red); color: #fff;
}

/* Keep in-page music navigation clear of the sticky header. */
:is(#musikunterricht, #music-lessons) { scroll-margin-top: 112px; }

/* Consistent actions across home, prices, services and contact. */
.page .content__entry a.ts-button, .page .content__entry a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease;
}
.page .content__entry a.ts-button-primary, .page .content__entry a.button {
    background: var(--ts-button-red); color: #fff !important;
}
.page .content__entry a.ts-button-primary:hover, .page .content__entry a.button:hover {
    background: var(--ts-accent-dark); color: #fff !important; transform: none;
}
.page .content__entry a.ts-button-secondary {
    background: transparent; border-color: #61656a; color: var(--ts-text) !important;
}
.page .content__entry a.ts-button-secondary:hover {
    background: #25292d; border-color: #8b8e91; color: #fff !important; transform: none;
}

/* Mobile-first. The dedicated ID prevents inherited Publii spacing conflicts. */
#tonstation-home {
    display: block;
    width: min(1200px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: 44px 0 64px;
    font-size: 17px;
    line-height: 1.7;
    isolation: isolate;
}
#tonstation-home > * { grid-area: auto; min-width: 0; max-width: none; margin: 0; }
#tonstation-home::after { content: none; }
#tonstation-home > .ts-kicker {
    color: var(--ts-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
    line-height: 1.6;
    text-transform: uppercase;
}
#tonstation-home > .ts-home-block { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
#tonstation-home > .ts-home-block::before { content: ""; width: 30px; height: 2px; background: var(--ts-accent); }
#tonstation-home > .ts-hero-title {
    font-size: clamp(38px, 8.6vw, 68px);
    font-weight: 750;
    font-variation-settings: "wght" 750;
    letter-spacing: -.055em;
    line-height: 1.07;
    text-wrap: balance;
}
#tonstation-home .ts-city { color: var(--ts-text); }
#tonstation-home > .ts-lead { max-width: 49ch; margin-top: 24px; color: var(--ts-muted); font-size: 18px; line-height: 1.65; }
#tonstation-home .ts-home-proof { display: block; margin-top: 22px; font-size: 13px; line-height: 1.6; letter-spacing: .015em; }
#tonstation-home .ts-home-proof strong { color: var(--ts-accent-dark); font-weight: 650; }
#tonstation-home > .ts-actions-block { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
#tonstation-home > .ts-actions-block .ts-button-secondary { background: #1a1e21; border-color: #61656a; }
#tonstation-home > .ts-actions-block .ts-button-secondary:is(:hover, :focus-visible) { background: #272c30; border-color: #90969c; }
#tonstation-home > .ts-hero-image {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid var(--ts-line);
    border-radius: 16px;
    background: var(--ts-card);
}
#tonstation-home > .ts-hero-image img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
#tonstation-home > .ts-hero-image figcaption { display: none; }
#tonstation-home > :is(.ts-section-kicker, .ts-faq-kicker, .ts-partnership-kicker) {
    margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--ts-line); scroll-margin-top: 110px;
}
#tonstation-home > :is(.ts-section-title, .ts-feature-title, .ts-faq-title, .ts-partnership-title) {
    margin-top: 12px;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.18;
    text-wrap: balance;
}
#tonstation-home > .ts-section-intro-text { max-width: 72ch; margin: 18px 0 30px; color: var(--ts-muted); }

/* Adjacent native blocks form one continuous card, preserving block editing. */
#tonstation-home > [class*="ts-room-1-"],
#tonstation-home > [class*="ts-room-2-"],
#tonstation-home > [class*="ts-room-3-"] {
    background: var(--ts-card);
    border-left: 1px solid var(--ts-line);
    border-right: 1px solid var(--ts-line);
}
#tonstation-home > .ts-room-number {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 24px 0 0;
    padding: 18px 20px;
    border-top: 1px solid var(--ts-line);
    border-radius: 16px 16px 0 0;
    color: var(--ts-accent);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .12em;
}
#tonstation-home .ts-room-label { color: #c8cacf; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
#tonstation-home > .ts-room-image { display: block; width: 100%; padding: 0 18px; overflow: hidden; border-radius: 0; align-self: stretch; }
#tonstation-home > .ts-room-image img { display: block; width: 100%; height: auto; aspect-ratio: 425 / 293; object-fit: cover; border-radius: 8px; }
#tonstation-home > :is(.ts-room-1-title, .ts-room-2-title, .ts-room-3-title) {
    padding: 22px 22px 10px;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}
#tonstation-home > .ts-room-text { display: flex; flex-direction: column; padding: 0 22px 24px; color: var(--ts-muted); font-size: 15px; line-height: 1.7; }
#tonstation-home .ts-room-description { display: block; flex: 1; }
#tonstation-home .ts-room-price { display: block; margin-top: 24px; color: var(--ts-text); font-size: 14px; }
#tonstation-home .ts-room-price strong { font-size: 32px; font-weight: 750; letter-spacing: -.035em; }
#tonstation-home .ts-room-price small { display: block; margin-top: 1px; color: var(--ts-muted); font-size: 12px; line-height: 1.6; }
#tonstation-home .ts-room-price .ts-room-price-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}
#tonstation-home .ts-room-price .ts-room-frequency {
    display: inline-block;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid rgba(215, 58, 66, .24);
    border-radius: 6px;
    background: #000;
    color: var(--ts-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}
#tonstation-home .ts-room-price.ts-coming-soon strong { font-size: 20px; letter-spacing: -.015em; }
#tonstation-home > :is(.ts-room-1-link, .ts-room-2-link, .ts-room-3-link) {
    display: flex; align-items: flex-end; padding: 0 22px 22px;
    border-bottom: 1px solid var(--ts-line); border-radius: 0 0 16px 16px;
}
#tonstation-home > :is(.ts-room-1-link, .ts-room-2-link, .ts-room-3-link) a {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 48px; padding: 11px 15px;
    border: 1px solid #545a60; border-radius: 8px;
    color: var(--ts-text) !important;
    font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease;
}
#tonstation-home > :is(.ts-room-1-link, .ts-room-2-link, .ts-room-3-link) a:hover {
    background: var(--ts-button-red); border-color: var(--ts-button-red); color: #fff !important;
}
#tonstation-home > .ts-note-block {
    margin-top: 24px; padding: 18px 22px; border-left: 2px solid var(--ts-accent);
    background: transparent; color: var(--ts-muted); font-size: 14px; line-height: 1.7;
}
#tonstation-home > .ts-note-block strong { display: block; margin-bottom: 4px; color: var(--ts-text); }

/* Existing studio and lesson photography carries the second offer area. */
#tonstation-home > .ts-feature-kicker { margin: 64px 0 0; }
#tonstation-home > .ts-feature-title { margin-bottom: 22px; font-size: 32px; }
#tonstation-home > .ts-feature-image { display: block; width: 100%; max-width: none; margin-bottom: 20px; overflow: hidden; border-radius: 12px; }
#tonstation-home > .ts-feature-image img { display: block; width: 100%; height: auto; aspect-ratio: 425 / 293; object-fit: cover; }
#tonstation-home > .ts-feature-text { max-width: 52ch; color: var(--ts-muted); }
#tonstation-home > .ts-button-line:not([class*="ts-room-"]) { margin-top: 12px; font-size: 15px; font-weight: 650; }
#tonstation-home > .ts-button-line:not([class*="ts-room-"]) a { display: inline-flex; align-items: center; min-height: 44px; }

/* Answers remain visible without scripts. */
#tonstation-home > .ts-faq-title { margin-bottom: 8px; }
#tonstation-home > .ts-faq-question { margin-top: 24px; font-size: 18px; font-weight: 650; line-height: 1.5; }
#tonstation-home > .ts-faq-answer { margin-top: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--ts-line); color: var(--ts-muted); font-size: 16px; line-height: 1.75; }
#tonstation-home > .ts-partnership-text { max-width: 67ch; margin-top: 16px; color: var(--ts-muted); }
#tonstation-home > .ts-partnership-card { margin-top: 20px; padding: 26px; border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-bg-soft); }
#tonstation-home > .ts-partnership-card strong { display: block; margin-bottom: 10px; font-size: 21px; line-height: 1.4; }
#tonstation-home > .ts-partnership-card strong a { color: var(--ts-text) !important; }
#tonstation-home > .ts-partnership-card strong a:hover { color: var(--ts-accent) !important; }
#tonstation-home > .ts-partnership-card span { color: var(--ts-muted); font-size: 15px; }
#tonstation-home > .ts-partnership-action { margin-top: 20px; }

/* A light contact panel provides a clear visual destination. */
#tonstation-home > :is(.ts-location-kicker, .ts-location-title, .ts-location-text, .ts-contact-block,
    .ts-cta-kicker, .ts-cta-title, .ts-cta-text, .ts-cta-button) {
    margin: 0; padding-right: 24px; padding-left: 24px; background: var(--ts-paper); color: var(--ts-muted);
}
#tonstation-home > :is(.ts-location-kicker, .ts-cta-kicker) { padding-top: 28px; color: var(--ts-accent); }
#tonstation-home > .ts-location-kicker { margin-top: 64px; border-radius: 16px 16px 0 0; }
#tonstation-home > :is(.ts-location-title, .ts-cta-title) {
    padding-top: 12px; color: var(--ts-text) !important; font-size: 30px; line-height: 1.2;
    letter-spacing: -.035em; text-wrap: balance;
}
#tonstation-home > :is(.ts-location-text, .ts-cta-text) { padding-top: 18px; font-size: 16px; line-height: 1.7; }
#tonstation-home > .ts-contact-block { padding-top: 20px; padding-bottom: 12px; font-size: 15px; line-height: 2; }
#tonstation-home > .ts-contact-block a { display: inline-block; min-height: 44px; color: var(--ts-accent) !important; text-decoration: underline; }
#tonstation-home > .ts-contact-block a[href^="tel:"] { color: var(--ts-text) !important; font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
#tonstation-home > .ts-contact-block a:hover { color: #fff !important; }
#tonstation-home > .ts-cta-button { padding-top: 26px; padding-bottom: 32px; border-radius: 0 0 16px 16px; }
#tonstation-home > .ts-cta-button a { background: #171b1e; color: #fff !important; }
#tonstation-home > .ts-cta-button a:hover { background: var(--ts-button-red); }

/* Subpage headings must also remain visible on phones. */
.page .content[data-ts-page-id]:not([data-ts-page-id="7"]):not([data-ts-page-id="20"]):not([data-ts-page-id="21"]) > .hero {
    display: block; width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 28px;
}
.page .content[data-ts-page-id] > .hero::after { display: none; }
.page .content[data-ts-page-id] > .hero .hero__content { padding: 0; text-align: left; }
.page .content[data-ts-page-id] > .hero .wrapper { max-width: none; padding: 0; }
.page .content[data-ts-page-id] > .hero h1 { margin: 18px 0 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.14; letter-spacing: -.04em; color: var(--ts-text); }
.ts-page-path { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--ts-muted); }
.ts-page-path a { color: var(--ts-muted); }
.page .content[data-ts-page-id] > .content__entry:not([id="tonstation-home"]) { width: min(840px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding-bottom: 64px; overflow-wrap: break-word; }
.page .content__entry .ts-room-pricing { padding: 26px; border: 1px solid var(--ts-line); border-radius: 14px; background: var(--ts-card); }
.page .content__entry .ts-price-table { width: 100%; font-size: 15px; line-height: 1.65; }
.page .content__entry .ts-price-table th, .page .content__entry .ts-price-table td { padding: 12px; border-color: var(--ts-line); }
.page .content__entry .ts-price-table th { background: #262a2f; }
.page .content__entry .ts-price-table tbody tr:nth-child(even) { background: #202428; }
.page .content__entry .ts-room-equipment { padding-left: 22px; }
.page .content__entry .ts-room-equipment li::marker { color: var(--ts-accent); }

/* Footer icon sizing applies on every screen, including mobile. */
.ts-footer { padding: 42px 0 24px; }
.ts-footer-inner, .ts-footer-bottom { width: min(1200px, calc(100% - 40px)); }
.ts-footer-links { gap: 4px 24px; }
.ts-footer-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
.ts-footer p { color: var(--ts-muted); font-size: 14px; }
.ts-footer .ts-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.ts-footer .ts-footer-social :is(a, span) { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ts-line); border-radius: 50%; }
.ts-footer .ts-footer-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.ts-footer-bottom { color: var(--ts-muted); font-size: 12px; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
    #tonstation-home { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 28px; width: min(1200px, calc(100% - 64px)); padding: 70px 0 80px; }
    #tonstation-home > * { grid-column: 1 / -1; }
    #tonstation-home > .ts-home-block { grid-area: 1 / 1 / 2 / 4; align-self: start; margin: 0 0 20px; }
    #tonstation-home > .ts-hero-title { grid-area: 2 / 1 / 3 / 4; font-size: clamp(48px, 5vw, 68px); }
    #tonstation-home > .ts-lead { grid-area: 3 / 1 / 4 / 4; margin-top: 24px; padding-right: 24px; }
    #tonstation-home > .ts-actions-block { grid-area: 4 / 1 / 5 / 4; align-items: center; margin-top: 26px; }
    /* The image ends exactly on the lower edge of the CTA row. */
    #tonstation-home > .ts-hero-image { grid-area: 1 / 4 / 5 / 7; align-self: end; margin: 0 0 0; border-radius: 18px; box-shadow: 0 20px 60px #0003; }
    #tonstation-home > .ts-section-kicker { grid-row: 5; margin-top: 78px; padding-top: 36px; }
    #tonstation-home > .ts-section-title { grid-row: 6; }
    #tonstation-home > .ts-section-intro-text { grid-row: 7; }
    #tonstation-home > [class*="ts-room-1-"] { grid-column: 1 / 3; }
    #tonstation-home > [class*="ts-room-2-"] { grid-column: 3 / 5; }
    #tonstation-home > [class*="ts-room-3-"] { grid-column: 5 / 7; }
    #tonstation-home > .ts-room-number { grid-row: 8; margin: 0; }
    #tonstation-home > .ts-room-image { grid-row: 9; }
    #tonstation-home > :is(.ts-room-1-title, .ts-room-2-title, .ts-room-3-title) { grid-row: 10; }
    #tonstation-home > .ts-room-text { grid-row: 11; }
    #tonstation-home > :is(.ts-room-1-link, .ts-room-2-link, .ts-room-3-link) { grid-row: 12; }
    #tonstation-home > .ts-note-block { grid-row: 13; }
    #tonstation-home > .ts-feature-kicker:has(+ #tonstudio-in-bielefeld),
    #tonstation-home > #tonstudio-in-bielefeld,
    #tonstation-home > #tonstudio-in-bielefeld + .ts-feature-image,
    #tonstation-home > .ts-feature-text:has(~ :is(#musikunterricht, #music-lessons)),
    #tonstation-home > .ts-button-line:not([class*="ts-room-"]):has(~ :is(#musikunterricht, #music-lessons)) { grid-column: 1 / 4; }
    #tonstation-home > .ts-feature-kicker:has(+ :is(#musikunterricht, #music-lessons)),
    #tonstation-home > :is(#musikunterricht, #music-lessons),
    #tonstation-home > :is(#musikunterricht, #music-lessons) + .ts-feature-image,
    #tonstation-home > :is(#musikunterricht, #music-lessons) ~ .ts-feature-text,
    #tonstation-home > :is(#musikunterricht, #music-lessons) ~ .ts-button-line:not([class*="ts-room-"]) { grid-column: 4 / 7; }
    #tonstation-home > .ts-feature-kicker { grid-row: 14; margin-top: 88px; }
    #tonstation-home > .ts-feature-title { grid-row: 15; font-size: 34px; }
    #tonstation-home > .ts-feature-image { grid-row: 16; }
    #tonstation-home > .ts-feature-text { grid-row: 17; }
    #tonstation-home > .ts-button-line:not([class*="ts-room-"]) { grid-row: 18; }
    #tonstation-home > .ts-faq-kicker { grid-row: 19; margin-top: 88px; margin-bottom: 16px; padding-top: 36px; }
    #tonstation-home > .ts-faq-title { grid-area: 20 / 1 / 30 / 3; max-width: 13ch; margin-top: 12px; font-size: 34px; }
    #tonstation-home > :is(.ts-faq-question, .ts-faq-answer) { grid-column: 3 / 7; }
    #tonstation-home > .ts-faq-q1 { grid-row: 20; margin-top: 12px; }
    #tonstation-home > .ts-faq-a1 { grid-row: 21; }
    #tonstation-home > .ts-faq-q2 { grid-row: 22; }
    #tonstation-home > .ts-faq-a2 { grid-row: 23; }
    #tonstation-home > .ts-faq-q3 { grid-row: 24; }
    #tonstation-home > .ts-faq-a3 { grid-row: 25; }
    #tonstation-home > .ts-faq-q4 { grid-row: 26; }
    #tonstation-home > .ts-faq-a4 { grid-row: 27; }
    #tonstation-home > .ts-faq-q5 { grid-row: 28; }
    #tonstation-home > .ts-faq-a5 { grid-row: 29; }
    #tonstation-home > .ts-partnership-kicker { grid-row: 32; margin-top: 88px; padding-top: 36px; }
    #tonstation-home > .ts-partnership-title { grid-row: 33; }
    #tonstation-home > .ts-partnership-text { grid-row: 34; }
    #tonstation-home > .ts-partnership-card { grid-row: 35; }
    #tonstation-home > .ts-partnership-school { grid-column: 1 / 4; }
    #tonstation-home > .ts-partnership-shop { grid-column: 4 / 7; }
    #tonstation-home > .ts-partnership-action { grid-row: 36; }
    #tonstation-home:has(> .ts-contact-block)::after { content: ""; grid-area: 38 / 1 / 42 / 7; margin-top: 88px; border: 1px solid var(--ts-line); border-radius: 18px; background: var(--ts-bg-soft); z-index: -1; pointer-events: none; }
    #tonstation-home > :is(.ts-location-kicker, .ts-location-title, .ts-location-text, .ts-contact-block) { grid-column: 1 / 4; padding-left: 38px; padding-right: 12px; background: transparent; }
    #tonstation-home > :is(.ts-cta-kicker, .ts-cta-title, .ts-cta-text, .ts-cta-button) { grid-column: 4 / 7; padding-left: 12px; padding-right: 38px; background: transparent; }
    #tonstation-home > :is(.ts-location-kicker, .ts-cta-kicker) { grid-row: 38; margin: 88px 0 0; padding-top: 38px; border-radius: 0; }
    #tonstation-home > :is(.ts-location-title, .ts-cta-title) { grid-row: 39; font-size: 34px; }
    #tonstation-home > :is(.ts-location-text, .ts-cta-text) { grid-row: 40; }
    #tonstation-home > :is(.ts-contact-block, .ts-cta-button) { grid-row: 41; padding-top: 24px; padding-bottom: 38px; }
    #tonstation-home > .ts-cta-button { align-self: start; }
    .page .content[data-ts-page-id]:is([data-ts-page-id="8"], [data-ts-page-id="9"], [data-ts-page-id="10"], [data-ts-page-id="24"], [data-ts-page-id="25"], [data-ts-page-id="26"]) > :is(.hero, .content__entry) { width: min(1200px, calc(100% - 64px)); }
}

@media (max-width: 1099px) {
    .ts-nav { display: none; }
    .ts-mobile-menu { display: block; position: relative; z-index: 2; }
    .ts-mobile-menu summary { list-style: none; min-height: 44px; padding: 10px 14px; border: 1px solid #545a60; border-radius: 8px; color: var(--ts-text); cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.5; }
    .ts-mobile-menu summary::-webkit-details-marker { display: none; }
    .ts-mobile-menu summary::after { content: "☰"; margin-left: 10px; color: var(--ts-accent); font-size: 16px; }
    .ts-mobile-menu[open] summary::after { content: "×"; }
    .ts-mobile-menu nav { position: absolute; top: calc(100% + 12px); right: 0; width: min(310px, calc(100vw - 40px)); max-height: calc(100dvh - 106px); overflow-y: auto; padding: 10px; border: 1px solid var(--ts-line); border-radius: 12px; background: #1a1d20; box-shadow: 0 16px 38px #0006; }
    .ts-mobile-menu nav a { display: flex; align-items: center; min-height: 46px; padding: 11px 14px; border-radius: 7px; color: var(--ts-text); font-size: 15px; font-weight: 500; line-height: 1.5; text-decoration: none; }
    .ts-mobile-menu nav a:hover, .ts-mobile-menu nav a[aria-current="page"] { background: #2b3035; color: #fff; }
    .ts-mobile-menu nav a[href$="/kontakt/"], .ts-mobile-menu nav a[href$="/contact/"] { background: var(--ts-button-red); color: #fff; margin-top: 6px; }
}
@media (max-width: 599px) {
    .ts-nav-inner { width: calc(100% - 40px); min-height: 76px; }
    .ts-logo img { width: 151px; }
    #tonstation-home > .ts-hero-title { font-size: clamp(36px, 10.1vw, 54px); }
    #tonstation-home > .ts-actions-block { flex-direction: column; align-items: stretch; }
    #tonstation-home > .ts-actions-block a { width: 100%; }
    .page .content__entry .ts-room-pricing { padding: 18px; }
    .page .content__entry .ts-price-table { font-size: 13px; }
    .page .content__entry .ts-price-table th, .page .content__entry .ts-price-table td { padding: 10px 6px; }
    .ts-footer-inner { grid-template-columns: 1fr; gap: 26px; }
    .ts-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .ts-footer-bottom { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .page a { transition: none !important; }
}

/* Final image treatment: no white frame, no forced upscaling. */
#tonstation-home > :is(.ts-hero-image, .ts-room-image, .ts-feature-image),
.page .content__entry > figure:is(.ts-hero-image, .ts-room-image, .ts-feature-image, .post__image) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
#tonstation-home > :is(.ts-hero-image, .ts-room-image, .ts-feature-image) img,
.page .content__entry > figure:is(.ts-hero-image, .ts-room-image, .ts-feature-image, .post__image) img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
}
#tonstation-home > .ts-hero-image img { aspect-ratio: 16 / 9; object-fit: cover; }
#tonstation-home > .ts-room-image img,
#tonstation-home > .ts-feature-image img { aspect-ratio: 425 / 293; object-fit: cover; }
.page .content__entry > figure.post__image img { height: auto; object-fit: contain; }
.ts-button-primary:hover { background: var(--ts-accent-dark) !important; }

/* Hero actions: compact graphite split button with a centered arrow and a
   low red bar, matching the selected Publii reference variant. */
@media (min-width: 600px) {
    #tonstation-home > .ts-actions-block .ts-button-primary {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 206px;
        height: 52px;
        min-height: 52px;
        padding: 0 48px 0 10px;
        overflow: hidden;
        border: 1px solid #59616a;
        border-radius: 8px;
        background: #34383d !important;
        color: #f8f7f5 !important;
        font-size: 14px;
        letter-spacing: -.02em;
        box-shadow: none;
    }
    #tonstation-home > .ts-actions-block .ts-button-primary::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 46px;
        border-left: 1px solid #2b3035;
        background-color: #090b0d;
        background-image: linear-gradient(var(--ts-hero-arrow), var(--ts-hero-arrow));
        background-position: center bottom 6px;
        background-repeat: no-repeat;
        background-size: 24px 2px;
    }
    #tonstation-home > .ts-actions-block .ts-button-primary::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 46px;
        height: 46px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M23 8v23m0 0-9-9m9 9 9-9' fill='none' stroke='%238f3147' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
        transform: translateY(-50%);
    }
    #tonstation-home > .ts-actions-block .ts-button-primary:is(:hover, :focus-visible) {
        background: #42474e !important;
        border-color: #818891;
    }
    #tonstation-home > .ts-actions-block .ts-button-secondary {
        width: 206px;
        height: 52px;
        min-height: 52px;
        padding: 0 16px;
        border-radius: 8px;
        font-size: 14px;
        letter-spacing: -.02em;
    }
}

/* Final color accents for the approved homepage hero. */
#tonstation-home > .ts-hero-title .ts-city { color: #f6f4ef !important; }
#tonstation-home > .ts-lead .ts-home-proof strong { color: var(--ts-accent-dark) !important; }

/* Music lessons secondary page: two calm, equal-size instrument images. */
.page .content__entry .ts-music-lesson-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 880px;
    margin: 30px 0 42px;
}
.page .content__entry .ts-music-lesson-image {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ts-line);
    border-radius: 12px;
    background: var(--ts-card);
}
.page .content__entry .ts-music-lesson-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 425 / 293;
    object-fit: cover;
}
@media (max-width: 680px) {
    .page .content__entry .ts-music-lesson-images {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 24px 0 34px;
    }
}
@media (max-width: 599px) {
    #tonstation-home > .ts-actions-block .ts-button-primary {
        position: relative;
        padding-right: 52px;
        overflow: hidden;
        background: #34383d !important;
        color: #f8f7f5 !important;
    }
    #tonstation-home > .ts-actions-block .ts-button-primary::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 46px;
        border-left: 1px solid #2b3035;
        background-color: #090b0d;
        background-image: linear-gradient(var(--ts-hero-arrow), var(--ts-hero-arrow));
        background-position: center bottom 6px;
        background-repeat: no-repeat;
        background-size: 24px 2px;
    }
    #tonstation-home > .ts-actions-block .ts-button-primary::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 46px;
        height: 46px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M23 8v23m0 0-9-9m9 9 9-9' fill='none' stroke='%238f3147' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
        transform: translateY(-50%);
    }
}
