/*
Theme Name: Caliston
Theme URI: https://caliston.org/
Author: Caliston
Author URI: https://caliston.org/
Description: Inoffizieller Haushalt-Guide zu The Sims 4 aus Freiburg. Stimmung, Fläche, Schicht. Kein Makler und kein Download.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caliston
Tags: blog, entertainment
*/

/* =========================================================================
   1. Schriften — fonts/, nie von einem fremden Server
   Young Serif ohne Ziffern im unicode-range; Ziffern bleiben in Ubuntu
   ========================================================================= */

@font-face {
	font-family: 'Young Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/young-serif-400-latin.woff2') format('woff2');
	unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Young Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/young-serif-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/ubuntu-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/ubuntu-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/ubuntu-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

/* =========================================================================
   2. Palette und Reset — heller Gips
   ========================================================================= */

:root {
	--gips: #f6eee6;
	--panel: #ece4da;
	--haarlijn: #d8cec2;
	--rand: #6a6054;
	--tinte: #1e1a16;
	--neven: #4c463e;
	--koralle: #8a3a40;
	--salbei: #3a5a48;
	--warn: #a03030;
	--misura: 72rem;
	--kopf-h: 4.5rem;
}

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

html {
	scroll-padding-top: var(--kopf-h);
	background: var(--gips);
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	font-family: Ubuntu, sans-serif;
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--tinte);
	background-color: var(--gips);
	background-image: url('images/textur-gips.jpg');
	background-size: 420px auto;
}

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

a {
	color: var(--koralle);
}

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

:focus-visible {
	outline: 2px solid var(--koralle);
	outline-offset: 2px;
}

h1,
h2,
h3,
.gipsmuur__naam {
	font-family: 'Young Serif', Ubuntu, serif;
	font-weight: 400;
	line-height: 1.2;
	color: var(--tinte);
	overflow-wrap: anywhere;
}

.cijfer,
time,
.verirrt__cijfer {
	font-family: Ubuntu, sans-serif;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.cijfer {
	font-size: 1em;
}

.salta {
	position: absolute;
	left: 0.8rem;
	top: 0.8rem;
	z-index: 80;
	padding: 0.4rem 0.7rem;
	min-height: 36px;
	background: var(--koralle);
	color: var(--gips);
	text-decoration: none;
	font-weight: 600;
	transform: translateY(-140%);
}

.salta:focus {
	transform: none;
}

/* =========================================================================
   3. Kopf — ohne extra CTA
   ========================================================================= */

.gipsmuur {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--gips);
	border-bottom: 1px solid var(--haarlijn);
}

.gipsmuur__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0 1rem;
	min-height: var(--kopf-h);
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.gipsmuur__merk {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	text-decoration: none;
	color: var(--tinte);
	flex: 0 0 auto;
	padding-right: 0.4em;
}

.gipsmuur__naam {
	font-size: 1.35rem;
}

.gipsmuur__i {
	position: relative;
	display: inline-block;
}

.gipsmuur__sprosse {
	position: absolute;
	left: 50%;
	top: 0.04em;
	width: 0.34em;
	height: 0.92em;
	transform: translateX(-50%);
	pointer-events: none;
}

.gipsmuur__klep {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 36px;
	min-width: 36px;
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--rand);
	background: var(--panel);
	color: var(--tinte);
	font-family: Ubuntu, sans-serif;
	font-weight: 600;
	cursor: pointer;
}

.gipsmuur__streepjes {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}

.gipsmuur__streepjes i {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: var(--tinte);
}

.gipsmuur__dicht {
	display: none;
}

.gipsmuur--open .gipsmuur__open {
	display: none;
}

.gipsmuur--open .gipsmuur__dicht {
	display: inline;
}

.gipsmuur__nav {
	display: none;
}

.gipsmuur--open .gipsmuur__nav {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--panel);
	border-bottom: 1px solid var(--rand);
	padding: 0.6rem 1rem 1rem;
}

.hausliste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.hausliste a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.25rem 0.4rem;
	text-decoration: none;
	color: var(--tinte);
	font-weight: 600;
}

.stumm:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 30;
	border: 0;
	padding: 0;
	background: rgba(30, 26, 22, 0.35);
	cursor: pointer;
}

@media (min-width: 62em) {
	.gipsmuur__klep,
	.stumm {
		display: none !important;
	}

	.gipsmuur__nav {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		padding: 0;
		margin-left: auto;
	}

	.hausliste {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-end;
	}
}

/* =========================================================================
   4. Knöpfe
   ========================================================================= */

.hausbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 36px;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--koralle);
	background: var(--koralle);
	color: var(--gips);
	font-family: Ubuntu, sans-serif;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.hausbtn:hover,
.hausbtn:focus-visible {
	background: var(--salbei);
	border-color: var(--salbei);
	color: var(--gips);
}

.hausbtn--stil {
	background: transparent;
	color: var(--tinte);
	border-color: var(--rand);
}

.hausbtn--stil:hover,
.hausbtn--stil:focus-visible {
	background: var(--panel);
	color: var(--tinte);
	border-color: var(--koralle);
}

.hausbtn[aria-pressed="true"] {
	background: var(--salbei);
	border-color: var(--salbei);
	color: var(--gips);
}

.rijbtn {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

/* =========================================================================
   5. Abschnitte, Hero, Duo, Gitter
   ========================================================================= */

.haushalt {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.4rem 1rem;
	overflow-wrap: anywhere;
}

.haushalt--panel {
	background: var(--panel);
	border-top: 1px solid var(--haarlijn);
	border-bottom: 1px solid var(--haarlijn);
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.haushalt--panel > .kruin {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0 1rem;
}

.haushalt__kicker {
	margin: 0 0 0.35rem;
	color: var(--neven);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
}

.haushalt__kicker--spaet {
	margin-top: 2rem;
}

.haushalt__melding {
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--salbei);
	background: var(--panel);
}

.haushalt__melding--warn {
	border-color: var(--warn);
	color: var(--gips);
	background: var(--warn);
}

.gipshero {
	position: relative;
	min-height: 22rem;
	display: grid;
	align-items: end;
	background: var(--panel) center / cover no-repeat;
}

.gipshero__lastra {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 3.5rem 1rem 2.4rem;
	background: linear-gradient(180deg, rgba(246, 238, 230, 0.42) 0%, rgba(246, 238, 230, 0.82) 48%, rgba(246, 238, 230, 0.96) 100%);
	width: 100%;
}

.gipsduo {
	display: grid;
	gap: 1.4rem;
}

.gipsduo img {
	width: 100%;
	border: 1px solid var(--rand);
}

.hausgitter {
	display: grid;
	gap: 1rem;
}

.hauskarte {
	background: var(--panel);
	border: 1px solid var(--rand);
}

.hauskarte img {
	width: 100%;
}

.hauskarte__corpo {
	display: grid;
	gap: 0.6rem;
	padding: 1rem 1rem 1.2rem;
}

.hausleute {
	display: grid;
	gap: 1.2rem;
}

.hausleute article {
	display: grid;
	gap: 0.8rem;
	background: var(--panel);
	border: 1px solid var(--rand);
	padding: 0.8rem;
}

.hausleute img {
	width: 100%;
	max-width: 18rem;
	border: 1px solid var(--rand);
}

.bedarfsliste {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bedarf;
	display: grid;
	gap: 0.8rem;
}

.bedarfsliste li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 0.6rem 1rem;
	padding: 0.8rem;
	background: var(--panel);
	border: 1px solid var(--rand);
}

.bedarfsliste li::before {
	counter-increment: bedarf;
	content: counter(bedarf);
	font-family: Ubuntu, sans-serif;
	font-weight: 600;
	font-size: 1.6rem;
	color: var(--koralle);
}

.bedarfsliste h3 {
	margin: 0;
	grid-column: 2;
}

.bedarfsliste p {
	margin: 0;
	grid-column: 2;
}

.zahlreihe {
	display: grid;
	gap: 1rem;
}

.zahlreihe article {
	background: var(--panel);
	border: 1px solid var(--rand);
	padding: 1rem;
}

.zahlreihe__getal {
	margin: 0;
	font-size: clamp(2.4rem, 8vw, 3.6rem);
	color: var(--salbei);
	line-height: 1;
}

.stimmungboek {
	display: grid;
	gap: 1rem;
}

.stimmungboek article {
	display: grid;
	gap: 0.35rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--haarlijn);
	min-width: 0;
}

.stimmungboek__datum {
	margin: 0;
	color: var(--koralle);
	font-size: 1.15rem;
}

.stimmungboek h2 a,
.stimmungboek h3 a {
	color: var(--tinte);
	text-decoration: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-height: 36px;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.faq details {
	border: 1px solid var(--rand);
	background: var(--panel);
	padding: 0.6rem 0.8rem;
	margin-bottom: 0.5rem;
}

.faq details:not([open]) > *:not(summary) {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
}

.faq summary {
	cursor: pointer;
	font-weight: 600;
	min-height: 36px;
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	background: var(--panel);
}

.gipscta {
	position: relative;
	min-height: 16rem;
	display: grid;
	align-items: end;
	background: var(--panel) center / cover no-repeat;
}

.gipscta__lastra {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.4rem 1rem;
	background: linear-gradient(180deg, rgba(246, 238, 230, 0.35) 0%, rgba(246, 238, 230, 0.92) 100%);
	width: 100%;
}

.gipsbanner {
	min-height: 10rem;
	background: var(--panel) center / cover no-repeat;
}

.gipsbanner__lastra {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 2.2rem 1rem;
	background: linear-gradient(180deg, rgba(246, 238, 230, 0.5) 0%, rgba(246, 238, 230, 0.9) 100%);
}

.haussticker {
	display: grid;
	gap: 1rem;
}

.haussticker article {
	background: var(--panel);
	border: 1px solid var(--rand);
	padding: 1rem 1.1rem;
	box-shadow: 0.35rem 0.35rem 0 var(--haarlijn);
}

.haussticker__meta {
	margin: 0.6rem 0 0;
	color: var(--neven);
	font-weight: 600;
}

.kontaktduo {
	display: grid;
	gap: 1.4rem;
}

.proza h2 {
	margin-top: 1.6rem;
}

/* =========================================================================
   6. Werkzeuge
   ========================================================================= */

.stimmung__chiprij,
.stimmung__scelte,
.zimmer__scelte,
.fuge__scelte,
.lotform__chiprij {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.7rem 0;
}

.stimmung__chip,
.lotform__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 36px;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--rand);
	background: var(--gips);
}

.stimmung__goot,
.zimmer__goot,
.fuge__goot,
.lotform__goot {
	display: flex;
	align-items: flex-end;
	gap: 0.4rem;
	height: 7rem;
	margin: 0.8rem 0;
	padding: 0.4rem;
	background: var(--gips);
	border: 1px solid var(--haarlijn);
}

.stimmung__staaf,
.zimmer__staaf,
.fuge__staaf,
.lotform__staaf {
	display: block;
	flex: 1;
	min-height: 8px;
	background: var(--koralle);
}

.zimmer__staaf {
	background: var(--salbei);
}

.fuge__staaf:nth-child(odd) {
	background: var(--koralle);
}

.fuge__staaf:nth-child(even) {
	background: var(--salbei);
}

.lotform__staaf:nth-child(2n) {
	background: var(--salbei);
}

.stimmung__stand,
.zimmer__stand,
.fuge__stand,
.lotform__stand {
	font-weight: 600;
}

/* =========================================================================
   7. Formular, Tabelle
   ========================================================================= */

.gipsform {
	display: grid;
	gap: 0.7rem;
	max-width: 34rem;
}

.gipsform label {
	display: flex;
	align-items: center;
	font-weight: 600;
	min-height: 36px;
}

.gipsform input,
.gipsform textarea,
.gipsform select {
	width: 100%;
	min-height: 36px;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--rand);
	background: var(--gips);
	color: var(--tinte);
	font-family: Ubuntu, sans-serif;
	font-size: 1rem;
}

.gipsform textarea {
	min-height: 8rem;
}

.koeder {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tafelraam {
	overflow-x: auto;
}

.tafelraam table {
	width: 100%;
	border-collapse: collapse;
}

.tafelraam th,
.tafelraam td {
	border: 1px solid var(--rand);
	padding: 0.5rem 0.6rem;
	text-align: left;
}

.tafelraam th {
	background: var(--panel);
}

.koekwis {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

/* =========================================================================
   8. Fuge, Cookie, Fuß, 404
   ========================================================================= */

.gipsfuge {
	color: var(--rand);
	line-height: 0;
	overflow: hidden;
	background: var(--panel);
}

.gipsfuge svg {
	display: block;
	width: 100%;
	height: 0.75rem;
}

html:not(.js) .koekrand {
	display: none !important;
}

.koekrand {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	background: var(--panel);
	border-top: 1px solid var(--rand);
	color: var(--tinte);
}

.koekrand__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	padding: 0.85rem 1rem 1rem;
	display: grid;
	gap: 0.75rem;
}

.koekrand p {
	margin: 0;
}

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

.koekrand__knoppen {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.koekrand__knoppen .hausbtn {
	width: 100%;
	min-height: 48px;
	white-space: nowrap;
}

.gipsvoet {
	background: var(--panel);
	border-top: 1px solid var(--haarlijn);
	padding: 2rem 1rem 6.5rem;
}

.gipsvoet__binnen {
	max-width: var(--misura);
	margin: 0 auto;
	display: grid;
	gap: 1.2rem;
}

.gipsvoet__lijst {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.4rem;
}

.gipsvoet__lijst a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.25rem 0.45rem;
	text-decoration: none;
	color: var(--tinte);
	font-weight: 600;
}

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

.gipsvoet__verklaring {
	font-size: 0.92rem;
	color: var(--neven);
}

.verirrt {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 1rem;
	max-width: var(--misura);
	margin: 0 auto;
}

.verirrt p:not(.verirrt__cijfer) {
	max-width: 36rem;
}

.verirrt__cijfer:not(.haushalt__kicker) {
	font-weight: 600;
	font-size: clamp(4rem, 14vw, 8rem);
	color: var(--koralle);
	line-height: 0.9;
	margin: 0 0 0.6rem;
}

.js .opdaagt {
	opacity: 0;
	transform: translateY(12px);
}

.js .opdaagt.opdaagt--op {
	opacity: 1;
	transform: none;
}

/* =========================================================================
   9. Breiten 360–1440
   ========================================================================= */

@media (min-width: 48em) {
	.gipsduo {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.hausgitter {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.hausleute {
		grid-template-columns: 1fr 1fr;
	}

	.hausleute article {
		grid-template-columns: 10rem 1fr;
		align-items: start;
	}

	.zahlreihe {
		grid-template-columns: repeat(4, 1fr);
	}

	.gipsvoet__binnen {
		grid-template-columns: 1.1fr 1fr 1.2fr;
	}

	.stimmungboek article {
		grid-template-columns: 11rem 1fr;
		gap: 1rem;
		align-items: start;
	}

	.kontaktduo {
		grid-template-columns: 1fr 1.1fr;
	}

	.kontaktduo--omgekeerd {
		grid-template-columns: 1.1fr 1fr;
	}

	.kontaktduo--omgekeerd .gipsform {
		order: -1;
	}

	.bedarfsliste {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 47.99em) {
	.koekrand__knoppen {
		grid-template-columns: 1fr;
	}
}
