/* ================================================================
   Gerhard Chvala – Gasgeräte Wartung
   style.css
   ================================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
    --color-bg:            #f5f0e8;
    --color-tinted:        #ece8df;
    --color-primary:       #1c3d3d;
    --color-primary-mid:   #2d5e5e;
    --color-primary-light: #3d7878;
    --color-accent:        #c07a35;
    --color-accent-light:  #d4955a;
    --color-text:          #1e2a2a;
    --color-text-muted:    #5e6e6e;
    --color-white:         #ffffff;
    --color-card:          #ffffff;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;

    --shadow-sm:  0 2px 8px rgba(0, 0, 0, .07);
    --shadow-md:  0 6px 24px rgba(0, 0, 0, .10);

    --transition: 0.22s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container--narrow { max-width: 820px; }

.section { padding: 5rem 0; }
.section--tinted { background: var(--color-tinted); }
.section--dark {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ── Typography ─────────────────────────────────────────────── */
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}
.section__title--left  { text-align: left; }
.section__title--light { color: var(--color-white); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    padding: 0.85rem 0;
    transition: box-shadow var(--transition);
}
.nav--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, .28);
}
.nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav__brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.nav__links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
}
.nav__links a {
    color: rgba(255, 255, 255, .75);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav__links a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, .1);
}
.nav__cta {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
}
.nav__cta:hover {
    background: var(--color-accent-light) !important;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 680px) {
    .nav__hamburger { display: flex; }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0.15rem;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    }
    .nav__links--open { display: flex; }
    .nav__links a { display: block; padding: 0.65rem 0.8rem; font-size: 1rem; }
    .nav__links li:last-child { margin-top: 0.5rem; }

    .nav__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    background: var(--color-primary);
    background-image:
        radial-gradient(ellipse at 75% 40%, rgba(61, 120, 120, .55) 0%, transparent 55%),
        radial-gradient(ellipse at 5%  85%, rgba(192, 122, 53, .18) 0%, transparent 45%);
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}
.hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    align-items: center;
}
.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}
.hero__name {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero__tagline {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, .8);
    max-width: 500px;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}
.hero__brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}
.brand-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 22px rgba(192, 122, 53, .40);
}
.btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 122, 53, .45);
}

/* Photo placeholder (hero) */
.hero__photo {
    width: 220px;
    height: 240px;
    background: rgba(255, 255, 255, .05);
    border: 2px dashed rgba(255, 255, 255, .2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, .35);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__photo  { display: none; }
}

/* ── Services ───────────────────────────────────────────────── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .services__grid { grid-template-columns: 1fr; gap: 1rem; }
}

.service-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-accent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(28, 61, 61, .07);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.7rem;
}
.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Prices ─────────────────────────────────────────────────── */
.price-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card);
    font-size: 0.95rem;
}
.price-table thead {
    background: var(--color-primary);
    color: var(--color-white);
}
.price-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.price-table thead th.price-col { text-align: right; }

.price-table tbody tr {
    border-bottom: 1px solid #ede9e1;
    transition: background var(--transition);
}
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover      { background: #faf7f1; }

.price-table tbody td {
    padding: 1.1rem 1.25rem;
    vertical-align: top;
}
.price-name {
    font-weight: 600;
    color: var(--color-primary);
}
.price-desc {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}
.price-amount {
    font-weight: 700;
    color: var(--color-accent);
    text-align: right;
    white-space: nowrap;
}

/* Description shown only on mobile (below name) */
.price-desc-mobile {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}
@media (max-width: 560px) {
    .hide-mobile       { display: none; }
    .price-desc-mobile { display: block; }
}

.price-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* ── About ──────────────────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.about__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 340px;
    background: var(--color-tinted);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(28, 61, 61, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about__photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about__lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.about__text p {
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
    line-height: 1.75;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--color-primary); }

/* ── Contact ────────────────────────────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 540px) {
    .contact__grid { grid-template-columns: 1fr; }
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    transition: background var(--transition), transform var(--transition);
}
.contact-item:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}
.contact-item__icon {
    width: 52px;
    height: 52px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}
.contact-item__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 0.25rem;
}
.contact-item__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    background: #111e1e;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .38);
}
.footer a {
    color: rgba(255, 255, 255, .45);
    transition: color var(--transition);
}
.footer a:hover { color: rgba(255, 255, 255, .8); }

/* ── Impressum ──────────────────────────────────────────────── */
.impressum {
    background: #0e1818;
    padding: 3rem 0 3.5rem;
    color: rgba(255, 255, 255, .55);
    font-size: 0.9rem;
    line-height: 1.85;
}
.impressum h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 1rem;
}
.impressum strong { color: rgba(255, 255, 255, .75); }
.impressum a {
    color: rgba(255, 255, 255, .55);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.impressum a:hover { color: rgba(255, 255, 255, .85); }
