﻿/*
Theme Name: Normalkneipe
Theme URI: https://github.com/normalkneipe-modern-bar
Author: Normalkneipe
Description: Traditional beer bar one-page theme (ported from the Normalkneipe React site). Requires Polylang for bilingual DE/EN strings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: normalkneipe
*/

/*
 * Main stylesheet (plain CSS, no build step — same pattern as deutschintensiv: design tokens + sections in one file).
 * ==========================================================================
 */

:root {
	--nk-bg: hsl(160, 12%, 5%);
	--nk-fg: hsl(60, 10%, 90%);
	--nk-card: hsl(160, 10%, 8%);
	--nk-primary: hsl(145, 55%, 38%);
	--nk-primary-fg: hsl(160, 12%, 5%);
	--nk-secondary: hsl(160, 8%, 12%);
	--nk-muted: hsl(160, 8%, 15%);
	--nk-muted-fg: hsl(160, 5%, 55%);
	--nk-accent: hsl(50, 95%, 55%);
	--nk-accent-fg: hsl(160, 12%, 5%);
	--nk-border: hsl(160, 8%, 18%);
	--nk-radius: 0.25rem;
	--nk-font-display: "Space Grotesk", sans-serif;
	--nk-font-body: "DM Sans", sans-serif;
	--nk-container: 1400px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.nk-body {
	min-height: 100vh;
	margin: 0;
	background: var(--nk-bg);
	color: var(--nk-fg);
	font-family: var(--nk-font-body);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--nk-font-display);
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 6px;
}
::-webkit-scrollbar-track {
	background: hsl(160, 12%, 5%);
}
::-webkit-scrollbar-thumb {
	background: hsl(160, 8%, 25%);
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: hsl(145, 55%, 38%);
}

/* Utilities */
.hidden {
	display: none !important;
}

.nk-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nk-container {
	width: 100%;
	max-width: var(--nk-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* Main offset for fixed nav */
.nk-main {
	padding-top: 4rem;
}

/* ----- Nav ----- */
.nk-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--nk-bg) 80%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--nk-border);
}

@supports not (backdrop-filter: blur(12px)) {
	.nk-nav {
		background: var(--nk-bg);
	}
}

.nk-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.nk-nav__brand {
	font-family: var(--nk-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--nk-primary);
	text-decoration: none;
}

.nk-nav__desktop {
	display: none;
	align-items: center;
	gap: 2rem;
}

@media (min-width: 768px) {
	.nk-nav__desktop {
		display: flex;
	}
}

.nk-nav__link {
	font-size: 0.875rem;
	color: var(--nk-muted-fg);
	text-decoration: none;
	transition: color 0.15s ease;
}

.nk-nav__link:hover {
	color: var(--nk-fg);
}

.nk-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--nk-fg);
}

@media (min-width: 768px) {
	.nk-nav__toggle {
		display: none;
	}
}

.nk-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.nk-nav__panel {
	padding: 0 1.5rem 1.5rem;
	background: var(--nk-bg);
	border-bottom: 1px solid var(--nk-border);
}

.nk-nav__panel .nk-nav__link {
	display: block;
	padding: 0.25rem 0;
}

.nk-nav__panel-lang {
	padding-top: 0.5rem;
	margin-top: 0.5rem;
	border-top: 1px solid var(--nk-border);
}

.nk-nav__panel-lang .nk-lang-switcher {
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Polylang language switcher */
.nk-lang-switcher ul {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nk-lang-switcher li {
	margin: 0;
}

.nk-lang-switcher a {
	display: inline-block;
	font-family: var(--nk-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--nk-border);
	border-radius: var(--nk-radius);
	color: var(--nk-muted-fg);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.nk-lang-switcher a:hover {
	color: var(--nk-fg);
	border-color: var(--nk-primary);
}

.nk-lang-switcher li.current-lang a {
	color: var(--nk-fg);
	border-color: var(--nk-primary);
}

/* ----- Footer ----- */
.nk-footer {
	border-top: 1px solid var(--nk-border);
	padding: 2rem 1.5rem;
}

.nk-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

@media (min-width: 768px) {
	.nk-footer__inner {
		flex-direction: row;
	}
}

.nk-footer__brand {
	font-family: var(--nk-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--nk-primary);
}

.nk-footer__copy {
	font-size: 0.75rem;
	color: var(--nk-muted-fg);
}

/* ----- Section shared ----- */
.nk-section {
	padding: 8rem 1.5rem;
}

.nk-section--card {
	background: var(--nk-card);
}

.nk-section__label {
	display: block;
	font-family: var(--nk-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--nk-primary);
}

.nk-section__title {
	margin: 1rem 0 0;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--nk-fg);
}

.nk-section__body {
	margin-top: 4rem;
}

/* ----- Hero ----- */
.nk-hero {
	position: relative;
	height: 100vh;
	width: 100%;
	overflow: hidden;
}

.nk-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nk-hero__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom right,
		var(--nk-secondary),
		var(--nk-bg),
		var(--nk-card)
	);
}

.nk-hero__dim {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--nk-bg) 70%, transparent);
}

.nk-hero__content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 0 1.5rem;
}

.nk-hero__title {
	margin: 0;
	font-size: clamp(3.75rem, 10vw, 8rem);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--nk-fg);
	animation: nk-fade-in 0.8s ease-out forwards;
}

.nk-hero__accent {
	color: var(--nk-primary);
}

.nk-hero__tagline {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--nk-muted-fg);
	animation: nk-fade-in 0.8s ease-out 0.2s forwards;
	opacity: 0;
}

@media (min-width: 768px) {
	.nk-hero__tagline {
		font-size: 1rem;
	}
}

.nk-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 3rem;
	justify-content: center;
	animation: nk-fade-in 0.8s ease-out 0.4s forwards;
	opacity: 0;
}

.nk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 2rem;
	font-family: var(--nk-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nk-btn--primary {
	background: var(--nk-primary);
	color: var(--nk-primary-fg);
	border: none;
}

.nk-btn--primary:hover {
	filter: brightness(1.1);
}

.nk-btn--outline {
	border: 1px solid color-mix(in srgb, var(--nk-fg) 20%, transparent);
	color: var(--nk-fg);
	background: transparent;
}

.nk-btn--outline:hover {
	border-color: var(--nk-primary);
	color: var(--nk-primary);
}

.nk-btn--accent:hover {
	border-color: var(--nk-accent);
	color: var(--nk-accent);
}

.nk-hero__scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	animation: nk-fade-in 0.8s ease-out 0.8s forwards;
	opacity: 0;
	pointer-events: none;
}

.nk-hero__scroll-line {
	width: 1px;
	height: 3rem;
	background: linear-gradient(to bottom, transparent, var(--nk-primary));
}

@keyframes nk-fade-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nk-hero__tagline,
.nk-hero__actions,
.nk-hero__scroll {
	animation-fill-mode: forwards;
}

/* ----- About ----- */
.nk-about__grid {
	display: grid;
	gap: 4rem;
	align-items: center;
}

@media (min-width: 768px) {
	.nk-about__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.nk-about__media {
	position: relative;
}

.nk-about__img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.nk-about__img-placeholder {
	width: 100%;
	aspect-ratio: 1;
	background: var(--nk-secondary);
	border-radius: var(--nk-radius);
}

.nk-about__frame {
	position: absolute;
	inset: 0;
	border: 1px solid color-mix(in srgb, var(--nk-primary) 20%, transparent);
	transform: translate(1rem, 1rem);
	z-index: -1;
	pointer-events: none;
}

.nk-prose-muted {
	color: var(--nk-muted-fg);
	line-height: 1.625;
}

.nk-section__title + .nk-about__lead {
	margin-top: 2rem;
}

.nk-prose-muted + .nk-prose-muted {
	margin-top: 1rem;
}

/* ----- Menu (tabular drink list) ----- */
.nk-menu__grid {
	display: grid;
	gap: 3rem;
}

@media (min-width: 768px) {
	.nk-menu__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.nk-menu__empty {
	margin-top: 1rem;
	max-width: 42rem;
}

.nk-menu__block {
	min-width: 0;
}

.nk-menu__cat-title {
	margin: 0 0 1rem;
	font-family: var(--nk-font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--nk-accent);
	text-transform: uppercase;
}

.nk-menu__table {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.nk-menu__row--cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(3.5rem, auto) minmax(2.75rem, auto) minmax(4.25rem, auto);
	gap: 0.35rem 0.65rem;
	align-items: baseline;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--nk-border);
	margin-bottom: 0.65rem;
}

@media (min-width: 480px) {
	.nk-menu__row--cols {
		grid-template-columns: minmax(0, 1fr) minmax(5.5rem, auto) minmax(3.25rem, auto) minmax(5.5rem, auto);
		gap: 0.5rem 1rem;
	}
}

.nk-menu__head {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nk-muted-fg);
	border-bottom-color: color-mix(in srgb, var(--nk-border) 70%, transparent);
	padding-bottom: 0.4rem;
	margin-bottom: 0.35rem;
}

.nk-menu__head .nk-menu__price {
	color: var(--nk-muted-fg);
	font-weight: 600;
}

.nk-menu__name {
	font-size: 0.8125rem;
	color: var(--nk-fg);
	line-height: 1.35;
}

.nk-menu__abv,
.nk-menu__vol {
	font-size: 0.75rem;
	color: var(--nk-muted-fg);
	white-space: nowrap;
}

.nk-menu__detail {
	margin-left: 0.5rem;
	font-size: 0.75rem;
	color: var(--nk-muted-fg);
}

.nk-menu__price {
	font-family: var(--nk-font-display);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--nk-primary);
	white-space: nowrap;
	text-align: right;
}

.nk-menu__col--price {
	justify-self: end;
}

/* ----- Gallery ----- */
.nk-gallery__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 4rem;
}

@media (min-width: 768px) {
	.nk-gallery__grid {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: minmax(250px, auto);
	}

	.nk-gallery__cell--tall {
		grid-row: span 2;
	}

	.nk-gallery__cell--wide {
		grid-column: span 2;
	}
}

.nk-gallery__cell {
	overflow: hidden;
}

.nk-gallery__cell img {
	width: 100%;
	height: 100%;
	min-height: 250px;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.nk-gallery__cell:hover img {
	transform: scale(1.05);
}

.nk-gallery__placeholder {
	width: 100%;
	min-height: 250px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nk-secondary);
	color: var(--nk-muted-fg);
	font-size: 0.875rem;
}

/* ----- Hours ----- */
.nk-hours {
	max-width: 32rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.nk-hours__list {
	margin-top: 4rem;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.nk-hours__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--nk-border);
}

.nk-hours__day {
	font-family: var(--nk-font-display);
	font-weight: 500;
	color: var(--nk-fg);
}

.nk-hours__time {
	font-size: 0.875rem;
	color: var(--nk-muted-fg);
}

/* ----- Contact ----- */
.nk-contact__grid {
	display: grid;
	gap: 4rem;
}

@media (min-width: 768px) {
	.nk-contact__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.nk-contact__block {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.nk-contact__row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.nk-contact__icon {
	flex-shrink: 0;
	margin-top: 0.25rem;
	color: var(--nk-primary);
}

.nk-contact__label {
	margin: 0;
	font-family: var(--nk-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nk-fg);
}

.nk-contact__text {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--nk-muted-fg);
}

.nk-contact__text a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nk-contact__text a:hover {
	color: var(--nk-primary);
}

.nk-contact__social-title {
	margin: 0 0 0.75rem;
	font-family: var(--nk-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nk-fg);
}

.nk-contact__social-links {
	display: flex;
	gap: 1rem;
}

.nk-contact__social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--nk-border);
	color: var(--nk-muted-fg);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.nk-contact__social-btn:hover {
	color: var(--nk-primary);
	border-color: var(--nk-primary);
}

.nk-contact__map {
	width: 100%;
	min-height: 320px;
	height: 20rem;
	background: var(--nk-secondary);
}

@media (min-width: 768px) {
	.nk-contact__map {
		height: auto;
		min-height: 320px;
	}
}

.nk-contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* ----- Page (index) ----- */
.nk-page {
	padding-bottom: 4rem;
}

.nk-page__title {
	margin: 0;
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--nk-fg);
}

.nk-page__content {
	margin-top: 2rem;
	color: var(--nk-muted-fg);
	line-height: 1.625;
}

.nk-page__empty {
	color: var(--nk-muted-fg);
}

