/* main.css - Konsolidierte CSS für Hoppen Gebäudedienste UG */

/* Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary {
  background-color: #005baa;
  color: #fff;
}

.btn-primary:hover {
  background-color: #004a8f;
}

.btn-secondary {
  background-color: #333;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #222;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo img {
  height: 50px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #333;
  font-weight: 500;
  padding: 8px;
}

.main-nav a.active,
.main-nav a:hover {
  color: #005baa;
}

/* Dropdown im Hauptmenü */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown>.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: none;
  min-width: 200px;
  z-index: 100;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav .dropdown:hover>.dropdown-menu,
.main-nav .dropdown:focus-within>.dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
}

.main-nav .dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/* Hero (Start & Service Pages) */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 0 0 1rem 1rem;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 0.5rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Services */


.btn-primary {
  background-color: #005bbb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  display: inline-block;
  margin-top: 1rem;
}

.block {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.block h2 {
  color: #003366;
  border-bottom: 2px solid #005bbb;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.block p {
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .block {
    margin: 1rem 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    /* Optional heller, falls Bild darunter liegt */
  }

  .block h2 {
    font-size: 1.25rem;
  }

  .block p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Kontaktseite: Reihen-Layout für nebeneinander-Felder */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row .form-group {
  flex: 1 1 0;
  min-width: 150px;
}

/* Auf Mobilgeräten: untereinander */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/* Contact Page Styles */
.contact-form {
  padding: 60px 20px;
}

.contact-form h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #005baa;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.hidden {
  display: none;
}

.btn-submit {
  background-color: #005baa;
  color: #fff;
  padding: 24px 48px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #004a8f;
}

/* Einfache Tab-Styles */
.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.tab.active {
  border-bottom: 4px solid #007BFF;
  font-weight: bold;
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

/* CTA */
.page-cta {
  background-color: #eaf3fc;
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: 4rem;
  border-radius: 1rem 1rem 0 0;
}

.page-cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.page-cta p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  background-color: #003366;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #002244;
}


/* About-Page Sektionen */


.team-member {
  text-align: center;
}

.about-hero {
  height: 50vh;
  background: url('/img/Background.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.about-hero h1 {
  font-size: 3em;
}

.mission,
.team,
.values,
.history {
  padding: 60px 20px;
}

.mission h2,
.team h2,
.values h2,
.history h2 {
  font-size: 1.75em;
  color: #005baa;
  border-bottom: 2px solid #005baa;
  padding-bottom: 8px;
  margin: 40px 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mission p,
.team p,
.values p,
.history p {
  max-width: 800px;
  margin: 0 auto 20px;
  color: #333;
  line-height: 1.6;
}

.team-grid {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-content: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.value-card {
  flex: 1 1 240px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.history-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
}

.history-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  background: #005baa;
  border-radius: 50%;
}

/* Impressum */
.impressum {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  line-height: 1.6;
}

.impressum h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #005baa;
}

.impressum h2 {
  font-size: 1.5em;
  color: #005baa;
  border-bottom: 2px solid #005baa;
  padding-bottom: 4px;
  margin: 40px 0 10px;
}

/* Thank You Page */
.thank-you .thank-box {
  text-align: center;
  padding: 80px 20px 200px;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: #2b2b2b;
  color: white;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-column h3,
.footer-column h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons img {
  width: 28px;
  height: 28px;
}

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .social-icons {
    justify-content: center;
  }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-content>div+div {
    margin-left: 0;
  }

  .cta .container {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}


/* Container für Blog Artikel */

.blog {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

.blog h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #005baa;
}

.blog h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #0057b8;
}

.blog ul,
.blog ol {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.blog li {
  margin-bottom: 0.5rem;
}

.blog p {
  margin-bottom: 1.2rem;
}

.blog a {
  color: #0057b8;
  text-decoration: underline;
}

.blog a:hover {
  color: #003366;
  text-decoration: none;
}

/* Standard: Navigation sichtbar */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Hamburger-Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
}

/* Dropdown Standard */
.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  list-style: none;
  padding: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown.open .dropdown-menu {
  display: block;
}


/* Social media */

.footer-column.social-media {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
}



.footer-column.social-media h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.6rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column.social-media {
    align-items: flex-start;
    text-align: left;
  }

  .social-icons {
    justify-content: flex-start;
  }
}


/* Fixierter Header mit Logo und Menübutton */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
}

.logo-fixed {
  height: 50px;
  object-fit: contain;
}

.menu-toggle {
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.menu-line {
  height: 4px;
  background-color: #0057b8;
}

/* Dropdown-Menü */
.mobile-menu {
  display: none;
  background-color: #000;
  color: white;
  width: 100%;
  padding: 2rem 1rem;
}

.mobile-menu.show {
  display: block;
}

.menu-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.menu-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-columns li {
  margin: 1rem 0;
  text-align: left;
}

.menu-columns a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.menu-columns a:hover {
  text-decoration: underline;
}


/* Abstand für fixierten Header */
body {
  padding-top: var(--body-top, 90px);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Optional: Hover-Effekt */
.mobile-menu a:hover {
  text-decoration: underline;
}

/* --- Newsletter Teaser --- */
.news-teaser {
  padding: 3rem 0 0;
}

.news-teaser .news-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.news-teaser h2 {
  text-align: center;
  margin-bottom: .5rem;
}

.news-card {
  background: #f9f9f9;
  border-radius: 12px;
  border-left: 4px solid #0057b8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
}

.news-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .25rem 0;
  color: #003366;
}

.news-date {
  font-size: .85rem;
  color: #777;
  margin-bottom: .5rem;
}

.news-excerpt {
  color: #333;
  line-height: 1.45;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-actions {
  margin-top: auto;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.news-link {
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  padding: .55rem .9rem;
  border-radius: .55rem;
  font-weight: 600;
  font-size: .95rem;
}

.news-link:hover {
  background: #004a99;
}

.news-cta-all {
  text-align: center;
  margin-top: .75rem;
}

.news-cta-all a {
  color: #0057b8;
  font-weight: 700;
}

/* schlanke Skelettkarten beim Laden */
.news-skeleton {
  background: linear-gradient(90deg, #f2f2f2 25%, #e8e8e8 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  height: 140px;
  border-radius: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.section-divider {
  border: none;
  height: 4px;
  background-color: #0057b8;
  /* Dein Hoppen-Blau */
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto 2rem;
  border-radius: 2px;
}