/* === ZÁKLAD === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* globální font */
}

body {
  background: #f8f9fb;
  color: #333;
  line-height: 1.6;
}

/* HLAVIČKA / BANNER */
header { text-align: center; background-color: #0056b3; color: white; position: relative; }
.banner {
  position: relative;
  height: 400px;
  background-image: url("obrazky/banner-auto.jpg");
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px 40px 20px;
}
.banner-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px 20px; border-radius: 10px; text-align: center; color: white;
}
.banner h1 { font-size: 2.5rem; margin-bottom: 10px; }
.banner p { font-size: 1.2rem; margin-bottom: 20px; }
.btn-banner {
  display: inline-block; margin-top: 20px;
  background: #ff9900; color: white; padding: 12px 30px;
  border-radius: 5px; font-weight: bold; text-decoration: none;
  transition: background 0.3s;
}
.btn-banner:hover { background: #e68a00; }

/* NAVIGACE */
nav {
  background: #004080;
}
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0 60px;
  gap: 25px;
  position: relative;
}
nav ul li { margin: 0; }
nav a {
  color: white; text-decoration: none; padding: 15px 0;
  display: block; font-weight: bold; transition: color 0.3s;
}
nav a:hover { color: #ffcc00; }

/* ✅ TEXTOVÝ PŘEPÍNAČ JAZYKA */
#lang-switcher {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 10px;
  font-weight: bold;
}
#lang-switcher button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 1em;
  transition: color 0.25s;
  font-family: inherit; /* dědí Segoe UI */
}
#lang-switcher button:hover {
  color: #ffcc00;
}
#lang-switcher button.active {
  text-decoration: underline;
}

/* SEKCE */
.sekce { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.sekce h2 { margin-bottom: 20px; color: #0056b3; }
.sekce h3 { margin-top: 30px; margin-bottom: 10px; color: #0056b3; }
.sekce p, .sekce ul { margin-top: 10px; margin-bottom: 10px; line-height: 1.5; }

/* INFO BLOKY */
.info-blok {
  background-color: #e6f0ff; border-left: 5px solid #0056b3;
  padding: 15px 20px; margin-bottom: 15px; border-radius: 8px;
}
.info-blok p { margin: 0; font-size: 0.95rem; color: #003366; }

/* SLUŽBY GRID */
.sluzby-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin-top: 20px;
}
.sluzba {
  background: white; padding: 25px 20px; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center;
  transition: all 0.3s ease; color: #0056b3;
}
.sluzba i { color: #0056b3; font-size: 50px; margin-bottom: 15px; transition: all 0.3s; }
.sluzba p { color: #555; font-size: 0.95rem; transition: all 0.3s; }

.sluzba:hover {
  background-color: #0056b3; color: #fff; transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); cursor: pointer;
}
.sluzba:hover i, .sluzba:hover h3, .sluzba:hover p { color: #fff; }
.sluzba:hover i { transform: scale(1.1); }

/* KONTAKT */
.btn-kontakt {
  display: inline-block; margin-top: 10px; background: #0056b3;
  color: white; padding: 10px 25px; border-radius: 5px; font-weight: bold;
  text-decoration: none; transition: background 0.3s;
}
.btn-kontakt:hover { background: #004080; }

.pobocky {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 20px;
}
.pobocka {
  background: white; padding: 20px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* PATIČKA */
footer {
  text-align: center; background: #003366; color: white;
  padding: 15px 0; margin-top: 40px; font-size: 0.9rem;
}

/* ✅ RESPONSIVITA */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
    gap: 15px;
  }

  #lang-switcher {
    position: static;
    margin-top: 10px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .banner h1 { font-size: 2rem; }
  .sluzby-grid { grid-template-columns: 1fr; }
  .pobocky { grid-template-columns: 1fr; }
  .btn-banner, .btn-kontakt { width: 100%; }
}
