/* ==========================================================================
   Hunecke & Rudat – Portal CSS
   Faithful port of autohausv5.html for MODX Revolution 3
   ========================================================================== */

:root {
    --bg-color:     #8395a1;
    --card-bg:      rgba(134, 149, 173, 0.4);
    --accent-color: #00d4ff;
    --text-color:   #ffffff;
    --glass-border: rgb(255, 255, 255);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 213, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.12) 0%, transparent 40%);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
}

.logo { max-width: 0px; height: auto; margin-bottom: 15px; }

h1 {
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* --------------------------------------------------------------------------
   Brand Bar
   -------------------------------------------------------------------------- */
.brand-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.brand-item img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 5px;
    transition: 0.3s;
}

.brand-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    opacity: 0.9;
}

.brand-item:hover img {
    opacity: 1;
    transform: translateY(-3px);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px var(--accent-color));
}

.brand-item:hover span {
    opacity: 1;
    color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   Hero Banner
   -------------------------------------------------------------------------- */
.hero-banner {
    width: 100%;
    max-width: 900px;
    height: 350px;
    margin: 30px auto;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--glass-border);
    background-clip: padding-box;
    background: linear-gradient(rgba(5, 8, 15, 0.2), rgba(5, 8, 15, 0.4)),
            url('/assets/images/hunecke-auto.jpg') center 20%/cover no-repeat;}

.hero-content { text-align: center; z-index: 2; padding: 0 20px; }

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* --------------------------------------------------------------------------
   Grid / Cards
   -------------------------------------------------------------------------- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto 40px auto;
    box-sizing: border-box;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 4px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* background images */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: padding-box;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 213, 255, 0.212);
}

.card svg,
.card i {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 15px;
    fill: var(--accent-color);
    transition: 0.4s;
}

.card span {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.service-icon {
    width: 1.2em;
    height: 1.2em;
    fill: #00d4ff;
    vertical-align: middle;
    margin-right: 8px;
    transition: fill 0.3s ease;
}

#card-vw {
    background-image: linear-gradient(rgba(5, 8, 15, 0.2), rgba(5, 8, 15, 0.60)),
        url('/assets/images/vw-service-haus.jpg');
}
#card-nutz {
    background-image: linear-gradient(rgba(5, 8, 15, 0.2), rgba(5, 8, 15, 0.60)),
        url('/assets/images/vw-bulli-alt.jpg');
}
#card-audi {
    background-image: linear-gradient(rgba(5, 8, 15, 0.2), rgba(5, 8, 15, 0.60)),
        url('/assets/images/audi-service.jpg');
}
#card-bund {
    background-image: linear-gradient(rgba(5, 8, 15, 0.2), rgba(5, 8, 15, 0.60)),
        url('/assets/images/markenlogo.jpg');
}

/* --------------------------------------------------------------------------
   Audaris Widget Section  (NEW – added per customer request)
   -------------------------------------------------------------------------- */
.widget-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.widget-section h2 {
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 20px;
}

.widget-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 4px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    overflow: hidden;
}

/* Audaris widget fills the card */
#audaris-widget { width: 100%; }

/* Contact note below the widget */
.widget-contact-note {
    margin-top: 20px;
    padding: 20px 28px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.widget-contact-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.widget-contact-note a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    margin-top: 60px;
    font-size: 0.85rem;
    opacity: 0.9;
    text-align: center;
    line-height: 2;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Legal Overlay
   -------------------------------------------------------------------------- */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 8, 15, 0.40);
    backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 32px;
    max-width: 700px;
    width: 90%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    color: #cbd5e1;
}

.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent-color);
}

.legal-section h2 { color: var(--accent-color); margin-bottom: 15px; font-size: 1.5rem; }
.legal-section h3 { color: var(--accent-color); margin-bottom: 10px; margin-top: 15px; }
.legal-section h4 { margin-bottom: 8px; margin-top: 12px; }
.legal-section p  { margin-bottom: 12px; line-height: 1.6; font-size: 0.95rem; }
.legal-section a  { color: var(--accent-color); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Focus styles
   -------------------------------------------------------------------------- */
.card:focus,
.brand-item:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

a:focus-visible {
    outline: 3px solid var(--accent-color);
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 650px) {
    .brand-bar         { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
    .hero-banner       { height: 220px; border-radius: 20px; }
    .hero-content h2   { font-size: 1.5rem; }
    .grid-container    { grid-template-columns: 1fr; }
    .widget-card       { padding: 20px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
