/* TÜV Rheinland Homepage Recreation
   Primary: #0071B9 | Text: #333 | BG: #fff
   Font: Roboto / Univers-like
*/

:root {
  --tuv-blue: #0071B9;
  --tuv-blue-dark: #005a94;
  --tuv-gray: #333333;
  --tuv-light: #f5f5f5;
  --tuv-border: #e0e0e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--tuv-gray);
  background: #fff;
  line-height: 1.5;
}
a { color: var(--tuv-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  /* Adjust logo size here – change height to resize the full logo (keeps aspect ratio) */
  height: 60px;           /* ← change this value to adjust logo size */
  width: auto;
  display: block;
}
.logo:hover { text-decoration: none; }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.lang-switcher a {
  color: #333;
  text-decoration: none;
  padding: 2px 4px;
}
.lang-switcher a.active {
  color: var(--tuv-blue);
  font-weight: 700;
}
.lang-switcher a:hover {
  color: var(--tuv-blue);
  text-decoration: none;
}
.search-box input {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 180px;
  font-size: 14px;
}
.main-nav {
  background: #fff;
  border-top: 1px solid #eee;
}
.main-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav li { margin: 0 5px; }
.main-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #333;
}
.main-nav a:hover {
  color: var(--tuv-blue);
  text-decoration: none;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #eee;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content {
  background: rgba(0,0,0,0.45);
  padding: 40px;
  max-width: 550px;
  margin-left: 8%;
  border-radius: 4px;
}
.slide h2 { font-size: 32px; margin-bottom: 12px; line-height: 1.2; }
.slide p { font-size: 18px; margin-bottom: 20px; }
.btn {
  display: inline-block;
  background: var(--tuv-blue);
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn:hover { background: var(--tuv-blue-dark); text-decoration: none; }
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slider-nav span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.slider-nav span.active { background: #fff; }

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.quick-card {
  border: 1px solid var(--tuv-border);
  padding: 24px;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}
.quick-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.quick-card h3 { color: var(--tuv-blue); margin-bottom: 10px; font-size: 20px; }
.quick-card p { margin-bottom: 15px; }

/* Featured Services */
.section { margin: 50px 0; }
.section h2 { font-size: 28px; margin-bottom: 20px; color: var(--tuv-blue); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid var(--tuv-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card img { width: 100%; height: 160px; object-fit: cover; background: #ddd; }
.service-card h4 { padding: 12px 14px; font-size: 16px; }

/* Hot Topics */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.topic-card {
  background: var(--tuv-light);
  padding: 20px;
  border-radius: 6px;
}
.topic-card .tag { color: var(--tuv-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.topic-card h3 { margin: 8px 0; font-size: 18px; }
.topic-card p { font-size: 14px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.about-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--tuv-border);
  border-radius: 6px;
}
.about-card h3 { margin-bottom: 10px; color: var(--tuv-blue); }

/* Footer */
.site-footer {
  background: var(--tuv-blue);
  color: #fff;
  margin-top: 80px;
  position: relative;
  font-size: 14px;
  padding-top: 0;
}
.footer-wave {
  position: absolute;
  top: -69px;
  left: 0;
  width: 100%;
  height: 70px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-content {
  padding: 50px 0 20px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e8f4fc; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: #e8f4fc;
}
.footer-bottom a { color: #e8f4fc; }

/* Responsive */
@media (max-width: 768px) {
  .main-nav ul { flex-direction: column; align-items: center; }
  .hero-slider { height: 320px; }
  .slide h2 { font-size: 24px; }
  .header-top { flex-direction: column; gap: 10px; }
}
