/*
Theme Name: Sycatec
Theme URI: https://sycatec-cms.ch
Author: Sycatec-cms GmbH
Description: Firmenwebseite der Sycatec-cms GmbH – Kassensysteme und Thermopapier für Handel und Gastronomie. Produkte mit Preisen, Offertanfrage per Formular. Legt beim Aktivieren alle Seiten, das Menü und die Produkte automatisch an.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.2
License: GPL-2.0-or-later
Text Domain: sycatec
*/

:root {
	--ink: #0f172a;
	--ink-soft: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #ffffff;
	--bg-soft: #f4f6f9;
	--brand: #0b4f9c;
	--brand-dark: #083a74;
	--accent: #e3412b;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
	--wrap: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px;
	font-weight: 700; font-size: .98rem; line-height: 1;
	border: 2px solid transparent; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c9321e; color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--brand); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-mark {
	width: 36px; height: 36px; border-radius: 9px;
	background: var(--brand); color: #fff;
	display: grid; place-items: center; font-size: 1.1rem;
}
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; padding: .5em .9em; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .97rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--brand); background: var(--bg-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.header-cta .btn, .header-phone { display: none; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line);
		display: none; padding: 10px 20px 20px;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; }
	.main-nav a { padding: .8em .6em; font-size: 1.05rem; }
}

/* Hero */
.hero { background: linear-gradient(160deg, #0b1f3a 0%, #0b4f9c 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero .eyebrow { color: #9cc7ff; }
.hero p.lead { font-size: 1.2rem; color: #d6e4f7; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(255,255,255,.08); }
@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
}

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 36em; margin: 0; }
.section-head h2 { margin-bottom: .25em; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: #e8f0fb; color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 1 / 1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.product-card h3 a { color: var(--ink); }
.product-card .excerpt { color: var(--muted); font-size: .92rem; margin: 0 0 14px; flex: 1; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.price small { font-weight: 600; color: var(--muted); font-size: .75em; }
.link-arrow { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.placeholder-img { color: var(--muted); font-size: .85rem; }

/* Banner */
.banner {
	display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden;
	background: var(--ink); color: #fff; margin-bottom: 36px;
}
.banner .text { padding: 48px; align-self: center; }
.banner .text p { color: #cbd5e1; }
.banner .media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; } .banner .text { padding: 32px 24px; } }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: 22px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #d6e4f7; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } }

/* Page */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-hero p { color: var(--muted); margin: .6em 0 0; max-width: 40em; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.entry { max-width: 780px; }
.entry h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry .wp-block-columns { gap: 24px; }

/* Filter tabs */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter a { padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: .93rem; background: #fff; }
.filter a.is-active, .filter a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Single product */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-single .gallery { background: var(--bg-soft); border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.product-single .gallery img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-single .price { font-size: 1.7rem; display: block; margin: 6px 0 4px; }
.product-single .vat { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.product-single .cat { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.product-single .desc { color: var(--ink-soft); margin: 18px 0 26px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .product-single { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 16px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form */
.offer-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.offer-form h2, .offer-form h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	border: 1px solid #cbd5e1; border-radius: 10px; padding: .75em .9em; background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #bcd5f5; border-color: var(--brand); }
.field .req { color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.notice-ok { background: #e7f6ec; color: #17603a; }
.notice-err { background: #fdecea; color: #a12a1b; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .offer-form { padding: 22px; } }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; display: block; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #94a3b8; }
.footer-bottom ul { display: flex; gap: 18px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.admin-hint { background: #fff7e0; border: 1px dashed #d9a400; color: #6b5200; padding: 2px 8px; border-radius: 6px; font-size: .85em; font-weight: 600; }

.price-anfrage { color: var(--accent); font-size: .92rem; }
.price-anfrage:hover { color: #c9321e; }
.product-single .vat { font-size: 1rem; color: var(--ink-soft); margin-top: 10px; }
