/* ============================================
   FONTS
   ============================================
   Schriftarten-Definitionen für das Projekt:
   - sohne-var: Variable Font für Überschriften
   - sohne-mono: Monospace Font für technische Texte
   ============================================ */

@font-face {
	font-family: sohne-var;
	src: url(../assets/fonts/Sohne.woff2) format("woff2-variations");
	font-weight: 1 10000;
	font-display: block;
}

@font-face {
	font-family: sohne-mono;
	src: url(../assets/fonts/SohneMono-Buch.woff2) format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}


/* ============================================
   CUSTOM PROPERTIES
   ============================================
   CSS Custom Properties für dynamische Berechnungen
   Ermöglichen viewport-basierte Layouts
   ============================================ */

@property --_w {
	syntax: "<length>";
	inherits: true;
	initial-value: 100vw;
}

@property --_h {
	syntax: "<length>";
	inherits: true;
	initial-value: 100vh;
}


/* ============================================
   DESIGN TOKENS - FARBEN & VARIABLEN
   ============================================
   Zentrale Definition aller Farben, Abstände
   und wiederverwendbaren Werte
   ============================================ */

:root {
	/* ─────────────────────────────────────────
	   VIEWPORT DIMENSIONEN
	   ───────────────────────────────────────── */
	--screenWidth: tan(atan2(var(--_w), 1px));
	--screenHeight: tan(atan2(var(--_h), 1px));
	
	/* ─────────────────────────────────────────
	   PRIMÄRE FARBPALETTE
	   ───────────────────────────────────────── */
	--accentColor: #FFD700;              /* Primärer Akzent (Gelb) */
	--fontColorStatic: #1e1e1e;          /* Unveränderliche Textfarbe */
	--fontColor: #1e1e1e;                /* Standard Textfarbe */
	--fontInvertColor: #eaeaea;          /* Invertierte Textfarbe (auf Dunkel) */
	
	/* ─────────────────────────────────────────
	   UI KOMPONENTEN FARBEN
	   ───────────────────────────────────────── */
	--buttonColor: #1e1e1e33;            /* Button Hintergrund (semi-transparent) */
	--borderColorLight: #1e1e1e44;       /* Dezente Rahmenfarbe */
	--inactiveColor: #2e2e2e;            /* Deaktivierte Elemente */
	--backgroundColor: #eaeaea;          /* Haupt-Hintergrundfarbe */
	--middleColor: #eaeaea;              /* Zwischen-Ebene Farbe */
	--highlightColor: #FFD700;           /* Hover & Active States */
	
	/* ─────────────────────────────────────────
	   LAYOUT KONSTANTEN & SPACING
	   ───────────────────────────────────────── */
	--stickyOffset: 60px;                /* Abstand für sticky Navigation */
	--windowFrameBG: #dcdcdc;            /* Fenster-Chrome Hintergrund */
	--spacing-xs: 4px;                   /* Extra small spacing */
	--spacing-sm: 8px;                   /* Small spacing */
	--spacing-md: 12px;                  /* Medium spacing */
	--spacing-lg: 16px;                  /* Large spacing */
	--spacing-xl: 24px;                  /* Extra large spacing */
	--spacing-2xl: 32px;                 /* 2x large spacing */
	--spacing-3xl: 48px;                 /* 3x large spacing */
	--spacing-4xl: 56px;                 /* 4x large spacing */
	
	/* ─────────────────────────────────────────
	   KOMPONENTEN-SPEZIFISCHE FARBEN
	   ───────────────────────────────────────── */
	--listItemIconColor: var(--fontColor);
	--tagColor: var(--fontColor);
	--counterColor: #1e1e1e;
	--artBackground: #e8e8e8;            /* Canvas Hintergrund */
	--artForeground: #eaeaea;            /* Canvas Vordergrund */
	--artStroke: #1e1e1e;                /* Canvas Linien */
	--listItemText: #1e1e1e;             /* Listentext */
}


/* ============================================
   BROWSER RESETS & GRUNDLAGEN
   ============================================
   Normalisierung für konsistentes Rendering
   in allen modernen Browsern
   ============================================ */

/* ─────────────────────────────────────────
   BOX MODEL RESET
   ───────────────────────────────────────── */
* {
	box-sizing: border-box;
}

/* ─────────────────────────────────────────
   TYPOGRAFIE RESET
   ───────────────────────────────────────── */
blockquote,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p,
pre {
	margin: 0;
}

/* Link-Styling */
a {
	text-decoration: none;
}

a,
a:visited {
	color: var(--buttonColor);
}

/* ─────────────────────────────────────────
   DOCUMENT SETUP
   ───────────────────────────────────────── */
body,
html {
	width: 100%;
	height: 100%;
	-webkit-font-smoothing: antialiased;        /* Schriftglättung macOS */
	-moz-osx-font-smoothing: grayscale;        /* Schriftglättung Firefox */
	margin: 0;
	background-color: var(--backgroundColor);
}

body {
	font-family: sohne-var, Helvetica Neue, Arial, sans-serif;
	color: var(--bodyTextColor);
	background: var(--backgroundColor);
	background-attachment: fixed;
	-webkit-text-size-adjust: 100%;            /* Verhindert automatischen Zoom (iOS) */
	position: relative;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 0;
	display: none;
}

/* ─────────────────────────────────────────
   TEXT SELECTION STYLING
   ───────────────────────────────────────── */
::selection {
	background: var(--highlightColor);
	color: var(--invertedTextColor);
}

/* ─────────────────────────────────────────
   HAUPT-CONTAINER
   ───────────────────────────────────────── */
main {
	width: 100%;
	max-width: 1728px;                          /* Maximale Content-Breite */
	margin: -32px auto 0;                       /* zieht Inhalt leicht nach oben */
	padding-top: calc(96px + env(safe-area-inset-top, 0px));
	position: relative;
	z-index: 2;
}

@media (max-width: 767px){
	main {
		margin-top: 0;
		padding-top: calc(80px + env(safe-area-inset-top, 0px));
	}
}

/* ─────────────────────────────────────────
   RESPONSIVE MEDIEN
   ───────────────────────────────────────── */
img {
	max-width: 100%;
	max-height: 100%;
}


/* ============================================
   BUTTON KOMPONENTEN
   ============================================
   Primäre Button-Styles in zwei Größen
   Pill-Shape Design mit Hover-States
   ============================================ */

/* ─────────────────────────────────────────
   SMALL BUTTON (Kompakt)
   ───────────────────────────────────────── */
.buttonSm {
	display: block;
	width: 100%;
	text-align: center;
	padding: 6px 12px 8px;
	background: transparent;
	border-radius: 2px;
	border: 1px solid var(--buttonColor, --fontColor);
	cursor: pointer;
	letter-spacing: -0.42px;
	line-height: 1;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
}

.buttonSm:visited {
	color: var(--fontColor);
}

@media (pointer: fine) {
	.buttonSm:hover {
		background-color: var(--buttonColor);
		color: var(--backgroundColor);
	}
}

/* ─────────────────────────────────────────
   MEDIUM BUTTON (Standard)
   ───────────────────────────────────────── */
.buttonMd {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 12px 12px;
	background: transparent;
	border-radius: 2px;
	border: 1px solid var(--buttonColor, --fontColor);
	cursor: pointer;
	letter-spacing: -0.42px;
	line-height: 1;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
}

.buttonMd,
.buttonMd:visited {
	color: var(--fontColor);
}

@media (pointer: fine) {
	.buttonMd:hover {
		background-color: var(--highlightColor, #f4da1b);
		color: var(--fontColor);
		border-color: var(--highlightColor, #f4da1b);
	}
}


/* ============================================
   UTILITY CLASSES
   ============================================
   Helper-Klassen für Accessibility und
   visuelle Effekte
   ============================================ */

/* Screen Reader Only - Versteckt visuell, aber lesbar für Screen Reader */
.srOnly {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	-webkit-clip-path: rect(0, 0, 0, 0);
	clip-path: rect(0, 0, 0, 0);
	border: 0;
}


/* ============================================
   TYPOGRAFIE-SYSTEM
   ============================================
   Fluid Typography mit viewport-responsiver Skalierung
   
   Breakpoints: 390px → 600px → 760px → 960px → 1728px
   Alle Größen skalieren flüssig zwischen den Breakpoints
   ============================================ */

/* ─────────────────────────────────────────
   HERO - Haupttitel (80px → 170px)
   ───────────────────────────────────────── */
.text-hero {
	color: var(--fontColor);
	font-size: calc(80px + ((150 - 80) * (100vw - 390px) / (960 - 390)));
	font-weight: 500;
	line-height: 80%;
	letter-spacing: -0.07em;                   /* Sehr enges Tracking */
}

@media (min-width: 600px) {
	.text-hero {
		line-height: 84%;
		font-size: calc(80px + ((100 - 80) * (100vw - 600px) / (960 - 600)));
	}
}

@media (min-width: 960px) {
	.text-hero {
		line-height: 84%;
		font-size: calc(100px + ((170 - 100) * (100vw - 960px) / (1728 - 960)));
	}
}

@media (min-width: 1728px) {
	.text-hero {
		font-size: 170px;                          /* Max Size */
	}
}

/* ─────────────────────────────────────────
   LARGE - Untertitel (20px → 43px)
   ───────────────────────────────────────── */
.text-lg {
	font-size: calc(20px + ((43 - 20) * (100vw - 390px) / (1728 - 390)));
	line-height: 95%;
	letter-spacing: -0.06em;
}

@media (min-width: 1728px) {
	.text-lg {
		font-size: 43px;
	}
}

.text-lg,
.text-md {
	color: var(--headingTextColor, --fontColor);
	font-family: sohne-var, Helvetica Neue, Arial, sans-serif;
	font-style: normal;
	font-weight: 200;
}

/* ─────────────────────────────────────────
   MEDIUM - Sektions-Überschriften (20px → 28px)
   ───────────────────────────────────────── */
.text-md {
	font-size: calc(16px + ((22 - 16) * (100vw - 390px) / (760 - 390)));
	line-height: 100%;
	letter-spacing: -0.04em;
}

@media (min-width: 760px) {
	.text-md {
		font-size: calc(18px + ((22 - 18) * (100vw - 760px) / (960 - 760)));
	}
}

@media (min-width: 960px) {
	.text-md {
		font-size: calc(18px + ((22 - 18) * (100vw - 960px) / (1728 - 960)));
	}
}

@media (min-width: 1728px) {
	.text-md {
		font-size: 22px;
	}
}

.text-md b {
	font-weight: 300;                           /* Bold Variante */
}

/* ─────────────────────────────────────────
   SMALL - Fließtext (14px → 21px)
   ───────────────────────────────────────── */
.text-sm {
	color: var(--bodyTextColor, --fontColor);
	font-size: calc(14px + ((21 - 14) * (100vw - 390px) / (1728 - 390)));
	font-family: sohne-var, Helvetica Neue, Arial, sans-serif;
	font-style: normal;
	font-weight: 300;
	line-height: 100%;
	letter-spacing: -0.03em;
}

@media (min-width: 1728px) {
	.text-sm {
		font-size: 21px;
	}
}

/* ─────────────────────────────────────────
   SMALLCAPS - Labels & Technischer Text (responsive 10px → 14px)
   ───────────────────────────────────────── */
.text-smallcaps {
	color: var(--squareTextColor, --fontColor);
	font-family: sohne-mono;                    /* Monospace Font */
	font-size: clamp(10px, 2vw, 14px);
	font-style: normal;
	font-weight: 300;
	letter-spacing: -0.012em;
	text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
	grid-template-rows: auto auto;
	border-top: 0.5px solid var(--borderColor);
	margin-top: 100px;
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 0;

	@media (min-width: 760px) {
		margin-top: 160px;
	}
}

.footer__plus-icons {
	display: flex;
	flex-direction: row;
	gap: 8px;
	padding: 8px 0;
	width: 100%;
}

.footer__docs-section {
	grid-column: 1/6;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__links-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__link-list {
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2px;
}

.footer__docs-button,
.footer__resources-label {
	margin-top: auto;
}

.footer__copyright {
	display: flex;
	justify-content: center;
	align-items: center;
}

.footer__misc-list {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 32px;
}

.footer__separator {
	border-top: 1px solid var(--borderColorLight);
	margin-top: 12px;
	padding-top: 12px;
	width: 100%;
}

.footer__copyright-center {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 0 0;
}

@media (max-width: 959px){
	.footer {
		row-gap: 8px;
	}

	.footer__docs-section,
	.footer__links-section {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.footer__copyright,
	.footer__links-label,
	.footer__resources-label {
		margin-top: 0;
	}

	.footer__links-section {
		gap: 16px;
	}

	.footer__misc-list {
		margin-top: 0;
	}
}

/* ============================================
   PRICING CARDS - GLASSMORPHISM
   ============================================
   Glassmorphism-Effekt für Preis-Pläne
   
   Features:
   - Backdrop Blur für Glas-Effekt
   - Semi-transparente Hintergründe
   - Subtile Borders mit Transparenz
   ============================================ */


.plans-grid {
	display: grid;
	grid-column: 1/-1;
	grid-template-columns: subgrid;
	gap: 24px;
	row-gap: 24px;
}

@media (max-width: 959px){
	.plans-grid {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.plans-grid__card {
		width: 100%;
		grid-column: 1/-1 !important;
		padding: 24px;
	}
}

/* Glass Card mit Blur-Effekt */
.plans-grid__card {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.1);          /* Semi-transparent */
	backdrop-filter: blur(10px);                   /* Glassmorphism */
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);    /* Subtiler Border */
	border-radius: 16px;
	padding: 32px;
	gap: 24px;
}

.plans-grid__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.plans-grid__title {
	font-size: 24px;
	font-weight: 600;
	color: var(--fontColor);
	margin: 0;
}

.plans-grid__desc {
	font-size: 14px;
	color: var(--fontColor);
	line-height: 1.5;
	margin: 0;
}

.plans-grid__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.plans-grid__feature {
	font-size: 13px;
	color: var(--fontColor);
	padding-left: 20px;
	position: relative;
}

/* Checkmark vor Feature */
.plans-grid__feature:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accentColor);
	font-weight: bold;
}

.plans-grid__cta {
	width: 100%;
	margin-top: auto;                              /* Push to bottom */
}