/*
Theme Name: comm-unicate
Theme URI: https://www.comm-unicate.de/
Author: Stefan Weiß
Description: Individuelles Theme für comm-unicate – Marketing, Design, Kommunikation. Startseite, Texte, Bilder und Kontaktdaten sind unter Design → Anpassen → „comm-unicate Inhalte“ bearbeitbar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: comm-unicate
*/

/* ---------- Schrift (lokal eingebunden, DSGVO-freundlich) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-bold.woff") format("woff"); }

/* ---------- Farben & Grundwerte (hier zentral änderbar) ---------- */
:root {
	--orange: #fd7402;
	--orange-dark: #c25600;   /* für kleinen Text auf Weiß (Kontrast) */
	--black: #000000;
	--ink: #1d1d1d;
	--text: #3a3a3a;
	--muted: #6b6b6b;
	--grey: #f4f4f4;
	--line: #e4e4e4;
	--white: #ffffff;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
	--container: 1180px;
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.75; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--black); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.cu-container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.cu-container--narrow { width: min(100% - 40px, 820px); }
.cu-center { text-align: center; }
.cu-icon { width: 1.25em; height: 1.25em; flex: none; }
.cu-icon--btn { width: 1.1em; height: 1.1em; margin-left: .35em; vertical-align: -.2em; }

/* ---------- Buttons ---------- */
.cu-btn { display: inline-flex; align-items: center; justify-content: center; gap: .2em; padding: .9em 1.9em; border-radius: 999px; background: var(--orange); color: var(--black); font: 500 1rem/1.2 var(--font); text-decoration: none; border: 2px solid var(--orange); cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.cu-btn:hover { transform: translateY(-2px); background: var(--black); border-color: var(--black); color: #fff; }
.cu-btn--small { padding: .6em 1.3em; font-size: .92rem; }
.cu-btn--dark { background: var(--black); border-color: var(--black); color: #fff; }
.cu-btn--dark:hover { background: #fff; border-color: #fff; color: var(--black); }
.cu-btn--outline { background: transparent; border-color: var(--black); color: var(--black); }
.cu-btn--outline:hover { background: var(--black); color: #fff; }

/* ---------- Topbar ---------- */
.cu-topbar { background: var(--black); color: #fff; font-size: .85rem; }
.cu-topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.cu-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.cu-topbar a:hover { color: var(--orange); }
.cu-topbar__contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.cu-topbar__social { display: flex; align-items: center; gap: .7rem; }
.cu-topbar__label { font-weight: 500; letter-spacing: .02em; margin-right: .2rem; }
.cu-topbar__social a { width: 32px; height: 32px; justify-content: center; border-radius: 50%; transition: background .2s, color .2s; }
.cu-topbar__social a:hover { background: var(--orange); color: var(--black); }
.cu-topbar__social .cu-icon { width: 1.35rem; height: 1.35rem; }
.cu-topbar .cu-topbar__contact .cu-icon { width: 1.05em; height: 1.05em; }

/* ---------- Header ---------- */
.cu-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cu-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1.5rem; }
.cu-logo, .custom-logo-link { display: inline-block; line-height: 0; }
.cu-logo img, .custom-logo { height: 58px; width: auto; max-width: 260px; }
.cu-nav { display: flex; align-items: center; gap: 2rem; }
.cu-menu, .cu-footer-menu { list-style: none; display: flex; gap: 1.8rem; flex-wrap: wrap; }
.cu-menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .3em 0; border-bottom: 2px solid transparent; }
.cu-menu a:hover, .cu-menu .current-menu-item > a { color: var(--ink); border-color: var(--orange); }

.cu-burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; flex-direction: column; justify-content: center; gap: 6px; }
.cu-burger span { display: block; height: 3px; border-radius: 2px; background: var(--black); transition: transform .25s, opacity .25s; }
.cu-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.cu-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cu-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.cu-hero { background: var(--orange); color: var(--black); overflow: hidden; }
.cu-hero__in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.cu-eyebrow { font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.4rem; }
.cu-eyebrow--dark { color: var(--muted); margin-bottom: .5rem; letter-spacing: .12em; }
.cu-hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: .005em; margin-bottom: 1.4rem; }
.cu-hero h1 span { display: block; }
.cu-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 30em; margin-bottom: 2rem; font-weight: 500; }
.cu-hero__media { padding: 0 12px 12px 0; }
.cu-hero__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 12px 12px 0 var(--black); }

/* ---------- Sektionen ---------- */
.cu-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cu-section--grey { background: var(--grey); }
.cu-section__head { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.cu-section__head h2::after, .cu-about__text h2::after, .cu-skills__text h2::after { content: ""; display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--orange); margin: .55em auto 0; }
.cu-about__text h2::after, .cu-skills__text h2::after { margin-left: 0; }

/* Leistungen */
.cu-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cu-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.8rem; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); }
.cu-card__icon { width: 74px; height: 74px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(253, 116, 2, .12); color: var(--orange); }
.cu-card__icon .cu-icon { width: 36px; height: 36px; }
.cu-card h3 { margin-bottom: .6rem; }
.cu-card p { margin: 0; font-size: .97rem; color: var(--muted); }
.cu-card p strong { color: var(--ink); }

/* Kennzahlen */
.cu-stats { background: var(--orange); color: var(--black); padding-block: clamp(3rem, 7vw, 5rem); }
.cu-stats__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.cu-stats h2 { color: #fff; text-transform: none; font-size: clamp(2rem, 4vw, 3.2rem); }
.cu-stats__text p { font-size: 1.1rem; max-width: 28em; font-weight: 500; }
.cu-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; text-align: center; }
.cu-stat strong { display: block; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; color: #fff; font-weight: 700; }
.cu-stat span { display: block; margin-top: .5rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }

/* Über mich */
.cu-about__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cu-about__media img { width: min(100%, 460px); margin-inline: auto; border-radius: 50%; }
.cu-about__text p { color: var(--muted); }
.cu-about__text strong { color: var(--ink); }
.cu-about__text .cu-btn { margin-top: .8rem; }

/* Referenzen */
.cu-refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cu-ref { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); position: relative; }
.cu-ref img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s; }
.cu-ref:hover img { transform: scale(1.06); }
.cu-ref::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: var(--radius); transition: border-color .2s; }
.cu-ref:hover::after, .cu-ref:focus-visible::after { border-color: var(--orange); }
.cu-refs + .cu-center { margin-top: 2.5rem; }

/* Kompetenzen */
.cu-skills { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cu-skills__text > p { color: var(--muted); }
.cu-bars { margin-top: 2rem; display: grid; gap: 1.5rem; }
.cu-bar__label { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--ink); margin-bottom: .45rem; }
.cu-bar__track { height: 14px; border-radius: 999px; background: #e9e9e9; overflow: hidden; }
.cu-bar__track i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--orange); }
.js .cu-bar__track i { width: 0; transition: width 1.3s cubic-bezier(.2, .7, .2, 1); }
.js .cu-bar.is-in .cu-bar__track i { width: var(--w); }
.cu-skills__media img { width: 100%; }
.cu-quote { margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; max-width: 820px; text-align: center; font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-style: italic; line-height: 1.6; color: var(--ink); padding: 0 1rem; position: relative; }
.cu-quote::before { content: "„"; display: block; font-size: 4rem; line-height: .6; color: var(--orange); font-style: normal; margin-bottom: 1.4rem; height: .5em; }

/* Kundenstimmen */
.cu-testi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.cu-testi__item { margin: 0; background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.cu-testi__item blockquote { margin: 0 0 1.2rem; font-style: italic; }
.cu-testi__item strong { display: block; color: var(--ink); }
.cu-testi__item span { font-size: .9rem; color: var(--muted); }

/* Kontakt */
.cu-contact { background: var(--black); color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cu-contact__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.cu-contact h2 { color: #fff; text-transform: none; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.cu-contact h2::after { content: ""; display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: .5em; }
.cu-contact__text > p { color: #d6d6d6; max-width: 30em; }
.cu-contact__list { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.cu-contact__list li { display: flex; align-items: center; gap: .9rem; }
.cu-contact__list .cu-icon { color: var(--orange); width: 1.5em; height: 1.5em; }
.cu-contact__list a { color: #fff; text-decoration: none; }
.cu-contact__list a:hover { color: var(--orange); }
.cu-contact__form { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem); }
.cu-field { margin-bottom: 1.1rem; }
.cu-field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.cu-field input, .cu-field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--grey); border: 2px solid transparent; border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, background .2s; }
.cu-field input:focus, .cu-field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.cu-field--captcha input[type="text"] { max-width: 140px; }
.cu-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; line-height: 1.5; margin: 1.2rem 0 1.5rem; }
.cu-check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.cu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cu-notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-weight: 500; }
.cu-notice--ok { background: #e7f7ea; color: #14602a; }
.cu-notice--err { background: #fdeceb; color: #9a1b12; }

/* ---------- Footer ---------- */
.cu-footer { background: #0b0b0b; color: #cfcfcf; font-size: .95rem; }
.cu-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-block: 4rem 3rem; }
.cu-footer .cu-logo img { height: 56px; }
.cu-footer__brand p { margin-top: 1.2rem; max-width: 24em; }
.cu-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .12em; margin-bottom: 1rem; }
.cu-footer ul { list-style: none; display: grid; gap: .5rem; }
.cu-footer a { color: #cfcfcf; text-decoration: none; }
.cu-footer a:hover { color: var(--orange); }
.cu-footer .cu-menu { display: grid; gap: .5rem; }
.cu-footer .cu-menu a { color: #cfcfcf; font-weight: 400; border: 0; }
.cu-footer__social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.cu-footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #444; border-radius: 50%; }
.cu-footer__social a:hover { background: var(--orange); border-color: var(--orange); color: #000; }
.cu-footer__bar { border-top: 1px solid #2a2a2a; font-size: .85rem; }
.cu-footer__bar-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding-block: 1.2rem; }
.cu-footer__bar p { margin: 0; }
.cu-footer .cu-footer-menu { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }

/* ---------- Unterseiten / Beiträge ---------- */
.cu-pagehead { background: var(--orange); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cu-pagehead h1 { color: #fff; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.6rem); margin: 0; }
.cu-pagehead .cu-eyebrow { color: var(--black); margin-bottom: .6rem; }
.cu-content > *:first-child { margin-top: 0; }
.cu-content h2 { font-size: 1.7rem; text-transform: none; margin-top: 2em; }
.cu-content h3 { margin-top: 1.6em; }
.cu-content ul, .cu-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.cu-content li { margin-bottom: .3em; }
.cu-content img { border-radius: 12px; }
.cu-thumb { border-radius: var(--radius); margin-bottom: 2rem; }
.cu-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; }
.cu-post { text-align: left; padding: 0 0 1.6rem; overflow: hidden; }
.cu-post > *:not(.cu-post__img) { margin-inline: 1.6rem; }
.cu-post__img { display: block; margin-bottom: 1.2rem; }
.cu-post__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cu-post h2 { font-size: 1.25rem; text-transform: none; }
.cu-post h2 a { color: var(--ink); text-decoration: none; }
.cu-more { font-weight: 500; text-decoration: none; }
.cu-pagination { margin-top: 3rem; text-align: center; }
.cu-pagination .page-numbers { display: inline-block; padding: .4em .9em; border-radius: 999px; text-decoration: none; color: var(--ink); }
.cu-pagination .current { background: var(--orange); color: #000; }

/* ---------- Lightbox ---------- */
.cu-lb { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.cu-lb img { max-width: min(100%, 1100px); max-height: 90vh; background: #fff; border-radius: 12px; }

/* ---------- Scroll-Animationen (nur mit JavaScript) ---------- */
.js .cu-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .cu-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .cu-reveal { opacity: 1; transform: none; transition: none; }
	.js .cu-bar__track i { transition: none; width: var(--w); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.cu-services { grid-template-columns: repeat(2, 1fr); }
	.cu-refs { grid-template-columns: repeat(2, 1fr); }
	.cu-footer__grid { grid-template-columns: 1fr 1fr; }
	.cu-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.cu-burger { display: flex; }
	.cu-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, padding .3s ease; }
	.cu-nav.is-open { max-height: 80vh; padding: 1rem 20px 1.6rem; visibility: visible; }
	.cu-nav .cu-menu { flex-direction: column; gap: 0; }
	.cu-nav .cu-menu a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
	.cu-nav .cu-btn { margin-top: 1.2rem; }
	.cu-hero__in, .cu-stats__in, .cu-about__in, .cu-skills, .cu-contact__in { grid-template-columns: 1fr; }
	.cu-hero__media { max-width: 520px; }
	.cu-hero__media img { box-shadow: 8px 8px 0 var(--black); }
	.cu-about__media img { max-width: 320px; }
	.cu-topbar__contact span { display: none; }
	.cu-topbar__contact a { gap: 0; }
}
@media (max-width: 600px) {
	.cu-services { grid-template-columns: 1fr; }
	.cu-refs { grid-template-columns: 1fr 1fr; gap: .8rem; }
	.cu-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
	.cu-header__in { min-height: 72px; }
	.cu-logo img, .custom-logo { height: 46px; }
	.cu-stats__grid { gap: 1.6rem 1rem; }
}

/* ---------- Gutenberg ---------- */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }
.wp-block-button__link { background: var(--orange); color: var(--black); border-radius: 999px; padding: .8em 1.8em; font-weight: 500; text-decoration: none; }
