/* ============================================================
   MITKOV BAU – Modernes Website-Design
   Farbschema basierend auf dem Firmenlogo:
   - Dunkles Blau (Vertrauen, Professionalität)
   - Orange (Energie, Handwerk, Akzente)
   ============================================================ */

:root {
  --navy: #1b3550;
  --navy-dark: #12263b;
  --navy-light: #274a6d;
  --accent: #e8893a;
  --accent-dark: #c96f24;
  --accent-light: #f5a55c;
  --light: #f5f7fa;
  --light-2: #eef2f6;
  --white: #ffffff;
  --text: #2b3a47;
  --muted: #64748b;
  --border: #dbe3eb;
  --success: #2e7d32;
  --error: #c62828;
  --shadow: 0 8px 30px rgba(18, 38, 59, 0.10);
  --shadow-sm: 0 3px 12px rgba(18, 38, 59, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.accent-bar {
  width: 70px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-nav a {
  display: block;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.98rem;
}

.main-nav a:hover {
  background: var(--light);
  color: var(--accent-dark);
}

.main-nav a.active {
  color: #fff;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(18, 38, 59, 0.92) 0%, rgba(18, 38, 59, 0.55) 60%, rgba(18, 38, 59, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 80px 0;
}

.hero h1 {
  color: #fff;
  font-size: 2.9rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: #dbe4ed;
  margin-bottom: 30px;
}

.hero .btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: #fff;
  border-color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ---------- Leistungen (Service Cards) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Vorteile / Merkmale ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- CTA Banner ---------- */
.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}

.cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta p {
  color: #c9d6e2;
  max-width: 620px;
  margin: 0 auto 28px;
}

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  background: rgba(18, 38, 59, 0.55);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 18, 27, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #cfdae4;
  margin-top: 16px;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-header {
  background: var(--navy);
  color: #dfe8f0;
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 12px;
}

.page-header p {
  color: #c9d6e2;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-title.left,
.accent-bar.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-title.left {
  margin-bottom: 14px;
}

.accent-bar.left {
  margin-bottom: 24px;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin-bottom: 16px;
}

.team-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.team-role {
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.team-highlight {
  background: var(--light);
  border-radius: var(--radius);
  padding: 26px;
}

.team-highlight ul {
  list-style: none;
  margin: 0;
}

.team-highlight li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--navy);
}

.team-highlight li:last-child {
  border-bottom: none;
}

.checklist {
  list-style: none;
  margin: 20px 0;
}

.checklist li {
  padding: 8px 0 8px 34px;
  position: relative;
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Kontakt ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}

.contact-info {
  background: var(--navy);
  color: #dfe8f0;
  border-radius: var(--radius);
  padding: 36px 30px;
}

.contact-info h3 {
  color: #fff;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-info-item strong {
  color: #fff;
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-info-item p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

.contact-info a:hover {
  color: var(--accent-light);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 137, 58, 0.18);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.form-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-check.field-error {
  color: var(--error);
}

.form-check.field-error a {
  color: var(--error);
  text-decoration: underline;
}

/* Formular-Meldungen */
.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #a5d6a7;
}

.form-message.error {
  display: block;
  background: #fdecea;
  color: var(--error);
  border: 1px solid #ef9a9a;
}

.field-error {
  border-color: var(--error) !important;
}

/* Honeypot (Spamschutz) – unsichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Rechtliches (Impressum / Datenschutz) ---------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 34px 0 12px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
}

.legal-content p,
.legal-content li {
  color: var(--text);
  font-size: 0.97rem;
}

.legal-content ul {
  margin: 0 0 16px 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b7c6d4;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand img {
  height: 46px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #8fa3b5;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #b7c6d4;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.88rem;
  color: #7d93a6;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 56px 0; }
  .hero { min-height: 440px; }
  .hero h1 { font-size: 2.1rem; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 78px;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: calc(100vh - 78px);
    background: var(--navy-dark);
    transition: right 0.35s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 4px;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    color: #dfe8f0;
  }

  .services-grid,
  .gallery-grid,
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
