/* ==========================================================================
   Tidens Køkken – 1:1 genskabelse af det tidligere Joomla-tema "tidens"
   ========================================================================== */

@font-face {
	font-family: "Fjalla One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/fjalla-one-latin-400.woff2") format("woff2");
}

:root {
	--tk-bg: #201e1b;          /* mørk baggrund omkring indholdet */
	--tk-paper: #ece9e6;       /* lys indholdsflade */
	--tk-box: #ddd7d2;         /* prisboks */
	--tk-text: #333333;
	--tk-dark: #222222;
	--tk-orange: #ff6600;
	--tk-green: #527f4c;       /* streg under H1 */
	--tk-green-light: #a8bfa5; /* aktiv menu */
	--tk-link: #337ab7;
	--tk-grey: #888888;
	--tk-head: "Fjalla One", "Arial Narrow", sans-serif;
	--tk-body: "Times New Roman", Times, serif;
	--tk-header-h: 176px;
	--tk-container: 1170px;
}

/* --- Basis --------------------------------------------------------------- */

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

html {
	background: var(--tk-bg);
	color: var(--tk-dark);
	font-size: 1em;
	line-height: 1.4;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--tk-body);
	font-size: 18px;
	line-height: 1.43;
	color: var(--tk-text);
	background: var(--tk-bg);
}

img, svg, video, iframe { vertical-align: middle; }
img { max-width: 100%; height: auto; }

a { color: var(--tk-link); }
a:hover, a:focus { color: #23527c; }

h1, h3 {
	font-family: var(--tk-head);
	font-weight: 400;
	text-transform: uppercase;
	color: var(--tk-text);
}

h1 {
	font-size: 38px;
	line-height: 1.43;
	margin: 50px 0 40px;
	position: relative;
}

h1::after {
	content: "";
	display: block;
	width: 100px;
	height: 15px;
	border-bottom: 1px solid var(--tk-green);
}

h2 {
	font-family: sans-serif;
	font-weight: 700;
	font-size: 1em;
	line-height: 1.43;
	margin: 20px 0 10px;
}

h3 { margin: 0; font-size: 1.17em; }
h4 { font-size: 1em; font-weight: 400; font-style: italic; }

p { margin: 0 0 10px; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: #fff;
	color: var(--tk-dark);
	padding: 10px 15px;
	font-family: var(--tk-head);
}
.skip-link:focus { left: 10px; top: 10px; }

.container {
	width: 100%;
	max-width: var(--tk-container);
	margin: 0 auto;
}

.orange { color: var(--tk-orange); }

/* --- Header + menu ------------------------------------------------------- */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--tk-header-h);
	/* Hvid top (176px) + sort fold-ud-flade – som navbar-bg-880.png, men uden fast højde */
	background: linear-gradient(to bottom, #fff 0, #fff 176px, #000 176px, #000 100%);
	overflow: hidden;
	z-index: 200;
	text-align: center;
	transition: height .4s ease-in;
}

.site-header.unfold {
	height: 880px;
	border-bottom: 1px solid #000;
	transition: height .4s ease-out;
}

.logo {
	position: absolute;
	top: 25px;
	left: 50%;
	width: 139px;
	margin-left: -69px;
	z-index: 100;
}
.logo img { display: block; width: 139px; height: auto; }

.topmenu {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: var(--tk-container);
	margin: 0 auto;
}

.topmenu > ul {
	position: relative;
	list-style: none;
	margin: 0 auto;
	padding: 70px 0 0;
}
.topmenu > ul::after { content: ""; display: table; clear: both; }

.topmenu > ul > li {
	position: relative;
	float: left;
	width: 15%;
	margin: 0 2%;
	padding: 0;
	text-align: center;
}

/* Hul til logoet mellem 2. og 3. punkt (Joomla: .item-104) */
.topmenu > ul > li:nth-child(3) { margin-left: 25%; }

.topmenu > ul > li > a,
.topmenu > ul > li > button {
	display: block;
	width: 100%;
	padding: 5px 10px;
	font-family: var(--tk-head);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.43;
	text-transform: uppercase;
	color: var(--tk-dark);
	text-decoration: none;
	background: none;
	border: 0;
	border-bottom: 1px solid #fff;
	cursor: pointer;
	transition: border-color 1s;
}

.topmenu > ul > li > button:hover,
.topmenu > ul > li > button:focus-visible,
.topmenu > ul > li.active > button,
.topmenu > ul > li.active > a {
	border-color: var(--tk-green-light);
	outline: none;
}

.topmenu .sub-menu {
	position: relative;
	top: 95px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topmenu .sub-menu li { display: block; width: 100%; margin: 0; padding: 0; }

.topmenu .sub-menu a {
	display: block;
	padding: 10px 0;
	margin-top: 1px;
	font-family: var(--tk-head);
	font-size: 16px;
	line-height: 1.43;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tk-grey);
}

.topmenu .sub-menu a:hover,
.topmenu .sub-menu a:focus-visible,
.topmenu .sub-menu li.active a { color: #fff; }

.mobile-toggle { display: none; }

/* --- Indholdsflade ------------------------------------------------------- */

.page-content {
	display: block;
	padding-top: var(--tk-header-h);
}

.page-content > .container { background: var(--tk-paper); }

/* --- Landingsside (2 kolonner) ------------------------------------------- */

.landing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

.landing-images img {
	display: block;
	width: 100%;
	height: auto;
}

.landing-text { padding: 0 50px 40px; }

.landing-noimg { grid-template-columns: 1fr; }
.landing-noimg .landing-text { max-width: 685px; }

.entry p,
.entry li { font-style: italic; }

.entry ul {
	list-style: disc;
	margin: 0 0 10px;
	padding: 0 0 0 1em;
}

.entry h2 { margin-bottom: -15px; padding-bottom: 15px; }
.entry h2 + p, .entry h2 + ul { margin-top: 15px; }

.entry h3 { margin: 20px 0 10px; }

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

.entry hr {
	height: 1px;
	margin: 1em 0;
	border: 0;
	border-top: 1px solid #ccc;
}

/* Prisboks (Joomla: blockquote med kokkehue) */
.entry blockquote {
	margin: 0 0 20px;
	padding: 1px 1px 1px 40px;
	color: var(--tk-orange);
	background: var(--tk-box) url("../../images/toque.png") 11px 18px no-repeat;
}
.entry blockquote p { margin: 16px 0; }

/* Oversigtssider: liste over undersider */
.entry ul.undersider {
	list-style: none;
	margin: 25px 0 30px;
	padding: 0;
	border-top: 1px solid #ccc;
}
.entry ul.undersider li { font-style: normal; border-bottom: 1px solid #ccc; }
.entry ul.undersider a {
	display: block;
	padding: 12px 0;
	font-family: var(--tk-head);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tk-dark);
	transition: color .3s, padding-left .3s;
}
.entry ul.undersider a::after { content: "→"; float: right; color: var(--tk-orange); }
.entry ul.undersider a:hover { color: var(--tk-orange); padding-left: 6px; }

/* --- Knapper ------------------------------------------------------------- */

.buttons,
a.buttons {
	display: inline-block;
	padding: 10px 12px;
	border: 3px solid var(--tk-dark);
	font-family: var(--tk-head);
	font-weight: 400;
	font-style: normal;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tk-dark);
	background: transparent;
	cursor: pointer;
	transition: background-color .4s, color .4s;
}

.buttons:hover,
a.buttons:hover,
.buttons:focus-visible {
	background: var(--tk-dark);
	color: #fff;
}

.buttons-light,
a.buttons-light { border-color: #fff; color: #fff; }

.buttons-light:hover,
a.buttons-light:hover,
.buttons-light:focus-visible { background: #fff; color: var(--tk-dark); }

.buttons-icon { padding: 10px 13px; line-height: 0; }

/* --- Forside ------------------------------------------------------------- */

.front-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 760px;
}

.front-hero {
	background-size: cover;
	background-position: center top;
	min-height: 760px;
}

.front-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 380px 380px;
}

.tile {
	position: relative;
	overflow: hidden;
	color: #fff;
}

.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }

.tile-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.tile-wide .tile-bg-left { right: 50%; }
.tile-wide .tile-bg-right { left: 50%; }

.tile-text {
	position: absolute;
	left: 0;
	bottom: 15px;
	padding: 0 20px;
}
.tile-wide .tile-text { left: 50%; top: 20px; bottom: auto; height: calc(100% - 35px); display: flex; flex-direction: column; }
.tile-wide .tile-text .buttons { margin-top: auto; align-self: flex-start; }

.tile-kicker {
	margin: 0 0 20px;
	font-style: italic;
	font-size: 1em;
	color: #fff;
}
.tile-kicker::after {
	content: "";
	display: block;
	width: 40px;
	height: 5px;
	border-bottom: 1px solid #fff;
}

.tile-title {
	margin: 0 0 30px;
	font-family: var(--tk-head);
	font-weight: 400;
	font-size: 1.2em;
	text-transform: uppercase;
	color: #fff;
}

/* --- Galleri (Inspiration) ----------------------------------------------- */

.gallery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-text { padding: 20px 50px 40px; }

/* --- Bestilling: mørk sektion i fuld bredde under billeder + tekst -------- */

.cta-top { margin: -15px 0 25px; }

.buttons-cta,
a.buttons-cta {
	border-color: var(--tk-orange);
	background: var(--tk-orange);
	color: #fff;
}
.buttons-cta:hover,
a.buttons-cta:hover,
.buttons-cta:focus-visible {
	background: #e05a00;
	border-color: #e05a00;
	color: #fff;
}

.page-content > .bestil-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--tk-green);
	color: #fff;
	scroll-margin-top: 20px;
}

.bestil-intro { padding: 45px 50px; }
.bestil-form { padding: 45px 50px 40px 0; }

.bestil-intro h2 {
	margin: 0 0 30px;
	font-family: var(--tk-head);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.25;
	text-transform: uppercase;
	color: #fff;
}
.bestil-intro h2::after {
	content: "";
	display: block;
	width: 100px;
	height: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, .7);
}
.bestil-intro p { font-style: italic; color: #fff; }
.bestil-phone { margin-top: 30px; }
.bestil-phone a {
	font-family: var(--tk-head);
	font-style: normal;
	font-size: 28px;
	letter-spacing: .03em;
	color: #fff;
	text-decoration: none;
}
.bestil-phone a:hover { color: var(--tk-paper); text-decoration: underline; }

/* WPForms i den mørke boks */
.bestil-form .wpforms-container { margin: 0 !important; padding: 0; border: 0; }
.bestil-form .wpforms-field-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
}
.bestil-form .wpforms-field {
	padding: 0 0 14px !important;
	grid-column: auto;
	/* WPForms' egne kolonne-klasser (wpforms-one-half o.l.) neutraliseres – gitteret styrer bredden */
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin-left: 0 !important;
	clear: none !important;
}
.bestil-form .wpforms-field-textarea,
.bestil-form .wpforms-field-select,
.bestil-form .wpforms-field-checkbox,
.bestil-form .wpforms-field-radio,
.bestil-form .wpforms-field-html,
.bestil-form .wpforms-field-divider,
.bestil-form .wpforms-field-content { grid-column: 1 / -1; }
.bestil-form .wpforms-field-hidden { display: none; }

.bestil-form .wpforms-field-label,
.bestil-form .wpforms-field-sublabel,
.bestil-form .wpforms-field-label-inline,
.bestil-form .wpforms-field-description {
	color: #fff !important;
	font-family: var(--tk-head);
	font-weight: 400 !important;
	font-size: 14px !important;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.bestil-form .wpforms-required-label { color: #fff !important; }

.bestil-form input[type=text],
.bestil-form input[type=email],
.bestil-form input[type=tel],
.bestil-form input[type=number],
.bestil-form input[type=date],
.bestil-form select,
.bestil-form textarea {
	width: 100% !important;
	max-width: 100% !important;
	height: auto;
	min-height: 46px;
	padding: 10px 12px !important;
	border: 1px solid #fff !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--tk-dark) !important;
	font-family: var(--tk-body) !important;
	font-size: 17px !important;
	box-shadow: none !important;
}
.bestil-form input:focus,
.bestil-form select:focus,
.bestil-form textarea:focus { outline: 3px solid var(--tk-orange) !important; outline-offset: 0; }

.bestil-form .wpforms-submit-container { padding-top: 6px !important; }
.bestil-form button[type=submit],
.bestil-form .wpforms-submit {
	width: 100%;
	min-height: 54px;
	padding: 12px 20px !important;
	border: 3px solid var(--tk-orange) !important;
	border-radius: 0 !important;
	background: var(--tk-orange) !important;
	color: #fff !important;
	font-family: var(--tk-head) !important;
	font-size: 19px !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .3s, border-color .3s;
}
.bestil-form button[type=submit]:hover,
.bestil-form .wpforms-submit:hover { background: #e05a00 !important; border-color: #e05a00 !important; }

.bestil-form .wpforms-error,
.bestil-form label.wpforms-error { color: #fff !important; background: #b3261e; padding: 2px 6px; }
.bestil-form .wpforms-confirmation-container-full {
	background: var(--tk-paper) !important;
	border: 0 !important;
	color: var(--tk-dark) !important;
}

/* Flere formularer (fx julefrokost): fold-ud pr. menu */
.bestil-form details.bestil-valg {
	margin: 0 0 8px;
	background: rgba(0, 0, 0, .12);
	border: 1px solid rgba(255, 255, 255, .35);
	scroll-margin-top: 20px;
}
.bestil-form details.bestil-valg[open] { border-color: #fff; }
.bestil-form details.bestil-valg > summary {
	padding: 14px 16px;
	font-family: var(--tk-head);
	font-size: 18px;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	list-style: none;
}
.bestil-form details.bestil-valg > summary::-webkit-details-marker { display: none; }
.bestil-form details.bestil-valg > summary::after { content: "+"; float: right; color: #fff; font-size: 22px; line-height: 1; }
.bestil-form details.bestil-valg[open] > summary::after { content: "–"; }
.bestil-form details.bestil-valg > .wpforms-container { padding: 4px 16px 16px; }

/* Fast bestil-bjælke på mobil */
.bestil-bar { display: none; }

@media (max-width: 991px) {
	.page-content > .bestil-section { grid-template-columns: 1fr; }
	.bestil-intro { padding: 35px 35px 0; }
	.bestil-form { padding: 25px 35px 35px; }
}

@media (max-width: 768px) {
	.bestil-intro { padding: 30px 20px 0; }
	.bestil-intro h2 { font-size: 28px; margin-bottom: 20px; }
	.bestil-phone { margin-top: 15px; }
	.bestil-form { padding: 20px 20px 30px; }
	.bestil-form .wpforms-field-container { grid-template-columns: 1fr; }

	.bestil-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 160;
		display: flex;
		gap: 1px;
		background: #000;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, .25);
		transform: translateY(110%);
		transition: transform .25s ease-out;
		padding-bottom: env(safe-area-inset-bottom);
	}
	.bestil-bar.visible { transform: translateY(0); }
	.bestil-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 54px;
		font-family: var(--tk-head);
		font-size: 18px;
		text-transform: uppercase;
		text-decoration: none;
		color: #fff;
	}
	.bestil-bar-cta { flex: 1; background: var(--tk-orange); }
	.bestil-bar-tel { width: 64px; background: var(--tk-dark); }

	body.has-bestil-bar .to-top { bottom: 70px; }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
	padding: 50px 0;
	font-family: var(--tk-head);
	font-weight: 400;
	text-transform: uppercase;
	background: #000;
	color: #fff;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 30px;
	padding: 0 35px;
}

.site-footer p { font-size: .8em; margin: 0 0 1em; }
.site-footer .footer-name { font-size: 1em; }
.site-footer .footer-name strong { font-weight: 400; }
.site-footer a { color: var(--tk-link); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-social { display: flex; gap: 6px; align-items: flex-start; }
.social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 2px solid #fff;
	color: #fff !important;
	transition: background-color .4s, color .4s;
}
.social:hover { background: #fff; color: #000 !important; }

.footer-smiley { text-align: right; }

/* --- Til toppen ---------------------------------------------------------- */

.to-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 51px;
	height: 51px;
	background: #000;
	border: 3px solid #fff;
	color: #fff;
	box-shadow: 1px 0 2px rgba(0, 0, 0, .3);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
	z-index: 150;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: #222; }

/* --- Responsiv ----------------------------------------------------------- */

@media (max-width: 1199px) {
	.landing-text { padding: 0 35px 40px; }
}

@media (max-width: 991px) {
	.topmenu > ul > li { width: 16%; margin: 0 .5%; }
	.topmenu > ul > li:nth-child(3) { width: 20%; margin-left: 28%; }

	.landing { grid-template-columns: 1fr; }
	.landing-images { display: grid; grid-template-columns: 1fr 1fr; }
	.landing-images img:only-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	:root { --tk-header-h: auto; }

	.site-header,
	.site-header.unfold {
		position: relative;
		height: auto;
		overflow: visible;
		background: #fff;
		border-bottom: 0;
	}

	.logo { position: relative; top: 0; left: 0; display: inline-block; margin: 20px 0; }
	.logo img { width: 110px; }

	.mobile-toggle {
		display: block;
		position: absolute;
		top: 20px;
		right: 15px;
		width: 46px;
		height: 42px;
		padding: 10px 11px;
		background: var(--tk-dark);
		border: 0;
		cursor: pointer;
	}
	.mobile-toggle span:not(.screen-reader-text) { display: block; height: 3px; margin: 0 0 5px; background: #fff; }
	.mobile-toggle span:last-child { margin-bottom: 0; }

	.topmenu { display: none; text-align: left; background: var(--tk-dark); }
	.site-header.menu-open .topmenu { display: block; }

	.topmenu > ul { padding: 0; }
	.topmenu > ul > li,
	.topmenu > ul > li:nth-child(3) { float: none; width: 100%; margin: 0; text-align: left; }

	.topmenu > ul > li > a,
	.topmenu > ul > li > button {
		padding: .85em 5%;
		color: #fff;
		text-align: left;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .5);
	}
	.topmenu > ul > li > button::after { content: "+"; float: right; color: var(--tk-orange); }
	.topmenu > ul > li.open > button::after { content: "–"; }

	.topmenu .sub-menu { top: 0; display: none; }
	.topmenu > ul > li.open .sub-menu { display: block; }
	.topmenu .sub-menu a {
		padding: 1em 10%;
		color: rgba(255, 255, 255, .75);
		border-top: 1px solid rgba(255, 255, 255, .25);
	}

	.page-content { padding-top: 0; }

	.front-grid { grid-template-columns: 1fr; min-height: 0; }
	.front-hero { display: none; }
	.front-tiles { grid-template-rows: 380px 380px; }

	.landing-text { padding: 0 20px 30px; }
	h1 { font-size: 32px; margin: 30px 0 25px; }

	.footer-inner { grid-template-columns: 1fr; padding: 0 20px; }
	.footer-smiley { text-align: left; }

	.to-top { right: 15px; bottom: 15px; }
}

@media (max-width: 460px) {
	.landing-images { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr; }
	.tile-title { font-size: .95em; }
	.tile-wide .tile-text { left: 0; }
	.tile-wide .tile-bg-left { right: 0; }
	.tile-wide .tile-bg-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .to-top, .landing-images { display: none; }
	.page-content { padding: 0; }
	.landing { display: block; }
	body, html { background: #fff; }
}
