*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
  --color-text: #f5f3ee;
  --color-bg: #0e0d0e;
  --color-link: #ffffff;
  --color-link-hover: #ffffff;
	--page-padding: 0.5rem;
	--grid-gap: var(--page-padding);
	--color-bg-content: #0e0d0e;
	--color-bg-frame: #7a7364;
	--color-border: #46443e;
}

html {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
}

/* Mobil: Safe Area für Notch/Home-Indikator */
@supports (padding: env(safe-area-inset-bottom)) {
	body {
		padding-left: env(safe-area-inset-left);
		padding-right: env(safe-area-inset-right);
	}
}

.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;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "area-variable", sans-serif;
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 450, "INKT" 0;
	font-weight: 450;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


.link--apply {
	font-weight: bold;
	font-size: 1.2rem;
	text-decoration: underline;
	color: var(--accent-color, #007acc); /* oder Wunschfarbe */
	top: 10%;
  }

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	opacity: 0.8;
	background: url('../img/supBRT_Logo_white_invert.svg') no-repeat center / contain;
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	text-decoration: underline;
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.type-tiny,
.cdawrap {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 400;
	font-variation-settings: "wght" 400;
}

.type-tinyPic {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 400;
	font-variation-settings: "wght" 400;
}

.frame {
	padding: var(--page-padding);
	text-transform: uppercase;
	position: relative;
	display: grid;
	line-height: 1;
	height: 0;
	min-height: 0;
	overflow: hidden;
	grid-row-gap: 0.5rem;
	grid-column-gap: 2rem;
	justify-items: start;
	align-content: start;
	background: var(--color-bg-frame);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto auto 1fr;
	grid-template-areas: 'logo' 'tags' 'sponsor' 'subline' 'title';
	opacity: 0;
	transition: opacity 4s ease-in;
	transition: transform 0.1s ease-out;
	will-change: transform;
}

.frame #cdawrap {
  justify-self: start;
}

.frame__title {
	white-space: nowrap;
  grid-area: title;
  font-size: clamp(2rem,20vw,20rem);
  margin: 0;
  letter-spacing: -0.05em;
  padding-top: 0.15em;
  font-weight: 400;
  line-height: 0.55;
  text-indent: -0.065em;
  word-spacing: 0.15em;
  font-family: "bricolage-grotesque-48", sans-serif;
}

.frame__subline {
	grid-area: subline;
}

.frame__tags {
  grid-area: tags;
}

.frame__logo {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	display: flex;
	align-items: center;
}

.logo-image {
	width: 50px;
	height: auto;
	margin-right: 10px;
}


.flex-line {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.content {
	position: relative;
	min-height: 100dvh;
	background: var(--color-bg-content);
	align-content: center;
}

.content--cutoff {
	overflow: hidden;
}

/* Keine Mindesthöhe: vermeidet schwarzen Leerraum zwischen Hero und nächster Section */
.content--compact {
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.content--padded {
	padding: var(--page-padding);
}

.content--full {
	display: grid;
	height: 100vh;
	height: 100dvh; /* Mobil: berücksichtigt Browser-UI */
	min-height: 50vh;
	place-items: center;
	grid-template-areas: 'main';
	grid-template-rows: 100%;
	grid-template-columns: 100%;
}

.content__text {
	font-size: 1.7rem;
	max-width: 625px;
	line-height: 1.4;
	margin: 0.5rem 0;
	font-weight: 500;
	font-variation-settings: "wght" 500;
	text-wrap: balance;
	letter-spacing: -0.025em;
}

.grid {
	grid-area: main;
	display: grid;
	width: 100%;
	height: 100%;
	grid-template-columns: repeat(8,1fr);
	grid-template-rows: 1fr 1fr 1fr;
}
/*
.grid--spaced {
	gap: var(--grid-gap);
}
*/

.grid--spaced {
	gap: var(--grid-gap);
}

.grid--zoomed {
	gap: 2rem;
	grid-template-columns: repeat(3, 70%);
	grid-template-rows: repeat(3, 60%);
	justify-content: center;
	align-content: center;
	aspect-ratio: 2 / 1;
}

.grid--zoomed .grid__img {
	width: 100%;
	height: 100%;
}

.grid--columns {
  grid-template-columns: repeat(5,1fr);
	grid-template-rows: repeat(2,min-content);
  align-content: center;
}

.grid--single {
  height: auto;
  justify-self: center;
}

.grid--column {
	grid-template-columns: repeat(15, calc((100% - 14 * 10px) / 15));
  gap: 10px;
	grid-template-rows: auto;
}

.grid__img:has(.grid__img-inner) {
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
	max-height: 100%;
	min-width: 100%;
}

.grid__img .grid__img-inner {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50% 50%;
	will-change: transform;
}
.ar-wide {
	aspect-ratio: 4/3;
}

.ar-narrow {
	aspect-ratio: 2/3;
}

.ar-rect {
	aspect-ratio: 1;
}

.span-2 {
	grid-column: auto / span 2;
}

.span-3 {
	grid-column: auto / span 3;
}

.grid--small {
	grid-template-columns: repeat(9,1fr);
	grid-auto-rows: 1fr;
}

.grid--tiny {
	height: 60vh;
	grid-template-columns: repeat(14,1fr);
	grid-auto-rows: auto;
}

.grid--wide {
	grid-template-columns: repeat(5,1fr);
	grid-template-rows: repeat(4,1fr);
}

.pos-1 { grid-area: 1 / 1; }
.pos-2 { grid-area: 1 / 3; }
.pos-3 { grid-area: 1 / 4; }
.pos-4 { grid-area: 1 / 5; }
.pos-5 { grid-area: 1 / 7; }
.pos-6 { grid-area: 2 / 1; }
.pos-7 { grid-area: 2 / 3; }
.pos-8 { grid-area: 2 / 4; }
.pos-9 { grid-area: 2 / 6; }
.pos-10 { grid-area: 2 / 7; }
.pos-11 { grid-area: 2 / 8; }
.pos-12 { grid-area: 3 / 1; }
.pos-13 { grid-area: 3 / 2; }
.pos-14 { grid-area: 3 / 4; }
.pos-15 { grid-area: 3 / 5; }
.pos-16 { grid-area: 3 / 7; }
.pos-17 { grid-area: 3 / 8; }
.pos-18 { grid-area: 2 / 5; }
.pos-19 { grid-area: 2 / 2; }
.pos-20 { grid-area: 2 / 5; }

.grid__img {
	background-size: cover;
	background-position: 50% 50%;
	pointer-events: none;
	will-change: transform;
	transform: translateZ(0.1px);
	padding-left: 10px;
	padding-right: 10px;
}

.grid--columns .grid__img {
	height: min-content;
	aspect-ratio: 2 / 3;
}
.content__title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: var(--color-text);
}

.content__titleENG {
	position: absolute;
	top: 10%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: var(--color-text);
}

.content__titleJOBS {
	position: absolute;
	top: -20%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: var(--color-text);
	max-width: 800px;
	word-break: break-word;
	hyphens: auto;
}

content__title-mainJOBS
{
	font-size: clamp(2rem, 7vw, 4.5rem);
	margin: 0.5rem 0 0;
	font-weight: 500;
	font-variation-settings: "wght" 500;
	word-break: break-word;
	hyphens: auto;
	letter-spacing: -0.025em;
}

.content__title-main {
	font-size: clamp(2rem, 7vw, 4.5rem);
	margin: 0.5rem 0 0;
	font-weight: 500;
	font-variation-settings: "wght" 500;
	text-wrap: balance;
	letter-spacing: -0.025em;
}

.content__title-mainENG {
	font-size: clamp(2rem, 7vw, 4.5rem);
	margin: 0.5rem 0 0;
	font-weight: 500;
	font-variation-settings: "wght" 500;
	text-wrap: balance;
	letter-spacing: -0.025em;
	max-width: 400px;
}

.content__title-mainENG + p {
	margin: 0;
	max-width: 600px;
}

.content__title-main + p {
	margin: 0;
	max-width: 200px;
}

.footer-faq {
	font-size: 11px;
	max-width: 360px;
	opacity: 0.75;
}

.footer-faq summary {
	cursor: pointer;
	list-style: none;
}

.footer-faq summary::-webkit-details-marker {
	display: none;
}

.footer-faq dl {
	margin: 0.5rem 0 0;
}

.footer-faq dt,
.footer-faq dd {
	max-width: 520px;
}

.footer-faq dt {
	font-weight: 600;
	margin-top: 0.5rem;
}

.footer-faq dd {
	margin: 0.25rem 0 0;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

.end {
	align-self: end;
}

.acenter {
	align-self: center;
}

.page-footer {
	padding: var(--page-padding);
	position: relative;
	display: grid;
	width: 100%;
	grid-row-gap: 1rem;
	grid-column-gap: 2rem;
	justify-items: start;
	grid-template-columns: auto;
	justify-content: space-between;
}

@media (max-aspect-ratio: 16/9) {
	.grid:not(.grid--zoomed) {
	  width: 100%; 
	  height: auto; 
	  aspect-ratio: 16/9;
	}
  }
  
  @media screen and (min-width: 53em) {
	  body {
		  --page-padding: 1rem;
	  }
	  .frame {
		  grid-template-columns: 20% 1fr 1fr;
		  grid-template-rows: min-content 1fr auto;
		  grid-row-gap: 15vh;
		  align-items: center;
		  grid-template-areas: 'logo tags sponsor' '... ... subline' 'title title title' ;
		  z-index: 1;
	  }
	  .frame__links {
		  margin-left: 3rem;
	  }
	  .frame__subline {
		  align-self: end;
	  }
	  .frame__title {
		  align-self: end;
	  }
	  .frame #cdawrap {
		  text-align: right;
		  max-width: 250px;
		  justify-self: end;
	  }
	  .page-footer {
		  grid-template-columns: repeat(4, auto);
		  grid-auto-flow: column;
		  align-items: center;
	  }
  }
  

.grid__text {
    position: absolute;
    z-index: 10;
    color: var(--color-text);
    font-size: clamp(2rem, 7vw, 4.5rem);
    max-width: 625px;
    line-height: 1.4;
    font-weight: 500;
    font-variation-settings: "wght" 500;
    text-wrap: balance;
    letter-spacing: -0.025em;
    padding: 1rem;
    text-align: center;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .content__title {
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    /* Seite 2 (Vertrauen): auf Mobil erst Text, dann Logos – bessere Anordnung */
    .content--mobile-stack.content--full {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        grid-template-areas: unset;
        grid-template-rows: unset;
        grid-template-columns: unset;
        place-items: unset;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .content--mobile-stack .content__title {
        position: relative;
        order: 1;
        transform: none;
        top: auto;
        left: auto;
        padding: 1.5rem var(--page-padding) 0;
        opacity: 1;
        visibility: visible;
    }

    .content--mobile-stack .content__title .content__title-main {
        margin-bottom: 0.5rem;
    }

    .content--mobile-stack .content__title .type-tiny {
        max-width: 28em;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        line-height: 1.4;
    }

    /* Logos: 3×5-Raster, letztes Logo weg, alle gleich groß */
    .content--mobile-stack .grid[data-grid-first] {
        order: 2;
        grid-area: auto;
        height: auto;
        min-height: 0;
        align-self: stretch;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 1rem;
        padding: 0 var(--page-padding);
        aspect-ratio: 3 / 5;
    }

    .content--mobile-stack .grid[data-grid-first] .grid__img:last-child {
        display: none;
    }

    .content--mobile-stack .grid[data-grid-first] .grid__img {
        grid-area: auto;
        aspect-ratio: 1;
        min-height: 0;
        padding: 0.5rem;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* Seite 3 (Project Management / SAP / IT Strategy): auf Mobil Karten untereinander */
    .content--mobile-stack-second .grid[data-grid-second] {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        grid-auto-rows: auto;
        gap: 2rem;
        padding: 0 var(--page-padding);
    }

    .content--mobile-stack-second .grid[data-grid-second] .grid__img,
    .content--mobile-stack-second .grid[data-grid-second] .grid__item {
        grid-area: auto;
    }

    /* Reihenfolge: Bild 1, Text PM, Bild 4, Text SAP, Bild 6, Text IT – Bilder 2 und 5 ausblenden */
    .content--mobile-stack-second .grid[data-grid-second] .grid__img:nth-child(2),
    .content--mobile-stack-second .grid[data-grid-second] .grid__img:nth-child(4) {
        display: none;
    }

    .content--mobile-stack-second .grid[data-grid-second] .grid__img:nth-child(1) { order: 1; }
    .content--mobile-stack-second .grid[data-grid-second] .grid__item.pos-6 { order: 2; }
    .content--mobile-stack-second .grid[data-grid-second] .grid__img:nth-child(3) { order: 3; }
    .content--mobile-stack-second .grid[data-grid-second] .grid__item.pos-7 { order: 4; }
    .content--mobile-stack-second .grid[data-grid-second] .grid__img:nth-child(5) { order: 5; }
    .content--mobile-stack-second .grid[data-grid-second] .grid__item.pos-18 { order: 6; }

    .content--mobile-stack-second .grid[data-grid-second] .grid__img {
        aspect-ratio: 3 / 4;
        min-height: 200px;
        background-size: cover;
        background-position: center;
    }

    .content--mobile-stack-second .grid[data-grid-second] .grid__item {
        padding: 0.5rem 0 0;
    }

    .content--mobile-stack-second .grid[data-grid-second] .grid__item h4 {
        margin: 0 0 0.25rem;
        font-size: 0.75rem;
    }

    .content--mobile-stack-second .grid[data-grid-second] .grid__item p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.35;
    }

    /* Engagements: auf Mobil erst Titel, dann Karten (Bild + Text) untereinander */
    .content--mobile-stack-engagements {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .content--mobile-stack-engagements .content__titleENG {
        position: relative;
        order: 1;
        top: auto;
        left: auto;
        transform: none;
        padding: 1.5rem var(--page-padding) 0;
    }

    .content--mobile-stack-engagements .grid[data-grid-seventh] {
        order: 2;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        grid-auto-rows: auto;
        gap: 2rem;
        padding: 0 var(--page-padding);
    }

    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img,
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item {
        grid-area: auto;
    }

    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img:nth-child(1) { order: 1; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item.pos-6 { order: 2; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img:nth-child(2) { order: 3; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item.pos-19 { order: 4; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img:nth-child(3) { order: 5; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item.pos-8 { order: 6; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img:nth-child(4) { order: 7; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item.pos-18 { order: 8; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img:nth-child(5) { order: 9; }
    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item.pos-7 { order: 10; }

    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__img {
        aspect-ratio: 3 / 4;
        min-height: 200px;
        background-size: cover;
        background-position: center;
    }

    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item {
        padding: 0.5rem 0 0;
    }

    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item h4 {
        margin: 0 0 0.25rem;
        font-size: 0.75rem;
    }

    .content--mobile-stack-engagements .grid[data-grid-seventh] .grid__item p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.35;
    }
}

  /* gmp-map als Hintergrund, der 90% der Footer-Höhe einnimmt */
  .map {
	min-height: 40dvh;
	top: 0;
	left: 0;
	width: 100%;
	height: 20px;
	padding: 20px;
  }
