/* styles */
BODY, TH, TD, INPUT, SELECT, TEXTAREA {
  font-size: 10pt;
  font-family: Verdana, Arial, sans-serif;
  max-width: 768px;
  margin: 0 auto;
}

H1 { font-size: 3em; }
H2 { font-size: 2.5em; }
H3 { font-size: 2em; }
H4 { font-size: 1.5em; }
H5 { font-size: 1em; }
H6 { font-size: 0.8em; }

BODY {
  color: #333333;
  background-color: #ffffff;
}

#dataCaps TABLE {
  border-collapse: collapse;
}

#dataCaps TABLE,
#dataCaps TABLE TH,
#dataCaps TABLE TD {
  margin: 0px;
  padding: 0px 4px 0px 4px;
  border: 1px solid #000000;
}

h1 {
	text-align: center;
	font-size: 3em;
}

.content {
	padding: 10px 15px;
	margin: auto;
}

#title {
	text-align: center;
}

#qrcode {
	margin: auto;
    text-align: center;
    padding: 15px;
}

#qrData {
	color: white;
}

#bred {
	color: white;
}

img {
		margin-bottom: 8px;
}

img #logo {
	max-width: 45%;
}

INPUT {
		margin-bottom: 8px;
}

/* Admin-sidernes top-logo (admin_header.php) */
#logo-div {
	text-align: center;
    padding: 0px;
    max-width: 50%;
    margin: 0 auto;
}

/* =========================================================
   Hero-baggrund (offentligt flow): udsigtsbillede i toppen
   med mørkere overlay + nedtoning til hvid, hvidt logo ovenpå.
   ========================================================= */
.pov #hero {
	position: relative;
	/* fald-tilbage farve mens billedet loader */
	background-color: #243640;
	/* Lag 1: mørkere top (så det hvide logo læses) der fader til
	   gennemsigtig og videre til sidens hvide bund = sømløst.
	   Lag 2: selve udsigtsbilledet. */
	background-image:
		linear-gradient(to bottom,
			rgba(15, 25, 32, 0.55) 0%,
			rgba(15, 25, 32, 0.22) 34%,
			rgba(255, 255, 255, 0) 62%,
			#ffffff 100%),
		url(../img/logo/Alsik-udsigt.900px_10.gif);
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	min-height: 300px;
	/* træk indholdet op så kortet overlapper den nedtonede bund */
	margin-bottom: -48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.pov #hero-logo {
	width: 130px;
	max-width: 40%;
	height: auto;
	margin: 30px 0 0;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* "Point of View" som hvid undertitel lige under logoet */
.pov #hero-title {
	color: #ffffff;
	text-align: center;
	margin: 2px 0 0;
	font-size: 1.5em;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn {
	margin-bottom: 12px;
}

@media only screen and (max-width: 768px) {
 	h1 {
 		font-size: 3em;
 	}

 	#qrcode {
		margin: auto;
	    text-align: center;
	    padding: 15px;
	}

	#qrData {
		color: white;
	}

	#bred {
		color: white;
	}
}

@media only screen and (min-width: 600px) {
	h1 {
 		font-size: 4em;
 	}

 	#qrcode {
		margin: auto;
	    text-align: center;
	    padding: 20px;
	}

	#qrData {
		color: white;
	}

	#bred {
		color: white;
	}	
}

@media only screen and (max-width: 600px) {
	#logo-div img {
		max-width: 33%;
	}

 	h1 {
 		font-size: 5em;
 	}

 	#qrcode {
		margin: auto;
	    text-align: center;
	    padding: 25px;
	}
}

/* =========================================================
   Mobilvenligt offentligt booking-flow (scoped til .pov)
   Admin-siderne har ingen .pov og påvirkes derfor ikke.
   ========================================================= */

/* Brun tema-farve — overstyrer Bootstrap's blå .btn-primary og links */
.pov .btn-primary {
	background-color: rgb(112, 98, 89);
	border-color: rgb(112, 98, 89);
}

.pov .btn-primary:hover,
.pov .btn-primary:focus,
.pov .btn-primary:active,
.pov .btn-primary:not(:disabled):not(.disabled):active {
	background-color: rgb(95, 83, 75);
	border-color: rgb(95, 83, 75);
}

.pov .btn-primary:focus,
.pov .btn-primary:not(:disabled):not(.disabled):active:focus {
	box-shadow: 0 0 0 0.2rem rgba(112, 98, 89, 0.4);
}

/* Print-knappen (btn-outline-primary): brun kant + tekst, fyldt ved hover */
.pov .btn-outline-primary {
	color: rgb(112, 98, 89);
	border-color: rgb(112, 98, 89);
}

.pov .btn-outline-primary:hover,
.pov .btn-outline-primary:focus,
.pov .btn-outline-primary:active,
.pov .btn-outline-primary:not(:disabled):not(.disabled):active {
	color: #ffffff;
	background-color: rgb(112, 98, 89);
	border-color: rgb(112, 98, 89);
}

.pov .btn-outline-primary:focus,
.pov .btn-outline-primary:not(:disabled):not(.disabled):active:focus {
	box-shadow: 0 0 0 0.2rem rgba(112, 98, 89, 0.4);
}

.pov a {
	color: rgb(112, 98, 89);
}

.pov a:hover,
.pov a:focus {
	color: rgb(95, 83, 75);
}

/* Heroen er position:relative og ville ellers tegne sig OVENPÅ sidens
   indhold (positionerede elementer vinder over statisk flow uanset DOM-
   rækkefølge). Løft hele container'en op, så indhold uden et .content-kort
   (fx send_mail.php's "Mail sendt.") ikke forsvinder ind bag heroen. */
.pov .container {
	position: relative;
	z-index: 1;
}

/* Centreret "kort" — overstyrer Bootstrap .row så indhold stacker */
.pov .content {
	display: block;
	position: relative;
	z-index: 1;
	max-width: 460px;
	margin: 0 auto;
	padding: 18px 16px 16px;
	font-size: 16px;
	line-height: 1.5;
	/* let gennemsigtig hvid så heroen anes bag kortets kant uden at
	   gå ud over læsbarheden af indholdet */
	background: rgba(255, 255, 255, 0.94);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Det tomme spacer-felt fjernes; indholdskolonnen fylder hele kortet */
.pov .content .col-sm-2 {
	display: none;
}

.pov .content .col-sm-8 {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 0;
}

/* Felter: fuld bredde + touch-højde. Slår den globale
   max-width:768px / font-size:10pt-regel fra for disse felter. */
.pov input[type="text"],
.pov input[type="email"],
.pov select {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 16px; /* >=16px undgår auto-zoom på iOS ved fokus */
	border: 1px solid #c7c7c7;
	border-radius: 8px;
	background: #fff;
}

.pov label {
	display: block;
	text-align: left;
	margin-bottom: 4px;
}

/* Antal-stepper: [-] tal [+] i samme fulde bredde som de øvrige felter.
   Knapperne sidder yderst (minus venstre, plus højre), tallet fylder midten. */
.pov .antal-stepper {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	margin: 0 0 14px;
}

.pov .antal-stepper input[type="number"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	font-size: 16px; /* >=16px undgår auto-zoom på iOS ved fokus */
	text-align: center;
	border: 1px solid #c7c7c7;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	background: #fff;
	-moz-appearance: textfield;
}

/* Skjul de native spinner-pile - vi bruger vores egne knapper */
.pov .antal-stepper input[type="number"]::-webkit-outer-spin-button,
.pov .antal-stepper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pov .antal-stepper .antal-btn {
	flex: 0 0 48px;
	width: 48px;
	min-height: 48px;
	padding: 0;
	margin: 0;
	font-size: 22px;
	line-height: 1;
	font-weight: 700;
	color: inherit;
	border: 1px solid #c7c7c7;
	background: #fff;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.pov .antal-stepper .antal-minus {
	border-radius: 8px 0 0 8px;
}

.pov .antal-stepper .antal-plus {
	border-radius: 0 8px 8px 0;
}

/* Knapper: touch-mål, fuld bredde som standard */
.pov .btn {
	min-height: 48px;
	padding: 12px 20px;
	font-size: 16px;
	border-radius: 8px;
	width: 100%;
	margin-bottom: 12px;
}

/* QR-koden som hero-element */
.pov .qr-billede {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	margin: 4px auto 14px;
	image-rendering: pixelated; /* hold QR-modulerne skarpe ved skalering */
}

.pov .scan-hint {
	font-weight: 700;
	margin: 0 0 18px;
}

.pov .fejl {
	color: #c0392b;
	font-weight: 700;
}

/* Handlingsrække: e-mail-knap (fylder) + printer-ikon ved siden af.
   .handlinger-reglerne har højere specificitet end .pov .btn og
   overstyrer derfor width:100% inde i rækken. */
.pov .handlinger {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin-top: 20px;
}

.pov .handlinger .btn-email {
	flex: 1 1 auto;
	width: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 0;
}

.pov .handlinger .btn-ikon {
	flex: 0 0 auto;
	width: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	margin-bottom: 0;
}

.pov .btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex: 0 0 auto;
}

/* Billet-info: kompakt to-linjers blok under scan-hint — dæmpet grå,
   venstrestillet, med fremhævet (fed) tidsrum */
.pov .billet-info {
	margin: 0 0 16px;
	line-height: 1.45;
	text-align: left;
	color: #6c757d;
}

.pov .billet-info .billet-tid {
	color: #495057;
	font-weight: 700;
}

/* Sprogflag: store nok tryk-mål på touch */
.pov #flags {
	margin-bottom: 6px;
}

.pov #flags a {
	display: inline-block;
	padding: 10px 14px;
}

.pov #flags img {
	width: 46px;
	height: auto;
	vertical-align: middle;
}

/* Kaffe/kage-blokken (indhold røres ikke — bliver variabel senere) */
/* Nyhedsbrev opt-in: større, touch-venligt afkrydsningsfelt */
.pov .nyhedsbrev-optin label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.pov .nyhedsbrev-optin input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: rgb(112, 98, 89);
	cursor: pointer;
}

.pov .kaffe_kage {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e6e1dc;
	text-align: left;
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 480px) {
	.pov .content {
		padding: 0 24px 20px;
	}
}

/* =========================================================
   Admin-flade (scoped til body.admin) — brun topbar, dropdowns, dashboard.
   Rammer ikke det offentlige .pov-flow.
   ========================================================= */

/* Topbar */
.admin .admin-topbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 22px;
	background: rgb(112, 98, 89);
	color: #fff;
	padding: 0 16px;
	min-height: 52px;
}
.admin .admin-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 1px;
}
.admin .admin-logo { height: 30px; width: auto; margin: 0; }
.admin .admin-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
}
.admin .admin-menu a {
	color: rgb(227, 184, 126);
	text-decoration: none;
	opacity: .95;
	padding: 6px 0;
	font-size: 14px;
}
.admin .admin-menu a:hover { opacity: 1; text-decoration: underline; }
.admin .admin-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Dropdowns */
.admin .admin-dd { position: relative; }
.admin .admin-menu-toggle {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 6px 8px;
	border-radius: 6px;
}
.admin .admin-menu-toggle:hover { background: rgba(255, 255, 255, .15); }
.admin .admin-user-toggle {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}
.admin .admin-user-toggle:hover { background: rgba(255, 255, 255, .32); }
.admin .admin-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 170px;
	background: #fff;
	color: #333;
	border: 1px solid #e2ddd8;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
	overflow: hidden;
	z-index: 1000;
}
.admin .admin-dropdown-right { left: auto; right: 0; min-width: 215px; }
.admin .admin-dd.open .admin-dropdown { display: block; }
.admin .admin-dropdown a {
	display: block;
	padding: 9px 13px;
	color: #333;
	text-decoration: none;
	font-size: 13px;
}
.admin .admin-dropdown a:hover { background: #f5f1ee; }
.admin .admin-user-info { padding: 10px 13px; border-top: 1px solid #f0ece8; border-bottom: 1px solid #f0ece8; margin-top: 4px; }
.admin .admin-user-email { font-weight: 600; word-break: break-all; }
.admin .admin-user-role { font-size: 11px; color: #9a9a9a; margin-top: 2px; }
.admin .admin-logout { color: rgb(112, 98, 89); font-weight: 600; }

/* Dashboard */
.admin .admin-title {
	font-size: 1.6em;
	text-align: left;
	margin: 18px 0 14px;
}
/* Sidetitler i admin: mindre + venstrestillet (mobilvenligt og konsistent,
   overstyrer den globale h1{font-size:3em;text-align:center}). */
.admin h1 {
	font-size: 1.8rem;
	text-align: left;
	margin: 14px 0 12px;
}
.admin .admin-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 600px) {
	.admin .admin-cards { grid-template-columns: 1fr; }
}
.admin .admin-card {
	background: #fff;
	border: 1px solid #e7e1db;
	border-radius: 12px;
	padding: 16px 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.admin .admin-card h2 {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #a08e80;
	font-weight: 700;
	margin: 0 0 8px;
	text-align: left;
}
.admin .admin-card .big { font-size: 26px; font-weight: 700; color: rgb(95, 83, 75); }
.admin .admin-card .muted { font-size: 12px; color: #888; margin-top: 6px; }

/* Søjler (uge + pr. time) */
.admin .admin-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.admin .admin-bars .bar-col { flex: 1; text-align: center; }
.admin .admin-bars .bar { background: #d9cfc6; min-height: 1px; }
.admin .admin-bars .bar.today { background: rgb(112, 98, 89); }
.admin .admin-bars .bar-label { font-size: 10px; color: #999; margin-top: 3px; }

/* Forecast-liste */
.admin .admin-fc-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid #f2efec;
	font-size: 13px;
}
.admin .admin-fc-row:last-child { border-bottom: 0; }

/* Knapper i brun tema (mirror af det offentlige .pov-flow) */
.admin .btn-primary {
	background-color: rgb(112, 98, 89);
	border-color: rgb(112, 98, 89);
}
.admin .btn-primary:hover,
.admin .btn-primary:focus,
.admin .btn-primary:active,
.admin .btn-primary:not(:disabled):not(.disabled):active {
	background-color: rgb(95, 83, 75);
	border-color: rgb(95, 83, 75);
}
.admin .btn-primary:focus,
.admin .btn-primary:not(:disabled):not(.disabled):active:focus {
	box-shadow: 0 0 0 0.2rem rgba(112, 98, 89, 0.4);
}
.admin .btn-outline-primary {
	color: rgb(112, 98, 89);
	border-color: rgb(112, 98, 89);
}
.admin .btn-outline-primary:hover,
.admin .btn-outline-primary:focus,
.admin .btn-outline-primary:active,
.admin .btn-outline-primary:not(:disabled):not(.disabled):active {
	color: #fff;
	background-color: rgb(112, 98, 89);
	border-color: rgb(112, 98, 89);
}
.admin .btn-outline-primary:focus,
.admin .btn-outline-primary:not(:disabled):not(.disabled):active:focus {
	box-shadow: 0 0 0 0.2rem rgba(112, 98, 89, 0.4);
}
.admin .btn-link { color: rgb(112, 98, 89); }
.admin .btn-link:hover { color: rgb(95, 83, 75); }

/* Links i gylden accent (227,184,126). Topbar-menuen er sat ovenfor; her
   tages indholds-links i sidekroppen. Knapper (.btn) og dropdown-rækker
   (på hvid baggrund) holdes udenfor af læsbarhedshensyn. */
.admin .container a:not(.btn) { color: rgb(227, 184, 126); }
.admin .container a:not(.btn):hover { color: rgb(210, 165, 105); }
