@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Open+Sans:wght@400;500&display=swap");
/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	color: #222;
}

body {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: linear-gradient(135deg, #c31e1e, #8b1212);
	color: white;
	overflow: hidden; /* prevent any Y overflow */
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
}

a {
	color: #ffffff; /* white text */
	text-decoration: underline; /* underline */
	transition: color 0.2s ease;
}

a:hover {
	color: #cccccc; /* grey on hover */
}

a:active {
	color: #999999; /* darker grey on active */
}

a.active {
	color: #cccccc; /* highlight current page */
	font-weight: bold;
	text-decoration: none;
}

/* Navbar */
.navbar {
	width: 100%;
	display: flex;
	justify-content: space-between; /* menu left, brand right */
	align-items: center;
	padding: 1rem 2rem;
	position: relative;
	z-index: 2;
}

.menu ul {
	list-style: none;
	display: flex;
	gap: 2rem;
}

.menu ul li a {
	text-decoration: none;
	color: white;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}
/* Base menu items (you already have similar rules) */
.menu ul {
	list-style: none;
	display: flex;
	gap: 1.25rem;
	padding: 0;
	margin: 0;
}
.menu a,
.menu summary {
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	cursor: pointer;
}

/* Submenu container using <details> */
.menu .has-submenu {
	position: relative;
}
.menu .has-submenu details {
	position: relative;
}
.menu .has-submenu summary {
	list-style: none; /* hide default marker in some browsers */
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
.menu .has-submenu summary::-webkit-details-marker {
	display: none;
} /* Safari */

/* Caret */
.menu .has-submenu summary::after {
	content: "▾";
	font-size: 0.8em;
	opacity: 0.85;
	transform: translateY(-1px);
}
.menu .has-submenu details[open] summary::after {
	transform: rotate(180deg) translateY(1px);
}

/* Submenu panel */
.menu .submenu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: max-content;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	padding: 0.6rem;
	display: grid;
	gap: 0.25rem;
	z-index: 1000;
}

/* Submenu link styling */
.menu .submenu a {
	display: block;
	padding: 0.45rem 0.6rem;
	text-transform: none;
	letter-spacing: 0.02em;
	color: #fff;
	border-radius: 8px;
}
.menu .submenu a:hover,
.menu .submenu a:focus {
	background: rgba(255, 255, 255, 0.15);
	outline: none;
}

.menu ul {
	list-style: none;
	display: flex; /* row layout for main nav */
	gap: 1.25rem;
	padding: 0;
	margin: 0;
}

/* Submenu override */
.menu .submenu {
	display: block; /* stacked layout */
	padding: 0.6rem;
}

.menu .submenu li {
	display: block;
	margin: 0.25rem 0;
}

/* Desktop hover open (optional): also open on hover/focus for convenience */
@media (hover: hover) {
	.menu .has-submenu:hover > details:not([open]) {
		/* open on hover without sticking it */
		/* simulate open using pointer-events trick */
	}
}

/* Mobile / narrow screens: stack menu; submenu becomes static block */
@media (max-width: 900px) {
	.menu ul {
		flex-direction: column;
		gap: 0.75rem;
	}
	.menu .has-submenu {
		width: 100%;
	}
	.menu .submenu {
		position: static;
		min-width: 0;
		border-radius: 8px;
		margin-top: 0.35rem;
	}
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-title {
	font-size: 1.2rem;
	font-weight: bold;
	text-transform: uppercase;
	color: white;
}

.logo {
	width: 32px;
	height: auto;
}

/* Hero Section */
.hero {
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto;
	padding: 3rem;
	position: relative;
	text-align: center;
	overflow: hidden;
	height: 100%;
}

/* .hero-inner {
	display: flex;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2rem;
} */

.hero-inner {
	display: flex;
	flex-direction: column; /* stack title on top, content below */
	margin: 0 auto;
	background-color: rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	padding-left: 10px;
	min-height: 675px !important;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	flex: 1; /* fill remaining height */
}

.hero-title {
	text-align: left;
	margin-bottom: 1rem;
	margin-top: 30px;
}
.hero-text {
	text-align: left;
	overflow-y: auto; /* enable vertical scroll */
	max-height: 60vh; /* don't exceed viewport */
	padding-right: 1rem; /* space so scrollbar doesn’t touch text */
}

.hero-text::-webkit-scrollbar {
	width: 8px;
}
.hero-text::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}
.hero-text::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* Image column centered */
.hero-image {
	display: flex;
	justify-content: center; /* horizontal center */
	align-items: center; /* vertical center */
	padding-right: 20px;
	height: 71%;
}

.hero-image img {
	max-width: 100%;
	max-height: 90%; /* keep inside viewport */
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content {
	max-width: 700px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.content h1 {
	font-size: 2.5rem;
	font-weight: bold;
	line-height: 1.3;
}

.content h2 {
	font-size: 2rem;
	font-weight: bold;
	line-height: 1.3;
}

.content p {
	margin: 1.5rem 0;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.btn {
	display: inline-block;
	background: #f44336;
	color: white;
	padding: 0.8rem 1.8rem;
	border-radius: 25px;
	text-decoration: none;
	font-weight: bold;
	transition: 0.3s ease;
}

.btn:hover {
	background: #d32f2f;
}

button {
	background: var(--accent);
	color: #fff;
	padding: 0.7rem 1.1rem;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

/* Abstract SVG Background */
/* .hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path d="M400 0c100 150 200 150 300 300s-200 200-300 300-200-150-300-300S300-150 400 0z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>')
		no-repeat center;
	background-size: cover;
	z-index: 0;
} */
.main {
	height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
}
.main::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml;utf8,    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"> <g fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2">  <path d="M400 0c100 150 200 150 300 300s-200 200-300 300-200-150-300-300S300-150 400 0z"/>     <path d="M400 50c90 140 180 140 270 270s-180 180-270 270-180-140-270-270S310-90 400 50z"/>       <path d="M400 100c80 120 160 120 240 240s-160 160-240 240-160-120-240-240S320-40 400 100z"/>       <circle cx="400" cy="300" r="250"/>        <circle cx="400" cy="300" r="300"/>      </g>    </svg>  ')
		no-repeat center;
	background-size: cover;
	z-index: 0;
}

.hero .content {
	position: relative;
	z-index: 1;
}

.swiss-flag-logo {
	position: relative;
	width: 50px; /* Adjust size as needed */
	height: 50px;
	background-color: #ff0000; /* Swiss red */
}

.swiss-flag-logo::before,
.swiss-flag-logo::after {
	content: "";
	position: absolute;
	background-color: white;
}

.swiss-flag-logo::before {
	top: 20%;
	left: 45%;
	width: 10%;
	height: 60%;
}

.swiss-flag-logo::after {
	top: 45%;
	left: 20%;
	width: 60%;
	height: 10%;
}

.flag-icon {
	height: 24px; /* adjust icon size here */
	width: auto;
	vertical-align: middle;
}

.headline {
	display: flex;
	align-items: center; /* vertically aligns text and flag */
	gap: 0.5rem; /* space between text and flag */
	justify-content: center;
}

.headline h2 {
	margin: 0; /* remove extra spacing */
}

.flag-icon {
	height: 32px; /* adjust flag size */
	width: auto;
}

/* Footer */
.footer {
	background: rgba(0, 0, 0, 0.3);
	padding: 1rem 2rem;
	color: white;
	position: relative;
	text-align: center;
}

.footer-content {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
}

.footer-links {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	padding: 0;
}

.footer-links li a {
	color: white;
	text-decoration: none;
	font-size: 0.9rem;
}

.footer-links li a:hover {
	text-decoration: underline;
}

/* ===== Base fluid rules (applies to all) ===== */
:root {
	--wrap-pad: clamp(12px, 3vw, 24px);
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}
body {
	overflow-x: hidden;
	overflow-y: auto;
}
.content {
	max-width: 1100px;
	width: min(100%, 92vw);
	margin-inline: auto;
}
.hero {
	padding: clamp(1.2rem, 4vw, 3rem);
}
.brand {
	gap: clamp(0.4rem, 1.2vw, 0.8rem);
}
.flag-icon {
	height: clamp(22px, 3.2vw, 32px);
}

/* Headings scale slightly by default; we’ll “pin” them per device below */
.content h1 {
	font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
	line-height: 1.2;
}
.content h2 {
	font-size: clamp(1.25rem, 1.5vw + 0.9rem, 2rem);
	line-height: 1.25;
}
.content p {
	font-size: clamp(0.98rem, 0.4vw + 0.8rem, 1.06rem);
}
.btn {
	font-size: clamp(0.95rem, 0.5vw + 0.7rem, 1rem);
}

/* Navbar wraps gracefully by default */
.navbar {
	padding: 0.9rem var(--wrap-pad);
	flex-wrap: wrap;
	gap: 0.5rem;
}
.menu ul {
	flex-wrap: wrap;
	gap: clamp(0.75rem, 2.2vw, 1.5rem);
}

.text-underline {
	text-decoration: underline;
}

/* Footer spacing */
.footer-content {
	padding-inline: var(--wrap-pad);
}

/* Breadcrumb */
.breadcrumb {
	padding-left: 0.2rem;
	font-size: 0.9rem;
	position: relative;
	z-index: 2; /* stay above hero bg */
	color: rgba(255, 255, 255, 0.9);
}

.breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap; /* wraps if long */
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	justify-content: end;
}

.breadcrumb li {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.breadcrumb li + li::before {
	content: "›"; /* separator */
	opacity: 0.7;
	margin: 0 0.4rem;
}

.breadcrumb a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	white-space: nowrap; /* prevent mid-word breaks */
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.padding-left-5 {
	padding-left: 5px;
}

/* On smaller screens: stack text + image */
@media (max-width: 768px) {
	.hero-inner {
		grid-template-columns: 1fr;
		height: auto; /* allow normal flow on mobile */
	}
	.hero-text {
		max-height: none; /* disable forced scroll on mobile */
		overflow-y: visible;
		text-align: center;
	}
	.hero-content {
		grid-template-columns: 1fr;
		padding-left: 5px;
	}

	.hero-image {
		display: none;
	}

	.hero-title {
		text-align: center;
		margin-bottom: 1rem;
	}

	.breadcrumb {
		padding: 0.45rem 1.25rem;
		font-size: 0.86rem;
	}
	.breadcrumb li + li::before {
		margin: 0 0.3rem;
	}
	.main {
		height: 100%;
	}
}

/* ================== DESKTOPS ================== */
/* 1440px+ (large desktops) */
@media (min-width: 1440px) {
	.content {
		max-width: 1200px;
	}
	.content h1 {
		font-size: 1.5rem;
		text-align: center;
	}
	.content h2 {
		font-size: 2.2rem;
	}

	.hero-inner {
		min-height: 522px !important;
		max-height: 522px !important;
	}

	.hero-image {
		height: 54% !important;
	}
}

/* 1280–1439 (standard desktop/laptop) */
@media (min-width: 1280px) and (max-width: 1439px) {
	.content {
		max-width: 1100px;
	}
	.hero-inner {
		min-height: 443px !important;
	}
	.content h1 {
		font-size: 1.5rem;
		text-align: center;
	}
	.content h2 {
		font-size: 2rem;
	}
}

/* ================== TABLETS ================== */
/* 1024–1279 (iPad landscape, small laptops) */
@media (min-width: 1024px) and (max-width: 1279px) {
	.content {
		max-width: 980px;
	}
	.content h1 {
		font-size: 1.5rem;
		text-align: center;
	}
	.content h2 {
		font-size: 1.8rem;
	}
	.menu ul li a {
		font-size: 0.95rem;
	}
	.hero-inner {
		min-height: 443px !important;
	}
}

/* 912–1023 (Pixel Tablet / big Android tablets) */
@media (min-width: 912px) and (max-width: 1023px) {
	.content {
		max-width: 900px;
	}
	.content h1 {
		font-size: 1.5rem;
		text-align: center;
	}
	.content h2 {
		font-size: 1.7rem;
	}
	.brand video {
		width: 90px;
	}
	.main {
		height: 100%;
	}

	.hero-text {
		text-align: left;
		overflow-y: auto;
		max-height: 72vh;
		padding-right: 1rem;
	}
}

/* 820–911 (iPad Air/Mini portrait) */
@media (min-width: 820px) and (max-width: 911px) {
	.navbar {
		gap: 0.6rem;
	}
	.content {
		max-width: 820px;
	}
	.content h1 {
		font-size: 1.5rem;
		text-align: center;
	}
	.content h2 {
		font-size: 1.6rem;
	}
	.brand video {
		width: 84px;
	}
}

/* 768–819 (classic iPad portrait) */
@media (min-width: 768px) and (max-width: 819px) {
	.navbar {
		gap: 0.6rem;
	}
	.menu ul li a {
		font-size: 0.9rem;
	}
	.content {
		max-width: 760px;
	}
	.content h1 {
		font-size: 2.2rem;
	}
	.content h2 {
		font-size: 1.5rem;
	}
	.brand video {
		width: 80px;
	}
}

/* ================== BIG PHONES / SMALL TABLETS ================== */
/* 720–767 */
@media (min-width: 720px) and (max-width: 767px) {
	.navbar {
		flex-direction: column;
		align-items: center;
	}
	.menu ul {
		justify-content: center;
	}
	.site-title {
		text-align: center;
	}
	.content {
		max-width: 680px;
	}
	.content h1 {
		font-size: 2.05rem;
	}
	.content h2 {
		font-size: 1.45rem;
	}
	.brand video {
		width: 76px;
	}
}

/* 640–719 (large phones landscape / small tablets) */
@media (min-width: 640px) and (max-width: 719px) {
	.navbar {
		flex-direction: column;
	}
	.menu ul {
		justify-content: center;
	}
	.hero {
		padding: 1.4rem;
	}
	.content {
		max-width: 600px;
	}
	.content h1 {
		font-size: 1.95rem;
	}
	.content h2 {
		font-size: 1.4rem;
	}
	.brand video {
		width: 72px;
	}
}

/* ================== COMMON PHONE WIDTHS ================== */
/* 600–639 */
@media (min-width: 600px) and (max-width: 639px) {
	.content {
		max-width: 560px;
	}
	.content h1 {
		font-size: 1.9rem;
	}
	.content h2 {
		font-size: 1.35rem;
	}
	.brand video {
		width: 68px;
	}
	.btn {
		width: 100%;
	}
}

/* 540–599 (Pixel 7/8/Pro portrait region) */
@media (min-width: 540px) and (max-width: 599px) {
	.content {
		max-width: 520px;
	}
	.content h1 {
		font-size: 1.85rem;
	}
	.content h2 {
		font-size: 1.32rem;
	}
	.brand video {
		width: 64px;
	}
	.menu ul {
		gap: 0.8rem;
	}
}

/* 480–539 */
@media (min-width: 480px) and (max-width: 539px) {
	.content {
		max-width: 460px;
	}
	.content h1 {
		font-size: 1.75rem;
	}
	.content h2 {
		font-size: 1.28rem;
	}
	.brand video {
		width: 60px;
	}
	.menu ul li a {
		font-size: 0.88rem;
	}
}

/* ===== iPhone 15/14 Pro Max width (430) and near widths ===== */
@media (min-width: 428px) and (max-width: 479px) {
	.navbar {
		padding: 0.8rem var(--wrap-pad);
	}
	.menu ul {
		gap: 0.7rem;
	}
	.content {
		max-width: 420px;
		padding: 5px !important;
	}
	.content h1 {
		font-size: 1.65rem;
	}
	.content h2 {
		font-size: 1.22rem;
	}
	.brand video {
		width: 56px;
	}
	.flag-icon {
		height: 28px;
	}
	.btn {
		width: 100%;
	}
}

/* ===== Legacy iPhone Plus/Max common width (414) ===== */
@media (min-width: 414px) and (max-width: 427px) {
	.content {
		max-width: 404px;
		padding: 5px !important;
	}
	.content h1 {
		font-size: 1.6rem;
	}
	.content h2 {
		font-size: 1.18rem;
	}
	.brand video {
		width: 54px;
	}
}

/* ===== iPhone 12/13/14/15 (390) ===== */
@media (min-width: 390px) and (max-width: 413px) {
	.content {
		max-width: 378px;
		padding: 5px !important;
	}
	.content h1 {
		font-size: 1.55rem;
	}
	.content h2 {
		font-size: 1.15rem;
	}
	.brand video {
		width: 52px;
	}
	.menu ul {
		gap: 0.6rem;
	}
}

/* ===== iPhone X/11/12 mini/SE new (375) ===== */
@media (min-width: 375px) and (max-width: 389px) {
	.content {
		max-width: 364px;
	}
	.content h1 {
		font-size: 1.5rem;
	}
	.content h2 {
		font-size: 1.12rem;
	}
	.brand video {
		width: 50px;
	}
}

/* ===== Small Android (360) ===== */
@media (max-width: 374px) {
	.content {
		max-width: 348px;
	}
	.content h1 {
		font-size: 1.45rem;
	}
	.content h2 {
		font-size: 1.08rem;
	}
	.brand video {
		width: 48px;
	}
	.menu ul li a {
		font-size: 0.86rem;
	}
}

/* ===== Very small (≤320) failsafe ===== */
@media (max-width: 320px) {
	.content {
		width: 96vw;
	}
	.content h1 {
		font-size: 1.35rem;
	}
	.content h2 {
		font-size: 1.02rem;
	}
	.brand video {
		width: 46px;
	}
	.menu ul {
		gap: 0.5rem;
	}
}

/* Base header layout */
.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0.9rem var(--wrap-pad, 20px);
}

/* Ensure order: [hamburger][menu]...........[brand] */
.menu-toggle {
	order: 1;
	display: none;
} /* hidden on desktop */
.menu {
	order: 2;
}
.brand {
	order: 3;
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* Desktop menu (left, horizontal) */
.menu ul {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.menu a {
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 0.95rem;
	padding: 6px 2px;
}

/* Hamburger styling */
.menu-toggle {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.menu-toggle .bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Robust layout below 960px: hamburger LEFT, brand RIGHT, menu BELOW */
@media (max-width: 960px) {
	.navbar {
		display: grid;
		grid-template-columns: auto 1fr; /* [burger] [spacer->brand] */
		grid-template-areas:
			"burger brand"
			"menu   menu";
		align-items: center;
		gap: 8px;
		padding: 0.9rem var(--wrap-pad, 20px);
	}

	/* Place items into the grid areas */
	.menu-toggle {
		grid-area: burger;
		display: inline-flex; /* show the hamburger */
		justify-self: start; /* keep LEFT */
		margin: 0; /* prevent stray centering */
	}

	.brand {
		grid-area: brand;
		justify-self: end; /* keep RIGHT */
		margin: 0; /* override any auto margins */
	}

	.menu {
		grid-area: menu;
		width: 100%;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		background: rgba(255, 255, 255, 0.1);
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 12px;
		margin-top: 0.5rem;
		transition: max-height 0.35s ease, opacity 0.25s ease;
	}

	.menu ul {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0.6rem;
		margin: 0;
		list-style: none;
	}

	.menu li a {
		display: block;
		padding: 0.85rem 0.9rem;
		border-radius: 8px;
	}
	.menu li a:hover {
		background: rgba(255, 255, 255, 0.12);
	}

	/* Open state (checkbox hack) */
	.nav-toggle:checked ~ .menu {
		max-height: 70vh;
		opacity: 1;
	}

	/* Animate hamburger → X */
	.nav-toggle:checked ~ .menu-toggle .bar:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}
	.nav-toggle:checked ~ .menu-toggle .bar:nth-child(2) {
		opacity: 0;
	}
	.nav-toggle:checked ~ .menu-toggle .bar:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}
}

/* Ensure the hamburger bars animate */
.menu-toggle .bar {
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Optional: prevent page scroll when menu open (modern browsers) */
@supports selector(body:has(.nav-toggle:checked)) {
	body:has(.nav-toggle:checked) {
		overflow: hidden;
	}
}
