/*
 * Marke dotset.design – Farben und Grundgestaltung für alle Seiten (mobile first, Desktop ab 768px).
 * Farben aus Jonahs Logo-Konzept:
 *   Creme #F2E8D6 (Hintergrund) · Dunkelpetrol #142C34 (Grund, Schrift)
 *   Terrakotta #C55A45 (Akzent) · Mintgrau #8FA58A (zweiter Akzent) · Ink #0E171B (Text auf Hell)
 */

:root:root {
	--dotset-creme: #F2E8D6;
	--dotset-creme-hell: #F8F2E7;
	--dotset-creme-dunkel: #E3D6BF;
	--dotset-petrol: #142C34;
	--dotset-petrol-hell: #1E3F4A;
	--dotset-terrakotta: #C55A45;
	--dotset-terrakotta-dunkel: #A84935;
	--dotset-mint: #8FA58A;
	--dotset-ink: #0E171B;

	/* GeneratePress-Farbvariablen auf die Marke umstellen */
	--contrast: var(--dotset-ink);
	--contrast-2: var(--dotset-petrol);
	--contrast-3: #5B6A66;
	--base: var(--dotset-creme-dunkel);
	--base-2: var(--dotset-creme);
	--base-3: var(--dotset-creme-hell);
	--accent: var(--dotset-terrakotta);
}

/*
 * Schrift wie im Logo-Konzept: Helvetica.
 * Mac/iPhone haben „Helvetica Neue“ eingebaut. Windows/Android nicht – dort würde Arial einspringen.
 * Darum liegt „TeX Gyre Heros“ (freie Helvetica-Nachbildung, GUST Font License, fonts/) als Ersatz bei.
 * Der Browser lädt sie nur, wenn „Helvetica Neue“ fehlt.
 */
@font-face {
	font-family: "dotset Heros";
	src: local("TeX Gyre Heros"), local("TeXGyreHeros-Regular"), url("../fonts/texgyreheros-regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "dotset Heros";
	src: local("TeX Gyre Heros Bold"), local("TeXGyreHeros-Bold"), url("../fonts/texgyreheros-bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "dotset Heros";
	src: local("TeX Gyre Heros Italic"), local("TeXGyreHeros-Italic"), url("../fonts/texgyreheros-italic.otf") format("opentype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "dotset Heros";
	src: local("TeX Gyre Heros Bold Italic"), local("TeXGyreHeros-BoldItalic"), url("../fonts/texgyreheros-bolditalic.otf") format("opentype");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

html body,
html button,
html input,
html select,
html textarea {
	font-family: "Helvetica Neue", "dotset Heros", Helvetica, Arial, sans-serif;
}

body {
	background-color: var(--dotset-creme);
	color: var(--dotset-ink);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--dotset-petrol);
	font-weight: 700;
	letter-spacing: -0.01em;
}

a {
	color: var(--dotset-terrakotta);
}

a:hover,
a:focus {
	color: var(--dotset-petrol);
}

::selection {
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
}

/* ---------- Kopfzeile ---------- */
.site-header {
	background-color: var(--dotset-petrol);
}

.site-header .inside-header {
	padding: 14px 16px; /* Handy: Logo nah an den Rand, damit es nicht mit dem Menü-Knopf kollidiert */
}

.site-logo .header-image {
	width: auto;
	height: 26px;
	max-width: calc(100vw - 7rem); /* lässt immer Platz für den Menü-Knopf rechts */
	object-fit: contain;
	object-position: left center;
}

.main-navigation,
.main-navigation ul ul {
	background-color: var(--dotset-petrol);
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--dotset-creme);
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a {
	color: var(--dotset-terrakotta);
	background: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--dotset-mint);
	background: transparent;
}

.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus {
	color: var(--dotset-terrakotta);
	background: transparent;
}

/* Dropdown (z. B. Kategorien unter „Shop") */
@media (min-width: 769px) {
	.main-navigation ul ul {
		width: 220px;
		padding: 0.5rem;
		border-radius: 0 0 1rem 1rem;
		box-shadow: 0 22px 40px -18px rgba(14, 23, 27, 0.6);
	}

	.main-navigation .main-nav ul ul li a {
		padding: 0.6rem 0.9rem;
		border-radius: 0.6rem;
		font-size: 0.95rem;
	}

	.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a,
	.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a {
		background: var(--dotset-petrol-hell);
		color: var(--dotset-terrakotta);
	}

	.main-navigation .main-nav ul ul li:first-child a {
		font-weight: 700;
	}
}

/* Warenkorb + Mein Konto als Symbole */
.menue-symbol {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
}

.menue-symbol svg {
	display: block;
}

.warenkorb-zahl {
	position: absolute;
	top: -0.45rem;
	right: -0.6rem;
	display: grid;
	place-items: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
}

.warenkorb-zahl.ist-leer {
	display: none;
}

.menue-symbol__text {
	margin-left: 0.95rem;
}

@media (min-width: 769px) {
	/* Am Computer nur das Symbol, der Text bleibt für Screenreader */
	.menu-item-symbol .menue-symbol__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.main-navigation .main-nav ul li.menu-item-symbol > a {
		padding-left: 12px;
		padding-right: 12px;
	}

	.main-navigation .main-nav ul li.menu-item-symbol > a:hover .menue-symbol {
		transform: translateY(-2px);
	}

	.menue-symbol {
		transition: transform 0.2s;
	}
}

/* „☰ Mehr" ganz rechts (includes/menue-mehr.php): Kontakt + Rechtliches */
.main-navigation .main-nav ul li.menu-item-mehr .menu-item-mehr-cookies {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--dotset-petrol-hell);
}

@media (min-width: 769px) {
	/* Dropdown nach links öffnen, damit es nicht aus dem Bildschirm ragt */
	.main-navigation .main-nav ul li.menu-item-mehr > ul {
		left: auto;
		right: 0;
		width: 240px;
	}

	/* kein Extra-Pfeil neben dem Symbol */
	.main-navigation .main-nav ul li.menu-item-mehr > a .dropdown-menu-toggle {
		display: none;
	}

	.main-navigation .main-nav ul li.menu-item-mehr > ul li a {
		font-weight: 700;
	}

	.main-navigation .main-nav ul li.menu-item-mehr .menu-item-mehr-cookies a {
		font-weight: 400;
	}
}

/* Handy: aufgeklapptes Menü */
.main-navigation.toggled .main-nav > ul {
	border-top: 1px solid var(--dotset-petrol-hell);
}

/* ---------- Inhalt ---------- */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header {
	background-color: var(--dotset-creme-hell);
}

.entry-title,
.page-title {
	color: var(--dotset-petrol);
}

/* ---------- Knöpfe (WordPress + WooCommerce) ---------- */
button,
html input[type="button"],
html input[type="reset"],
html input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce-page .button {
	background-color: var(--dotset-terrakotta);
	color: var(--dotset-creme);
	border: 0;
	border-radius: 999px;
	font-weight: 700;
}

button:hover,
html input[type="submit"]:hover,
a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce-page .button:hover,
button:focus,
a.button:focus {
	background-color: var(--dotset-petrol);
	color: var(--dotset-creme);
}

/* Der Menü-Knopf in der Kopfzeile ist kein normaler Knopf */
.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover {
	background-color: transparent;
	border-radius: 0;
}

/* Formularfelder */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
	background-color: #fff;
	border-color: var(--dotset-creme-dunkel);
	color: var(--dotset-ink);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--dotset-petrol);
	outline: 2px solid var(--dotset-mint);
	outline-offset: 1px;
}

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--dotset-petrol);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--dotset-terrakotta);
	font-weight: 700;
}

.woocommerce span.onsale {
	background-color: var(--dotset-terrakotta);
	color: var(--dotset-creme);
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--dotset-mint);
	background-color: var(--dotset-creme-hell);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--dotset-mint);
}

/* ---------- Fußbereich (aufgeräumt) ---------- */
.site-info {
	background-color: var(--dotset-petrol);
	color: var(--dotset-creme);
}

.site-info .inside-site-info {
	display: grid;
	justify-items: center;
	gap: 1.4rem;
	padding: 2.75rem 1.25rem 1.5rem;
	text-align: center;
}

.fuss-marke img {
	display: block;
	width: auto;
	height: 24px;
}

.fussbereich-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fussbereich-navigation li {
	display: flex;
	align-items: center;
}

/* Trennpunkte zwischen den Links */
.fussbereich-navigation li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin: 0 0.8rem;
	border-radius: 50%;
	background: var(--dotset-terrakotta);
}

.fussbereich-navigation a,
.site-info a {
	color: rgba(242, 232, 214, 0.8);
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.15s;
}

.fussbereich-navigation a:hover,
.fussbereich-navigation a:focus,
.site-info a:hover {
	color: var(--dotset-creme);
}

/* Widerrufsbutton „Vertrag widerrufen" (includes/rechtliches.php): umrandeter Knopf */
.site-info .fuss-widerruf {
	margin: 0;
}

.site-info .fuss-widerruf a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.05rem;
	border: 1.5px solid var(--dotset-terrakotta);
	border-radius: 999px;
	color: var(--dotset-creme);
	font-size: 0.88rem;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.site-info .fuss-widerruf a::before {
	content: "↩";
	color: var(--dotset-terrakotta);
	transition: color 0.2s;
}

.site-info .fuss-widerruf a:hover,
.site-info .fuss-widerruf a:focus-visible {
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
}

.site-info .fuss-widerruf a:hover::before {
	color: var(--dotset-creme);
}

.site-info .copyright-bar {
	width: 100%;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(242, 232, 214, 0.1);
	font-size: 0.78rem;
	color: rgba(242, 232, 214, 0.5);
}

/* Social-Icons (dotset.design) */
.social-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.social-icons--namen a {
	padding: 0 1rem 0 0.8rem;
}

.social-icons a:hover,
.social-icons a:focus-visible {
	transform: translateY(-2px);
}

/* auf dunklem Grund */
.social-icons--hell a,
.site-info .social-icons--hell a {
	border: 1.5px solid rgba(242, 232, 214, 0.35);
	color: var(--dotset-creme);
}

.social-icons--hell a:hover,
.site-info .social-icons--hell a:hover {
	border-color: var(--dotset-terrakotta);
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
}

/* auf hellem Grund */
.social-icons--dunkel a {
	background: var(--dotset-petrol);
	color: var(--dotset-creme);
}

.social-icons--dunkel a:hover {
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
}

/* Computer: Zeile 1 = Marke + Social … Widerrufsknopf rechts,
   Zeile 2 = Rechts-Links links … © rechts (mit feiner Linie darüber) */
@media (min-width: 900px) {
	.site-info .inside-site-info {
		grid-template-columns: auto auto 1fr auto;
		grid-template-areas:
			"marke social . widerruf"
			"links links links kopie";
		justify-items: start;
		align-items: center;
		gap: 1.5rem 2rem;
		padding: 2.5rem 2rem 1.5rem;
		text-align: left;
	}

	.site-info .fuss-marke { grid-area: marke; }
	.site-info .social-icons { grid-area: social; }
	.site-info .fuss-widerruf { grid-area: widerruf; justify-self: end; }

	.site-info .fussbereich-navigation {
		grid-area: links;
		width: 100%;
		padding-top: 1.25rem;
		border-top: 1px solid rgba(242, 232, 214, 0.1);
	}

	.fussbereich-navigation ul {
		justify-content: flex-start;
	}

	.site-info .copyright-bar {
		grid-area: kopie;
		align-self: stretch;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: auto;
		padding-top: 1.25rem;
		padding-right: 4.5rem; /* Platz für den Nach-oben-Knopf */
		white-space: nowrap;
	}
}

/* Mittlere Breiten (kleiner Laptop, iPad quer): Links bekommen die ganze Zeile, © darunter */
@media (min-width: 900px) and (max-width: 1199px) {
	.site-info .inside-site-info {
		grid-template-areas:
			"marke social . widerruf"
			"links links links links"
			"kopie kopie kopie kopie";
		row-gap: 1rem;
	}

	.site-info .copyright-bar {
		justify-content: flex-start;
		padding-top: 0;
		border-top: 0;
	}
}

/* Handy/Tablet: unten Platz lassen, damit der Nach-oben-Knopf nichts verdeckt.
   Links umbrechen hier – statt Trennpunkten (stünden sonst am Zeilenanfang) einfach Abstand. */
@media (max-width: 899px) {
	.site-info .inside-site-info {
		padding-bottom: 5rem;
	}

	.fussbereich-navigation ul {
		gap: 0.55rem 1.3rem;
		max-width: 34rem;
	}

	.fussbereich-navigation li + li::before {
		display: none;
	}
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
	.site-header .inside-header {
		padding: 18px 30px;
	}

	.site-logo .header-image {
		height: 44px;
		max-width: none;
	}
}

/* ---------- „Nach oben"-Knopf (includes/marke.php, js/nach-oben.js) ---------- */
.nach-oben {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 900;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--dotset-petrol);
	color: var(--dotset-creme);
	box-shadow: 4px 4px 0 var(--dotset-terrakotta);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s, box-shadow 0.2s;
}

.nach-oben.ist-sichtbar {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nach-oben:hover,
.nach-oben:focus-visible {
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
	box-shadow: 4px 4px 0 var(--dotset-petrol);
	transform: translateY(-3px);
}

.nach-oben:focus-visible {
	outline: 3px solid var(--dotset-mint);
	outline-offset: 3px;
}

/* Handy-Warenkorb: dort klebt unten „Weiter zur Kasse" → Knopf darüber */
@media (max-width: 767px) {
	.woocommerce-cart .nach-oben {
		bottom: 5.5rem;
	}
}

@media (min-width: 768px) {
	.nach-oben {
		right: 1.75rem;
		bottom: 1.75rem;
		width: 3.4rem;
		height: 3.4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nach-oben {
		transition: opacity 0.2s, visibility 0.2s;
		transform: none;
	}
}

/* ---------- Sprachumschalter DE | EN (includes/sprache.php) ---------- */
.sprache {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem;
	border-radius: 999px;
	border: 1.5px solid currentColor;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
}

.sprache a {
	display: block;
	padding: 0.32rem 0.55rem;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
}

.sprache a:hover {
	opacity: 1;
}

.sprache a.ist-aktiv {
	background: var(--dotset-terrakotta);
	color: var(--dotset-creme);
	opacity: 1;
}

.sprache--hell {
	color: var(--dotset-creme);
	border-color: rgba(242, 232, 214, 0.35);
}

/* Im Hauptmenü: kein normaler Menü-Link-Abstand */
.main-navigation .main-nav ul li.menu-item-sprache {
	display: flex;
	align-items: center;
	padding: 0 0.5rem;
}

.main-navigation .main-nav ul li.menu-item-sprache > nav a {
	padding: 0.32rem 0.55rem;
	line-height: 1;
}

/* Rechtsseiten auf Englisch: Hinweis, dass Deutsch verbindlich ist */
.recht-uebersetzung {
	margin: 0 0 1.5rem;
	padding: 0.8rem 1rem;
	border-left: 4px solid var(--dotset-terrakotta);
	border-radius: 0.6rem;
	background: var(--dotset-creme);
	font-size: 0.92rem;
}
