/*
Theme Name: Fahrzeug Manager Theme
Theme URI: https://fahrzeug-manager.at/
Author: Fahrzeug Manager Projekt
Description: Schlankes, modernes WordPress-Theme für die Fahrzeug-Manager-Webseite. Farbwelt: Rot, Weiß, Blau und Silber. Optimiert für das Website-Core-Plugin.
Version: 0.1.0
Text Domain: fahrzeug-manager-theme
*/

:root {
  --fmt-navy: #123b66;
  --fmt-navy-deep: #0a2948;
  --fmt-blue: #1c5f9f;
  --fmt-red: #c62828;
  --fmt-red-dark: #9f1f1f;
  --fmt-silver: #d7dde4;
  --fmt-silver-light: #eef2f5;
  --fmt-white: #ffffff;
  --fmt-text: #182431;
  --fmt-muted: #667585;
  --fmt-border: #dde4eb;
  --fmt-shadow: 0 18px 50px rgba(15, 50, 82, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fmt-text);
  background: #f6f8fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--fmt-blue); }
a:hover { color: var(--fmt-red); }
img { max-width: 100%; height: auto; }

.fmt-shell { min-height: 100vh; display: flex; flex-direction: column; }
.fmt-site-main { flex: 1; }
.fmt-container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.fmt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(190,201,212,.72);
  box-shadow: 0 8px 25px rgba(10,41,72,.06);
}
.admin-bar .fmt-header { top: 32px; }
.fmt-header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.fmt-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--fmt-navy-deep); }
.fmt-brand-logo { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 8px 11px rgba(10,41,72,.15)); }
.fmt-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.fmt-brand-name { font-weight: 850; font-size: 1.22rem; letter-spacing: -.02em; }
.fmt-brand-tagline { margin-top: 5px; color: var(--fmt-muted); font-size: .78rem; font-weight: 600; }

.fmt-nav { justify-self: end; }
.fmt-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
.fmt-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--fmt-navy-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: .94rem;
  border-radius: 11px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.fmt-nav a:hover,
.fmt-nav .current-menu-item > a,
.fmt-nav .current_page_item > a {
  color: #fff;
  background: linear-gradient(135deg, var(--fmt-navy), var(--fmt-blue));
  transform: translateY(-1px);
}
.fmt-nav .menu-item-demo > a,
.fmt-nav a[href*="demo"] {
  color: #fff;
  background: linear-gradient(135deg, var(--fmt-red), var(--fmt-red-dark));
  box-shadow: 0 8px 20px rgba(198,40,40,.18);
}

.fmt-menu-toggle { display: none; border: 0; background: var(--fmt-navy); color: #fff; width: 44px; height: 44px; border-radius: 11px; font-size: 1.35rem; cursor: pointer; }

.fmt-content-wrap { width: min(1320px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 55px; }
.fmt-entry { background: transparent; }
.fmt-entry-header { width: min(1180px, calc(100% - 12px)); margin: 14px auto -12px; }
.fmt-entry-title { margin: 0; color: var(--fmt-navy-deep); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.fmt-entry-content > .fmwc-page { padding-top: 24px; }

.fmt-footer {
  margin-top: 70px;
  color: #dce6ef;
  background:
    radial-gradient(circle at 15% 15%, rgba(198,40,40,.24), transparent 28%),
    linear-gradient(135deg, #071f36, #123b66 72%);
  border-top: 4px solid var(--fmt-red);
}
.fmt-footer-grid { padding: 48px 0 30px; display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 35px; }
.fmt-footer-brand { display: flex; align-items: center; gap: 15px; }
.fmt-footer-logo { width: 72px; }
.fmt-footer h2, .fmt-footer h3 { margin-top: 0; color: #fff; }
.fmt-footer p { color: #bac9d8; }
.fmt-footer ul { list-style: none; margin: 0; padding: 0; }
.fmt-footer li { margin: 8px 0; }
.fmt-footer a { color: #dce6ef; text-decoration: none; }
.fmt-footer a:hover { color: #fff; text-decoration: underline; }
.fmt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 24px; color: #aebdcb; font-size: .88rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Core-Plugin harmonisieren */
.fmwc-page { max-width: 1180px !important; }
.fmwc-hero { border-top: 5px solid var(--fmt-red); }
.fmwc-btn-primary { background: linear-gradient(135deg, var(--fmt-navy), var(--fmt-blue)) !important; }
.fmwc-btn-primary:hover { background: linear-gradient(135deg, var(--fmt-blue), var(--fmt-navy)) !important; }
.fmwc-btn-secondary:hover { border-color: var(--fmt-red) !important; color: var(--fmt-red) !important; }
.fmwc-card { position: relative; overflow: hidden; }
.fmwc-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--fmt-red), var(--fmt-navy)); opacity: .85; }
.fmwc-module-number { background: linear-gradient(145deg, var(--fmt-navy), var(--fmt-blue)) !important; }
.fmwc-cta { border: 1px solid rgba(255,255,255,.12); box-shadow: var(--fmt-shadow); }

@media (max-width: 1060px) {
  .fmt-header-inner { grid-template-columns: auto auto; }
  .fmt-menu-toggle { display: inline-grid; place-items: center; justify-self: end; }
  .fmt-nav { display: none; grid-column: 1 / -1; width: 100%; padding: 0 0 18px; }
  .fmt-nav.is-open { display: block; }
  .fmt-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .fmt-nav a { width: 100%; background: #f2f5f8; }
  .fmt-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar .fmt-header { top: 46px; } }
@media (max-width: 680px) {
  .fmt-container { width: min(100% - 24px, 1240px); }
  .fmt-header-inner { min-height: 72px; gap: 12px; }
  .fmt-brand-logo { width: 48px; height: 48px; }
  .fmt-brand-tagline { display: none; }
  .fmt-nav ul { grid-template-columns: 1fr; }
  .fmt-content-wrap { width: calc(100% - 12px); }
  .fmt-footer-grid { grid-template-columns: 1fr; }
  .fmt-footer-bottom { flex-direction: column; }
}
