/* ==========================================================================
   Smylla GbR – Stylesheet
   Eine Datei, mobile-first, keine externen Ressourcen (keine Webfonts, kein CDN).
   ========================================================================== */

/* --- Design-Tokens ------------------------------------------------------ */

:root {
	/* Firmengrün der bisherigen Seite (#008F39) als Akzent, plus ein dunklerer
	   Ton für Text und Buttons – #008F39 erreicht auf Weiß nur 4,2:1 und
	   verfehlt damit die Lesbarkeitsanforderung für normalen Text. */
	--green: #008f39;
	--green-dark: #00702d;
	--green-darker: #005522;
	--green-tint: #f0f7f2;

	--ink: #1a1d1b;
	--ink-soft: #4a524d;
	--paper: #ffffff;
	--paper-alt: #f7f6f3;
	--line: #e2e5e1;

	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;

	--container: 68rem;
	--gap: 1.5rem;
	--section-y: clamp(3rem, 8vw, 5.5rem);
	--radius: 0.625rem;
	--shadow: 0 1px 2px rgb(26 29 27 / 6%), 0 8px 24px rgb(26 29 27 / 6%);

	/* Höhe der klebenden Kopfzeile – auch als Ankerversatz genutzt */
	--header-h: 4.25rem;

	color-scheme: light;
}

/* --- Grundlagen --------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-wrap: break-word;
}

/* Platz für die feste Kontaktleiste am unteren Rand (nur Schmalansicht).
   Die Rechtstexte tragen diese Leiste nicht und brauchen den Platz nicht. */
@media (max-width: 47.999em) {
	body:not(.page-legal) {
		padding-bottom: 4.5rem;
	}
}

h1,
h2,
h3 {
	line-height: 1.2;
	color: var(--ink);
	text-wrap: balance;
}

h1 {
	font-size: clamp(1.9rem, 5.5vw, 3rem);
	letter-spacing: -0.015em;
	margin: 0 0 1rem;
}

h2 {
	font-size: clamp(1.5rem, 3.6vw, 2.125rem);
	letter-spacing: -0.01em;
	margin: 0 0 0.75rem;
}

h3 {
	font-size: 1.125rem;
	margin: 0 0 0.35rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--green-dark);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--green-darker);
}

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

/* Auch ol zurücksetzen: Die Ablauf-Liste ist ein <ol> und würde sonst ihre
   eigenen Nummern zusätzlich zu den grünen Kreisen anzeigen. */
ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Sichtbarer Fokus für Tastaturbedienung – nie entfernen */
:focus-visible {
	outline: 3px solid var(--green-dark);
	outline-offset: 3px;
	border-radius: 2px;
}

/* --- Hilfsklassen ------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.section {
	padding-block: var(--section-y);
	/* Ankersprünge nicht unter die klebende Kopfzeile laufen lassen */
	scroll-margin-top: var(--header-h);
}

.section--tint {
	background: var(--green-tint);
}

.section--alt {
	background: var(--paper-alt);
}

.section__intro {
	max-width: 46rem;
	color: var(--ink-soft);
	font-size: 1.0625rem;
	margin-bottom: 2.25rem;
}

/* Abgesetzter Block für ein zweites Thema innerhalb eines Abschnitts
   (die PIRNAR-Haustüren unter "Montage"). Die farbige Fläche und die Kante
   links machen sichtbar, dass hier ein neues Thema beginnt und die
   Kartenliste darüber nicht dazugehört. */
.brand-block {
	margin-top: 3rem;
	padding: clamp(1.35rem, 4vw, 2rem) clamp(1.35rem, 4vw, 2.25rem);
	background: var(--green-tint);
	border-left: 4px solid var(--green);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.brand-block h2 {
	margin-bottom: 0.5rem;
}

.brand-block p {
	max-width: 46rem;
	margin-bottom: 0;
	color: var(--ink-soft);
	font-size: 1.0625rem;
}

.eyebrow {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--green-dark);
	margin-bottom: 0.5rem;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -4rem;
	z-index: 100;
	background: var(--green-dark);
	color: #fff;
	padding: 0.7rem 1.1rem;
	border-radius: 0 0 var(--radius) var(--radius);
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.85rem 1.5rem;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
	flex: none;
}

.btn--primary {
	background: var(--green-dark);
	color: #fff;
}

.btn--primary:hover {
	background: var(--green-darker);
	color: #fff;
}

.btn--ghost {
	border-color: var(--line);
	background: var(--paper);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--green-dark);
	color: var(--green-darker);
}

.btn--lg {
	padding: 1rem 1.9rem;
	font-size: 1.0625rem;
}

/* --- Kopfbereich -------------------------------------------------------- */

.topbar {
	background: var(--ink);
	color: #fff;
	font-size: 0.875rem;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 1.5rem;
	min-height: 2.5rem;
	padding-block: 0.4rem;
}

.topbar a {
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.topbar a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-header {
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

/* Erst ab Tablet klebend. Auf dem Handy bricht die Navigation auf zwei Zeilen
   um und der Kopf wäre knapp 300 px hoch – das nimmt zu viel vom Bildschirm.
   Dort übernimmt die feste Kontaktleiste am unteren Rand diese Rolle. */
@media (min-width: 48em) {
	.site-header {
		position: sticky;
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	min-height: var(--header-h);
	padding-block: 0.6rem;
}

/* Wortmarke: als echter Text gesetzt statt als Rastergrafik – dadurch auf
   jedem Display gestochen scharf, vorlesbar und von Suchmaschinen lesbar. */
.wordmark {
	text-decoration: none;
	color: inherit;
	display: inline-block;
	line-height: 1.1;
}

.wordmark__name {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--green-dark);
}

.wordmark__tag {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.055em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-top: 0.1rem;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.35rem;
}

.site-nav a {
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.35rem 0;
	display: inline-block;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover {
	color: var(--green-darker);
	border-bottom-color: var(--green);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
	background: linear-gradient(180deg, var(--green-tint), var(--paper));
	border-bottom: 1px solid var(--line);
	padding-block: clamp(2.75rem, 7vw, 4.75rem);
}

.hero__inner {
	max-width: 48rem;
}

.hero p {
	font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
	color: var(--ink-soft);
	margin-bottom: 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero__note {
	margin: 1.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--ink-soft);
}

/* --- Karten (Bauelemente) ----------------------------------------------- */

/* 17rem statt 15rem: sonst passen auf breiten Bildschirmen vier Spalten in die
   Reihe und die sechs Karten brechen unschön zu 4 + 2 um. So bleibt es bei
   3 × 2 auf dem Desktop, 2 × 3 auf dem Tablet und einer Spalte auf dem Handy. */
.cards {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
}

.card__icon {
	color: var(--green-dark);
	margin-bottom: 0.9rem;
}

.card p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

/* --- Leistungs-Kacheln (Rund ums Haus) ---------------------------------- */

.tiles {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.tile {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.95rem 1.15rem;
	font-weight: 600;
}

.tile svg {
	color: var(--green-dark);
	flex: none;
}

/* --- Ablauf ------------------------------------------------------------- */

.steps {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	counter-reset: step;
}

.step {
	counter-increment: step;
	padding-top: 0.5rem;
}

.step::before {
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.9rem;
	border-radius: 50%;
	background: var(--green-dark);
	color: #fff;
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 700;
}

.step p {
	margin: 0;
	color: var(--ink-soft);
}

/* --- Einsatzgebiet ------------------------------------------------------ */

.area__places {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.area__places li {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 2rem;
	padding: 0.35rem 0.95rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* --- Über uns ----------------------------------------------------------- */

.about {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

@media (min-width: 48em) {
	.about {
		grid-template-columns: 5fr 6fr;
	}
}

.about__figure {
	margin: 0;
}

.about__figure img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.about__figure figcaption {
	margin-top: 0.6rem;
	font-size: 0.875rem;
	color: var(--ink-soft);
}

/* Platzhalter, solange kein Teamfoto hinterlegt ist */
.photo-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	aspect-ratio: 4 / 3;
	border: 2px dashed var(--green);
	border-radius: var(--radius);
	background: var(--green-tint);
	color: var(--green-darker);
	text-align: center;
	padding: 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* --- Kontakt ------------------------------------------------------------ */

.contact {
	background: var(--ink);
	color: #fff;
}

.contact h2,
.contact .eyebrow {
	color: #fff;
}

.contact__lead {
	max-width: 40rem;
	color: #d7dcd8;
	font-size: 1.0625rem;
	margin-bottom: 2rem;
}

.contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.contact .btn--ghost {
	background: transparent;
	border-color: #4d5551;
	color: #fff;
}

.contact .btn--ghost:hover {
	border-color: #fff;
	color: #fff;
}

.contact__details {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	border-top: 1px solid #333a36;
	padding-top: 2rem;
}

.contact__details dt {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9aa49e;
	margin-bottom: 0.35rem;
}

.contact__details dd {
	margin: 0;
	font-style: normal;
	line-height: 1.6;
}

.contact__details a {
	color: #fff;
}

/* --- Fußzeile ----------------------------------------------------------- */

.site-footer {
	background: var(--paper-alt);
	border-top: 1px solid var(--line);
	padding-block: 2rem;
	font-size: 0.9375rem;
	color: var(--ink-soft);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.35rem;
}

.site-footer a {
	color: var(--ink-soft);
}

/* --- Feste Kontaktleiste (nur Schmalansicht) ---------------------------- */

.mobile-cta {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: grid;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	background: var(--paper);
	border-top: 1px solid var(--line);
	box-shadow: 0 -4px 16px rgb(26 29 27 / 10%);
}

.mobile-cta .btn {
	padding: 0.7rem 0.75rem;
	font-size: 0.9375rem;
}

@media (min-width: 48em) {
	.mobile-cta {
		display: none;
	}
}

/* --- Rechtstexte (Impressum / Datenschutz) ------------------------------ */

.legal {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal__inner {
	max-width: 46rem;
}

.legal h2 {
	font-size: 1.375rem;
	margin-top: 2.5rem;
}

.legal h3 {
	font-size: 1.0625rem;
	margin-top: 1.75rem;
}

.legal ul {
	list-style: disc;
	padding-left: 1.35rem;
	margin-bottom: 1rem;
}

.legal ol {
	list-style: decimal;
	padding-left: 1.35rem;
	margin-bottom: 1rem;
}

.legal li {
	margin-bottom: 0.35rem;
}

.legal dl {
	margin: 0 0 1.5rem;
}

.legal dt {
	font-weight: 700;
	margin-top: 1rem;
}

.legal dd {
	margin: 0;
}

.backlink {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 1.5rem;
}

.backlink:hover {
	text-decoration: underline;
}

.note {
	background: var(--green-tint);
	border-left: 4px solid var(--green);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}

.note p:last-child {
	margin-bottom: 0;
}

.legal code {
	background: var(--paper-alt);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 0.1em 0.35em;
	font-size: 0.9em;
}

/* --- Bewegungsreduktion ------------------------------------------------- */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* --- Druckausgabe ------------------------------------------------------- */

@media print {
	.topbar,
	.site-nav,
	.mobile-cta,
	.hero__actions,
	.contact__actions {
		display: none;
	}

	body {
		padding-bottom: 0;
		font-size: 11pt;
	}

	.site-header {
		position: static;
	}

	.contact {
		background: none;
		color: #000;
	}

	.contact h2,
	.contact .eyebrow,
	.contact__lead,
	.contact__details dd,
	.contact__details a {
		color: #000;
	}
}
