/* ==========================================================================
   RhekTec – Design Tokens (v3, heller Look)
   Weiß als Basis, Anthrazit und Teal als Akzentfarben – nicht umgekehrt.
   Signatur: versetzte, farbige Rechteck-"Objekte" hinter echten Fotos
   (Hero, Julian-Portrait) statt Dashboard-Chrome oder Stock-Ikonografie.
   Bento-Grid für die Leistungen, damit echte Bilder unterschiedlich viel
   Raum bekommen statt gleichförmiger Kartenreihen.
   ========================================================================== */

:root {
	--bg: #ffffff;
	--bg-soft: #f4f5f4;
	--bg-soft-hover: #edefee;
	--ink: #21242a;
	--ink-soft: #565c60;
	--ink-faint: #8b9093;
	--line: #e6e8e7;
	--line-strong: #d3d6d5;
	--teal: #00b4a6;
	--teal-deep: #00897e;
	--teal-tint: #e3f7f5;
	--font-display: 'Inter', -apple-system, sans-serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--radius-sm: 6px;
	--radius: 16px;
	--radius-lg: 28px;
	--max-width: 1180px;
	--gap: 24px;
	--stripe-w: 5px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--shadow: 0 1px 2px rgba(33,36,42,0.04), 0 12px 32px -16px rgba(33,36,42,0.14);
	--shadow-lg: 0 4px 8px rgba(33,36,42,0.05), 0 24px 56px -20px rgba(33,36,42,0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
.accent { color: var(--teal); }

/* Markenzeichen: schlanker Teal-Stripe am linken Rand, auch auf Weiß */
.brand-rule { position: fixed; left: 0; top: 0; bottom: 0; width: var(--stripe-w); background: var(--teal); z-index: 50; }
@media (max-width: 780px) { .brand-rule { display: none; } }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--teal); color: #fff; padding: 12px 20px; font-weight: 700; }
.skip-link:focus { left: var(--stripe-w); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px 0 calc(32px + var(--stripe-w)); }
.wrap--narrow { max-width: 780px; }
@media (max-width: 780px) { .wrap { padding: 0 24px; } }
.section { padding: 108px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--bg-soft); }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 1.1em; display: block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--max-width); margin: 0 auto; padding: 20px 32px 20px calc(32px + var(--stripe-w)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
@media (max-width: 780px) { .site-header__inner { padding: 16px 24px; } }
.site-logo { flex-shrink: 0; }
.site-logo__img { display: block; height: 46px; width: auto; }
@media (max-width: 780px) { .site-logo__img { height: 38px; } }
.primary-nav { display: flex; align-items: center; gap: 40px; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.15s ease; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--ink); }
.nav-cta-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-soft); transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover, .icon-btn:focus-visible { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-tint); }
@media (max-width: 980px) { .icon-btn { width: 44px; height: 44px; border-radius: var(--radius-sm); } .icon-btn svg { width: 20px; height: 20px; } }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 980px) {
	.nav-toggle { display: flex; }
	.primary-nav { position: fixed; inset: 65px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 32px 24px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s; }
	.primary-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
	.nav-menu { flex-direction: column; gap: 22px; font-size: 1.25rem; }
	.nav-cta-group { flex-direction: column; align-items: stretch; width: 100%; margin-top: 28px; gap: 12px; }
}

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem; padding: 13px 24px; border-radius: var(--radius-sm); border: 1px solid var(--ink); transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.button:hover, .button:focus-visible { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button--ghost:hover, .button--ghost:focus-visible { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-tint); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 120px; border-top: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__lead { font-size: 1.2rem; max-width: 48ch; margin-bottom: 2.2em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.hero__stats span { font-size: 0.85rem; color: var(--ink-faint); }

.hero__visual { position: relative; max-width: 420px; margin: 0 auto; }
.hero__object { position: absolute; background: var(--teal-tint); border: 1px solid var(--teal-tint); border-radius: var(--radius-lg); width: 88%; height: 88%; bottom: -20px; right: -20px; z-index: 0; }
.hero__photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 940px) { .hero__visual { max-width: 320px; } }

/* ---------- Bento / cards ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.card:hover, .card:focus-visible { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-4px); }
.card--wide { grid-column: span 2; }
@media (max-width: 900px) { .card--wide { grid-column: span 1; } }
.card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--teal-tint); margin-bottom: 6px; }
.card__icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card__icon--mono { background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem; }
.card__more { color: var(--teal-deep); font-weight: 700; font-size: 0.9rem; margin-top: auto; }

/* ---------- USP bento (mit Foto-Kachel) ---------- */
.usp-bento { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: var(--gap); align-items: stretch; }
@media (max-width: 940px) { .usp-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .usp-bento { grid-template-columns: 1fr; } }
.usp-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; box-shadow: var(--shadow); }
.usp-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.usp { padding: 4px 0; }
.usp__mark { font-weight: 800; color: var(--teal); font-size: 0.85rem; display: block; margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step p { font-size: 0.95rem; }

/* ---------- Referenzen ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 700px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); display: block; }
.ref-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-4px); }
.ref-card:hover .ref-card__logo img { filter: grayscale(0); opacity: 1; }
.ref-card__logo { height: 44px; margin-bottom: 18px; display: flex; align-items: center; }
.ref-card__logo img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.ref-card p { margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 1.3rem; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 14px; }

/* ---------- Check list / prose ---------- */
.check-list li { padding: 15px 0 15px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; background: var(--teal); border-radius: 2px; }
.prose { color: var(--ink); }
.prose p { color: var(--ink-soft); max-width: none; }

/* ---------- Page hero / about ---------- */
.page-hero { padding-top: 80px; padding-bottom: 64px; }
.about-hero { display: flex; align-items: center; gap: 28px; }
.about-hero__photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 560px) { .about-hero { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

.native-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.form-row input, .form-row textarea {
	font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--bg);
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.form-row--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.native-form .button { align-self: flex-start; border: none; cursor: pointer; }
.form-notice { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 0.95rem; }
.form-notice--success { background: var(--teal-tint); color: var(--teal-deep); border: 1px solid var(--teal); }
.form-notice--error { background: #fdecea; color: #a3372a; border: 1px solid #f3b3ab; }
.contact-details address { font-style: normal; color: var(--ink-soft); line-height: 2; }
.contact-details a:hover { color: var(--teal-deep); }

/* ---------- CTA footer band ---------- */
.cta-footer { text-align: center; background: var(--ink); border-top: none; }
.cta-footer h2, .cta-footer p { color: #fff; }
.cta-footer p { margin-left: auto; margin-right: auto; opacity: 0.7; }
.cta-footer .button { background: var(--teal); border-color: var(--teal); }
.cta-footer .button:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

/* ---------- Site footer (dunkles Band als Kontrast) ---------- */
.site-footer { border-top: none; padding: 72px 0 0; background: var(--ink); color: #cfd2d1; }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px 0 calc(32px + var(--stripe-w)); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .site-footer__inner { grid-template-columns: 1fr 1fr; padding: 0 24px; } }
@media (max-width: 500px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__logo { height: 52px; width: auto; }
.site-footer__heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #8b9093; margin-bottom: 1em; }
.site-footer address { font-style: normal; color: #b6b9b8; line-height: 1.9; }
.site-footer address a:hover { color: var(--teal); }
.nav-menu--footer { flex-direction: column; gap: 10px; }
.nav-menu--footer a { color: #b6b9b8; }
.nav-menu--footer a:hover { color: var(--teal); }
.site-footer__bottom { margin-top: 56px; padding: 24px 32px 24px calc(32px + var(--stripe-w)); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #7b8082; }
@media (max-width: 780px) { .site-footer__bottom { padding: 24px; } }
