/*
Theme Name: KhujaTech Monogramm
Theme URI: https://khujatech.de
Author: Tarek Alkhuja
Description: Klassisch-edles Design mit KT-Monogramm, Serifenschrift und Indigo. Startseite mit Leistungen (Software, IT-Service, IT-Sicherheit), Ablauf, Über mich und Kontaktformular. Schriften lokal eingebunden, keine externen Dienste.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khujatech
*/

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Grundwerte ---------- */
:root {
	--kt-ink: #1F2555;
	--kt-ink-deep: #161B42;
	--kt-blue: #3340A8;
	--kt-blue-dark: #28328A;
	--kt-green: #2E7D57;
	--kt-green-light: #8FD1AE;
	--kt-mist: #F5F5FA;
	--kt-line: #DDDEEA;
	--kt-text: #454A66;
	--kt-white: #FFFFFF;

	--kt-font-display: "Fraunces", "Segoe UI", system-ui, sans-serif;
	--kt-font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

	--kt-wrap: 1160px;
	--kt-gutter: clamp(20px, 4vw, 40px);
	--kt-section: clamp(72px, 10vw, 128px);
	--kt-header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kt-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--kt-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--kt-text);
	background: var(--kt-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--kt-font-display); color: var(--kt-ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
a { color: var(--kt-blue); text-underline-offset: 3px; }
a:hover { color: var(--kt-blue-dark); }
:focus-visible { outline: 3px solid var(--kt-green); outline-offset: 3px; border-radius: 4px; }

.kt-wrap { width: 100%; max-width: var(--kt-wrap); margin: 0 auto; padding-inline: var(--kt-gutter); }

.kt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--kt-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.kt-skip:focus { left: 8px; color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Buttons ---------- */
.kt-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 22px;
	font-family: var(--kt-font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	border-radius: 10px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.kt-btn--primary { background: var(--kt-blue); color: #fff; }
.kt-btn--primary:hover { background: var(--kt-blue-dark); color: #fff; }
.kt-btn--ghost { border-color: var(--kt-line); color: var(--kt-ink); background: #fff; }
.kt-btn--ghost:hover { border-color: var(--kt-ink); color: var(--kt-ink); }
.kt-btn--block { width: 100%; }

/* ---------- Logo ---------- */
.kt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.kt-logo__word { font-family: var(--kt-font-display); font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; }
.kt-logo__a { font-weight: 700; color: var(--kt-ink); }
.kt-logo__b { font-weight: 600; color: var(--kt-blue); }
.kt-logo--dark .kt-logo__a { color: #fff; }
.kt-logo--dark .kt-logo__b { color: var(--kt-green-light); }

/* ---------- Kopfzeile ---------- */
.kt-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.admin-bar .kt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kt-header { top: 46px; } }
.kt-header.is-scrolled { border-bottom-color: var(--kt-line); }
.kt-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--kt-header-h); gap: 24px; }

.kt-nav { display: flex; align-items: center; gap: 28px; }
.kt-nav__list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.kt-nav__list a { color: var(--kt-ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.kt-nav__list a:hover { color: var(--kt-blue); }
.kt-nav__cta { min-height: 44px; padding: 10px 18px; }

.kt-burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 12px; border-radius: 10px; }
.kt-burger span { display: block; height: 2px; background: var(--kt-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.kt-burger span + span { margin-top: 6px; }

@media (max-width: 880px) {
	.kt-burger { display: block; }
	.kt-nav {
		position: fixed; inset: var(--kt-header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 8px;
		background: #fff; border-bottom: 1px solid var(--kt-line);
		padding: 16px var(--kt-gutter) 24px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.admin-bar .kt-nav { top: calc(var(--kt-header-h) + 46px); }
	.kt-menu-open .kt-nav { transform: none; opacity: 1; visibility: visible; }
	.kt-nav__list { flex-direction: column; gap: 0; }
	.kt-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--kt-mist); font-size: 1.1rem; }
	.kt-nav__cta { margin-top: 12px; }
	.kt-menu-open .kt-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.kt-menu-open .kt-burger span:nth-child(2) { opacity: 0; }
	.kt-menu-open .kt-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.kt-hero {
	padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 112px);
	background-color: #fff;
	background-image: radial-gradient(var(--kt-line) 1.2px, transparent 1.2px);
	background-size: 24px 24px;
	background-position: -12px -12px;
}
.kt-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kt-hero__text { background: #fff; padding: 8px 8px 8px 0; }
.kt-hero h1 { max-width: 14ch; }
.kt-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--kt-text); }
.kt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.kt-hero__art { margin: 0; }
.kt-circuit { width: 100%; height: auto; display: block; font-family: var(--kt-font-body); }

/* Einmaliges Zeichnen der Leiterbahnen beim Laden */
@media (prefers-reduced-motion: no-preference) {
	.kt-circuit__traces path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: kt-draw 1.1s ease-out .2s forwards; }
	.kt-circuit__nodes circle, .kt-circuit__labels text { opacity: 0; animation: kt-fade .4s ease-out 1.1s forwards; }
}
@keyframes kt-draw { to { stroke-dashoffset: 0; } }
@keyframes kt-fade { to { opacity: 1; } }

@media (max-width: 880px) {
	.kt-hero__inner { grid-template-columns: 1fr; }
	.kt-hero__art { max-width: 480px; width: 100%; margin-inline: auto; }
}

/* ---------- Abschnitte ---------- */
.kt-section { padding-block: var(--kt-section); }
.kt-section__head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.kt-section__head p { font-size: 1.125rem; margin: 0; }

/* Leistungen */
.kt-services { background: var(--kt-mist); }
.kt-services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--kt-line); }
.kt-service { display: flex; gap: 20px; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--kt-line); }
.kt-service:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--kt-line); }
.kt-service h4 { font-family: var(--kt-font-display); color: var(--kt-ink); font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .35em; }
.kt-services__group { font-size: 1.1rem; font-weight: 600; color: var(--kt-green); margin: 0 0 16px; letter-spacing: 0; }
.kt-services__list + .kt-services__group { margin-top: 56px; }
.kt-service p { margin: 0; }
.kt-service__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--kt-line); display: grid; place-items: center; }
.kt-service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--kt-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
	.kt-services__list { grid-template-columns: 1fr; }
	.kt-service, .kt-service:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* Ablauf: Leiterbahn mit Knoten */
.kt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.kt-steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc((100% - 96px) / 4 - 22px); height: 3px; background: var(--kt-blue); border-radius: 2px; }
.kt-step { position: relative; }
.kt-step__node {
	position: relative; z-index: 1;
	display: grid; place-items: center;
	width: 46px; height: 46px; margin-bottom: 20px;
	border-radius: 50%; background: #fff; border: 4px solid var(--kt-green);
	font-family: var(--kt-font-display); font-weight: 700; color: var(--kt-ink);
}
.kt-step p { margin: 0; }

@media (max-width: 880px) {
	.kt-steps { grid-template-columns: 1fr; gap: 36px; }
	.kt-steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 3px; height: auto; }
	.kt-step { padding-left: 72px; }
	.kt-step__node { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* Über mich */
.kt-about { border-top: 1px solid var(--kt-line); }
.kt-about__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.kt-about__text p { max-width: 36em; }
.kt-facts { margin: 0; border-top: 3px solid var(--kt-ink); }
.kt-facts > div { padding: 18px 0; border-bottom: 1px solid var(--kt-line); }
.kt-facts dt { font-weight: 600; color: var(--kt-ink); font-size: .95rem; }
.kt-facts dd { margin: 2px 0 0; }
@media (max-width: 880px) { .kt-about__inner { grid-template-columns: 1fr; } }

/* Kontakt */
.kt-contact { background: var(--kt-ink); color: #D5DEEE; }
.kt-contact h2 { color: #fff; }
.kt-contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.kt-contact__info > p { font-size: 1.125rem; max-width: 30em; }
.kt-contact__details { list-style: none; margin: 32px 0 0; padding: 0; }
.kt-contact__details li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.kt-contact__details span { display: block; font-size: .9rem; color: #A9B8D4; }
.kt-contact__details a { color: #fff; font-weight: 500; }
.kt-contact__details a:hover { color: var(--kt-green-light); }
.kt-contact__details address { font-style: normal; color: #fff; }

.kt-form { background: #fff; color: var(--kt-text); border-radius: 16px; padding: clamp(24px, 4vw, 40px); }
.kt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kt-field { margin-bottom: 18px; }
.kt-field label { display: block; font-weight: 600; color: var(--kt-ink); font-size: .95rem; margin-bottom: 6px; }
.kt-field input, .kt-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	font: inherit; color: var(--kt-ink);
	border: 1.5px solid #B9C6D8; border-radius: 10px; background: #fff;
}
.kt-field textarea { resize: vertical; min-height: 140px; }
.kt-field input:focus, .kt-field textarea:focus { outline: none; border-color: var(--kt-blue); box-shadow: 0 0 0 3px rgba(30, 79, 216, .2); }
.kt-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: .95rem; }
.kt-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--kt-blue); }
.kt-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kt-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.kt-notice--ok { background: #E3F6EE; color: #0B5E43; }
.kt-notice--err { background: #FDECEC; color: #9B1C1C; }

@media (max-width: 880px) { .kt-contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kt-form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.kt-footer { background: var(--kt-ink-deep); color: #A9B8D4; padding-block: 48px; }
.kt-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.kt-footer__brand p { margin: 10px 0 0; font-size: .95rem; }
.kt-footer__nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.kt-footer__nav a { color: #fff; text-decoration: none; }
.kt-footer__nav a:hover { color: var(--kt-green-light); text-decoration: underline; }
.kt-footer__copy { margin: 0; font-size: .9rem; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Seiten & Beiträge ---------- */
.kt-page { padding-block: clamp(48px, 8vw, 96px); }
.kt-prose { max-width: 44em; }
.kt-prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.kt-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.kt-prose ul, .kt-prose ol { padding-left: 1.3em; }
.kt-meta { font-size: .95rem; color: #5B6B86; margin-bottom: .5em; }
.kt-thumb { margin: 0 0 32px; }
.kt-thumb img { border-radius: 12px; }
.kt-posts { display: grid; gap: 0; max-width: 44em; }
.kt-post { padding: 28px 0; border-bottom: 1px solid var(--kt-line); }
.kt-post h2 { font-size: 1.5rem; margin-bottom: .3em; }
.kt-post h2 a { color: var(--kt-ink); text-decoration: none; }
.kt-post h2 a:hover { color: var(--kt-blue); }
.kt-postnav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--kt-line); max-width: 44em; }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--kt-line); border-radius: 8px; text-decoration: none; color: var(--kt-ink); }
.nav-links .current { background: var(--kt-ink); color: #fff; border-color: var(--kt-ink); }
.kt-404 { min-height: 50vh; }

/* WordPress-Standardklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .9rem; color: #5B6B86; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

.kt-hero__inner > * { min-width: 0; }

/* ---------- Design: KhujaTech Monogramm ---------- */
body { font-size: 1.125rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.05; }
.kt-service h4, .kt-services__group { font-family: var(--kt-font-body); letter-spacing: 0; }
.kt-service h4 { font-weight: 700; font-size: 1.15rem; }
.kt-btn { border-radius: 4px; }
.kt-logo__word { font-size: 1.4rem; letter-spacing: -0.01em; }
.kt-logo__a { color: var(--kt-ink); font-weight: 600; }
.kt-logo__b { color: #2E7D57; font-weight: 500; }
.kt-logo--dark .kt-logo__b { color: #8FD1AE; }
.kt-hero { background: #fff; background-image: none; border-bottom: 1px solid var(--kt-line); }
.kt-hero__inner { grid-template-columns: 1.3fr 1fr; align-items: end; }
.kt-hero__text { background: transparent; padding: 0; }
.kt-hero h1 { max-width: 12ch; }
.kt-focus { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--kt-ink); }
.kt-focus li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--kt-line); font-family: var(--kt-font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; color: var(--kt-ink); }
.kt-hex { flex: none; width: 18px; height: 20px; background: #2E7D57; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (prefers-reduced-motion: no-preference) {
	.kt-focus li { opacity: 0; transform: translateX(12px); animation: kt-slide .4s ease-out forwards; }
	.kt-focus li:nth-child(1) { animation-delay: .15s; } .kt-focus li:nth-child(2) { animation-delay: .3s; }
	.kt-focus li:nth-child(3) { animation-delay: .45s; } .kt-focus li:nth-child(4) { animation-delay: .6s; }
}
@keyframes kt-slide { to { opacity: 1; transform: none; } }
@media (max-width: 880px) { .kt-hero__inner { grid-template-columns: 1fr; } .kt-hero__art { max-width: none; } }
.kt-services { background: var(--kt-mist); }
.kt-service__icon { border-radius: 4px; }
.kt-services__group { color: #2E7D57; text-transform: none; font-size: 1.05rem; }
.kt-step__node { border-radius: 4px; border-width: 2px; border-color: var(--kt-ink); font-family: var(--kt-font-display); }
.kt-steps::before { height: 2px; background: var(--kt-line); }
.kt-facts { border-top-width: 2px; }
.kt-contact { background: var(--kt-ink); }
.kt-form { border-radius: 6px; }
.kt-field input, .kt-field textarea { border-radius: 4px; }
