/*
 * Marke: Angleich an die neue tomedo.de (Schrift, Farben, Radien).
 *
 * Vorbild sind die Design-Vorgaben der neuen tomedo.de: Source Sans 3,
 * Primärrot #ad153d mit Hover #8e0f31, Fließtext #525252, Überschriften
 * #383838 im Gewicht 400, Radius 3px. Aufbau und Layouts der Onlinehilfe
 * bleiben unverändert.
 *
 * Schriften, Farbvariablen und Element-Stile stehen in Bricks (Datenbank,
 * gepflegt auf Produktion). Diese Datei überschreibt sie im Child-Theme:
 * - Schrift: Bricks lädt „Nunito Sans“ und „Raleway“ als eigene Schriften.
 *   Die @font-face-Regeln unten legen unter denselben Namen die Dateien von
 *   Source Sans 3 ab. Sie stehen nach den Bricks-Regeln, deshalb gewinnen sie
 *   (bei gleichen Angaben gilt die zuletzt definierte Schrift). So greift die
 *   neue Schrift überall, ohne jede Bricks-Regel einzeln zu überschreiben.
 * - Farben: :root:root schlägt die :root-Variablen von Bricks, auch wenn
 *   Bricks sie später ausgibt.
 * - Radien: Die Bricks-Elemente setzen ihre Radien per ID (#brxe-…). Die
 *   Regeln unten stellen #brx-header bzw. #brx-content voran und sind damit
 *   spezifischer. Kreise (Play-Button, Teilen-Symbole, Nummern-Marker) bleiben rund.
 *
 * Aufräumen später: Werden Schriften und Farben in Bricks auf Produktion
 * umgestellt (Eigene Schriften → Source Sans 3, Variablen --tomedo-red und
 * --tomedo-dark-red), können die Abschnitte 1 und 2 entfallen.
 *
 * Schrift Source Sans 3: SIL Open Font License 1.1, siehe ../fonts/LIZENZ.md.
 * Bricks setzt html auf 62,5 % (1rem = 10px).
 */

/* 1. Schrift ------------------------------------------------------------- */

/* Source Sans 3 (eigener Name, für neue Regeln): angefragtes Gewicht → Schnitt von Source Sans 3 */
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-regular.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-regular.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-600.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-700.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Nunito Sans (Fließtext, Navigation, Buttons): angefragtes Gewicht → Schnitt von Source Sans 3 */
@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-regular.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-regular.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-600.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-700.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Raleway (Überschriften): angefragtes Gewicht → Schnitt von Source Sans 3 */
@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-regular.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-regular.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-v19-latin-ext-600.woff2") format("woff2");
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Farben -------------------------------------------------------------- */

:root:root {
	--tomedo-red: #ad153d;
	--tomedo-dark-red: #8e0f31;
	--tomedo-radius: 3px;

	/* EazyDocs: Markenfarbe (Suche, aktive Einträge, Buttons). */
	--ezd_brand_color: #ad153d;
}

/* Fließtext wie auf tomedo.de etwas heller als die Überschriften. */
body {
	color: var(--tomedo-dark-grey, #525252);
}

/* EazyDocs-Suchleiste auf Handbuch-Einträgen: Farbe steht dort fest im Code. */
.ezd_search_banner.has_cs_bg {
	background-color: var(--tomedo-red, #ad153d);
}

/*
 * Startseite: Der rote Hintergrund oben ist ein Bild (Mediathek,
 * tomedo-hero-bg.png, 936 KB) mit dem alten Rot. Hier dieselbe Grafik,
 * umgefärbt von #db1f3e auf #ad153d, als WebP (20 KB).
 */
#brx-content #brxe-hero {
	background-image: url("../img/hero-hintergrund.webp");
}

/* 3. Überschriften ------------------------------------------------------- */

/* Titel der Handbuch-Einträge: tomedo.de setzt H1 im Gewicht 400. */
.single-docs #post h1,
.single-docs .doc-title {
	font-weight: 400;
}

/* 4. Radien -------------------------------------------------------------- */

/* Header: Button, Suchfeld, Sprachumschalter, Menülinks. */
#brx-header #brxe-hdrbtn,
#brx-header #brxe-hdrsr input[type="search"],
#brx-header #brxe-hdrlng .wpml-ls-legacy-dropdown-click > ul > li > a,
#brx-header #brxe-hdrlng .wpml-ls-sub-menu,
#brx-header #brxe-hdrnav .bricks-nav-menu > li > a {
	border-radius: var(--tomedo-radius);
}

/* Startseite: Suche und Themen-Chips im roten Bereich. */
#brx-content #brxe-herosr,
#brx-content #brxe-herosr form,
#brx-content #brxe-herosr :is(button, .bricks-search-submit),
#brx-content #brxe-herochp a {
	border-radius: var(--tomedo-radius);
}

/*
 * Karten und Icon-Felder der Startseite und Handbuch-Übersicht:
 * Kategorien (k), Kategorien Handbuch (hc), beliebte Einträge (p, popl),
 * Updates (r), Kontakt (kc), Videos (v).
 */
#brx-content :is(#brxe-k1, #brxe-k2, #brxe-k3, #brxe-k4, #brxe-k1i, #brxe-k2i, #brxe-k3i, #brxe-k4i),
#brx-content :is(#brxe-hc1, #brxe-hc2, #brxe-hc3, #brxe-hc4, #brxe-hc5, #brxe-hc6),
#brx-content :is(#brxe-hc1ic, #brxe-hc2ic, #brxe-hc3ic, #brxe-hc4ic, #brxe-hc5ic, #brxe-hc6ic),
#brx-content :is(#brxe-popl, #brxe-p1i, #brxe-p2i, #brxe-p3i, #brxe-p4i, #brxe-p5i, #brxe-p6i),
#brx-content :is(#brxe-r1, #brxe-r2, #brxe-r3, #brxe-r1tag, #brxe-r2tag, #brxe-r3tag),
#brx-content :is(#brxe-kc1, #brxe-kc2, #brxe-kc3),
#brx-content :is(#brxe-v1th, #brxe-v2th, #brxe-v3th, #brxe-v4th),
#brx-content :is(#brxe-v1c, #brxe-v2c, #brxe-v3c, #brxe-v4c, #brxe-v1d, #brxe-v2d, #brxe-v3d, #brxe-v4d) {
	border-radius: var(--tomedo-radius);
}

/* Videos & Vorträge: Vorschaubilder (vs1k0t, vs2k12t …) und „Mehr laden“. */
#brx-content :is([id^="brxe-vs1k"], [id^="brxe-vs2k"])[id$="t"],
#brx-content :is(#brxe-vs1lm, #brxe-vs2lm) {
	border-radius: var(--tomedo-radius);
}

/* Suchergebnisse: Karten, Suchfeld, Seitenzahlen. */
#brx-content .brxe-srit.brxe-block,
#brx-content #brxe-srsr2 input[type="search"],
#brx-content #brxe-srpg li .page-numbers {
	border-radius: var(--tomedo-radius);
}

/* Buttons aus Bricks und dem Block-Editor. */
#brx-content :is(.bricks-button, .wp-block-button__link) {
	border-radius: var(--tomedo-radius);
}

/*
 * Handbuch-Einträge (EazyDocs): Suchfeld, Navigation links, Kacheln,
 * Unterseiten-Liste, Vor/Zurück, Feedback-Buttons „Ja/Nein“,
 * Schriftgrößen-Umschalter und Drucken.
 */
.single-docs :is(#ezd_searchInput, .doc-link, .nav-item, .topic_list_item, .children a, .next-prev-pager, .h_btn, .btn-group, button.print) {
	border-radius: var(--tomedo-radius);
}
