/* ==========================================================================
   anemone – site template for anemonekranz.de
   Plain CSS on top of Joomla's Bootstrap 5 (loaded as dependency).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
	font-family: "Kalam";
	src: url("../fonts/kalam-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Kalam";
	src: url("../fonts/kalam-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Give You Glory";
	src: url("../fonts/give-you-glory-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--blush: #f7dad9;        /* header band, brand pink */
	--blush-deep: #efc4c3;   /* hairlines on blush */
	--cream: #fbf7f0;        /* page */
	--linen: #f0ece3;        /* footer */
	--ink: #4a3c3a;          /* body text, warm brown instead of grey */
	--cocoa: #5e4744;        /* navigation text on blush */
	--rose: #a3405a;         /* links, active state – readable "anemone" pink */
	--rose-dark: #82304a;
	--mauve: #85706f;        /* buttons (from the old #cfb6b6/#9e8c8b, darkened for contrast) */
	--mauve-dark: #6b5958;
	--leaf: #6c8a4f;         /* wreath green, used sparingly */
	--muted: #6b5d5b;

	--font-body: "Kalam", "Comic Neue", "Segoe Print", cursive;
	--font-display: "Give You Glory", "Kalam", cursive;

	--measure: 46rem;        /* reading column */
	--wide: 72rem;           /* header, blog grid */
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 0.75rem;

	--squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C18 2 30 7 46 4.5S78 1.5 92 4.8 112 5.5 118 3' fill='none' stroke='%23a3405a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");

	/* Bootstrap 5 hooks */
	--bs-body-font-family: var(--font-body);
	--bs-body-font-size: 1.125rem;
	--bs-body-line-height: 1.65;
	--bs-body-color: var(--ink);
	--bs-body-color-rgb: 74, 60, 58;
	--bs-body-bg: var(--cream);
	--bs-link-color: var(--rose);
	--bs-link-color-rgb: 163, 64, 90;
	--bs-link-hover-color: var(--rose-dark);
	--bs-link-hover-color-rgb: 130, 48, 74;
	--bs-heading-color: var(--ink);
	--bs-border-color: #e6d3d1;
	--bs-border-radius: var(--radius);
	--bs-focus-ring-color: rgba(163, 64, 90, 0.3);
}

/* ---------- Base ---------- */
html {
	scroll-padding-top: 6rem; /* anchors clear the sticky header */
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--cream);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--ink);
	margin-block: 1.6em 0.5em;
}
h1, .h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem); }
h2, .h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); }
h4, .h4 { font-size: 1.5rem; }

a {
	color: var(--rose);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover { color: var(--rose-dark); text-decoration-thickness: 2px; }

h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--rose); }

strong, b { font-weight: 700; }

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

blockquote {
	margin: 1.5rem 0;
	font-size: 1.1em;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 2000;
	padding: 0.6rem 1rem;
	background: #fff;
	color: var(--rose);
	border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--blush);
	border-bottom: 1px solid var(--blush-deep);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: var(--wide);
	min-height: 4rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand__badge {
	display: grid;
	place-items: center;
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 4px var(--blush);
	transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, transform 0.25s ease;
}
.brand__badge img {
	width: 92%;
	height: auto;
}


/* Desktop: the wreath hangs over the edge of the band like a seal,
   and tucks itself in once the page is scrolled. */
@media (min-width: 70em) {
	.site-header__inner { min-height: 5rem; gap: 2rem; }

	.brand__badge {
		width: 7.25rem;
		height: 7.25rem;
		margin-block: 0.75rem -3rem;
		box-shadow: 0 0 0 6px var(--blush), 0 10px 22px -12px rgba(94, 71, 68, 0.45);
	}

	.site-header.is-scrolled .brand__badge {
		width: 4rem;
		height: 4rem;
		margin-block: 0.5rem;
		box-shadow: 0 0 0 4px var(--blush);
	}
}

/* ---------- Main navigation ---------- */
.site-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a,
.site-nav .mod-menu__separator,
.site-nav .mod-menu__heading {
	position: relative;
	display: block;
	color: var(--cocoa);
	font-size: 1.2rem;
	line-height: 1.3;
	text-decoration: none;
}

.site-nav li.current > a,
.site-nav li.active > a,
.site-nav a[aria-current="page"],
.site-nav a:hover {
	color: var(--rose);
}

/* hand-drawn underline marks the current page */
.site-nav a::after {
	content: "";
	position: absolute;
	left: -0.15em;
	right: -0.15em;
	bottom: 0.15rem;
	height: 0.4rem;
	background: var(--squiggle) center / 100% 100% no-repeat;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.site-nav a:hover::after { opacity: 0.45; }
.site-nav li.current > a::after,
.site-nav li.active > a::after,
.site-nav a[aria-current="page"]::after { opacity: 1; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex: none;
	margin-left: auto;
	padding: 0.5rem 0.9rem;
	min-height: 2.75rem;
	border: 1px solid var(--blush-deep);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--cocoa);
	font: inherit;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}
.nav-toggle:hover { background: #fff; }

.nav-toggle__icon,
.nav-toggle__icon span,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	display: block;
	width: 1.15rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__icon {
	position: relative;
	height: 0.85rem;
	background: none;
}
.nav-toggle__icon span { position: absolute; top: 50%; margin-top: -1px; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { bottom: 0; }

[data-open] .nav-toggle__icon span { opacity: 0; }
[data-open] .nav-toggle__icon::before { transform: translateY(0.36rem) rotate(45deg); }
[data-open] .nav-toggle__icon::after { transform: translateY(-0.36rem) rotate(-45deg); }

/* Mobile: drop-down panel with big tap targets */
@media (max-width: 69.999em) {
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 4rem);
		overflow-y: auto;
		background: var(--cream);
		border-bottom: 1px solid var(--blush-deep);
		box-shadow: 0 18px 30px -20px rgba(94, 71, 68, 0.5);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}
	[data-open] .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.site-nav ul {
		flex-direction: column;
		padding: 0.5rem var(--gutter) 1rem;
	}
	.site-nav li + li { border-top: 1px solid #f0dedd; }
	.site-nav a {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		min-height: 3.5rem;
		font-size: 1.4rem;
	}
	/* on mobile the current page gets a small anemone dot instead of the squiggle */
	.site-nav a::after { display: none; }
	.site-nav a::before {
		content: "";
		flex: none;
		width: 0.55rem;
		height: 0.55rem;
		border-radius: 50%;
		background: transparent;
	}
	.site-nav li.current > a::before,
	.site-nav li.active > a::before,
	.site-nav a[aria-current="page"]::before {
		background: var(--rose);
		box-shadow: 0 0 0 3px var(--blush);
	}
}

@media (min-width: 70em) {
	.nav-toggle { display: none; }

	.site-nav { margin-left: auto; }
	.site-nav ul {
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.25rem 1.6rem;
	}
	.site-nav a { padding-block: 0.6rem; }
}

/* ---------- Main ---------- */
.site-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 2rem var(--gutter) 4rem;
}
.site-main:focus { outline: none; }

@media (min-width: 70em) {
	.site-main { padding-top: 4.5rem; } /* room for the hanging wreath */
}

/* wider canvas for blog/list views and the booking form */
.view-category .site-main,
.view-featured .site-main,
.com_tkbooking .site-main {
	max-width: calc(var(--wide) + 2 * var(--gutter));
}

.content > :first-child > :first-child,
.page-header > :first-child { margin-top: 0; }

.page-header,
.item-page > h1,
.item-page > h2 {
	margin-bottom: 1.5rem;
	border: 0;
	text-align: center;
}
.page-header h1,
.page-header h2 { margin: 0; }

.article-info { display: none; } /* no author/date clutter on a small business site */

.module-area { margin-top: 3rem; }
.module-area > * + * { margin-top: 2rem; }

.breadcrumbs-wrap { margin-bottom: 1rem; font-size: 0.95rem; }
.breadcrumbs-wrap .breadcrumb { margin: 0; }

/* ---------- Blog (Kurse) ---------- */
.blog-items[class*="columns-"],
.blog-items[class*="masonry-"] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 2.5rem 4rem;
}

.blog-item {
	display: flex;
	flex-direction: column;
	padding-top: 1.75rem;
	border-top: 1px solid var(--blush-deep);
}
.blog-item .page-header,
.blog-item h2 {
	margin: 0 0 0.75rem;
	text-align: left;
}
.blog-item .readmore { margin-top: auto; padding-top: 1rem; }

.category-desc { max-width: var(--measure); margin: 0 auto 2.5rem; }
.category-desc > :first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
	--bs-btn-font-family: var(--font-body);
	--bs-btn-font-size: 1.05rem;
	--bs-btn-padding-x: 1.15rem;
	--bs-btn-padding-y: 0.45rem;
	--bs-btn-border-radius: 999px;
}

.btn-primary {
	--bs-btn-bg: var(--mauve);
	--bs-btn-border-color: var(--mauve);
	--bs-btn-hover-bg: var(--mauve-dark);
	--bs-btn-hover-border-color: var(--mauve-dark);
	--bs-btn-active-bg: var(--mauve-dark);
	--bs-btn-active-border-color: var(--mauve-dark);
	--bs-btn-disabled-bg: var(--mauve);
	--bs-btn-disabled-border-color: var(--mauve);
	--bs-btn-focus-shadow-rgb: 163, 64, 90;
}

.btn-secondary,
.readmore .btn {
	--bs-btn-color: var(--cocoa);
	--bs-btn-bg: transparent;
	--bs-btn-border-color: var(--blush-deep);
	--bs-btn-hover-color: var(--rose-dark);
	--bs-btn-hover-bg: var(--blush);
	--bs-btn-hover-border-color: var(--blush);
	--bs-btn-active-color: var(--rose-dark);
	--bs-btn-active-bg: var(--blush);
	--bs-btn-active-border-color: var(--blush);
}

/* ---------- Forms (booking, contact, voucher) ---------- */
.form-control,
.form-select {
	background-color: #fff;
	border-color: #e2cdcb;
	border-radius: 0.5rem;
	font-family: var(--font-body);
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
	border-color: var(--rose);
	box-shadow: 0 0 0 0.2rem rgba(163, 64, 90, 0.2);
}
.form-control::placeholder { color: #a0918f; }
.form-check-input:checked {
	background-color: var(--rose);
	border-color: var(--rose);
}
.form-label,
.control-label label { font-weight: 700; }

/* Convert Forms (voucher order form) – match the Bootstrap fields above */
.convertforms .cf-control-group { margin-bottom: 1rem; }
.convertforms .cf-label { font-weight: 700; }
.convertforms .cf-required-label { color: var(--rose); }
.convertforms .cf-input {
	display: block;
	width: 100%;
	padding: 0.45rem 0.75rem;
	background: #fff;
	border: 1px solid #e2cdcb;
	border-radius: 0.5rem;
	color: var(--ink);
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.convertforms .cf-input:focus {
	outline: none;
	border-color: var(--rose);
	box-shadow: 0 0 0 0.2rem rgba(163, 64, 90, 0.2);
}
.convertforms .cf-control-input-desc {
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.95rem;
}
.convertforms .cf-btn {
	padding: 0.45rem 1.4rem;
	border: 1px solid var(--mauve);
	border-radius: 999px;
	background: var(--mauve);
	color: #fff;
	font: inherit;
	font-size: 1.05rem;
	cursor: pointer;
}
.convertforms .cf-btn:hover,
.convertforms .cf-btn:focus-visible {
	background: var(--mauve-dark);
	border-color: var(--mauve-dark);
}

/* ---------- Footer ---------- */
.site-footer {
	flex-shrink: 0;
	padding: 2.5rem var(--gutter) 2rem;
	background: var(--linen);
	color: var(--muted);
	text-align: center;
}

.site-footer__divider {
	display: block;
	width: 12rem;
	margin: 0 auto 1.25rem;
	opacity: 0.85;
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer__nav a {
	display: inline-block;
	padding-block: 0.4rem;
	color: var(--cocoa);
}
.site-footer__nav a:hover { color: var(--rose); }

.site-footer__copy {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
}

/* ---------- Helpers used inside article content ---------- */
img.tak_rounded { border-radius: var(--radius); }

div.centering {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

@keyframes fadein {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
