/*
Theme Name: Werkstatt Pro
Theme URI: https://example.com/werkstatt-pro
Author: OpenAI
Author URI: https://openai.com/
Description: Modernes, responsives WordPress-Theme für Kfz-Werkstätten. Optimiert für das Plugin Kfz Werkstatt MVP, Online-Terminbuchung und Kundenportal.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: werkstatt-pro
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, translation-ready
*/

:root {
  --wp-bg: #0d1117;
  --wp-panel: #151b23;
  --wp-panel-2: #1d2530;
  --wp-line: #2b3542;
  --wp-text: #f3f6f8;
  --wp-muted: #a9b3bf;
  --wp-accent: #f4a300;
  --wp-accent-2: #ffc247;
  --wp-dark: #0a0d11;
  --wp-success: #2fb573;
  --wp-danger: #e45f5f;
  --wp-radius: 18px;
  --wp-shadow: 0 18px 50px rgba(0,0,0,.28);
  --wp-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wp-bg);
  color: var(--wp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wp-accent-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.wp-site-shell { min-height: 100vh; overflow: hidden; }
.wp-container { width: min(calc(100% - 32px), var(--wp-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,13,17,.9);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 13px; min-width: 0; }
.site-logo img { display: block; max-height: 50px; width: auto; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--wp-accent); color: #111; font-weight: 900; box-shadow: 0 8px 28px rgba(244,163,0,.25); }
.brand-copy { min-width: 0; }
.site-title { display: block; color: #fff; font-size: 1.03rem; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-tagline { display: block; color: var(--wp-muted); font-size: .76rem; line-height: 1.2; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #d7dde4; font-size: .93rem; font-weight: 700; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--wp-accent-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; border: 1px solid var(--wp-line); background: var(--wp-panel); color: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; }

.wp-button, .wp-element-button, input[type="submit"], button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px;
  background: var(--wp-accent); color: #141414; font-weight: 850; cursor: pointer;
  box-shadow: 0 10px 30px rgba(244,163,0,.18); transition: .2s ease;
}
.wp-button:hover, .wp-element-button:hover, input[type="submit"]:hover, button[type="submit"]:hover { transform: translateY(-1px); background: var(--wp-accent-2); color: #111; }
.wp-button--ghost { background: transparent; color: #fff; border: 1px solid var(--wp-line); box-shadow: none; }
.wp-button--ghost:hover { background: var(--wp-panel-2); color: #fff; }

.hero { position: relative; padding: 92px 0 80px; background:
  radial-gradient(circle at 80% 20%, rgba(244,163,0,.18), transparent 30%),
  linear-gradient(135deg, #0b0f14 0%, #151b23 55%, #0d1117 100%);
}
.hero::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, black, transparent 92%); pointer-events:none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color: var(--wp-accent-2); text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; font-weight: 900; }
.eyebrow::before { content:""; width: 28px; height: 3px; border-radius: 20px; background: var(--wp-accent); }
.hero h1 { margin: 16px 0 20px; max-width: 760px; font-size: clamp(2.65rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 0; color: #c0c8d1; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top: 30px; }
.hero-trust { display:flex; flex-wrap:wrap; gap:18px; margin-top: 28px; color: var(--wp-muted); font-size:.9rem; }
.hero-trust span::before { content:"✓"; color: var(--wp-accent); margin-right:7px; font-weight:900; }

.hero-panel { position:relative; background: linear-gradient(160deg, rgba(29,37,48,.96), rgba(18,23,30,.98)); border:1px solid rgba(255,255,255,.09); border-radius: 24px; padding: 24px; box-shadow: var(--wp-shadow); }
.hero-panel::before { content:""; position:absolute; width:120px; height:6px; top:0; left:32px; background:var(--wp-accent); border-radius:0 0 8px 8px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.panel-head strong { font-size:1.05rem; }
.live-pill { padding:5px 9px; border-radius:999px; background:rgba(47,181,115,.13); color:#78e0a9; font-size:.74rem; font-weight:800; }
.service-row { display:grid; grid-template-columns:48px 1fr auto; gap:13px; align-items:center; padding:14px 0; border-top:1px solid var(--wp-line); }
.service-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:13px; background:rgba(244,163,0,.11); color:var(--wp-accent-2); font-weight:900; }
.service-row small { color:var(--wp-muted); display:block; }
.service-time { color:#fff; font-weight:850; }

.section { padding: 84px 0; }
.section--soft { background: #111720; }
.section-head { max-width: 730px; margin-bottom: 38px; }
.section-head h2 { margin: 10px 0 12px; font-size: clamp(2rem,4vw,3.3rem); line-height:1.05; letter-spacing:-.04em; }
.section-head p { margin:0; color:var(--wp-muted); font-size:1.06rem; }
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card { background:var(--wp-panel); border:1px solid var(--wp-line); border-radius:var(--wp-radius); padding:26px; box-shadow:0 12px 36px rgba(0,0,0,.15); }
.card-number { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--wp-accent); color:#111; font-weight:950; }
.card h3 { margin:18px 0 8px; font-size:1.25rem; }
.card p { margin:0; color:var(--wp-muted); }

.split { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.feature-list { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:14px; }
.feature-list li { position:relative; padding-left:32px; color:#d6dce3; }
.feature-list li::before { content:"✓"; position:absolute; left:0; top:0; width:22px; height:22px; display:grid; place-items:center; border-radius:7px; background:rgba(244,163,0,.15); color:var(--wp-accent-2); font-weight:900; }
.workshop-visual { min-height:410px; border-radius:24px; background:linear-gradient(145deg,#252e39,#12171e); border:1px solid var(--wp-line); padding:26px; box-shadow:var(--wp-shadow); }
.dashboard-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:25px; }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.metric { padding:19px; border-radius:15px; background:#10151c; border:1px solid var(--wp-line); }
.metric strong { display:block; font-size:1.85rem; line-height:1; margin-bottom:7px; }
.metric span { color:var(--wp-muted); font-size:.82rem; }
.job-strip { margin-top:14px; padding:16px; border-radius:14px; background:#10151c; border-left:4px solid var(--wp-accent); display:flex; justify-content:space-between; gap:15px; }
.job-strip small { color:var(--wp-muted); display:block; }

.cta-box { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:38px; border-radius:24px; background:linear-gradient(135deg,var(--wp-accent),#ffbf3e); color:#151515; box-shadow:0 20px 60px rgba(244,163,0,.18); }
.cta-box h2 { margin:0 0 7px; font-size:clamp(1.8rem,4vw,3rem); letter-spacing:-.04em; }
.cta-box p { margin:0; color:#3d321c; }
.cta-box .wp-button { background:#111; color:#fff; box-shadow:none; white-space:nowrap; }

.site-main { min-height:60vh; }
.page-hero { padding:64px 0 38px; background:linear-gradient(180deg,#10161e,#0d1117); border-bottom:1px solid var(--wp-line); }
.page-hero h1 { margin:7px 0 0; font-size:clamp(2.2rem,5vw,4rem); letter-spacing:-.05em; }
.content-wrap { padding:54px 0 84px; }
.entry-content { background:var(--wp-panel); border:1px solid var(--wp-line); border-radius:22px; padding:clamp(20px,4vw,42px); }
.entry-content h2, .entry-content h3 { line-height:1.15; }
.entry-content input, .entry-content select, .entry-content textarea {
  width:100%; color:#fff; background:#0e1319; border:1px solid #34404d; border-radius:11px; padding:12px 13px;
}
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus { outline:2px solid rgba(244,163,0,.35); border-color:var(--wp-accent); }
.entry-content label { color:#dfe5eb; font-weight:700; }
.entry-content table { width:100%; border-collapse:collapse; }
.entry-content th, .entry-content td { padding:13px; border-bottom:1px solid var(--wp-line); text-align:left; }

/* Plugin harmonization */
.kfzw-wrap, .kfzw-app, .kfzw-portal, .kfzw-booking { color:var(--wp-text); }
.kfzw-wrap .kfzw-card, .kfzw-app .kfzw-card, .kfzw-portal .kfzw-card, .kfzw-booking .kfzw-card { background:var(--wp-panel-2); border-color:var(--wp-line); }

.site-footer { border-top:1px solid var(--wp-line); background:#090c10; padding:52px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.3fr .7fr .8fr; gap:40px; }
.footer-title { margin:0 0 12px; color:#fff; font-size:1rem; }
.footer-copy, .footer-links, .footer-contact { color:var(--wp-muted); font-size:.92rem; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-links a { color:var(--wp-muted); }
.footer-links a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding-top:30px; margin-top:34px; border-top:1px solid var(--wp-line); color:#74808d; font-size:.82rem; }
.theme-credit { text-align:right; }
.theme-credit a { color:inherit; text-decoration:none; }
.theme-credit a:hover, .theme-credit a:focus { color:var(--wp-accent); text-decoration:underline; }

.alignwide { width:min(1400px, calc(100vw - 32px)); margin-left:50%; transform:translateX(-50%); }
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns:1fr; }
  .hero-panel { max-width:680px; }
  .card-grid { grid-template-columns:1fr 1fr; }
  .main-nav { display:none; position:absolute; inset:76px 16px auto; padding:18px; background:#10161e; border:1px solid var(--wp-line); border-radius:16px; box-shadow:var(--wp-shadow); }
  .main-nav.is-open { display:block; }
  .main-nav ul { align-items:stretch; flex-direction:column; gap:6px; }
  .main-nav a { display:block; padding:10px 8px; }
  .nav-toggle { display:inline-flex; }
  .header-actions .wp-button { display:none; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 680px) {
  .admin-bar .site-header { top:46px; }
  .wp-container { width:min(calc(100% - 22px), var(--wp-width)); }
  .hero { padding:65px 0 58px; }
  .hero h1 { font-size:clamp(2.5rem,13vw,4rem); }
  .card-grid, .metric-grid, .footer-grid { grid-template-columns:1fr; }
  .section { padding:62px 0; }
  .cta-box { align-items:flex-start; flex-direction:column; padding:28px; }
  .footer-bottom { flex-direction:column; }
  .site-tagline { display:none; }
}
