﻿/* Percentages so text follows the browser's font size setting (14px / 16px at the default 16px) */
html {
  font-size: 87.5%;
}

@media (min-width: 768px) {
  html {
    font-size: 100%;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /* column layout so the footer sits at the bottom of short pages and can grow with its text */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 320px; /* never squeeze below a small phone's width; scroll horizontally instead */
}


.outlined {
  color: black;                      /* fill */
  -webkit-text-stroke: 3px white;    /* doubled, since half will be hidden */
  paint-order: stroke fill;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (min-width: 1400px) {
	.container {
		max-width: 2000px !important;
	}
}

.col-fixed {
	flex: 0 0 200px;
	max-width: 200px;
}

.col-30 {
	flex: 0 0 calc((100% - 200px) * 0.4);
	max-width: calc((100% - 200px) * 0.4);
}

.col-70 {
	flex: 0 0 calc((100% - 200px) * 0.6);
	max-width: calc((100% - 200px) * 0.6);
}

@media (max-width: 1250px) {
	.col-70 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.col-30 {
		flex: 0 0 calc((100% - 200px));
		max-width: calc((100% - 200px));
	}
}

/* Region variants page */

/* Shared by _VariantThumbnailList and _InterestPointMap; color comes from variant-color-shadow-N */
.region-variants-page .apple-style-card {
	position: relative; /* anchor for ::after */
	border: 1px solid #e0e0e0; /* Light border for a clean look */
	border-radius: 5px; /* Rounded corners */
	transition: all 0.3s ease-in-out; /* Smooth transition for hover effect */
	background-color: rgba(var(--shadow-rgb), 0.05);
}

.region-variants-page .apple-style-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 8px rgba(var(--shadow-rgb), 0.5); /* inner glow */
	pointer-events: none; /* keep links clickable */
}

.region-variants-page .apple-style-card:hover {
	transform: translateY(-2px); /* Lift effect */
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.region-variants-page .apple-style-button {
	border: 1px solid #fcc;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(255, 100, 100, 0.3);
	transition: all 0.3s ease-in-out;
	margin: 2px;
}

.region-variants-page .bblack {
	border: 1px solid black;
}

.region-variants-page .emoji {
	font-family: "Noto Color Emoji", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
}

.region-variants-page .font-small {
	font-size: 14px;
}

.region-variants-page .font-mini {
	font-size: 12px;
}

.region-variants-page .page-title {
	font-size: 17px;
}

.region-variants-page .page-subtitle {
	font-size: 15px;
	font-weight: 400;
	color: #555; /* 7:1 contrast on white */
	margin-top: -0.25rem;
}

.region-variants-page .jumpman-blue {
	color: #0c7db6; /* darker than the logo blue (#62c4f5) for 4.5:1 contrast on white */
}

.region-variants-page .jumpman-yellow {
	color: #ffdc00;
}

.region-variants-page .jumpman-red {
	color: #dc1822;
}

.region-variants-page #svgCanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none; /* so clicks go through */
}

.region-variants-page .grid-container {
	display: grid;
	grid-template-columns: 85px auto 85px;
	align-items: center;
	gap: 5px;
}

.region-variants-page .left-text,
.region-variants-page .right-text {
	font-size: 13px;
	display: flex;
	flex-direction: column; /* Ensures text stacks vertically */
	text-align: center;
	overflow-wrap: break-word; /* The columns are narrower than long words like Westdeutschland */
}

/* Keyboard users can jump past the navbar, the link only shows when focused */
.skip-link:focus {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1090; /* above the navbar and cookie notice */
	padding: 0.5rem 1rem;
	background-color: #fff;
	border: 2px solid #258cfb;
	border-radius: 5px;
}

/* main only gets focus from the skip link, no outline needed */
#main-content:focus {
	outline: none;
}

.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1080;
	background-color: #fff;
	font-size: 0.9rem;
}
