/* =====================================================
   hb-klima.de – HB Klima GmbH
   Design: Maritim-frisch – Hellblau + Weiß + Dunkelblau
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:       #0a4fa0;
  --blue-mid:   #1565c0;
  --sky:        #e3f2fd;
  --sky-mid:    #bbdefb;
  --accent:     #00b0ff;
  --text:       #1a2a3a;
  --muted:      #5a7080;
  --border:     #d0e4f0;
  --bg:         #f4f9fd;
  --white:      #ffffff;
  --radius:     0.65rem;
  --radius-lg:  1.2rem;
  --shadow-sm:  0 1px 4px rgba(10,79,160,0.08);
  --shadow:     0 4px 20px rgba(10,79,160,0.12);
  --shadow-lg:  0 12px 48px rgba(10,79,160,0.18);
  --transition: 0.22s ease;
  --max-w:      1100px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 0; }

/* HEADER */
header { background: var(--white); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--blue), var(--accent)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.logo-text .name { font-size: 1.2rem; font-weight: 900; color: var(--blue); letter-spacing: -0.02em; }
.logo-text .sub { font-size: 0.68rem; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 0.1rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.88rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: var(--radius); transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--sky); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--blue-mid) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--blue) 0%, #1976d2 60%, #0288d1 100%); color: var(--white); padding: 7rem 0 6rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--bg); clip-path: ellipse(55% 100% at 50% 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 2rem; padding: 0.35rem 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 480px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 2rem; }
.hero-card-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.hero-feature { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hero-feature:last-child { border-bottom: none; }
.hero-feature .check { color: var(--accent); font-weight: 900; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.9rem; border-radius: var(--radius); font-weight: 700; font-size: 0.92rem; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: #0091ea; border-color: #0091ea; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,176,255,0.4); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: var(--accent); color: var(--accent); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: var(--shadow); }

/* SECTION */
.section-label { display: inline-block; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; color: var(--blue); }
.section-sub { color: var(--muted); max-width: 560px; font-size: 1rem; line-height: 1.8; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card-icon { width: 52px; height: 52px; background: var(--sky); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }

/* STATS */
.stats-bar { background: var(--blue); color: var(--white); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.35rem; }

/* REFERENZEN */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.ref-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.ref-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 0.75rem; }
.ref-quote { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; font-style: italic; }
.ref-author strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--blue); }
.ref-author span { font-size: 0.8rem; color: var(--muted); }

/* JOB LIST */
.job-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.job-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: all var(--transition); }
.job-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.job-card h3 { font-size: 1rem; font-weight: 800; color: var(--blue); margin-bottom: 0.35rem; }
.job-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.job-tag { background: var(--sky); color: var(--blue); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 2rem; }

/* CONTACT */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; margin-top: 3rem; }
.contact-info h3 { font-size: 1.2rem; font-weight: 800; color: var(--blue); margin-bottom: 1rem; }
.contact-info p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.92rem; }
.contact-detail-icon { width: 38px; height: 38px; flex-shrink: 0; background: var(--sky); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.contact-detail strong { display: block; font-weight: 700; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-form-box { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--blue); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg); transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.form-check input { width: auto; margin-top: 3px; }
.form-check a { color: var(--accent); text-decoration: underline; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--blue) 0%, #1976d2 100%); color: var(--white); padding: 4rem 0 3.5rem; }
.page-hero-inner { max-width: 720px; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.2); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.02rem; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--blue) 0%, #0288d1 100%); color: var(--white); text-align: center; padding: 5.5rem 0; }
.cta-section h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.02em; }
.cta-section p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 2rem; }

/* PROSE */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 2.5rem 0 0.75rem; color: var(--blue); }
.prose p, .prose ul, .prose ol { color: var(--muted); font-size: 0.97rem; line-height: 1.85; margin-bottom: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.3rem; }
.prose a { color: var(--accent); text-decoration: underline; }

/* FOOTER */
footer { background: var(--blue); color: rgba(255,255,255,0.5); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.87rem; line-height: 1.8; max-width: 280px; margin-top: 0.75rem; }
.footer-col h4 { color: var(--accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a { color: rgba(255,255,255,0.45); font-size: 0.87rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; font-size: 0.78rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* 404 */
.error-page { min-height: 68vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-top: 3px solid var(--accent); padding: 0.75rem 1.5rem 1.25rem; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 0.7rem 0; border-radius: 0; }
  .nav-toggle { display: flex; }
  header { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .job-card { flex-direction: column; align-items: flex-start; }
}
