/*
Theme Name: Tucic Nutzfahrzeuge
Theme URI: https://tucic-nutzfahrzeuge.de
Author: Tucic Nutzfahrzeuge GmbH i. G.
Description: Maßgeschneidertes WordPress-Theme für Fahrzeughandel, Ankauf, Transport und Export.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tucic
*/

:root {
  --tn-blue: #0a2e73;
  --tn-blue-2: #164a9a;
  --tn-silver: #a7a9ac;
  --tn-ink: #111827;
  --tn-text: #374151;
  --tn-muted: #6b7280;
  --tn-line: #d8dde5;
  --tn-soft: #f1f3f5;
  --tn-paper: #f8f9fa;
  --tn-white: #fff;
  --tn-success: #137a4b;
  --tn-warning: #a76200;
  --tn-danger: #b42318;
  --tn-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tn-text);
  background: var(--tn-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--tn-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tn-blue-2); }
h1, h2, h3, h4 { color: var(--tn-ink); line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.85rem, 3.2vw, 3rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .55rem; }
p { margin: 0 0 1rem; }
.tn-wrap { width: min(calc(100% - 40px), var(--tn-width)); margin-inline: auto; }
.tn-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.tn-section--soft { background: var(--tn-paper); }
.tn-section--blue { color: rgba(255,255,255,.86); background: var(--tn-blue); }
.tn-section--blue h2, .tn-section--blue h3 { color: white; }
.tn-eyebrow { color: var(--tn-blue-2); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tn-section--blue .tn-eyebrow { color: #b9cdf7; }
.tn-lead { max-width: 760px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.tn-note { color: var(--tn-muted); font-size: .92rem; }
.tn-grid { display: grid; gap: 1.35rem; }
.tn-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-card { background: #fff; border: 1px solid var(--tn-line); border-left: 4px solid var(--tn-blue); padding: 1.6rem; }
.tn-card--dark { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.2); }
.tn-card__num { display: block; color: var(--tn-silver); font-size: .8rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 1.25rem; }
.tn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .72rem 1.15rem; border: 2px solid var(--tn-blue); background: var(--tn-blue); color: white; font-weight: 750; text-decoration: none; border-radius: 0; cursor: pointer; transition: .18s ease; }
.tn-btn:hover { background: var(--tn-blue-2); border-color: var(--tn-blue-2); color: #fff; transform: translateY(-1px); }
.tn-btn--light { color: var(--tn-blue); background: white; border-color: white; }
.tn-btn--outline { color: var(--tn-blue); background: transparent; }
.tn-btn--outline:hover { color: white; }
.tn-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.tn-topbar { padding: .45rem 0; color: white; background: var(--tn-ink); font-size: .82rem; letter-spacing: .02em; }
.tn-topbar .tn-wrap { display: flex; justify-content: space-between; gap: 1rem; }
.tn-topbar a { color: white; text-decoration: none; }
.tn-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--tn-line); backdrop-filter: blur(12px); }
.tn-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.tn-brand img { display: block; width: min(290px, 40vw); max-height: 64px; object-fit: contain; object-position: left center; }
.tn-brand__text { color: var(--tn-blue); font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.tn-nav ul { display: flex; align-items: center; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.tn-nav a { color: var(--tn-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.tn-nav a:hover, .tn-nav .current-menu-item > a { color: var(--tn-blue-2); }
.tn-menu-toggle { display: none; border: 0; background: none; color: var(--tn-blue); font-size: 1rem; font-weight: 800; }
.tn-hero { position: relative; overflow: hidden; min-height: 610px; display: grid; align-items: center; color: white; background: linear-gradient(125deg, #061a42 0%, var(--tn-blue) 56%, #0f55ad 100%); }
.tn-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 90px, rgba(255,255,255,.035) 90px 91px); }
.tn-hero::after { content: ""; position: absolute; width: 42vw; height: 130%; right: -15vw; top: -15%; border: 1px solid rgba(255,255,255,.2); transform: skewX(-16deg); }
.tn-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: center; padding: 5rem 0; }
.tn-hero h1 { color: white; max-width: 900px; }
.tn-hero__claim { color: #dbe7ff; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.tn-hero__logo { padding: 2.25rem; background: white; border-left: 7px solid var(--tn-silver); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.tn-hero__logo img { display: block; width: 100%; }
.tn-trust { border-bottom: 1px solid var(--tn-line); }
.tn-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tn-trust__item { padding: 1.45rem; text-align: center; font-weight: 800; color: var(--tn-blue); border-right: 1px solid var(--tn-line); }
.tn-trust__item:last-child { border-right: 0; }
.tn-vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.tn-vehicle { position: relative; background: white; border: 1px solid var(--tn-line); overflow: hidden; }
.tn-vehicle__image { aspect-ratio: 4 / 3; background: var(--tn-soft); }
.tn-vehicle__image img { width: 100%; height: 100%; object-fit: cover; }
.tn-vehicle__body { padding: 1.25rem; }
.tn-vehicle__title { margin-bottom: .7rem; }
.tn-vehicle__meta { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; font-size: .88rem; color: var(--tn-muted); }
.tn-price { color: var(--tn-blue); font-size: 1.3rem; font-weight: 850; margin-top: 1rem; }
.tn-badge { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: .35rem .55rem; color: white; background: var(--tn-blue); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tn-badge--reserved { background: var(--tn-warning); }
.tn-badge--sold { background: var(--tn-danger); }
.tn-detail { display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; }
.tn-gallery-main { aspect-ratio: 4/3; background: var(--tn-soft); }
.tn-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.tn-specs { margin: 0; border-top: 1px solid var(--tn-line); }
.tn-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--tn-line); }
.tn-specs dt { color: var(--tn-muted); }
.tn-specs dd { margin: 0; font-weight: 700; text-align: right; }
.tn-form { display: grid; gap: 1rem; }
.tn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tn-field label, .tn-field legend { display: block; color: var(--tn-ink); font-size: .9rem; font-weight: 750; margin-bottom: .35rem; }
.tn-field input, .tn-field select, .tn-field textarea { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid #b8c0cc; border-radius: 0; background: white; color: var(--tn-ink); font: inherit; }
.tn-field textarea { min-height: 150px; resize: vertical; }
.tn-field input:focus, .tn-field select:focus, .tn-field textarea:focus { outline: 3px solid rgba(22,74,154,.18); border-color: var(--tn-blue-2); }
.tn-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; }
.tn-check input { margin-top: .32rem; }
.tn-honeypot { position: absolute !important; left: -9999px !important; }
.tn-alert { padding: 1rem; margin-bottom: 1.25rem; border-left: 4px solid var(--tn-blue); background: var(--tn-soft); }
.tn-alert--success { border-color: var(--tn-success); }
.tn-alert--error { border-color: var(--tn-danger); }
.tn-process { counter-reset: process; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.tn-process__step { position: relative; padding: 1.25rem 1rem; border-top: 4px solid var(--tn-blue); background: white; }
.tn-process__step::before { counter-increment: process; content: "0" counter(process); display: block; color: var(--tn-silver); font-weight: 900; margin-bottom: 1rem; }
.tn-footer { padding: 4rem 0 1.5rem; color: #cbd5e1; background: #07152f; }
.tn-footer h3 { color: white; }
.tn-footer a { color: #e5edf9; }
.tn-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.tn-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; }
.tn-social { display: flex; gap: .75rem; flex-wrap: wrap; }
.tn-legal { max-width: 880px; }
.tn-legal h2 { margin-top: 2.8rem; font-size: 1.65rem; }
.tn-legal h3 { margin-top: 2rem; }
.tn-page-head { padding: 4.5rem 0 3.5rem; color: white; background: var(--tn-blue); }
.tn-page-head h1 { color: white; font-size: clamp(2.2rem, 4vw, 4rem); }
.screen-reader-text { position: absolute; 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) {
  .tn-menu-toggle { display: block; }
  .tn-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 20px 1.5rem; background: white; border-bottom: 1px solid var(--tn-line); }
  .tn-nav.is-open { display: block; }
  .tn-nav ul { display: grid; gap: .35rem; }
  .tn-nav a { display: block; padding: .65rem 0; }
  .tn-hero__inner, .tn-detail { grid-template-columns: 1fr; }
  .tn-hero__logo { max-width: 520px; }
  .tn-grid--3, .tn-vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .tn-process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .tn-wrap { width: min(calc(100% - 28px), var(--tn-width)); }
  .tn-topbar .tn-wrap { justify-content: center; text-align: center; }
  .tn-topbar__contact { display: none; }
  .tn-header__inner { min-height: 72px; }
  .tn-brand img { width: min(230px, 66vw); max-height: 50px; }
  .tn-hero { min-height: auto; }
  .tn-hero__inner { gap: 2.5rem; padding: 4rem 0; }
  .tn-grid--2, .tn-grid--3, .tn-vehicle-grid, .tn-form-grid, .tn-process, .tn-footer__grid { grid-template-columns: 1fr; }
  .tn-trust__grid { grid-template-columns: 1fr; }
  .tn-trust__item { border-right: 0; border-bottom: 1px solid var(--tn-line); }
  .tn-footer__bottom { display: grid; }
  .tn-actions .tn-btn { width: 100%; }
}

