/* ==========================================================================
   Thai Galanga – Theme-Styles
   Gestaltung nach dem bisherigen Jupiter-Layout, ohne Page-Builder.
   ========================================================================== */

:root {
	--color-accent: #c93c3d;
	--color-heading: #404040;
	--color-text: #666;
	--color-link: #2e2e2e;
	--color-gray: #e8e8e8;
	--color-line: #3d4045;
	--color-footer: #3d4045;
	--color-footer-bottom: #43474d;
	--color-footer-text: #b5b8bd;

	--font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Dosis", "Open Sans", system-ui, sans-serif;

	--header-h: 90px;
	--slant: 70px;
	--section-pad: clamp(64px, 8vw, 112px);
	--gutter: 20px;
}

@media (max-width: 959px) {
	:root {
		--header-h: 64px;
		--slant: 36px;
		--gutter: 16px;
	}
}

/* Basis
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	background: #fff;
	color: var(--color-text);
	font: 400 1rem/1.66 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

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

h1,
h2,
h3,
h4 {
	color: var(--color-heading);
	line-height: 1.3;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--color-heading);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
	color: #fff;
}

.text-center {
	text-align: center;
}

/* Footer bleibt auch auf kurzen Seiten unten. */
.site-main {
	flex: 1 0 auto;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 760px;
}

.container--text {
	max-width: 900px;
}

/* Kopfbereich
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid #ececec;
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--header-h);
	padding-inline: 24px;
}

.site-header__brand {
	display: none;
}

.site-header__brand img {
	display: block;
	width: 32px;
	height: 32px;
}

.nav__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list a {
	display: block;
	padding: 0 18px;
	color: #333;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: var(--header-h);
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}

.nav__list a:hover,
.nav__list a[aria-current] {
	color: var(--color-accent);
}

.nav-toggle {
	display: none;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.2s;
}

.social-icon svg {
	width: 60%;
	height: 60%;
}

.social-icon--header {
	position: absolute;
	right: 24px;
	width: 22px;
	height: 22px;
	background: var(--color-accent);
}

.social-icon--header:hover {
	background: var(--color-heading);
	color: #fff;
}

@media (max-width: 959px) {
	.site-header__inner {
		justify-content: space-between;
		padding-inline: var(--gutter);
	}

	.site-header__brand {
		display: block;
	}

	.nav-toggle {
		display: inline-flex;
		order: 3;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: 12px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--color-heading);
		cursor: pointer;
	}

	.nav-toggle svg {
		width: 28px;
		height: 28px;
	}

	.nav-toggle__close,
	.site-header.is-open .nav-toggle__open {
		display: none;
	}

	.site-header.is-open .nav-toggle__close {
		display: inline;
	}

	.social-icon--header {
		position: static;
		margin-left: auto;
	}

	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: #fff;
		border-bottom: 1px solid #ececec;
		box-shadow: 0 8px 16px rgb(0 0 0 / 8%);
	}

	.site-header.is-open .nav {
		display: block;
	}

	.nav__list {
		flex-direction: column;
		padding-block: 8px;
	}

	.nav__list a {
		padding: 0 var(--gutter);
		line-height: 48px;
	}
}

/* Abschnitte
   ========================================================================== */

.section {
	--st: 0px;
	--sb: 0px;
	position: relative;
	padding-block: calc(var(--section-pad) + var(--st)) calc(var(--section-pad) + var(--sb));
}

.section--gray {
	background: var(--color-gray);
}

/* Schräge Kanten wie im Original: links tiefer, rechts höher. */
.section--slant-top {
	--st: var(--slant);
	margin-top: calc(var(--slant) * -1);
}

.section--slant-bottom {
	--sb: var(--slant);
	margin-bottom: calc(var(--slant) * -1);
}

.section--slant-top,
.section--slant-bottom {
	clip-path: polygon(0 var(--st), 100% 0, 100% calc(100% - var(--sb)), 0 100%);
}

.section-title {
	margin-bottom: clamp(40px, 7vw, 96px);
	text-align: center;
}

.section-title h1,
.section-title h2 {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.section-title__line {
	display: block;
	width: 75px;
	height: 2px;
	margin: 28px auto 0;
	background: var(--color-line);
}

/* Startseite: Logo */
.section--hero {
	padding-block: 0 24px;
	text-align: center;
}

/* Der transparente Rand oben im Bild verschwindet wie im Original unter dem Header. */
.hero__title {
	margin: clamp(-48px, -4vw, 0px) 0 0;
	line-height: 0;
}

.hero__image {
	display: inline-block;
	width: min(846px, 92vw);
	height: auto;
}

/* Text + rundes Bild */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.split__media {
	display: flex;
	justify-content: center;
}

.round-image {
	display: block;
	width: min(300px, 70vw);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 4px 18px rgb(0 0 0 / 18%);
}

.round-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.split {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* Fließtext */
.prose {
	font-size: 0.9375rem;
	line-height: 1.7;
}

.prose > :first-child {
	margin-top: 0;
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose p {
	margin: 0 0 1em;
}

.prose h2,
.prose h3 {
	margin: 1.6em 0 0.6em;
	color: var(--color-accent);
	font-size: 1.125rem;
	font-weight: 600;
	text-transform: uppercase;
}

.prose strong {
	color: var(--color-accent);
	font-weight: 600;
}

.prose ul {
	margin: 0 0 1.2em;
	padding-left: 1.25em;
}

.prose li {
	margin-bottom: 0.2em;
}

/* Impressum / Datenschutz */
.legal h2 {
	margin: 2em 0 0.6em;
	color: var(--color-heading);
	font-size: 1.375rem;
	font-weight: 600;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.legal h3 {
	margin: 1.5em 0 0.5em;
	color: var(--color-heading);
	font-size: 1rem;
}

.legal__list {
	list-style: none;
	padding-left: 0;
}

/* Galerie */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__link {
	display: block;
	aspect-ratio: 1.04;
	overflow: hidden;
	background: var(--color-gray);
}

.gallery__link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery__link:hover img,
.gallery__link:focus-visible img {
	transform: scale(1.05);
}

@media (max-width: 700px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Lightbox */
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.lightbox::backdrop {
	background: rgb(20 20 22 / 92%);
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 56px 72px;
}

.lightbox__image {
	max-width: 100%;
	max-height: calc(100dvh - 160px);
	object-fit: contain;
}

.lightbox__caption {
	margin-top: 16px;
	color: #ddd;
	font-size: 0.875rem;
	text-align: center;
}

.lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 12%);
	color: #fff;
	cursor: pointer;
}

.lightbox__btn:hover {
	background: rgb(255 255 255 / 25%);
}

.lightbox__btn svg {
	width: 28px;
	height: 28px;
}

.lightbox__btn--prev {
	top: 50%;
	left: 12px;
	translate: 0 -50%;
}

.lightbox__btn--next {
	top: 50%;
	right: 12px;
	translate: 0 -50%;
}

.lightbox__btn--close {
	top: 12px;
	right: 12px;
}

@media (max-width: 600px) {
	.lightbox__figure {
		padding: 64px 12px;
	}

	.lightbox__btn--prev,
	.lightbox__btn--next {
		top: auto;
		bottom: 12px;
		translate: none;
	}
}

/* Kontakt */
.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	font-size: 0.9375rem;
	text-align: center;
}

.contact h3 {
	margin: 0 0 0.8em;
	color: var(--color-accent);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
}

.contact p {
	margin: 0 0 1em;
}

.contact a {
	text-decoration: none;
}

.contact a:hover {
	text-decoration: underline;
}

/* #8c8c8c: weißes Icon mit ausreichendem Kontrast (WCAG 1.4.11, mind. 3:1). */
.social-icon--round {
	width: 40px;
	height: 40px;
	margin-top: 8px;
	background: #8c8c8c;
}

.social-icon--round:hover {
	background: var(--color-accent);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.contact {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Unterseiten */
.page {
	min-height: 50vh;
}

.prose .page__back {
	margin-top: 2.5em;
	font-weight: 600;
}

.entry + .entry {
	margin-top: 48px;
}

/* Footer
   ========================================================================== */

.site-footer {
	position: relative;
	margin-top: calc(var(--slant) * -1);
	padding-top: var(--slant);
	background: var(--color-footer);
	color: var(--color-footer-text);
	font-size: 0.9375rem;
	clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
	gap: 48px;
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(48px, 6vw, 72px) var(--gutter) 48px;
}

.site-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__logo:hover {
	text-decoration: none;
}

.site-footer__logo img {
	display: block;
	width: 40px;
	height: 40px;
}

.site-footer__brand p {
	max-width: 34ch;
	margin: 0 0 20px;
	line-height: 1.7;
}

.site-footer__title {
	margin: 0 0 18px;
	color: #fff;
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-footer__title::after {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-top: 10px;
	background: var(--color-accent);
}

.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.site-footer__list svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--color-footer-text);
}

.site-footer__nav a {
	color: var(--color-footer-text);
	transition: color 0.2s;
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current] {
	color: #fff;
}

.site-footer__address {
	font-style: normal;
	line-height: 1.8;
}

.site-footer__cta {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 18px;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background-color 0.2s, border-color 0.2s;
}

.site-footer__cta:hover {
	border-color: var(--color-accent);
	background: var(--color-accent);
	text-decoration: none;
}

.social-icon--footer {
	width: 40px;
	height: 40px;
	background: rgb(255 255 255 / 10%);
}

.social-icon--footer:hover {
	background: var(--color-accent);
}

.site-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 10%);
	background: var(--color-footer-bottom);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	max-width: 1200px;
	margin-inline: auto;
	padding: 18px var(--gutter);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal a,
.site-footer__credit a {
	color: var(--color-footer-text);
}

.site-footer__legal a:hover,
.site-footer__legal a[aria-current],
.site-footer__credit a:hover {
	color: #fff;
}

.site-footer__credit {
	margin-left: auto !important;
}

/* Button, der wie ein Link aussieht (z. B. "Cookie-Einstellungen") */
.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

.site-footer__legal .link-button {
	color: var(--color-footer-text);
}

.site-footer__legal .link-button:hover {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 959px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}
}

@media (max-width: 600px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__credit {
		margin-left: 0 !important;
	}
}

/* Buttons & Kontaktseite
   ========================================================================== */

.button {
	display: inline-block;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font: 600 0.875rem/1.2 var(--font-body);
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s;
}

.button:hover {
	background: #a82f30;
	color: #fff;
}

.page__cta {
	margin: 48px 0 0;
	text-align: center;
}

.split--top {
	align-items: start;
}

.contact-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.contact-card {
	padding: 36px 28px;
	border-radius: 8px;
	background: var(--color-gray);
	font-size: 0.9375rem;
	line-height: 1.7;
	text-align: center;
}

.contact-card h2 {
	margin: 0 0 0.8em;
	color: var(--color-accent);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
}

.contact-card p {
	margin: 0 0 1.2em;
}

.contact-card a:not(.button) {
	text-decoration: none;
}

.contact-card a:not(.button):hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.contact-cards {
		grid-template-columns: 1fr;
	}
}

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgb(61 64 69 / 92%);
	color: #fff;
}

.to-top[hidden] {
	display: none;
}

.to-top:hover {
	background: var(--color-accent);
	color: #fff;
}

.to-top svg {
	width: 26px;
	height: 26px;
}

/* Bewegung reduzieren
   ========================================================================== */

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
