/*
Theme Name: Çetinkaya
Template: twentytwentyfive
Description: Child-Theme für cetinkaya-yapi.com (Çetinkaya İnşaat, Eskişehir). Edel, viel Weiß und Sand, Logo-Farben als Akzent.
Version: 0.1.0
Author: Daniel Neubauer
Text Domain: cetinkaya
License: GPL-2.0-or-later
*/

/* ---------- Grundlagen ---------- */
:root {
	--ck-lacivert: #312783;
	--ck-gece: #1C1650;
	--ck-kirmizi: #E30613;
	--ck-kum: #F2EDE4;
	--ck-bronz: #A8895A;
	--ck-cizgi: #E4DDD0;
	--ck-golge: 0 1px 2px rgba(28, 22, 80, .06), 0 8px 28px rgba(28, 22, 80, .08);
	--ck-radius: 6px;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
::selection { background: var(--ck-lacivert); color: #fff; }

/* Platzhalter für fehlende Angaben (gelb) */
.ck-ph {
	background: #FFE27A;
	color: #4A3A00;
	padding: .05em .35em;
	border-radius: 3px;
	font-weight: 600;
	font-size: .9em;
	font-family: Manrope, sans-serif;
	letter-spacing: 0;
	text-transform: none;
}

/* Vorschau-Hinweis */
.ck-onizleme {
	background: var(--ck-gece);
	color: #E9E4F7;
	font-size: .8rem;
	text-align: center;
	padding: .4rem 1rem;
}
.ck-onizleme strong { color: #fff; }

/* ---------- Kopfbereich ---------- */
header.ck-ust {
	position: sticky;
	top: 0;
	z-index: 60;
}
body.admin-bar header.ck-ust { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.ck-ust { top: 46px; } }
.ck-header { border-bottom: 1px solid var(--ck-cizgi); box-shadow: 0 2px 18px rgba(28, 22, 80, .05); }
.ck-logo { display: inline-flex; align-items: center; line-height: 0; }
.ck-logo img { height: 52px; width: auto; display: block; }
.ck-header .wp-block-navigation a { text-decoration: none; color: var(--ck-gece); position: relative; padding: .3rem 0; }
.ck-header .wp-block-navigation a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--ck-kirmizi); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ck-header .wp-block-navigation a:hover::after,
.ck-header .wp-block-navigation .current-menu-item a::after { transform: scaleX(1); }
@media (max-width: 900px) {
	.ck-header__buton { display: none !important; }
	.ck-logo img { height: 44px; }
}

/* ---------- Typo-Helfer ---------- */
.ck-ust-baslik {
	font-size: .78rem !important;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ck-bronz);
	margin-bottom: .2rem !important;
	display: flex; align-items: center; gap: .7rem;
}
.ck-ust-baslik::before { content: ""; width: 34px; height: 1px; background: currentColor; display: inline-block; }
.has-text-align-center.ck-ust-baslik { justify-content: center; }
.ck-giris { font-size: 1.15rem; color: #4A4E60; }
.has-text-align-center.ck-giris { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Umriss-Knopf (Standard: Dunkelblau auf hellem Grund) */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--ck-lacivert);
	color: var(--ck-lacivert);
	padding-top: calc(.95rem - 1.5px); padding-bottom: calc(.95rem - 1.5px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ck-lacivert); color: #fff; }

/* ---------- Hero ---------- */
.ck-hero { min-height: min(88vh, 820px) !important; }
.ck-hero .wp-block-cover__background {
	background: linear-gradient(95deg, rgba(28, 22, 80, .92) 0%, rgba(28, 22, 80, .72) 38%, rgba(28, 22, 80, .18) 70%, rgba(28, 22, 80, 0) 100%) !important;
	opacity: 1 !important;
}
.ck-hero .wp-block-cover__inner-container { max-width: 1240px !important; width: 100%; margin: 0 auto; }
.ck-hero .ck-hero__icerik { max-width: 640px; }
.ck-hero h1 { color: #fff; margin-top: .4rem; }
.ck-hero .ck-ust-baslik { color: #D9C6A0; }
.ck-hero p { color: rgba(255, 255, 255, .9); }
.ck-hero .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.ck-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ck-gece); }
@media (max-width: 781px) {
	.ck-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(28, 22, 80, .55) 0%, rgba(28, 22, 80, .88) 70%) !important; }
	.ck-hero { min-height: 620px !important; }
}

/* Leiste unter dem Hero */
.ck-serit { border-bottom: 1px solid var(--ck-cizgi); }
.ck-serit .wp-block-column { display: flex; gap: .9rem; align-items: flex-start; }

/* ---------- Icons ---------- */
.ck-ikon { width: 52px; height: 52px; border-radius: 50%; background: var(--ck-kum); color: var(--ck-lacivert); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ck-ikon svg { width: 26px; height: 26px; }
.ck-ozellik h3 { margin-top: 1rem; margin-bottom: .4rem; }
.ck-ozellik p { color: #4A4E60; font-size: .98rem; }

/* ---------- Bild-Text-Abschnitt ---------- */
.ck-gorsel-cerceve img { border-radius: var(--ck-radius); box-shadow: var(--ck-golge); }
.ck-gorsel-cerceve { position: relative; }
.ck-tikli { list-style: none; padding-left: 0 !important; }
.ck-tikli li { position: relative; padding-left: 2rem; margin-bottom: .65rem; }
.ck-tikli li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--ck-lacivert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Projektkarten ---------- */
.ck-kart {
	background: #fff;
	border-radius: var(--ck-radius);
	overflow: hidden;
	box-shadow: var(--ck-golge);
	transition: transform .25s ease, box-shadow .25s ease;
	display: flex; flex-direction: column;
}
.ck-kart:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28, 22, 80, .06), 0 16px 40px rgba(28, 22, 80, .14); }
.ck-kart .wp-block-image { margin: 0 !important; overflow: hidden; }
.ck-kart .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; display: block; }
.ck-kart:hover .wp-block-image img { transform: scale(1.04); }
.ck-kart > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.ck-kart__govde { padding: 1.2rem 1.4rem 1.4rem; }
.ck-kart__govde p { margin: 0 !important; }
.ck-kart__govde > * { margin-top: 0 !important; }
.ck-kart h3 { font-size: 1.35rem; margin: .25rem 0 .5rem !important; }
.ck-kart h3 a { text-decoration: none; color: var(--ck-gece); }
.ck-kart h3 a:hover { color: var(--ck-kirmizi); }
.ck-kart__konum { font-size: .78rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ck-bronz); }
.ck-kart__durum { font-size: .9rem; color: #5E6273; }

/* ---------- Ablauf ---------- */
.ck-adim__no { font-family: Literata, Georgia, serif; font-size: 2.6rem !important; line-height: 1; color: var(--ck-bronz); margin-bottom: .6rem !important; }
.ck-adim h3 { margin-bottom: .4rem; }
.ck-adim p { color: #4A4E60; font-size: .98rem; }
.ck-adim { border-top: 2px solid var(--ck-cizgi); padding-top: 1.4rem; }

/* ---------- Aufruf-Band ---------- */
.ck-cta h2 { color: #fff; }
.ck-cta p { color: rgba(255, 255, 255, .85); }
.ck-cta .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.ck-cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ck-gece); }

/* ---------- Seitenkopf ---------- */
.ck-sayfa-baslik h1 { margin: 0; }
.ck-sayfa-hero { min-height: 420px !important; }
.ck-sayfa-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(28, 22, 80, .88) 0%, rgba(28, 22, 80, .35) 60%, rgba(28, 22, 80, .15) 100%) !important; opacity: 1 !important; }
.ck-sayfa-hero h1 { color: #fff; margin: .3rem 0 0; }
.ck-sayfa-hero .ck-ust-baslik { color: #D9C6A0; }
.ck-sayfa-hero .wp-block-cover__inner-container { max-width: 1240px !important; width: 100%; margin: 0 auto; }

/* ---------- Projekt-Steckbrief ---------- */
.ck-bilgiler { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--ck-cizgi); border-radius: var(--ck-radius); background: #fff; margin: 0; }
.ck-bilgiler > div { padding: 1.1rem 1.3rem; border-right: 1px solid var(--ck-cizgi); }
.ck-bilgiler > div:last-child { border-right: 0; }
.ck-bilgiler dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ck-bronz); margin-bottom: .3rem; }
.ck-bilgiler dd { margin: 0; font-weight: 600; color: var(--ck-gece); }
@media (max-width: 700px) { .ck-bilgiler > div { border-right: 0; border-bottom: 1px solid var(--ck-cizgi); } .ck-bilgiler > div:last-child { border-bottom: 0; } }

.ck-galeri.wp-block-gallery img { border-radius: 4px; }
.ck-galeri.wp-block-gallery figure.wp-block-image { cursor: zoom-in; }

/* ---------- Häufige Fragen ---------- */
.ck-sss details { border-bottom: 1px solid var(--ck-cizgi); padding: 1.1rem 0; }
.ck-sss summary { cursor: pointer; font-weight: 700; color: var(--ck-gece); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ck-sss summary::-webkit-details-marker { display: none; }
.ck-sss summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ck-bronz); }
.ck-sss details[open] summary::after { content: "–"; }
.ck-sss details p { margin: .7rem 0 0; color: #4A4E60; }

/* ---------- Kontakt-Karten ---------- */
.ck-iletisim-kart { background: #fff; border-radius: var(--ck-radius); box-shadow: var(--ck-golge); padding: 1.6rem 1.7rem; }
.ck-iletisim-kart h3 { font-size: 1.15rem; margin: .8rem 0 .3rem; }
.ck-iletisim-kart p { margin: 0; color: #4A4E60; }

/* Kontaktwege (Kontaktseite, links) */
.ck-iletisim-oge { gap: 1rem; margin-bottom: 1.4rem; }
.ck-iletisim-oge h3 { font-size: 1.1rem; margin: .2rem 0 .15rem; }
.ck-iletisim-oge p { margin: 0; color: #4A4E60; }
.ck-iletisim-oge > .wp-block-group > * { margin-top: 0; }

/* ---------- Formular ---------- */
.ck-form { background: #fff; border-radius: var(--ck-radius); box-shadow: var(--ck-golge); padding: clamp(1.4rem, 3vw, 2.4rem); }
.ck-form p { margin: 0 0 1.1rem; }
.ck-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--ck-gece); }
.ck-form label small { font-weight: 400; color: #6B6F80; }
.ck-form input[type=text], .ck-form input[type=tel], .ck-form input[type=email], .ck-form select, .ck-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: .8rem .9rem;
	border: 1px solid #D6CFC2; border-radius: 4px; background: #FDFCFA; color: var(--ck-gece);
}
.ck-form input:focus, .ck-form select:focus, .ck-form textarea:focus { outline: 2px solid var(--ck-lacivert); outline-offset: 1px; border-color: var(--ck-lacivert); background: #fff; }
.ck-form__satir { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 640px) { .ck-form__satir { grid-template-columns: 1fr; } }
.ck-form__onay label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.ck-form__onay input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--ck-lacivert); }
.ck-form button { cursor: pointer; border: 0; }
.ck-form__not { font-size: .82rem; color: #6B6F80; margin-bottom: 0 !important; }
.ck-form__bal { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ck-form__hata { background: #FDECEC; border-left: 4px solid var(--ck-kirmizi); padding: .8rem 1rem; margin-bottom: 1.2rem; border-radius: 3px; }
.ck-form__hata ul { margin: 0; padding-left: 1.1rem; }
.ck-form--ok { border-left: 4px solid #2E8B57; }
.ck-form--ok h3 { margin-top: 0; }

/* ---------- Fußbereich ---------- */
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0 !important; }
.ck-footer .ck-logo img { height: 50px; }
.ck-footer__metin { color: rgba(255, 255, 255, .72); font-size: .95rem; max-width: 340px; }
.ck-footer__baslik { font-family: Manrope, sans-serif !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .16em; text-transform: uppercase; color: #D9C6A0 !important; }
.ck-footer__liste { list-style: none; padding-left: 0; }
.ck-footer__liste li { margin-bottom: .45rem; }
.ck-footer a { text-decoration: none; }
.ck-footer a:hover { text-decoration: underline; color: #fff; }
.ck-footer__iletisim { color: rgba(255, 255, 255, .8); font-size: .95rem; line-height: 1.9; }
.ck-footer__cizgi { border-color: rgba(255, 255, 255, .15) !important; background: rgba(255, 255, 255, .15); opacity: 1; }
.ck-footer__kucuk { font-size: .85rem; color: rgba(255, 255, 255, .6); margin: 0; }

/* ---------- Schnellkontakt ---------- */
.ck-hizli { position: fixed; z-index: 70; }
.ck-hizli a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font-weight: 700; color: #fff; }
.ck-hizli svg { width: 22px; height: 22px; }
.ck-hizli__wa { background: #128C7E; }
.ck-hizli__ara { background: var(--ck-gece); }
@media (min-width: 783px) {
	.ck-hizli { right: 24px; bottom: 24px; }
	.ck-hizli__ara { display: none !important; }
	.ck-hizli__wa { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); transition: transform .2s ease; }
	.ck-hizli__wa:hover { transform: scale(1.07); }
	.ck-hizli__wa svg { width: 30px; height: 30px; }
	.ck-hizli__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 782px) {
	.ck-hizli { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
	.ck-hizli a { padding: .95rem .5rem; font-size: 1rem; }
	body { padding-bottom: 58px; }
}

/* ---------- Kleinkram ---------- */
.ck-kucuk-not { font-size: .88rem; color: #6B6F80; }
.wp-block-separator.ck-ince { border-top-width: 1px; max-width: 80px; border-color: var(--ck-bronz); opacity: 1; margin-left: 0; }
