/* ==========================================================================
   WOLTERS Partnerportal – Designsystem
   Abgeleitet aus dem WOLTERS Styleguide 2026.
   ========================================================================== */

:root {
	/* -- Markenfarben ------------------------------------------------------ */
	/* Beige ist die primäre Basisfarbe, Rot wird gezielt als Akzent genutzt. */
	--color-primary: #665e57;
	--color-primary-dark: #514a44;
	--color-primary-soft: #f0eeed;

	--color-accent: #c00d0d;
	--color-accent-dark: #990a0a;
	--color-accent-soft: rgba(192, 13, 13, 0.08);

	--color-text: #665e57;
	--color-text-soft: #665e57;
	--color-muted: #92857c;

	--color-line: rgba(146, 133, 124, 0.28);
	--color-line-strong: #92857c;

	--color-bg: #ffffff;
	--color-bg-soft: #ffffff;
	--color-bg-sand: #ffffff;
	--color-header-bg: #f0eeed;

	/* Fuellung der Produktkacheln. Liegt zwischen dem weissen Seitengrund und
	   dem Markenbeige --color-primary-soft: die Kacheln setzen sich klar vom
	   Weissraum ab, ohne als Flaeche zu dominieren. Bewusst ein eigenes Token
	   und nicht --color-bg-soft -- das steht portalweit als Hover- und
	   Fuellfarbe auf Weiss und wuerde sonst ueberall mitfaerben. */
	--color-surface-card: #f8f8f8;
	--color-white: #ffffff;

	/* Funktionsfarben für Statusmeldungen – nicht als Markenflächen nutzen. */
	--color-success: #4f7654;
	--color-success-soft: #edf3ed;
	--color-warning: #9a6a28;
	--color-warning-soft: #f7f0e5;
	--color-danger: #c00d0d;
	--color-danger-soft: rgba(192, 13, 13, 0.08);

	/* -- Radien ------------------------------------------------------------ */
	/* Ruhige, reduzierte Formsprache; keine Pillen- oder App-Optik. */
	--radius-card: 0;
	--radius-button: 0;
	--radius-input: 0;
	--radius-badge: 0;

	/* -- Produktbildflaechen ----------------------------------------------- */
	/* Jede Produktbildflaeche im Portal ist quadratisch und zeigt das Motiv
	   vollstaendig (object-fit: contain). Der Innenabstand haelt Freisteller
	   von der Kante weg, damit ein breites und ein hohes Bild denselben
	   optischen Rahmen bekommen. Siehe assets/css/woocommerce.css,
	   Abschnitt "Einheitliche Produktbildflaechen". */
	--product-media-ratio: 1 / 1;
	--product-media-pad: 6%;
	--product-media-bg: var(--color-bg-soft);

	/* -- Schatten ---------------------------------------------------------- */
	/* Flächen werden primär durch Abstand und Linien gegliedert. */
	--shadow-soft: none;
	--shadow-hover: none;
	--shadow-inset: inset 0 0 0 1px var(--color-line);

	/* -- Layout ------------------------------------------------------------ */
	--container-width: 1280px;
	--container-narrow: 880px;
	--gutter: 24px;
	--header-height: 76px;

	/* -- Typografie -------------------------------------------------------- */
	/*
	 * Originalschriften laut Styleguide:
	 * Headlines: Oh Livey
	 * Sublines: Trade Gothic Bold Extended / Trade Gothic Extended
	 * Fließtext: Trade Gothic Condensed No. 18
	 * Hervorhebung: Trade Gothic Bold Condensed No. 20
	 *
	 * Die Fallbacks greifen, wenn die lizenzierten Schriften nicht eingebunden
	 * sind. Es werden hier bewusst keine Fontdateien ausgeliefert.
	 */
	--font-display: "WOLTERS Oh Livey", "Oh Livey", "Arial Narrow",
		"Roboto Condensed", Arial, sans-serif;
	--font-subline: "Trade Gothic Bold Extended", "Trade Gothic Extended",
		"Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	--font-sans: "Trade Gothic Condensed No. 18", "Arial Narrow",
		"Roboto Condensed", Arial, sans-serif;
	--font-strong: "Trade Gothic Bold Condensed No. 20", "Arial Narrow",
		"Roboto Condensed", Arial, sans-serif;

	/* Bestehende Variablennamen für Kompatibilität */
	--font-head: var(--font-display);

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.375rem;
	--fs-xl: 2.0rem;
	--fs-2xl: clamp(2.25rem, 4vw, 3.75rem);
	--fs-3xl: clamp(3rem, 6vw, 5.5rem);

	/* Ueberschriften H1-H3 in Oh Livey. Eigene Tokens, weil --fs-xl/--fs-2xl
	   auch Nicht-Ueberschriften steuern. Rund 25 % groesser als die
	   Grundskala: die Handschrift wirkt bei gleicher Groesse kleiner als die
	   Textschrift. */
	--fs-h1: clamp(2.75rem, 5vw, 4.75rem);
	--fs-h1-mobile: 2.5rem;
	--fs-h2: clamp(2.1rem, 3.5vw, 2.5rem);
	--fs-h3: 1.75rem;

	--lh-tight: 1.05;
	--lh-normal: 1.55;

	/* -- Bewegung ---------------------------------------------------------- */
	--transition: 160ms ease;
	--transition-slow: 320ms ease;

	/* -- Z-Index ----------------------------------------------------------- */
	--z-header: 100;
	--z-dropdown: 200;
	--z-overlay: 900;
	--z-modal: 1000;
}

@font-face {
    font-family: "WOLTERS Oh Livey";
    /* Relativ zur CSS-Datei: funktioniert auch in Unterverzeichnis-Installationen
       und wenn der Theme-Ordner anders heisst (z. B. Child-Theme). */
    src: url("../fonts/oh_livey.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Alias unter dem Originalnamen der Schrift. @font-face kennt nur genau EINEN
   Familiennamen, deshalb ein zweiter Block auf dieselbe Datei (der Browser
   laedt sie nur einmal). So funktioniert in Elementor-HTML-Bloecken und in
   Custom CSS auch das naheliegende font-family: "Oh Livey". */
@font-face {
    font-family: "Oh Livey";
    src: url("../fonts/oh_livey.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}


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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	color: var(--color-text-soft);
	background-color: var(--color-bg-soft);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: var(--lh-tight);
	letter-spacing: 0.035em;
	color: var(--color-text);
}

h1 {
	font-size: var(--fs-h1);
	letter-spacing: 0.045em;
}

h2 {
	font-size: var(--fs-h2);
}

h3 {
	font-size: var(--fs-h3);
}

h4 {
	font-size: var(--fs-md);
}

p {
	margin: 0 0 1em;
}

strong,
b {
	font-family: var(--font-strong);
	font-weight: 700;
}

a {
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover,
a:focus-visible {
	color: var(--color-accent);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

hr {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid var(--color-line);
}

::selection {
	color: var(--color-white);
	background: var(--color-accent);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 0;
}

/* -- Layout-Helfer --------------------------------------------------------- */
.wo-container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wo-container--narrow {
	max-width: var(--container-narrow);
}

.wo-section {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.wo-stack > * + * {
	margin-top: 1rem;
}

.wo-stack-sm > * + * {
	margin-top: 0.5rem;
}

.wo-stack-lg > * + * {
	margin-top: 2rem;
}

.wo-grid {
	display: grid;
	gap: var(--gutter);
}

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

.wo-text-sm {
	font-size: var(--fs-sm);
}

.wo-text-accent {
	color: var(--color-accent);
}

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

/* Sublines und kleine Bereichsbezeichnungen */
.wo-eyebrow,
.wo-subline {
	display: inline-block;
	margin-bottom: 0.65rem;
	font-family: var(--font-subline);
	font-size: var(--fs-xs);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
}

/* Karten- und Produkttitel bleiben markentypisch, aber gut lesbar. */
.wo-product-card__title,
.wo-card__title,
.wo-orderrow strong {
	font-family: var(--font-strong);
	font-weight: 700;
	letter-spacing: 0.015em;
	text-transform: none;
}

/* Reduzierte Standardflächen */
.wo-card,
.wo-panel {
	background: var(--color-bg);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-soft);
}

/* Standardbutton im Markenstil */
.wo-button,
button,
input[type="submit"],
input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-button);
	background: var(--color-accent);
	color: var(--color-white);
	font-family: var(--font-subline);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color var(--transition),
		border-color var(--transition),
		color var(--transition);
}

.wo-button:hover,
.wo-button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible {
	border-color: var(--color-accent-dark);
	background: var(--color-accent-dark);
	color: var(--color-white);
}

/* Sekundärbutton */
.wo-button--secondary {
	background: transparent;
	color: var(--color-text);
	border-color: var(--color-text);
}

.wo-button--secondary:hover,
.wo-button--secondary:focus-visible {
	background: transparent;
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Formulare */
input,
select,
textarea {
	width: 100%;
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-input);
	background: var(--color-white);
	color: var(--color-text);
	font: inherit;
}

input,
select {
	min-height: 44px;
	padding: 0.65rem 0.75rem;
}

/* Checkboxen/Radios nicht wie Textfelder aufziehen: Mit min-height, padding
   und width:100% wurden sie zu hohen Ovalen (z. B. Kasse-Block). Breite und
   Höhe bringen die Elemente bzw. die WooCommerce-Blöcke selbst mit. */
input[type="checkbox"],
input[type="radio"] {
	width: auto;
	min-height: 0;
	padding: 0;
}

textarea {
	min-height: 130px;
	padding: 0.75rem;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 1px var(--color-accent);
}

@media (max-width: 760px) {
	:root {
		--gutter: 16px;
		--header-height: 68px;
	}

	.wo-section {
		padding-block: 2.5rem;
	}
}