/*
Theme Name: Business AI Desk
Theme URI: https://business-ai-desk.de/
Author: Depha GmbH
Author URI: https://business-ai-desk.de/
Description: Individuelles Block-Child-Theme fuer Business AI Desk – Private Unternehmens-KI fuer den Mittelstand. Basiert auf Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: business-ai-desk
Tags: business, one-column, block-theme
*/

/* =========================================================================
   Business AI Desk – Custom Styles
   ====================================================================== */

:root {
	--bad-radius: 14px;
	--bad-radius-sm: 8px;
	--bad-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 12px 32px -12px rgba(11, 37, 69, .18);
	--bad-container: 1200px;
}

/* --- Grundlagen -------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* --- Inhaltsbreite: Lesekomfort fuer Fliesstext --- */
.is-layout-constrained > p,
.is-layout-constrained > ul,
.is-layout-constrained > ol,
.is-layout-constrained > blockquote {
	max-width: 44rem;
}

/* --- Header ------------------------------------------------------------ */
.bad-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.bad-header .wp-block-site-title {
	font-weight: 800;
	letter-spacing: -.02em;
	font-size: 1.3rem;
}
.bad-header .wp-block-site-title a { color: var(--wp--preset--color--primary); }
.bad-header .wp-block-site-title a span { color: var(--wp--preset--color--accent); }

.bad-nav .wp-block-navigation-item__content {
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	padding: .35em 0;
}
.bad-nav .wp-block-navigation-item__content:hover,
.bad-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-dark);
}
.bad-header .wp-block-button__link {
	padding: .6em 1.25em;
	font-size: var(--wp--preset--font-size--small);
}

/* --- Hero -------------------------------------------------------------- */
.bad-hero {
	background:
		radial-gradient(1100px 480px at 82% -12%, rgba(18, 179, 166, .38), transparent 62%),
		linear-gradient(135deg, #0b2545 0%, #16375f 100%);
	color: #fff;
}
.bad-hero h1, .bad-hero h2, .bad-hero h3 { color: #fff; }
.bad-hero p { color: rgba(255, 255, 255, .86); }
.bad-hero .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: #04231f;
	font-weight: 700;
}
.bad-hero .wp-block-button__link:hover { background: #fff; }

/* --- Eyebrow / Label --------------------------------------------------- */
.bad-eyebrow {
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .78rem !important;
	font-weight: 700;
	color: var(--wp--preset--color--accent-dark);
	margin-bottom: .35em;
}
.bad-hero .bad-eyebrow { color: #7fe6dc; }

/* --- Karten ------------------------------------------------------------ */
.is-style-bad-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--bad-radius);
	padding: clamp(1.25rem, 2.5vw, 2rem);
	box-shadow: var(--bad-shadow);
	height: 100%;
}
.is-style-bad-card h3 { margin-top: 0; }

/* --- Checkmark-Liste --------------------------------------------------- */
.is-style-checkmark-list { list-style: none; padding-left: 0; }
.is-style-checkmark-list li {
	position: relative;
	padding-left: 1.9em;
	margin-bottom: .6em;
}
.is-style-checkmark-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8b80' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .8em no-repeat;
}
.bad-hero .is-style-checkmark-list li::before {
	background-color: rgba(255, 255, 255, .16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe6dc' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --- Abschnitts-Varianten --------------------------------------------- */
.is-style-bad-section {
	border-radius: var(--bad-radius);
	padding: clamp(1.75rem, 4vw, 3.5rem);
}
.bad-stat {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	letter-spacing: -.02em;
}
.bad-hero .bad-stat { color: #7fe6dc; }
.bad-muted { color: var(--wp--preset--color--muted); }
.bad-rule {
	height: 1px;
	background: var(--wp--preset--color--border);
	border: 0;
}

/* --- Kontaktformular --------------------------------------------------- */
.bad-form-wrap { max-width: 640px; }
.bad-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.bad-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 640px) { .bad-form__row { grid-template-columns: 1fr; } }
.bad-form__field { display: block; margin-bottom: 1rem; }
.bad-form__field > span {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: .35rem;
	color: var(--wp--preset--color--contrast);
}
.bad-form input[type="text"],
.bad-form input[type="email"],
.bad-form input[type="tel"],
.bad-form textarea {
	width: 100%;
	padding: .8em .9em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--bad-radius-sm);
	font: inherit;
	background: #fff;
	color: var(--wp--preset--color--contrast);
}
.bad-form input:focus, .bad-form textarea:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(18, 179, 166, .18);
}
.bad-form__consent {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--small);
	margin: 0.5rem 0 1.25rem;
}
.bad-form__consent input { margin-top: .25em; }
.bad-form__submit {
	cursor: pointer;
	border: 0;
	border-radius: var(--bad-radius-sm);
	background: var(--wp--preset--color--accent);
	color: #04231f;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	padding: .9em 1.8em;
	transition: background .15s ease;
}
.bad-form__submit:hover { background: var(--wp--preset--color--accent-dark); color: #fff; }

.bad-alert {
	border-radius: var(--bad-radius-sm);
	padding: .9em 1.1em;
	margin-bottom: 1.25rem;
	font-weight: 500;
}
.bad-alert--success { background: var(--wp--preset--color--tint); color: #0b6b62; border: 1px solid #b8e6e0; }
.bad-alert--error { background: #fdecec; color: #a12727; border: 1px solid #f5c2c2; }

/* --- Footer ------------------------------------------------------------ */
.bad-footer { color: rgba(255, 255, 255, .78); }
.bad-footer h2, .bad-footer h3, .bad-footer strong { color: #fff; }
.bad-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.bad-footer a:hover { color: #fff; text-decoration: underline; }
.bad-footer .wp-block-site-title a { color: #fff; }
.bad-footer__meta { font-size: var(--wp--preset--font-size--small); }

/* --- Dunkle Sektionen (Primärfarbe) ----------------------------------- */
.has-primary-background-color :is(h1, h2, h3, h4, h5, h6, .wp-block-heading) { color: inherit; }
.has-primary-background-color .bad-eyebrow { color: #7fe6dc; }
.has-primary-background-color .bad-muted { color: rgba(255, 255, 255, .72); }

/* --- Hero: Outline-Button --------------------------------------------- */
.bad-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .55);
}
.bad-hero .is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

/* --- Footer-Listen ---------------------------------------------------- */
.bad-footer .wp-block-list li { margin-bottom: .45em; }

/* --- HTML-Sitemap ----------------------------------------------------- */
.bad-sitemap-list {
	list-style: none;
	padding-left: 0;
	margin: 0 0 1.5rem;
}
.bad-sitemap-list ul { list-style: none; padding-left: 1.25rem; margin: .4rem 0 .2rem; }
.bad-sitemap-list li { margin-bottom: .35em; }
.bad-sitemap-list > li > a { font-weight: 600; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 781px) {
	.bad-header .wp-block-navigation { flex: 1 1 auto; }
}
