/* Das Kontrol GmbH – öffentliche Seiten (index, impressum, datenschutz)
   Bilinçli olarak harici kaynak (Google Fonts, CDN) kullanılmaz: DSGVO. */

:root {
	--bg: #fafaf8;
	--surface: #ffffff;
	--ink: #111111;
	--muted: #5c5c58;
	--line: #deded9;
	--red: #c8202a;
	--red-dark: #a51a22;
	--gold: #f0d000;
	--gold-soft: #fdf8d8;
	--radius: 10px;
	--wrap: 860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}

body {
	background: var(--bg);
	color: var(--ink);
	font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Logo renklerinde ince şerit: siyah – kırmızı – altın */
body::before {
	content: "";
	display: block;
	height: 5px;
	background: linear-gradient(to right,
		var(--ink) 0 33.33%,
		var(--red) 33.33% 66.66%,
		var(--gold) 66.66% 100%);
}

a {
	color: var(--ink);
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover { color: var(--red); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--surface);
	padding: 8px 14px;
	z-index: 100;
}

.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	min-width: 0;
}

.brand img {
	display: block;
	width: 190px;
	max-width: 100%;
	height: auto;
}

.brand-slogan {
	font-size: 13px;
	font-style: italic;
	color: var(--muted);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.lang-switch {
	display: flex;
	gap: 2px;
	list-style: none;
	font-size: 14px;
	font-weight: 600;
}

.lang-switch a {
	display: block;
	padding: 6px 9px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--muted);
}

.lang-switch a:hover { background: var(--bg); color: var(--ink); }

.lang-switch a[aria-current="true"] {
	color: var(--ink);
	background: var(--gold-soft);
	box-shadow: inset 0 -2px 0 var(--gold);
}

.logout-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--red);
	text-decoration: none;
}

/* ---------- Bölüm menüsü ---------- */

.section-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 250, 248, 0.96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(140%) blur(6px);
}

.section-nav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: 6px;
}

.section-nav ul::-webkit-scrollbar { display: none; }

.section-nav a {
	display: block;
	white-space: nowrap;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
}

.section-nav a:hover { color: var(--ink); background: var(--surface); }

@media (min-width: 641px) {
	.section-nav ul { flex-wrap: wrap; overflow: visible; }
}

/* ---------- Giriş (hero) ---------- */

.hero {
	padding-block: 56px 40px;
}

.hero h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.hero-subtitle {
	margin-top: 10px;
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
	color: var(--muted);
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	padding: 8px 14px;
	border: 1px solid #e8d77a;
	border-radius: 999px;
	background: var(--gold-soft);
	font-size: 15px;
	font-weight: 600;
}

.status-badge::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 2px #e2c600;
	flex-shrink: 0;
}

/* ---------- İçerik bölümleri ---------- */

.content-section {
	padding-block: 40px;
	border-top: 1px solid var(--line);
}

.content-section h2 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

.content-section p + p,
.content-section p + ul,
.content-section ul + p { margin-top: 14px; }

.content-section ul {
	padding-left: 0;
	list-style: none;
}

.content-section li {
	position: relative;
	padding-left: 22px;
	margin-top: 6px;
}

.content-section li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	background: var(--red);
}

/* ---------- Sertifika sorgulama ---------- */

.notice {
	padding: 14px 16px;
	border-left: 4px solid var(--gold);
	background: var(--gold-soft);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-weight: 600;
}

.search-form { margin-top: 20px; }

.search-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	border: 0;
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 600;
}

.search-mode label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
}

.search-mode input { accent-color: var(--red); width: 17px; height: 17px; }

.search-field { position: relative; }

.search-box {
	display: flex;
	align-items: center;
	background: var(--surface);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	overflow: hidden;
}

.search-box:focus-within { border-color: var(--red); }

.search-input:focus-visible { outline: none; }

.search-input {
	flex: 1;
	min-width: 0;
	padding: 14px 16px;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	color: inherit;
}

.search-button {
	flex-shrink: 0;
	margin: 4px;
	padding: 10px 20px;
	border: 0;
	border-radius: 7px;
	background: var(--ink);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-button:hover { background: var(--red); }

.search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(17, 17, 17, 0.10);
	overflow: hidden;
}

.search-results[hidden] { display: none; }

.result-item,
.result-more,
.result-empty {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	font: inherit;
	font-size: 15px;
	text-align: left;
	color: inherit;
}

.result-item,
.result-more { cursor: pointer; }

.result-item:hover,
.result-more:hover { background: var(--bg); }

.result-item small {
	display: block;
	color: var(--muted);
	font-size: 13px;
}

.result-more { color: var(--red); font-weight: 600; border-bottom: 0; }

.result-empty { color: var(--muted); border-bottom: 0; }

/* ---------- İletişim ---------- */

.contact-card {
	font-style: normal;
	display: grid;
	gap: 4px;
}

.contact-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 16px;
	margin-top: 14px;
}

.contact-list dt { color: var(--muted); }

/* ---------- Hukuki sayfalar ---------- */

.legal {
	padding-block: 48px 56px;
}

.legal h1 {
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin-bottom: 24px;
}

.legal h2 {
	font-size: 1.15rem;
	margin-top: 32px;
	margin-bottom: 8px;
}

.legal p + p,
.legal p + ul,
.legal ul + p { margin-top: 10px; }

.legal ul { padding-left: 22px; }

.legal li + li { margin-top: 4px; }

.legal address { font-style: normal; }

.legal .lang-note {
	margin-bottom: 24px;
	color: var(--muted);
	font-size: 15px;
}

.back-link {
	display: inline-block;
	margin-top: 40px;
	font-weight: 600;
}

/* ---------- Alt bilgi ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--surface);
	font-size: 14px;
	color: var(--muted);
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 24px 28px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	list-style: none;
	font-weight: 600;
}

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

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
	body { font-size: 16px; }

	.wrap { padding-inline: 16px; }

	.site-header .wrap {
		align-items: flex-start;
		padding-block: 14px;
	}

	.brand img { width: 150px; }

	.brand-slogan { font-size: 12px; }

	.lang-switch a { padding: 5px 7px; }

	.hero { padding-block: 36px 28px; }

	.content-section { padding-block: 32px; }

	.search-input { padding: 12px; }

	.search-button { padding: 9px 14px; }

	.contact-list { grid-template-columns: 1fr; gap: 0; }

	.contact-list dd + dt { margin-top: 8px; }
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
