/*
 * Public status page in the look of easy-smarthome.de: mobile first, desktop rules from 768px. Light and dark by
 * system setting or by the choice of assets/scripts/theme.js (data-theme on
 * <html>); every colour is defined once with light-dark(), the light values
 * are those of the website, the dark ones derived. No external resources
 *, no inline styles. A status is always shown as icon and text;
 * colours only add to it.
 *
 * The accent colour of a status page comes from a small style element that
 * sets --accent, --accent-contrast, --accent-dark, --accent-dark-contrast and
 * --accent-text (App\PublicSite\Branding); without it the defaults below
 * apply, computed by Branding from Branding::DEFAULT_ACCENT. The same
 * element sets the logo colour of a header in the accent colour
 * (--header-logo-filter, --header-logo-filter-dark) and the system fonts
 * (--font-body, --font-display).
 */

/* --- Font: Montserrat 7.222, official release of JulietaUla/Montserrat, see assets/fonts/SOURCE.md. --- */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Montserrat-Regular-j25DqIh.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Montserrat-SemiBold-5gi3l-u.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Montserrat-Bold-iO39Ulx.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/Montserrat-ExtraBold-dN0wsoc.woff2") format("woff2");
}

/*
 * --- Colours and fonts of the public site. The colours of the states come
 * from assets/styles/tokens.css (included before this file). ---
 */

:root {
    color-scheme: light dark;

    /* Surfaces: white with light grey bands (website), dark as before. */
    --bg: light-dark(#ffffff, #0b0e13);
    --surface: light-dark(#ffffff, #141922);
    --surface-alt: light-dark(#f8f8f8, #11161d);
    --border: light-dark(#e6e6e6, #232b37);
    --divider: light-dark(#f0f0f0, #1b222c);
    /* Borders of inputs and of the icon buttons: at least 3:1 against the surface (WCAG 1.4.11). */
    --field-border: light-dark(#8a8a8a, #66717f);
    --ring: light-dark(#c4c4c4, #4a5563);
    --shadow-color: light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
    --menu-shadow-color: light-dark(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.5));

    /* Text: running text #464646, navigation #626262 (website). */
    --text: light-dark(#464646, #e7ecf2);
    --text-strong: light-dark(#1b1b1b, #ffffff);
    --text-2: light-dark(#626262, #c9d2dc);
    --muted: light-dark(#6b6b6b, #9aa6b4);
    /* Links: the primary blue of the website, dark as Branding::darkVariant() brightens it. */
    --link: light-dark(#1f71b8, #4c8dc6);

    /* Footer: black in both appearances (website). */
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --footer-link: #f8f9fa;
    --footer-muted: #b3b3b3;
    --footer-line: #333333;

    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /*
     * Accent (8.1). Surfaces (buttons) use the accent with its contrast
     * colour; text and the focus ring in the accent colour use the variant
     * that reads on light backgrounds (--accent-text, at least 4.5:1 against
     * white) and the dark variant in the dark appearance. The defaults are
     * what App\PublicSite\Branding computes for Branding::DEFAULT_ACCENT, the
     * primary blue of the website (checked by BrandingTest).
     */
    --accent-effective: light-dark(var(--accent, #1f71b8), var(--accent-dark, #4c8dc6));
    --accent-effective-contrast: light-dark(var(--accent-contrast, #ffffff), var(--accent-dark-contrast, #000000));
    --accent-text-effective: light-dark(var(--accent-text, #1f71b8), var(--accent-dark, #4c8dc6));
    --focus: var(--accent-text-effective);

    --gutter: 16px;
    /* Height of the sticky header, so that anchors (#subscribe) do not end up below it. */
    --header-height: 64px;
}

:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

/* Browsers without light-dark() (before Chrome 123, Firefox 120, Safari 17.5) get the light colours. */
@supports not (color: light-dark(#000000, #ffffff)) {
    :root {
        color-scheme: light;

        --bg: #ffffff;
        --surface: #ffffff;
        --surface-alt: #f8f8f8;
        --border: #e6e6e6;
        --divider: #f0f0f0;
        --field-border: #8a8a8a;
        --ring: #c4c4c4;
        --shadow-color: rgba(0, 0, 0, 0.1);
        --menu-shadow-color: rgba(0, 0, 0, 0.14);
        --text: #464646;
        --text-strong: #1b1b1b;
        --text-2: #626262;
        --muted: #6b6b6b;
        --link: #1f71b8;

        --accent-effective: var(--accent, #1f71b8);
        --accent-effective-contrast: var(--accent-contrast, #ffffff);
        --accent-text-effective: var(--accent-text, #1f71b8);
    }
}

/*
 * Tones: the four colours of one status as local variables (--fg, --fill,
 * --tint, --tint-border) for everything inside.
 */
.tone--operational,
.status--operational {
    --fg: var(--status-operational-fg);
    --fill: var(--status-operational-fill);
    --tint: var(--status-operational-tint);
    --tint-border: var(--status-operational-tint-border);
}

.tone--maintenance,
.status--maintenance {
    --fg: var(--status-maintenance-fg);
    --fill: var(--status-maintenance-fill);
    --tint: var(--status-maintenance-tint);
    --tint-border: var(--status-maintenance-tint-border);
}

.tone--degraded_performance,
.status--degraded_performance {
    --fg: var(--status-degraded_performance-fg);
    --fill: var(--status-degraded_performance-fill);
    --tint: var(--status-degraded_performance-tint);
    --tint-border: var(--status-degraded_performance-tint-border);
}

.tone--partial_outage,
.status--partial_outage {
    --fg: var(--status-partial_outage-fg);
    --fill: var(--status-partial_outage-fill);
    --tint: var(--status-partial_outage-tint);
    --tint-border: var(--status-partial_outage-tint-border);
}

.tone--major_outage,
.status--major_outage {
    --fg: var(--status-major_outage-fg);
    --fill: var(--status-major_outage-fill);
    --tint: var(--status-major_outage-tint);
    --tint-border: var(--status-major_outage-tint-border);
}

/* --- Base. --- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

/* A column at least as high as the window, so that the black footer closes the page also on short pages. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-underline-offset: 0.15em;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
main:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

main:focus:not(:focus-visible) {
    outline: none;
}

main {
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
    margin: 1.25em 0 0.5em;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.3125rem;
}

h3 {
    font-size: 1.0625rem;
}

h4 {
    font-size: 0.9375rem;
}

.wrap {
    width: 100%;
    /* Content up to 1320px wide like the website, side margins included. */
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted {
    color: var(--muted);
}

.visually-hidden,
.icon-sprite {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Sign of a filled status icon (_icons.html.twig); the width suits small icons. */
.icon-sign {
    stroke: var(--on-status);
    stroke-width: var(--sign-width, 3.8);
}

.icon {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
}

/* Skip link: visible as soon as it receives focus. */
.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -10rem;
    z-index: 30;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    color: var(--link);
    border: 2px solid var(--focus);
    border-radius: 6px;
}

.skip-link:focus {
    top: var(--gutter);
}

/*
 * --- Header (4.1): white (dark: the surface), sticky, with the shadow of the
 * website; logo or title on the left, icon buttons and the subscription
 * button on the right. ---
 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    box-shadow: 0 2px 15px var(--shadow-color);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    color: var(--text-strong);
    text-decoration: none;
}

.brand__logo {
    display: block;
    flex: none;
    height: 34px;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
}

/*
 * A coloured logo would be unreadable on dark ground: white in the dark
 * appearance (8.2, O-2), unless the page has its own logo for the dark
 * appearance (customisation stage 2); then that one replaces the other.
 */
:root[data-theme="dark"] .brand__logo:not(.brand__logo--dark) {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand__logo:not(.brand__logo--dark) {
        filter: brightness(0) invert(1);
    }
}

.brand__logo--dark,
:root[data-theme="dark"] .brand__logo--light {
    display: none;
}

:root[data-theme="dark"] .brand__logo--dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand__logo--light {
        display: none;
    }

    :root:not([data-theme="light"]) .brand__logo--dark {
        display: block;
    }
}

.brand__divider {
    flex: none;
    width: 1px;
    height: 22px;
    background: var(--border);
}

.brand__title {
    /* The header gives the title what the buttons leave; it wraps between words, inside a word only if that word alone is too wide. */
    min-width: 0;
    overflow-wrap: break-word;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
}

.brand__title--status {
    color: var(--text-2);
    font-weight: 600;
}

.site-header__controls {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
}

/* Icon buttons in the grey of the website's navigation, blue on hover. */
.icon-button,
.header-subscribe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    color: var(--text-2);
    background: transparent;
    cursor: pointer;
}

.icon-button:hover,
.menu[open] > .icon-button {
    background: var(--divider);
    color: var(--accent-text-effective);
}

summary.icon-button {
    list-style: none;
}

summary.icon-button::-webkit-details-marker {
    display: none;
}

/* Subscription: the blue button of the website, on small screens only the bell. */
.header-subscribe {
    margin-left: 4px;
    background: var(--accent-effective);
    color: var(--accent-effective-contrast);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

/* Darker on hover: a shadow, not a second colour mix (Branding computes the one tint of the menu selection, BrandingTest). */
.header-subscribe:hover {
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.14);
}

/*
 * Header in the accent colour (customisation stage 2): text, icons, focus
 * ring and logo in the contrast colour of the accent, in both appearances.
 * The menus keep the colours of the page. Lines and the hover background
 * are the contrast colour (black or white) with transparency, the logo is
 * black or white, whichever the accent needs; App\PublicSite\Branding sets
 * --header-line, --header-hover and --header-logo-filter(-dark) together
 * with this class.
 */
.site-header--accent {
    --focus: var(--accent-effective-contrast);
    background: var(--accent-effective);
}

.site-header--accent .menu__panel {
    --focus: var(--accent-text-effective);
}

.site-header--accent .brand,
.site-header--accent .brand__title--status {
    color: var(--accent-effective-contrast);
}

.site-header--accent .brand__divider {
    background: var(--header-line);
}

.site-header--accent .icon-button {
    color: var(--accent-effective-contrast);
}

.site-header--accent .icon-button:hover,
.site-header--accent .menu[open] > .icon-button {
    background: var(--header-hover);
    color: var(--accent-effective-contrast);
}

/* In a header in the accent colour the button turns round: contrast colour with the accent as text. */
.site-header--accent .header-subscribe,
.site-header--accent .header-subscribe:hover {
    background: var(--accent-effective-contrast);
    color: var(--accent-effective);
}

.site-header--accent .header-subscribe:hover {
    box-shadow: none;
    text-decoration: underline;
}

.site-header--accent .brand__logo {
    filter: var(--header-logo-filter);
}

:root[data-theme="dark"] .site-header--accent .brand__logo {
    filter: var(--header-logo-filter-dark);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-header--accent .brand__logo {
        filter: var(--header-logo-filter-dark);
    }
}

/* The label of the subscription link is only for screen readers on small screens. */
.header-subscribe__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Menus for language and appearance (6, 7). */
.menu {
    position: relative;
}

.menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: 200px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 32px var(--menu-shadow-color);
}

.menu__title {
    margin: 6px 12px 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.menu__item:hover {
    background: var(--divider);
}

.menu__item:focus-visible {
    outline-offset: -3px;
}

.menu__label {
    flex: 1;
}

.menu__icon {
    flex: none;
    width: 18px;
    height: 18px;
}

.menu__check {
    flex: none;
    width: 16px;
    height: 16px;
    visibility: hidden;
}

.menu__item[aria-current="page"],
.menu__item[aria-pressed="true"] {
    /* The share (8%) is App\PublicSite\Branding::SELECTION_TINT_PERCENT: the accent variants are computed against this background. */
    background: color-mix(in srgb, var(--accent-effective) 8%, var(--surface));
    color: var(--accent-text-effective);
    font-weight: 600;
}

.menu__item[aria-current="page"] .menu__check,
.menu__item[aria-pressed="true"] .menu__check {
    visibility: visible;
}

/* --- Overall status (4.2): the colour is only in the icon. --- */

.hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 28px;
}

.hero__icon {
    flex: none;
    width: 44px;
    height: 44px;
    margin-top: 2px;
    border-radius: 50%;
    color: var(--fill);
    box-shadow: 0 0 0 6px var(--tint);
    --sign-width: 2.8;
}

.hero__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__text {
    min-width: 0;
}

.hero__title {
    margin: 0;
}

.hero__summary {
    margin: 6px 0 0;
    color: var(--text-2);
    font-size: 1.0625rem;
}

/*
 * --- Sections: the heading is the blue section line of the website
 * (accent text, 600, about 19.5px). ---
 */

.section {
    margin-top: 36px;
}

.section > h2,
.section__head h2 {
    margin: 0 0 12px;
    color: var(--accent-text-effective);
    font-size: 1.21875rem;
    font-weight: 600;
    letter-spacing: 0;
}

.section__head h2 {
    margin-bottom: 4px;
}

.section__summary {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.875rem;
}

.subhead {
    margin: 16px 0 10px;
    color: var(--text-strong);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
}

.section > h2 + .subhead {
    margin-top: 0;
}

/*
 * Introduction of the page (change of 23.11.2026 (5)): a light grey band
 * like the set-off areas of the website, without border or shadow, so that
 * it does not compete with the overall status and incidents. It uses the
 * full width of the content like the other sections (wish of the client);
 * long words and addresses wrap.
 */
.intro {
    padding: 20px 18px;
    background: var(--surface-alt);
    border-radius: 8px;
}

.intro__text {
    overflow-wrap: break-word;
    color: var(--text);
}

/* Status as icon and text. */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg);
    font-size: 0.8125rem;
    line-height: 1.3;
    white-space: nowrap;
}

.status__icon {
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--fill);
}

.status__icon--line {
    width: 15px;
    height: 15px;
    color: var(--fg);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--tint-border);
    border-radius: 6px;
    background: var(--tint);
    color: var(--fg);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

/* --- Cards: incidents, maintenances, detail pages; white boxes with a soft shadow like the website. --- */

.card {
    margin: 0;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 15px var(--shadow-color);
}

.card__title {
    margin: 0;
}

.card__title a {
    color: var(--text-strong);
    text-decoration: none;
}

.card__title a:hover {
    text-decoration: underline;
}

.card__meta,
.affected,
.window {
    margin: 4px 0;
}

/* Incident on the overview (4.3). */
.incidents {
    margin-top: 20px;
}

.incident {
    padding: 0;
    overflow: hidden;
}

.incident + .incident {
    margin-top: 16px;
}

.incident__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "eyebrow badge"
        "title title"
        "meta meta";
    align-items: center;
    gap: 0 8px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--border);
}

.incident__eyebrow {
    grid-area: eyebrow;
    margin: 0;
    color: var(--fg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.incident__badge {
    grid-area: badge;
    justify-self: end;
}

.incident__title {
    grid-area: title;
    margin-top: 8px;
    font-size: 1.3125rem;
    line-height: 1.25;
}

.incident__meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    margin: 10px 0 0;
    font-size: 0.875rem;
}

.incident__meta > div {
    display: contents;
}

.incident__meta dt {
    color: var(--muted);
}

.incident__meta dd {
    margin: 0;
}

.incident__affected {
    font-weight: 600;
}

.incident__body {
    padding: 18px 18px 20px;
}

/* Pinned notices (change of 23.11.2026 (2)): incident cards with a pin in the eyebrow. */
.pinned__eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pinned__icon {
    flex: none;
    width: 14px;
    height: 14px;
}

.pinned__description {
    margin-bottom: 18px;
    color: var(--text-2);
}

/* History of an incident or maintenance: dots and a line, newest entry first and highlighted. */
.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline__entry {
    position: relative;
    padding: 0 0 18px 26px;
}

.timeline__entry:last-child {
    padding-bottom: 0;
}

.timeline__entry::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ring);
    border-radius: 50%;
}

.timeline__entry::after {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: var(--border);
}

.timeline__entry:last-child::after {
    display: none;
}

.timeline__entry:first-child::before {
    border: 0;
    background: var(--fill, var(--muted));
    box-shadow: 0 0 0 4px var(--tint, var(--divider));
}

.timeline__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.timeline__meta .state {
    color: var(--text-2);
    font-weight: 600;
}

.timeline__entry:first-child .timeline__meta .state {
    color: var(--fg, var(--text-strong));
}

.timeline__entry .prose {
    margin-top: 4px;
    color: var(--text-2);
}

.timeline__entry:first-child .prose {
    color: var(--text-strong);
    font-size: 1rem;
}

/* The text itself (.prose) is styled in assets/styles/prose.css, shared with the preview of the backend. */

/* --- Components (4.4): one card with groups on small screens. --- */

.component-list {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 15px var(--shadow-color);
}

.component-list > * + * {
    border-top: 1px solid var(--border);
}

.components {
    margin: 0;
    padding: 0 16px 8px;
    list-style: none;
}

.component {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px 10px;
    min-height: 48px;
    padding: 12px 0;
    border-top: 1px solid var(--divider);
}

.component-list > .components > .component:first-child {
    border-top: 0;
}

/*
 * Name and status share a line while both fit; otherwise the status moves
 * below the name. The name never shrinks below its longest word, so words
 * only break when a single word is wider than the whole line.
 */
.component__name {
    max-width: 100%;
    overflow-wrap: break-word;
}

.component > .status {
    margin-left: auto;
}

.component .status__icon--filled {
    display: none;
}

.component__description {
    flex-basis: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.group__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px 10px;
    min-height: 56px;
    padding: 8px 16px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.group__summary::-webkit-details-marker {
    display: none;
}

/* Inside the card with hidden overflow the focus ring stays inside. */
.group__summary:focus-visible {
    outline-offset: -3px;
}

.group__name {
    max-width: 100%;
    overflow-wrap: break-word;
}

.group__state {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.group__summary .status {
    font-weight: 600;
}

.group__chevron {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.group[open] .group__chevron {
    transform: rotate(180deg);
}

/* --- Maintenances (4.5). --- */

.maintenances {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maintenance {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--maint-bg);
    border: 1px solid var(--maint-border);
}

.maintenance__date {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    text-align: center;
}

/* Weekday above the date in digits (change of 23.11.2026 (2)); no month names. */
.maintenance__weekday {
    color: var(--maint-fg);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.maintenance__day {
    margin-top: 2px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.maintenance__content {
    flex: 1;
    min-width: 0;
}

.maintenance__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 6px;
}

.maintenance__title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.maintenance__meta {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.maintenance__description {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.875rem;
}

/* --- The last 14 days (4.6). --- */

.days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    background: var(--tint);
    border: 1px solid var(--tint-border);
    border-radius: 6px;
    --sign-width: 4;
}

.day--quiet {
    background: var(--surface);
    border-color: var(--divider);
}

.day--today {
    border-color: var(--fill);
}

.day--quiet.day--today {
    border-color: var(--status-operational-fill);
}

.day__weekday {
    color: var(--muted);
    font-size: 0.6875rem;
    line-height: 1.3;
}

.day__number {
    color: var(--text-strong);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.day--quiet .day__number {
    color: var(--text-2);
}

.day__icon {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--fill);
}

.day--quiet .day__icon {
    color: var(--status-quiet-dot);
}

.recent__list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.recent__entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "date state"
        "main main";
    column-gap: 0.35em;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.recent__entry:last-child {
    border-bottom: 1px solid var(--border);
}

.recent__date {
    grid-area: date;
    color: var(--muted);
    font-size: 0.8125rem;
}

.recent__state {
    grid-area: state;
    color: var(--fg);
    font-size: 0.8125rem;
    font-weight: 600;
}

.recent__state::before {
    content: "· ";
    content: "· " / "";
    color: var(--muted);
    font-weight: 400;
}

.recent__main {
    grid-area: main;
    min-width: 0;
    margin-top: 2px;
}

.recent__title {
    color: var(--text-strong);
    font-weight: 600;
}

.recent__meta {
    display: none;
}

.recent__none {
    margin: 16px 0 0;
}

.recent__more {
    margin: 0;
}

.recent__more a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    font-weight: 600;
}

/* --- Subscription (4.7). --- */

/* A light grey band like the set-off areas of the website. */
.subscription {
    padding: 22px 18px;
    background: var(--surface-alt);
    border-radius: 8px;
}

.subscription .subscription__intro h2 {
    margin: 0;
}

.subscription__intro p {
    margin: 6px 0 16px;
    color: var(--text);
    font-size: 0.875rem;
}

.subscribe {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe .field,
.subscribe .consent,
.subscribe__submit {
    margin: 0;
}

.subscribe__submit .button {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
}

.subscription__feed {
    margin: 14px 0 0;
    font-size: 0.875rem;
}

.subscription__feed a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.subscription__feed .icon {
    width: 16px;
    height: 16px;
}

/* Form fields (overview and subscription pages). */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px;
}

.field label {
    color: var(--text-strong);
    font-size: 0.8125rem;
    font-weight: 600;
}

.field input,
.field select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--field-border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.field input[aria-invalid="true"] {
    border-color: var(--status-major_outage-fill);
}

.field__error {
    color: var(--status-major_outage-fg);
    font-size: 0.875rem;
}

/* Honeypot: off-screen for people; bots fill it in. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent {
    color: var(--muted);
    font-size: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    text-decoration: none;
    border: 1px solid var(--accent-effective);
    border-radius: 6px;
    background: var(--accent-effective);
    color: var(--accent-effective-contrast);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.button:hover {
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.14);
}

/* Secondary: white with blue text, like the website. */
.button--secondary {
    border-color: var(--accent-text-effective);
    background: var(--surface);
    color: var(--accent-text-effective);
}

.button--secondary:hover {
    box-shadow: none;
    background: var(--surface-alt);
}

.notice {
    padding: 10px 14px;
    border: 1px solid var(--status-operational-fill);
    border-radius: 6px;
    background: var(--surface);
}

/* --- Detail, history and subscription pages: header, footer, colours and fonts only. --- */

.breadcrumb {
    margin: 20px 0 0;
}

.card--single {
    margin-top: 16px;
}

.card--single .card__title {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.card--single h2 {
    margin: 20px 0 12px;
    font-size: 1.125rem;
}

.card--single .timeline {
    margin-top: 4px;
}

/* Own legal notice and privacy policy (templates/public/legal.html.twig): the text uses the full width of the card, like every other page. */
.card--legal {
    margin-top: 16px;
}

/* The h1 keeps the size of the page headings, clearly above the h2 of the text. */
.card--legal .card__title {
    margin-bottom: 20px;
}

.card--legal .prose {
    overflow-wrap: break-word;
}

.history {
    margin: 0;
    padding: 0;
    list-style: none;
}

.history__entry {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.history__kind {
    margin: 0;
    font-size: 0.8125rem;
}

.history__title {
    margin: 2px 0 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.error-page {
    padding-top: 48px;
    padding-bottom: 48px;
}

/*
 * --- Footer (4.8): black with white text in both appearances, like the
 * website; three columns (page and contact, links, staying informed), one
 * below the other on small screens, and the copyright line. Inside, the
 * tokens of text and links take the colours of the footer, so that the
 * Markdown of the contact (.prose) reads on black. ---
 */

.site-footer {
    --text: var(--footer-text);
    --text-strong: var(--footer-text);
    --text-2: var(--footer-text);
    --muted: var(--footer-muted);
    --link: var(--footer-link);
    --border: var(--footer-line);
    --bg: var(--footer-line);
    --focus: var(--footer-text);
    margin-top: 56px;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.875rem;
}

.site-footer__inner {
    padding-top: 36px;
    padding-bottom: 20px;
}

.site-footer__columns {
    display: grid;
    gap: 28px;
}

.site-footer__title {
    margin: 0 0 10px;
    color: var(--footer-text);
    font-family: var(--font-display);
    font-size: 0.984375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.site-footer__contact {
    overflow-wrap: break-word;
}

.site-footer a {
    color: var(--footer-link);
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    display: flex;
    align-items: center;
    min-height: 36px;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__subscribe {
    margin: 0 0 12px;
}

.site-footer .button {
    color: var(--accent-effective-contrast);
}

.site-footer__timezone {
    margin: 0;
    color: var(--footer-muted);
}

.site-footer__copyright {
    margin: 32px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-muted);
    font-size: 0.75rem;
    text-align: center;
}

/* --- Desktop. --- */

@media (min-width: 768px) {
    :root {
        --gutter: 28px;
        --header-height: 88px;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        letter-spacing: -0.015em;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Padding of 20px and a logo of about 47px like the website. */
    .site-header__inner {
        flex-wrap: wrap;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .brand {
        gap: 14px;
    }

    .brand__logo {
        height: 47px;
        max-width: 14rem;
    }

    .brand__divider {
        height: 28px;
    }

    .brand__title {
        font-size: 1.25rem;
    }

    .site-header__controls {
        gap: 6px;
    }

    .header-subscribe {
        width: auto;
        height: 48px;
        margin-left: 10px;
        padding: 0 20px;
    }

    .header-subscribe .icon {
        display: none;
    }

    .header-subscribe__label {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
    }

    .hero {
        align-items: center;
        gap: 20px;
        margin-top: 56px;
    }

    .hero__icon {
        width: 56px;
        height: 56px;
        margin-top: 0;
        box-shadow: 0 0 0 8px var(--tint);
    }

    .section {
        margin-top: 48px;
    }

    .section > h2,
    .section__head h2 {
        margin-bottom: 18px;
    }

    .section__head h2 {
        margin-bottom: 4px;
    }

    .section__summary {
        margin-bottom: 18px;
    }

    .card {
        padding: 22px 28px;
    }

    .incidents {
        margin-top: 28px;
    }

    .incident {
        padding: 0;
    }

    .incident__head {
        grid-template-areas:
            "eyebrow badge"
            "title badge"
            "meta badge";
        align-items: start;
        gap: 0 12px;
        padding: 22px 28px;
    }

    .incident__eyebrow {
        margin-bottom: 6px;
    }

    .incident__badge {
        padding: 5px 12px;
        font-size: 0.8125rem;
    }

    .incident__title {
        margin-top: 0;
        font-size: 1.5rem;
        letter-spacing: -0.01em;
    }

    .incident__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin-top: 8px;
        color: var(--muted);
    }

    .incident__meta > div {
        display: flex;
    }

    .incident__meta > div + div::before {
        content: "·";
        content: "·" / "";
        margin: 0 0.4em;
    }

    .incident__meta dt::after {
        content: ":";
        margin-right: 0.3em;
    }

    .incident__affected {
        color: var(--text-strong);
    }

    .incident__body {
        padding: 24px 28px 26px;
    }

    .timeline__entry {
        padding-left: 36px;
        padding-bottom: 22px;
    }

    .timeline__entry::before {
        top: 7px;
        left: 4px;
    }

    .timeline__entry::after {
        top: 27px;
        left: 9px;
    }

    .timeline__entry .prose {
        margin-top: 6px;
    }

    .timeline__entry:first-child .prose {
        font-size: 1.0625rem;
    }

    /* Components as tiles; groups stay collapsible. */
    .component-list {
        display: flex;
        flex-direction: column;
        gap: 22px;
        overflow: visible;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .component-list > * + * {
        border-top: 0;
    }

    .components,
    .group .components {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
        gap: 10px;
        padding: 0;
    }

    .component {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        min-height: 0;
        padding: 14px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 6px;
        box-shadow: 0 2px 15px var(--shadow-color);
    }

    .component > .status,
    .group__state {
        margin-left: 0;
    }

    .component:not(.tone--operational) {
        background: var(--tint);
        border-color: var(--tint-border);
    }

    .component__name {
        color: var(--text-strong);
        font-weight: 600;
    }

    .component .status__icon--filled {
        display: block;
        width: 16px;
        height: 16px;
    }

    .component .status__icon--line {
        display: none;
    }

    .component__description {
        flex-basis: auto;
    }

    .group__summary {
        justify-content: flex-start;
        gap: 12px;
        min-height: 44px;
        margin-bottom: 4px;
        padding: 0;
        color: var(--muted);
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .group__summary:focus-visible {
        outline-offset: 2px;
    }

    .group__summary .status {
        letter-spacing: 0;
        text-transform: none;
    }

    .maintenances {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
        gap: 16px;
    }

    .maintenance {
        gap: 20px;
        padding: 22px;
    }

    .maintenance__date {
        min-width: 64px;
    }

    .maintenance__weekday {
        font-size: 0.8125rem;
    }

    .maintenance__day {
        font-size: 1.0625rem;
    }

    .maintenance__title {
        font-size: 1rem;
    }

    .maintenance__meta {
        margin-top: 4px;
        font-size: 0.875rem;
    }

    .maintenance__description {
        margin-top: 8px;
    }

    .days {
        grid-template-columns: repeat(14, minmax(0, 1fr));
    }

    .day {
        gap: 8px;
        padding: 10px 0;
    }

    .day__number {
        font-size: 0.9375rem;
    }

    .day__icon {
        width: 18px;
        height: 18px;
    }

    .recent__list {
        margin-top: 18px;
        border-top: 1px solid var(--border);
    }

    .recent__entry {
        grid-template-columns: 110px minmax(0, 1fr) auto;
        grid-template-areas: "date main state";
        align-items: baseline;
        gap: 16px;
        padding: 14px 0;
        border-top: 0;
        border-bottom: 1px solid var(--border);
    }

    .recent__date {
        font-size: 0.875rem;
    }

    .recent__state::before {
        content: none;
    }

    .recent__main {
        margin-top: 0;
    }

    .recent__title {
        text-decoration: none;
    }

    .recent__title:hover {
        text-decoration: underline;
    }

    .recent__meta {
        display: block;
        color: var(--muted);
        font-size: 0.8125rem;
    }

    .recent__more a {
        min-height: 44px;
    }

    .subscription {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 28px;
        margin-top: 56px;
        padding: 40px;
        border-radius: 8px;
    }

    .subscription .subscription__intro h2 {
        font-size: 1.625rem;
        font-weight: 700;
    }

    .subscription__intro {
        flex: 1 1 320px;
        min-width: 0;
    }

    .subscription__intro p {
        margin: 8px 0 0;
        font-size: 0.9375rem;
    }

    .subscription__form {
        flex: 1 1 420px;
        min-width: 0;
    }

    /* E-mail, language and button in one row, the consent text below; the order in the document stays. */
    .subscribe {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 10px;
    }

    .field--email {
        flex: 1 1 220px;
    }

    /* Wide enough for the label "Sprache der E-Mails" in one line. */
    .field--language {
        flex: 0 1 170px;
    }

    .subscribe__submit {
        order: 1;
        flex: none;
    }

    .subscribe__submit .button {
        width: auto;
        min-height: 48px;
        padding: 0 24px;
        font-size: inherit;
    }

    .subscribe .consent {
        order: 2;
        flex: 1 1 100%;
        margin-top: 4px;
    }

    .breadcrumb {
        margin-top: 28px;
    }

    .card--single .card__title {
        font-size: 1.75rem;
    }

    .intro {
        padding: 32px 36px;
    }

    .site-footer {
        margin-top: 72px;
    }

    .site-footer__inner {
        padding-top: 56px;
    }

    /* Three columns side by side, the first a little wider for the contact. */
    .site-footer__columns {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
    }

    .site-footer__copyright {
        margin-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
