/*
Theme Name: Safe Security
Theme URI: https://www.safe-security24.de/
Version: 1.0.1
License: GPL-2.0-or-later
Text Domain: safe-security
*/

/* ---------- Grundlagen ---------- */
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.ss-light { font-weight: 300 !important; }
.ss-eyebrow { color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--montserrat); font-size: 12px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px !important; }
.ss-stack > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ss-icon { color: var(--wp--preset--color--primary); line-height: 0; }
.ss-icon svg { width: 38px; height: 38px; fill: currentColor; }

/* ---------- Kopfbereich ---------- */
.ss-header { background: var(--wp--preset--color--dark); position: relative; z-index: 50; }
.ss-header__inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ss-header .ss-brand { display: flex; align-items: center; gap: 24px; }
.ss-header .ss-logo img { width: 116px; height: auto; display: block; }
.ss-header .wp-block-site-tagline { margin: 0; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 14px; }
.ss-header .wp-block-navigation { color: #fff; font-family: var(--wp--preset--font-family--montserrat); font-weight: 600; font-size: 14px; }
.ss-header .wp-block-navigation-item > a { color: #fff; }
.ss-header .wp-block-navigation a:hover,
.ss-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--primary); }
.ss-header .wp-block-navigation .wp-block-navigation__submenu-container { background: #fff; color: var(--wp--preset--color--heading); border: 0; box-shadow: 0 6px 24px rgba(0,0,0,.12); min-width: 220px; }
.ss-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 10px 16px; color: var(--wp--preset--color--heading); }
/* Startseite: Kopf liegt transparent über dem Slider */
body.home .ss-header { background: transparent; position: absolute; top: 0; left: 0; right: 0; }
body.home .ss-header .wp-block-site-tagline { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
body.home .ss-header .wp-block-navigation > ul > li > a,
body.home .ss-header .wp-block-navigation__container > .wp-block-navigation-item > a { text-shadow: 0 1px 6px rgba(0,0,0,.45); }
body.admin-bar.home .ss-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.home .ss-header { top: 46px; } .ss-header .wp-block-site-tagline { display: none; } }

/* ---------- Slider ---------- */
.ss-slider { position: relative; margin: 0 !important; }
.ss-slider > .ss-slide { min-height: clamp(400px, 40vw, 580px) !important; margin: 0 !important; }
.ss-slide .wp-block-cover__inner-container { max-width: 1200px !important; margin: 0 auto; padding: 0 24px; color: var(--wp--preset--color--heading) !important; }
.ss-slide h2, .ss-slide p { color: var(--wp--preset--color--heading); margin: 0; }
.ss-slide .ss-slide__sub { font-family: var(--wp--preset--font-family--montserrat); font-style: italic; font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; }
.ss-slide .ss-slide__title { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; line-height: 1.1; }
.ss-slider.is-ready > .ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.ss-slider.is-ready > .ss-slide:first-child { position: relative; }
.ss-slider.is-ready > .ss-slide.is-active { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .ss-slider.is-ready > .ss-slide { transition: none; } }
.ss-slider__dots { position: absolute; bottom: 125px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 14px; }
.ss-slider__dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--wp--preset--color--primary); background: transparent; padding: 0; cursor: pointer; }
.ss-slider__dots button[aria-current="true"] { background: var(--wp--preset--color--primary); }

/* ---------- Karten ---------- */
.ss-card { background: #fff; box-shadow: 0 2px 22px rgba(0,0,0,.08); padding: 40px 28px !important; text-align: center; height: 100%; box-sizing: border-box; }
.ss-card h3, .ss-card h4 { font-size: 16px !important; font-weight: 700; margin: 18px 0 6px !important; }
.ss-card p { font-size: 14px; line-height: 1.9; margin: 0; }
.ss-card--small { padding: 34px 20px !important; }
.ss-features { position: relative; z-index: 5; margin-top: -100px !important; }
.ss-grid .wp-block-columns { margin-bottom: 30px !important; gap: 30px; }
.ss-grid .wp-block-column, .ss-features .wp-block-column { display: flex; flex-direction: column; }
.ss-grid .wp-block-column > *, .ss-features .wp-block-column > * { flex: 1; }

/* Über uns: Bildkarten */
.ss-imgcard { background: #fff; box-shadow: 0 2px 22px rgba(0,0,0,.08); height: 100%; text-align: center; }
.ss-imgcard figure { margin: 0 !important; }
.ss-imgcard figure img { width: 100%; height: 260px; object-fit: cover; display: block; }
.ss-imgcard .ss-imgcard__body { padding: 28px 30px 40px; }
.ss-imgcard h3 { font-size: 16px !important; font-weight: 700; margin: 0 0 6px !important; }
.ss-imgcard p { font-size: 14px; line-height: 1.9; margin: 0; padding-bottom: 22px; border-bottom: 1px solid #e8e8e8; }

/* Zahlen */
.ss-number { border: 1px solid #e8e8e8; padding: 30px 40px !important; text-align: center; height: 100%; box-sizing: border-box; }
.ss-number .ss-number__value { color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--montserrat); font-size: 56px; font-weight: 600; line-height: 1; margin: 0 0 14px; }
.ss-number h3 { font-size: 16px !important; font-weight: 700; margin: 0 0 6px !important; }
.ss-number p { font-size: 14px; line-height: 1.9; margin: 0; }

/* Aufruf-Bereiche */
.ss-cta h2 { margin-top: 0 !important; margin-bottom: 0 !important; line-height: 1.15; }
.ss-cta .wp-block-buttons { margin-top: 24px; }
.ss-btn .wp-block-button__link { font-family: var(--wp--preset--font-family--montserrat); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 14px 32px; border-radius: 30px; }
.ss-btn .wp-block-button__link::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -1px; background: currentColor; -webkit-mask: var(--ss-phone) no-repeat center / contain; mask: var(--ss-phone) no-repeat center / contain; }
:root { --ss-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64 0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3l49.3-40.3c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E"); }

/* Kontaktleiste */
.ss-contactbar { gap: 0 !important; margin: 0 !important; }
.ss-contactbar > .wp-block-column { background: var(--wp--preset--color--primary); color: #fff; padding: 46px 30px 40px 48px !important; display: flex; gap: 18px; align-items: flex-start; }
.ss-contactbar > .wp-block-column:nth-child(even) { background: var(--wp--preset--color--primary-dark); }
.ss-contactbar .ss-icon { color: #fff; flex: 0 0 auto; }
.ss-contactbar .ss-icon svg { width: 34px; height: 34px; }
.ss-contactbar h3 { color: #fff; font-size: 16px !important; font-weight: 700; margin: 0 0 6px !important; }
.ss-contactbar p { color: #fff; font-size: 13px; line-height: 1.9; margin: 0; }
.ss-contactbar a { color: #fff; text-decoration: none; }
.ss-contactbar .wp-block-group { margin: 0 !important; }

/* Karte */
.ss-map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Fußbereich ---------- */
.ss-footer { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--dark); }
.ss-footer__inner { max-width: 1200px; margin: 0 auto; padding: 22px 24px 18px; }
.ss-footer__top { display: flex; align-items: center; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.35); }
.ss-footer__top img { width: 124px; height: auto; display: block; }
.ss-footer__top p { margin: 0; padding-left: 24px; border-left: 1px solid rgba(0,0,0,.25); font-size: 14px; }
.ss-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 13px; }
.ss-footer__bottom p { margin: 0; }
.ss-footer a { color: var(--wp--preset--color--dark); text-decoration: none; }
.ss-footer a:hover { text-decoration: underline; }
.ss-footer__links a + a { margin-left: 18px; }

/* ---------- Unterseiten ---------- */
.ss-page-title { margin-top: 0 !important; }
.entry-content a { color: var(--wp--preset--color--primary-dark); }

@media (max-width: 781px) {
	.ss-features { margin-top: -60px !important; }
	.ss-slider__dots { bottom: 90px; }
	.ss-contactbar > .wp-block-column { padding: 30px 24px !important; }
	.ss-grid .wp-block-columns { margin-bottom: 0 !important; }
}

/* ---------- Abschnitte ---------- */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > * { margin-block-start: 0; }
.ss-main > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ss-section { padding-top: 90px; padding-bottom: 90px; }
.ss-section--tight { padding-top: 40px; padding-bottom: 40px; }
.ss-bg-light { background: var(--wp--preset--color--light); }
.ss-center { text-align: center; }
.ss-intro { max-width: 520px; margin-left: auto !important; margin-right: auto !important; }
.ss-headline > * + * { margin-top: 0 !important; }
.ss-headline h2 { font-size: clamp(32px, 4vw, 50px); }
.ss-claim h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 700; padding: 40px 0; }
.ss-split .wp-block-column:first-child p { font-size: 15px; line-height: 1.8; }
.ss-news p { font-family: var(--wp--preset--font-family--raleway); font-weight: 400; }
.ss-news .ss-news__lead { font-weight: 700; color: var(--wp--preset--color--heading); }
