/* ==========================================================
   CFM Security Services GmbH – cfm-security.at (One-Pager, statisch)
   1. Schrift + Tokens   2. Basis   3. Bausteine (Eyebrow, Buttons, Links)
   4. Kopf   5. Hero   6. Tätigkeitsbereiche   7. Kontakt   7.1 Notfallkarte (PDF, helle Karte)
   8. Fuß   9. Rechtliche Seiten (Impressum, Datenschutz)   10. Tablet / Smartphone
   ========================================================== */

/* ---------- 1. Schrift + Tokens ---------- */
@font-face {
	font-family: "Inter";
	src: url("/fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink:        #1d1d1f;   /* Logo */
	--ink-2:      #424245;
	--grau:       #6e6e73;   /* Logo „GmbH“, auf weiß 5.1:1 */
	--rot:        #d21f33;   /* Logo */
	--rot-hover:  #b5182b;
	--hell:       #f5f5f7;
	--weiss:      #ffffff;
	--linie:      rgba(29, 29, 31, .12);
	--dunkel:     #1d1d1f;
	--auf-dunkel: #f5f5f7;
	--auf-dunkel-2: #a1a1a6;
	--linie-dunkel: rgba(255, 255, 255, .14);
	--wrap:       1200px;
	--radius:     6px;
}

/* ---------- 2. Basis ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--weiss);
	color: var(--ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
ol,
dl,
dd {
	margin: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 80px);
	margin: 0 auto;
	padding: 0 40px;
}

:focus-visible {
	outline: 2px solid var(--rot);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--rot);
	color: #fff;
}

.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 10;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	border-radius: var(--radius);
}

.skip:focus {
	top: 16px;
}

/* ---------- 3. Bausteine ---------- */

/* Eyebrow: roter Punkt wie im Logo */
.eyebrow {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 24px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--grau);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: calc((1.6em - 8px) / 2);   /* Punkt bleibt bei Umbruch auf Höhe der ersten Zeile */
	border-radius: 50%;
	background: var(--rot);
}

/* Buttons */
.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 24px;
	background: var(--rot);
	border: 1px solid var(--rot);
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}

.btn::after {
	content: "\2192";
	transition: transform .2s;
}

.btn:hover,
.btn:focus-visible {
	background: var(--rot-hover);
	border-color: var(--rot-hover);
}

.btn:hover::after {
	transform: translateX(3px);
}

.btn--kontur {
	background: transparent;
	border-color: rgba(29, 29, 31, .25);
	color: var(--ink);
}

.btn--kontur::after {
	content: none;
}

.btn--kontur:hover,
.btn--kontur:focus-visible {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* Textlink mit Pfeil */
.pfeil {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

.pfeil::after {
	content: "\2192";
	color: var(--rot);
	transition: transform .2s;
}

.pfeil:hover::after,
.pfeil:focus-visible::after {
	transform: translateX(4px);
}

/* ---------- 4. Kopf ---------- */
.kopf {
	background: var(--weiss);
	border-bottom: 1px solid var(--linie);
}

.kopf-innen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 88px;
}

.kopf-logo img {
	width: auto;
	height: 44px;
}

.kopf-link {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-2);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 8px;
	transition: color .2s, text-decoration-color .2s;
}

.kopf-link:hover,
.kopf-link:focus-visible {
	color: var(--ink);
	text-decoration-color: var(--rot);
}

/* ---------- 5. Hero ---------- */
.hero {
	padding: 136px 0 128px;
	background: var(--hell);
}

/* Signet c• als großes Zeichen rechts (nur Gestaltung, aria-hidden): Ring als feiner Verlauf, Punkt in Rot */
.hero {
	position: relative;
	overflow: hidden;
}

.hero .wrap {
	position: relative;
	z-index: 1;
}

.hero-zeichen {
	position: absolute;
	top: 50%;
	right: max(40px, calc((100% - var(--wrap)) / 2 - 40px));
	width: min(420px, 30vw);
	height: auto;
	transform: translateY(-50%);
	pointer-events: none;
}

.hero h1 {
	max-width: 14ch;
	font-size: clamp(44px, 6.2vw, 84px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -.035em;
}

.hero .lead {
	max-width: 54ch;
	margin-top: 32px;
	font-size: 20px;
	line-height: 1.6;
	color: var(--ink-2);
}

.hero .lead a {
	white-space: nowrap;   /* „dfir-austria.at“ nie am Bindestrich trennen */
	font-weight: 500;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--rot);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
	transition: text-decoration-thickness .2s, text-underline-offset .2s;
}

.hero .lead a:hover,
.hero .lead a:focus-visible {
	text-decoration-thickness: 2.5px;
	text-underline-offset: 3px;
}

/* ---------- 6. Tätigkeitsbereiche ---------- */
.bereiche {
	padding: 120px 0;
}

.bereiche h2,
.kontakt h2 {
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.025em;
}

.bereiche-liste {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 56px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--linie);
}

.bereiche-liste li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 32px 28px 8px 0;
}

.bereiche-liste li + li {
	padding-left: 28px;
	border-left: 1px solid var(--linie);
}

/* rote Linie oben, wie der senkrechte Strich im Logo */
.bereiche-liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 32px;
	height: 1px;
	background: var(--rot);
}

.bereiche-liste li + li::before {
	left: 28px;
}

.bereiche-nr {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	color: var(--rot);
}

.bereiche-name {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -.02em;
}

.bereiche-text {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--grau);
}

.bereiche-fuss {
	margin-top: 48px;
}

/* ---------- 7. Kontakt ---------- */
.kontakt {
	padding: 120px 0;
	background: var(--dunkel);
	color: var(--auf-dunkel);
}

.kontakt .eyebrow {
	color: var(--auf-dunkel-2);
}

.kontakt-raster {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
	align-items: end;   /* Angaben rechts bündig mit dem unteren Rand der linken Spalte (Notfallkarte) */
}

.kontakt h2 {
	max-width: 12ch;
	color: #fff;
}

.kontakt-daten {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	border-bottom: 1px solid var(--linie-dunkel);
}

.kontakt-daten dt,
.kontakt-daten dd {
	padding: 22px 0;
	border-top: 1px solid var(--linie-dunkel);
}

.kontakt-daten dt {
	padding-top: 27px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--auf-dunkel-2);
}

.kontakt-daten dd {
	font-size: 22px;
	line-height: 1.45;
	letter-spacing: -.01em;
	color: #fff;
}

.kontakt-daten a {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s;
}

.kontakt-daten a:hover,
.kontakt-daten a:focus-visible {
	color: #ff6b7c;   /* Rot auf dunkel, 5.9:1 */
}

/* 7.1 Notfallkarte – helle Karte unter der Überschrift (PDF und Vorschau liegen auf dfir-austria.at, einmal für alle Websites)
   div.karte > a.karte-bild (img) + div.karte-text (p.karte-eyebrow, h3.karte-titel, p.karte-aktion > a.btn + span.karte-meta) */
.karte {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	max-width: 480px;
	margin-top: 48px;
	padding: 28px;
	background: var(--hell);
	border-radius: 10px;
	color: var(--ink);
}

.karte-bild {
	display: block;
	line-height: 0;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(29, 29, 31, .08), 0 14px 30px rgba(29, 29, 31, .25);
	transform: rotate(-2.5deg);
	transition: transform .3s ease;
}

.karte:hover .karte-bild {
	transform: rotate(0);
}

.karte-bild img {
	width: 100%;
	border-radius: 3px;
}

.karte-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--grau);
}

.karte-eyebrow::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rot);
}

.karte-titel {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--ink);
}

.karte-lead {
	margin-top: 10px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-2);
}

.karte-aktion {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 18px;
}

.karte .btn {
	padding: 11px 18px;
	font-size: 14px;
}

/* Download: Pfeil nach unten statt nach rechts */
.btn--download::after {
	content: "\2193";
}

.btn--download:hover::after {
	transform: translateY(2px);
}

.karte-meta {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--grau);
}

/* ---------- 8. Fuß ---------- */
.fuss {
	background: var(--dunkel);
	border-top: 1px solid var(--linie-dunkel);
	color: var(--auf-dunkel-2);
}

.fuss-innen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-top: 28px;
	padding-bottom: 28px;
	font-size: 13px;
}

.fuss nav {
	display: flex;
	gap: 28px;
}

.fuss a {
	color: var(--auf-dunkel-2);
	text-decoration: none;
	transition: color .2s;
}

.fuss a:hover,
.fuss a:focus-visible {
	color: #fff;
}

/* ---------- 9. Rechtliche Seiten (Impressum, Datenschutz) ----------
   section.recht-kopf (Eyebrow + H1) · section.recht > .recht-innen (h2, p, dl.daten) */
.recht-kopf {
	padding: 88px 0 72px;
	background: var(--hell);
}

.recht-kopf h1 {
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.recht {
	padding: 72px 0 120px;
}

/* Lesebreite begrenzt, Raster bleibt bündig mit Kopf und Fuß */
.recht-innen > * {
	max-width: 820px;
}

.recht h2 {
	margin: 56px 0 16px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.015em;
}

.recht h2:first-child {
	margin-top: 0;
}

.recht p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-2);
}

.recht a {
	font-weight: 500;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--rot);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.recht a:hover,
.recht a:focus-visible {
	text-decoration-thickness: 2.5px;
}

.recht-stand {
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--grau);
}

/* Angaben: Bezeichnung | Wert */
.daten {
	display: grid;
	grid-template-columns: minmax(170px, 32%) minmax(0, 1fr);
	border-bottom: 1px solid var(--linie);
}

.daten dt,
.daten dd {
	padding: 14px 0;
	border-top: 1px solid var(--linie);
}

.daten dt {
	padding-right: 24px;
	padding-top: 17px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--grau);
}

.daten dd {
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
}

/* ---------- 10. Tablet / Smartphone ---------- */
@media (max-width: 989px) {
	/* Tablet/Smartphone: kein Platz neben dem Text – Zeichen entfällt */
	.hero-zeichen {
		display: none;
	}

	.bereiche-liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bereiche-liste li:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.bereiche-liste li:nth-child(3)::before {
		left: 0;
	}

	.bereiche-liste li:nth-child(n+3) {
		margin-top: 24px;
		border-top: 1px solid var(--linie);
	}

	.kontakt-raster {
		grid-template-columns: 1fr;
	}

	.karte {
		margin-bottom: 8px;
	}
}

@media (max-width: 767px) {
	/* nur seitlich – sonst würde das senkrechte Padding von .fuss-innen (8) auf 0 gesetzt */
	.wrap {
		padding-left: 22px;
		padding-right: 22px;
	}

	.kopf-innen {
		height: 72px;
	}

	.kopf-logo img {
		height: 34px;
	}

	.hero {
		padding: 80px 0 80px;
	}

	.hero h1 {
		font-size: 42px;
	}

	.hero .lead {
		font-size: 18px;
	}

	.btns .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.bereiche,
	.kontakt {
		padding: 80px 0;
	}

	.bereiche-liste {
		grid-template-columns: 1fr;
		margin-top: 40px;
	}

	.bereiche-liste li,
	.bereiche-liste li + li {
		padding: 24px 0 22px;
		border-left: 0;
	}

	.bereiche-liste li + li,
	.bereiche-liste li:nth-child(n+3) {
		margin-top: 0;
		border-top: 1px solid var(--linie);
	}

	.bereiche-liste li + li::before {
		left: 0;
	}

	/* Smartphone: Vorschau klein neben Eyebrow + Titel, Text und Button darunter über die volle Breite */
	.karte {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 0 18px;
		align-items: start;
		margin-top: 36px;
		padding: 22px 20px;
	}

	.karte-bild {
		grid-row: 1 / span 2;
	}

	.karte-text {
		display: contents;
	}

	.karte-eyebrow,
	.karte-titel {
		grid-column: 2;
	}

	.karte-lead,
	.karte-aktion {
		grid-column: 1 / -1;
	}

	.karte-lead {
		margin-top: 18px;
	}

	.kontakt-daten {
		grid-template-columns: 1fr;
	}

	.kontakt-daten dt {
		padding: 20px 0 2px;
	}

	.kontakt-daten dd {
		padding-top: 0;
		border-top: 0;
		font-size: 20px;
	}

	.fuss-innen {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding-top: 32px;
		padding-bottom: 36px;
	}

	.recht-kopf {
		padding: 56px 0 48px;
	}

	.recht {
		padding: 48px 0 80px;
	}

	.daten {
		grid-template-columns: 1fr;
	}

	.daten dt {
		padding: 16px 0 0;
	}

	.daten dd {
		padding-top: 2px;
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
	}

	.karte-bild {
		transform: none;
	}
}