/*
Theme Name: Spar Car
Theme URI: http://sparcar.de
Author: Spar Car
Author URI: http://sparcar.de
Description: Regionaler Fahrdienst Bad Camberg und Umgebung.
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparcar
Tags: one-page, responsive, custom-colors, custom-logo
*/

/* =========================================
   RESET & VARIABLEN
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --rot:         #CC2222;
    --rot-dunkel:  #A81B1B;
    --gelb:        #F5C200;
    --gelb-dunkel: #D4A600;
    --dunkel:      #1a1a1a;
    --grau-text:   #555;
    --grau-hell:   #f7f7f7;
    --grau-rand:   #e2e2e2;
    --weiss:       #ffffff;
    --font:        'Open Sans', Arial, sans-serif;
    --schatten:    0 2px 10px rgba(0,0,0,0.10);
    --schatten-md: 0 5px 24px rgba(0,0,0,0.15);
    --radius:      6px;
    --container:   1100px;
}

html { scroll-behavior: smooth; font-size: 15px; }

body {
    font-family: var(--font);
    color: var(--grau-text);
    background: var(--weiss);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 0.9em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--dunkel); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--dunkel); }
h3 { font-size: 1.05rem; color: var(--dunkel); }
h4 { font-size: 0.95rem; color: var(--dunkel); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =========================================
   HEADER  →  CLEAN / MODERN
   ========================================= */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 #e8e8e8, 0 4px 24px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    gap: 24px;
}

/* --- Logo --- */
.site-logo--img { display: flex; align-items: center; flex-shrink: 0; }
.custom-logo-img { height: 52px; width: auto; display: block; }

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon { width: 48px; height: 48px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }

.logo-text .name {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
}
.logo-text .name .yellow { color: var(--gelb-dunkel); }
.logo-text .name .red    { color: var(--rot); }
.logo-text .tagline {
    display: block;
    font-size: 0.58rem;
    color: #aaa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- Nav --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    text-decoration: none;
}

.main-nav a:hover {
    background: #f5f5f5;
    color: var(--rot);
}

/* --- CTA Button im Header --- */
.header-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta a.header-tel {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dunkel);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.header-cta a.header-tel:hover { color: var(--rot); }
.header-cta a.header-tel .tel-icon {
    width: 32px;
    height: 32px;
    background: var(--gelb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.header-cta a.btn-header {
    background: var(--rot);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}
.header-cta a.btn-header:hover {
    background: var(--rot-dunkel);
    transform: translateY(-1px);
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}

/* =========================================
   HERO
   ========================================= */
#hero {
    position: relative;
    height: 440px;
    overflow: visible;
    margin-top: 80px;
    background: var(--dunkel);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1600&q=80');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}

/* =========================================
   KONTAKTLEISTE  →  GELB + ROTER RAND
   ========================================= */
#contact-bar {
    background: var(--weiss);
    position: relative;
    z-index: 10;
}

.contact-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -2rem;
}

.contact-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.3rem 1rem;
    color: var(--dunkel);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--gelb);
    border: 3px solid var(--rot);
    transition: background 0.2s;
    text-align: center;
}
.contact-bar-item:hover { background: var(--gelb-dunkel); }

.contact-bar-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--rot);
}

/* =========================================
   ÜBER UNS  →  WEISS, SAUBER
   ========================================= */
#ueber-uns {
    background: var(--weiss);
    padding: 56px 0 50px;
}

.ueber-header { margin-bottom: 1.75rem; }

.ueber-header h1 { color: var(--dunkel); margin-bottom: 0.2rem; }

.ueber-header .subtitle {
    font-size: 0.95rem;
    color: var(--grau-text);
    font-style: italic;
}

.ueber-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.ueber-text > p {
    font-size: 0.92rem;
    color: var(--grau-text);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.ueber-text .tagline-bottom {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dunkel);
    margin-bottom: 1.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--rot);
}

.vorteile-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dunkel);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vorteile-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 1.75rem;
}

.vorteil-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--grau-text);
    line-height: 1.5;
}

.vorteil-check {
    color: var(--rot);
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Premium Box  →  DUNKEL mit gelbem Akzent */
.premium-box {
    background: var(--dunkel);
    border-left: 4px solid var(--gelb);
    border-radius: var(--radius);
    padding: 1.4rem;
    position: relative;
}

.premium-box h3 {
    font-size: 0.95rem;
    color: var(--weiss);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.premium-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.25rem;
}

.premium-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.premium-item .check { color: var(--gelb); font-weight: 900; flex-shrink: 0; }

.premium-badge {
    position: absolute;
    top: -0.85rem;
    right: 1rem;
    background: var(--rot);
    color: var(--weiss);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.28rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ueber-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten-md);
}
.ueber-img img {
    width: 100%;
    height: 255px;
    object-fit: cover;
}

/* =========================================
   LEISTUNGEN  →  GELB (wie Bensheim)
   ========================================= */
#leistungen {
    background: var(--gelb);
    padding: 56px 0;
}

#leistungen .section-heading {
    text-align: center;
    margin-bottom: 2.25rem;
}

#leistungen .section-heading h2 {
    color: var(--dunkel);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.leistung-card {
    background: var(--weiss);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten);
    transition: transform 0.25s, box-shadow 0.25s;
}

.leistung-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--schatten-md);
}

.leistung-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--grau-rand);
}
.leistung-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.leistung-card:hover .leistung-card-img img { transform: scale(1.05); }

.leistung-card-body { padding: 0.9rem 1.1rem 1.1rem; }

.leistung-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rot);
    margin-bottom: 0.3rem;
}

.leistung-card-body p {
    font-size: 0.81rem;
    color: var(--grau-text);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   PREISE  →  DUNKEL + WEISSE BOX
   ========================================= */
#preise { position: relative; background: var(--dunkel); }

.preise-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1550355291-bbee04a92027?w=1600&q=80');
    background-size: cover;
    background-position: center 60%;
    opacity: 0.15;
}

.preise-content { position: relative; z-index: 2; padding: 56px 0; }

.preise-box {
    background: var(--weiss);
    border-radius: var(--radius);
    border-top: 5px solid var(--rot);
    padding: 2rem 2.25rem;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: var(--schatten-md);
}

.preise-box h2 { color: var(--dunkel); margin-bottom: 0.25rem; }

.preise-box .preise-sub {
    font-size: 0.86rem;
    color: var(--grau-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--gelb);
}

.preise-section-title {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--rot);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.25rem 0 0.65rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--grau-rand);
}

.preise-table { width: 100%; border-collapse: collapse; }
.preise-table tr { border-bottom: 1px dashed var(--grau-rand); }
.preise-table tr:last-child { border-bottom: none; }
.preise-table td { padding: 0.4rem 0; font-size: 0.87rem; color: var(--grau-text); }
.preise-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--dunkel);
    white-space: nowrap;
}

.preise-note {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    background: var(--grau-hell);
    border-left: 3px solid var(--rot);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.84rem;
    color: var(--grau-text);
    line-height: 1.65;
}
.preise-note strong { display: block; color: var(--dunkel); margin-bottom: 0.2rem; font-weight: 700; }

/* =========================================
   KONTAKT  →  HELL-GRAU, SAUBER
   ========================================= */
#kontakt { background: var(--grau-hell); padding: 56px 0; }

.kontakt-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.kontakt-left h2 { color: var(--dunkel); margin-bottom: 1rem; }

.kontakt-left p {
    font-size: 0.91rem;
    color: var(--grau-text);
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.kontakt-info-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }

.kontakt-info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.87rem;
    color: var(--grau-text);
    padding: 0.5rem 0.75rem;
    background: var(--weiss);
    border-radius: var(--radius);
    border-left: 3px solid var(--rot);
}

.kontakt-info-item strong {
    color: var(--dunkel);
    min-width: 72px;
    font-weight: 700;
    flex-shrink: 0;
}
.kontakt-info-item a:hover { color: var(--rot); }

/* Formular */
.kontakt-form {
    background: var(--weiss);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten);
    border-top: 4px solid var(--rot);
}

.kontakt-form-header {
    background: var(--grau-hell);
    color: var(--dunkel);
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid var(--grau-rand);
}

.kontakt-form-body { padding: 1.4rem; }

.form-group { margin-bottom: 0.8rem; }

.form-group label {
    display: block;
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--dunkel);
    margin-bottom: 0.28rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.58rem 0.8rem;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--dunkel);
    background: var(--weiss);
    border: 1px solid var(--grau-rand);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rot); }

.form-group textarea { height: 110px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: var(--grau-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.form-checkbox input[type="checkbox"] { width: auto; margin-top: 0.15rem; flex-shrink: 0; }

.btn-send {
    width: 100%;
    background: var(--rot);
    color: var(--weiss);
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.03em;
}
.btn-send:hover { background: var(--rot-dunkel); }

/* =========================================
   FOOTER  →  DUNKEL, GELBE AKZENTE
   ========================================= */
#site-footer {
    background: var(--dunkel);
    color: rgba(255,255,255,0.55);
    border-top: 4px solid var(--rot);
    padding-top: 44px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--weiss);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--gelb);
    display: inline-block;
}

.footer-col p {
    font-size: 0.83rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
}

.footer-col a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--weiss); }

.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }

.footer-links a {
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-links a::before {
    content: '›';
    color: var(--gelb);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 0.79rem;
    color: rgba(255,255,255,0.28);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,0.28); font-size: 0.79rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--weiss); }

/* =========================================
   SCROLL-TO-TOP
   ========================================= */
#scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--rot);
    color: var(--weiss);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 900;
    box-shadow: var(--schatten);
    font-size: 1.2rem;
    font-weight: 900;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--rot-dunkel); }

/* =========================================
   FADE ANIMATION
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE – 900px
   ========================================= */
@media (max-width: 900px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 80px; left: 0; right: 0; bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        height: auto;
        padding: 14px 16px;
        border-radius: 8px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
        font-size: 1rem;
    }
    .main-nav a:last-child { border-bottom: none; }
    .main-nav a:hover { background: #f5f5f5; color: var(--rot); }
    .hamburger { display: flex; }
    .header-cta a.btn-header { display: none; }
    .header-cta a.header-tel span:not(.tel-icon) { display: none; }

    .ueber-inner { grid-template-columns: 1fr; }
    .ueber-img { order: -1; }
    .ueber-img img { height: 210px; }

    .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-inner { grid-template-columns: 1fr; }

    .contact-bar-inner { grid-template-columns: 1fr; }
    .contact-bar-item { border-bottom: 3px solid var(--rot); }
    .contact-bar-item:last-child { border-bottom: none; }
    .preise-box { padding: 1.5rem; }
}

/* =========================================
   RESPONSIVE – 640px
   ========================================= */
@media (max-width: 640px) {
    #hero { height: 280px; }
    .leistungen-grid { grid-template-columns: 1fr; }
    .vorteile-cols { grid-template-columns: 1fr; }
    .premium-cols { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .contact-bar-inner { margin-top: -1.2rem; }
}
