/* Hochzeitskamera – Gestaltung
   Bildsprache: gedruckte Hochzeitspapeterie. Warmes Weiß, Tannengrün
   als einziger Akzent, Serifenschrift für die Namen, Haarlinien statt
   Kästen. */

.hk-kamera,
.hk-galerie {
	--hk-papier:   #fbfaf7;
	--hk-karte:    #ffffff;
	--hk-tanne:    #1d3a2e;
	--hk-tanne-2:  #2e5a47;
	--hk-salbei:   #eaefea;
	--hk-kante:    #e4e8e3;
	--hk-text:     #1c2320;
	--hk-gedimmt:  #7c8681;
	--hk-warnung:  #8c3a34;
	--hk-serif:    Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif;
	--hk-sans:     -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;

	background: var(--hk-papier);
	color: var(--hk-text);
	font-family: var(--hk-sans);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.hk-kamera *,
.hk-galerie *,
.hk-lupe * { box-sizing: inherit; }

/* ---------------------------------------------------------------
   Kameraseite
   --------------------------------------------------------------- */

.hk-kamera {
	max-width: 26rem;
	margin: 0 auto;
	padding: 3rem 1.5rem 3.5rem;
	text-align: center;
}

.hk-tisch {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	color: var(--hk-tanne-2);
	margin: 0 0 1.25rem;
}

.hk-paar {
	font-family: var(--hk-serif);
	font-size: clamp(2.375rem, 12vw, 3.25rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--hk-tanne);
}

.hk-paar::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 1px;
	margin: 1.25rem auto 0;
	background: var(--hk-kante);
}

.hk-datum {
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	color: var(--hk-gedimmt);
	margin: 1rem 0 0;
}

/* Auslöser und Zähler */
.hk-korpus {
	margin: 2.5rem 0 2rem;
	padding: 2rem 1.5rem 1.75rem;
	background: var(--hk-karte);
	border: 1px solid var(--hk-kante);
	border-radius: 0.25rem;
}

.hk-zaehler {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.125rem;
}

.hk-zahl {
	font-family: var(--hk-serif);
	font-size: 2.25rem;
	line-height: 1;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--hk-tanne);
}

.hk-zaehler-label {
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	color: var(--hk-gedimmt);
}

.hk-ausloeser {
	display: block;
	width: 6.75rem;
	height: 6.75rem;
	margin: 1.75rem auto 1.5rem;
	cursor: pointer;
}

.hk-ring {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: transparent;
	border: 1px solid var(--hk-kante);
	transition: transform 0.12s ease, border-color 0.12s ease;
}

.hk-punkt {
	width: 5.25rem;
	height: 5.25rem;
	border-radius: 50%;
	background: var(--hk-tanne);
}

.hk-ausloeser:active .hk-ring { transform: scale(0.95); }
.hk-ausloeser:focus-within .hk-ring { border-color: var(--hk-tanne); }

.hk-leer .hk-ausloeser { cursor: default; }
.hk-leer .hk-punkt { background: #b6bfb9; }
.hk-leer .hk-zahl { color: var(--hk-gedimmt); }

.hk-hinweis {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--hk-gedimmt);
	margin: 0;
	min-height: 3em;
}

.hk-hinweis--gut    { color: var(--hk-tanne-2); }
.hk-hinweis--fehler { color: var(--hk-warnung); }
.hk-hinweis--warten { color: var(--hk-text); }

/* Namensfeld */
.hk-name {
	display: block;
	text-align: left;
	margin: 0 0 2.5rem;
}

.hk-name span {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--hk-gedimmt);
	margin-bottom: 0.5rem;
}

.hk-name input {
	width: 100%;
	padding: 0.75rem 0.875rem;
	font: inherit;
	font-size: 1rem;
	color: var(--hk-text);
	background: var(--hk-karte);
	border: 1px solid var(--hk-kante);
	border-radius: 0.25rem;
}

.hk-name input:focus-visible {
	outline: 2px solid var(--hk-tanne);
	outline-offset: 1px;
}

/* Eigener Filmstreifen */
.hk-film-titel {
	font-family: var(--hk-sans);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	color: var(--hk-gedimmt);
	text-align: left;
	margin: 0 0 0.75rem;
}

.hk-streifen {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scrollbar-width: thin;
}

.hk-kachel {
	position: relative;
	flex: 0 0 5.5rem;
	margin: 0;
	border-radius: 0.125rem;
	overflow: hidden;
	background: var(--hk-salbei);
}

.hk-kachel img {
	display: block;
	width: 5.5rem;
	height: 5.5rem;
	object-fit: cover;
}

.hk-kachel--wartet img { opacity: 0.35; }
.hk-kachel--fehler img { opacity: 0.25; filter: grayscale(1); }

.hk-kachel-status {
	position: absolute;
	inset: auto 0 0 0;
	padding: 0.25rem;
	font-size: 0.625rem;
	text-align: center;
	background: rgba(29, 58, 46, 0.85);
	color: #ffffff;
}

.hk-kachel-weg {
	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
	width: 1.375rem;
	height: 1.375rem;
	padding: 0;
	line-height: 1;
	font-size: 1rem;
	color: #ffffff;
	background: rgba(29, 58, 46, 0.75);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.hk-link {
	display: inline-block;
	margin-top: 2rem;
	padding: 0.8125rem 1.5rem;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	color: #ffffff;
	background: var(--hk-tanne);
	border-radius: 999px;
	text-decoration: none;
}

.hk-link:hover { background: var(--hk-tanne-2); color: #ffffff; }

.hk-fuss {
	margin: 2.5rem 0 0;
	font-size: 0.75rem;
	line-height: 1.6;
	color: #96a09a;
}

/* ---------------------------------------------------------------
   Galerie
   --------------------------------------------------------------- */

.hk-galerie {
	padding: 4.5rem 1.5rem 5rem;
}

.hk-g-kopf {
	max-width: 32rem;
	margin: 0 auto 4rem;
	text-align: center;
}

.hk-monogramm {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin: 0 0 2rem;
	font-family: var(--hk-serif);
	font-size: 1.125rem;
	letter-spacing: 0.22em;
	color: #9aa8a0;
}

.hk-mono-und {
	font-size: 0.8125rem;
	font-style: italic;
	letter-spacing: 0;
}

.hk-galerie .hk-paar {
	font-size: clamp(2.5rem, 11vw, 3.75rem);
}

.hk-galerie .hk-paar::after {
	width: 2rem;
	margin-top: 1.75rem;
}

.hk-galerie .hk-datum {
	margin-top: 1.25rem;
}

.hk-bilanz {
	margin: 0.75rem 0 0;
	font-family: var(--hk-serif);
	font-size: 0.9375rem;
	font-style: italic;
	color: var(--hk-gedimmt);
}

/* Tischfilter als Textzeile, nicht als Schaltflächen */
.hk-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1.5rem;
	max-width: 44rem;
	margin: 0 auto 3.5rem;
}

.hk-filter[hidden] { display: none; }

.hk-chip {
	position: relative;
	padding: 0.375rem 0;
	font-family: inherit;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	color: var(--hk-gedimmt);
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: color 0.15s ease;
}

.hk-chip:hover { color: var(--hk-tanne); }

.hk-chip--an { color: var(--hk-tanne); }

.hk-chip--an::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--hk-tanne);
}

.hk-chip:focus-visible {
	outline: 1px solid var(--hk-tanne);
	outline-offset: 4px;
}

/* Stundenmarke */
.hk-stunde {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 68rem;
	margin: 4rem auto 1.75rem;
	font-family: var(--hk-serif);
	font-size: 0.9375rem;
	font-style: italic;
	font-weight: 400;
	color: var(--hk-gedimmt);
}

.hk-stunde::before,
.hk-stunde::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--hk-kante);
}

.hk-gruppen > .hk-stunde:first-child { margin-top: 0; }

/* Bilder */
.hk-raster {
	columns: 2;
	column-gap: 1.25rem;
	max-width: 68rem;
	margin: 0 auto;
}

@media (min-width: 40rem) { .hk-raster { columns: 3; column-gap: 1.75rem; } }
@media (min-width: 64rem) { .hk-raster { columns: 4; column-gap: 2rem; } }

.hk-abzug {
	break-inside: avoid;
	margin: 0 0 1.75rem;
	cursor: zoom-in;
}

.hk-abzug-flaeche {
	overflow: hidden;
	background: var(--hk-salbei);
}

.hk-abzug img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.25s ease;
}

.hk-abzug:hover img { opacity: 0.88; }

.hk-abzug figcaption {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.625rem;
}

.hk-abzug-wer {
	font-family: var(--hk-serif);
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--hk-gedimmt);
}

.hk-abzug-meta {
	margin-left: auto;
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	color: #a8b1ab;
}

.hk-abzug:focus-visible {
	outline: 1px solid var(--hk-tanne);
	outline-offset: 6px;
}

.hk-abzug--neu { animation: hk-auftauchen 0.7s ease both; }

@keyframes hk-auftauchen {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.hk-g-leer {
	max-width: 26rem;
	margin: 4rem auto;
	text-align: center;
	font-family: var(--hk-serif);
	font-style: italic;
	color: var(--hk-gedimmt);
	line-height: 1.8;
}

.hk-g-leer[hidden] { display: none; }

.hk-g-fuss {
	margin-top: 4rem;
	text-align: center;
}

/* Großansicht */
.hk-lupe {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 4rem 3rem 2.5rem;
	background: #16271f;
}

.hk-lupe[hidden] { display: none; }

.hk-lupe-rahmen {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	margin: 0;
}

.hk-lupe-rahmen img {
	display: block;
	max-width: 100%;
	max-height: 68vh;
	width: auto;
}

.hk-lupe-rahmen figcaption {
	display: flex;
	align-items: baseline;
	gap: 1.25rem;
	padding-top: 1.125rem;
}

.hk-lupe-wer {
	font-family: var(--hk-serif);
	font-size: 0.875rem;
	font-style: italic;
	color: rgba(255, 255, 255, 0.82);
}

.hk-lupe-position {
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.4);
}

.hk-lupe-dl {
	padding: 0.6875rem 1.625rem;
	font-family: var(--hk-sans);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.85);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.hk-lupe-dl:hover {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.6);
}

.hk-lupe-zu,
.hk-lupe-pfeil {
	position: absolute;
	color: rgba(255, 255, 255, 0.55);
	background: transparent;
	border: 0;
	cursor: pointer;
	line-height: 1;
	transition: color 0.15s ease;
}

.hk-lupe-zu:hover,
.hk-lupe-pfeil:hover { color: #ffffff; }

.hk-lupe-zu {
	top: 1.25rem;
	right: 1.25rem;
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.5rem;
	font-weight: 300;
}

.hk-lupe-pfeil {
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 4rem;
	font-size: 2rem;
	font-weight: 300;
}

.hk-lupe-pfeil--zurueck { left: 0; }
.hk-lupe-pfeil--vor { right: 0; }

.hk-lupe-zu:focus-visible,
.hk-lupe-pfeil:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.7);
	outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
	.hk-abzug--neu { animation: none; }
	.hk-ring, .hk-chip, .hk-abzug img { transition: none; }
}
