/* =============================================================================
 * MotionMatters — Basis: Farbwerte, Schrift, Grundelemente
 *
 * Die Werte stammen aus der Messung des bestehenden Auftritts
 * (docs/designsystem-vorlage.md), die Umsetzung ist eigenstaendig.
 * Alle Stellschrauben stehen als Custom Properties in einem Block beisammen —
 * Farbe oder Schriftgroesse aendert man hier, nicht verstreut im Stylesheet.
 * ========================================================================== */

:root {
	/* --- Farben --- */
	--mm-text: #555;
	--mm-text-leise: #7f7f7f;
	--mm-text-kraeftig: #3b3c42;
	--mm-akzent: #66a6d8;
	--mm-akzent-dunkel: #4a8cc0;
	--mm-akzent-hell: #dff1ff;
	--mm-akzent-blass: #f5fafe;
	/* Ton der Kopfleiste, sobald gescrollt wird */
	--mm-leiste: #d6edff;
	--mm-flaeche: #fff;
	--mm-flaeche-leise: #f7f7f7;
	--mm-linie: #e4e4e4;
	--mm-linie-kraeftig: #ccc;
	--mm-warnung: #d61c42;
	--mm-bestaetigung: #16a500;

	/* --- Schrift --- */
	--mm-schriftfamilie: Karla, Arial, Helvetica, sans-serif;
	--mm-schrift: 17px;
	--mm-schrift-klein: 13px;
	--mm-schrift-gross: 20px;
	--mm-zeile: 1.5;
	--mm-zeile-eng: 1.2;
	--mm-fett: 700;

	/* --- Mass und Abstand --- */
	--mm-bahn: 1580px; /* 1500 nutzbar (Kundenwunsch 2026-08-19), 40px Rand je Seite */
	--mm-rand: 40px;
	--mm-abschnitt: 65px;
	--mm-luft: 20px;
	--mm-luft-klein: 10px;
	--mm-radius: 4px;
	--mm-radius-gross: 12px;

	/* --- Bewegung --- */
	--mm-dauer: 0.25s;
	--mm-kurve: ease;

	/* --- Schatten --- */
	--mm-schatten: 0 2px 8px rgb(0 0 0 / 10%);
	--mm-schatten-hoch: 0 6px 24px rgb(0 0 0 / 12%);

	/* --- Symbole ---
	   Als Maske eingebunden, nicht als Bild: so nimmt das Symbol die Textfarbe
	   an und braucht für Hover und aktiven Zustand keine zweite Datei. Liegt
	   hier statt in einer Schriftart, damit kein weiterer Download nötig ist. */
	--mm-symbol-warenkorb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9.5' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h2.6l2.6 11.3a1.8 1.8 0 0 0 1.8 1.4h8.1a1.8 1.8 0 0 0 1.8-1.4L21 7.6H5.4'/%3E%3C/svg%3E");
	--mm-symbol-nutzer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
	--mm-symbol-zitat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M7.5 6C5 7.5 3.8 9.7 3.8 12.6c0 2.5 1.4 4 3.3 4 1.7 0 3-1.3 3-3 0-1.6-1.2-2.8-2.8-2.8h-.5c.3-1.6 1.2-2.7 2.7-3.4L7.5 6zm9.5 0c-2.5 1.5-3.7 3.7-3.7 6.6 0 2.5 1.4 4 3.3 4 1.7 0 3-1.3 3-3 0-1.6-1.2-2.8-2.8-2.8h-.5c.3-1.6 1.2-2.7 2.7-3.4L17 6z'/%3E%3C/svg%3E");
	--mm-symbol-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");

	/* Vier Symbole, die im Bestand aus einer zweiten Symbolschriftart kamen —
	   je EINMAL benutzt. Eine ganze Schriftart für vier Zeichen nachzuladen
	   steht in keinem Verhältnis, deshalb hier als Masken. */
	--mm-symbol-uhr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M12 6.6V12l3.6 2.2'/%3E%3C/svg%3E");
	--mm-symbol-karte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.2' y='5' width='19.6' height='14' rx='2'/%3E%3Cpath d='M2.2 9.6h19.6'/%3E%3C/svg%3E");
	--mm-symbol-gluehbirne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 18h5.6M10 21h4M12 2.6a6.6 6.6 0 0 0-3.8 12c.5.4.8 1 .8 1.6h6c0-.6.3-1.2.8-1.6A6.6 6.6 0 0 0 12 2.6z'/%3E%3C/svg%3E");
	--mm-symbol-klappe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.2' y='8.4' width='19.6' height='12.4' rx='1.6'/%3E%3Cpath d='M2.8 8.4l3-5 4.4 5M9.6 8.4l3.2-5.4 4.4 5.4'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------------------------------
 * Schriftdateien. Nur die tatsaechlich benutzten Schnitte — jeder weitere
 * kostet Ladezeit ohne sichtbaren Gewinn.
 * -------------------------------------------------------------------------- */

@font-face {
	font-family: Karla;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../../../../files/mm_layout/fonts/karla-regular.woff2') format('woff2');
}

@font-face {
	font-family: Karla;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../../../../files/mm_layout/fonts/karla-bold.woff2') format('woff2');
}

/* -----------------------------------------------------------------------------
 * Grundstellung
 * -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	font-family: var(--mm-schriftfamilie);
	font-size: var(--mm-schrift);
	line-height: var(--mm-zeile);
	color: var(--mm-text);
	background: var(--mm-flaeche);
	-webkit-font-smoothing: antialiased;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
	border: 0;
}

figure {
	margin: 0;
}

hr {
	height: 0;
	border: 0;
	border-top: 1px solid var(--mm-linie);
	margin: var(--mm-luft) 0;
}

/* Contaos Aufraeum-Element soll nichts anzeigen, aber weiter aufraeumen. */
hr.clear,
.clear {
	clear: both;
	border: 0;
	margin: 0;
	height: 0;
}

/* -----------------------------------------------------------------------------
 * Text
 * -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--mm-luft);
	font-weight: var(--mm-fett);
	line-height: var(--mm-zeile-eng);
	color: var(--mm-text-kraeftig);
	overflow-wrap: break-word;
}

h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 22px; }
h4 { font-size: var(--mm-schrift-gross); }
h5 { font-size: var(--mm-schrift); }
h6 { font-size: var(--mm-schrift-klein); text-transform: uppercase; letter-spacing: 0.08em; }

p {
	margin: 0 0 var(--mm-luft);
}

a {
	color: var(--mm-akzent);
	text-decoration: none;
	transition: color var(--mm-dauer) var(--mm-kurve);
}

a:hover,
a:focus-visible {
	color: var(--mm-akzent-dunkel);
}

strong, b { font-weight: var(--mm-fett); }
small { font-size: var(--mm-schrift-klein); }

ul, ol {
	margin: 0 0 var(--mm-luft);
	padding-left: 1.3em;
}

li { margin-bottom: 0.35em; }

blockquote {
	margin: var(--mm-luft) 0;
	padding-left: var(--mm-luft);
	border-left: 3px solid var(--mm-akzent);
	color: var(--mm-text-leise);
}

/* Sichtbarer Fokus — ohne den ist die Seite mit der Tastatur nicht bedienbar. */
:focus-visible {
	outline: 2px solid var(--mm-akzent);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
 * Tabellen
 * -------------------------------------------------------------------------- */

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--mm-luft);
}

th, td {
	padding: var(--mm-luft-klein) var(--mm-luft-klein);
	text-align: left;
	border-bottom: 1px solid var(--mm-linie);
	vertical-align: top;
}

th {
	font-weight: var(--mm-fett);
	color: var(--mm-text-kraeftig);
}

/* -----------------------------------------------------------------------------
 * Formulare und Schaltflaechen
 * -------------------------------------------------------------------------- */

input,
select,
textarea,
button {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--mm-flaeche);
	border: 1px solid var(--mm-linie-kraeftig);
	border-radius: var(--mm-radius);
	transition: border-color var(--mm-dauer) var(--mm-kurve);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--mm-akzent);
	outline: 0;
}

textarea {
	min-height: 160px;
	resize: vertical;
}

label {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: var(--mm-fett);
	font-size: var(--mm-schrift-klein);
	color: var(--mm-text-kraeftig);
}

.widget {
	margin-bottom: var(--mm-luft);
}

/* Mehrfachauswahl: Contao gibt jede Antwort eines Kontrollkasten- oder
   Auswahlknopf-Feldes als <span> aus, das von Haus aus inline ist — die
   Antworten stuenden nebeneinander. Hier eine je Zeile, das Kaestchen an
   der ersten Textzeile ausgerichtet; Kaufstrecke und Quiz setzen eigene
   Kaesten darauf. */
.checkbox_container > span,
.radio_container > span {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.checkbox_container > span > input,
.radio_container > span > input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

.checkbox_container > span > label,
.radio_container > span > label {
	margin-bottom: 0;
	font-size: var(--mm-schrift);
	font-weight: var(--mm-fett-normal, 400);
}

/* Nur das Pflichtfeld-Sternchen im Label — die Eingabefelder selbst tragen
   im Buchungsmodul ebenfalls die Klasse "mandatory" und sollen ihre normale
   Schriftfarbe behalten. */
.mandatory .invisible,
.widget span.mandatory {
	color: var(--mm-warnung);
}

button,
.submit,
input[type="submit"],
a.mm-knopf {
	display: inline-block;
	padding: 12px 28px;
	font-weight: var(--mm-fett);
	line-height: var(--mm-zeile-eng);
	color: var(--mm-flaeche);
	background: var(--mm-akzent);
	border: 0;
	border-radius: var(--mm-radius);
	cursor: pointer;
	text-align: center;
	transition: background var(--mm-dauer) var(--mm-kurve);
}

button:hover,
.submit:hover,
input[type="submit"]:hover,
a.mm-knopf:hover {
	background: var(--mm-akzent-dunkel);
	color: var(--mm-flaeche);
}

/* Contao meldet Fehler und Bestaetigungen ueber diese Klassen. */
p.error,
.error {
	color: var(--mm-warnung);
}

p.confirm,
.confirm {
	color: var(--mm-bestaetigung);
}

/* -----------------------------------------------------------------------------
 * Nur fuer Hilfsmittel sichtbar
 * -------------------------------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
