/*
Theme Name: Baltic Bautrocknung Clean
Theme URI: https://baltic-bautrocknungsservice.de
Author: Baltic-Bautrocknungsservice Voss GmbH
Description: Theme mit Full-Width-Logo, responsivem Menü, Leistungen, Kontaktformular und Google Maps.
Version: 2.5.0
Text Domain: baltic-clean
*/

:root {
  --primary-blue: #0088cc;
  --primary-dark: #003865;
  --accent-blue: #00a8e8;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-card-gray: #f1f5f9;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --footer-bg: #002244;
  --footer-border: #0b345d;
  --footer-text: #94a3b8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 15px rgba(0, 56, 101, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

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

/* Header und Full-Width-Logo */

.bb-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.bb-logo-banner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 18px;
}

.custom-logo-link {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.custom-logo {
  display: block;
  width: 100%;
  max-width: 1160px;
  max-height: 240px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.bb-site-title {
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

/* Navigation */

.bb-nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bb-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 20px;
}

.bb-main-nav {
  display: flex;
  align-items: center;
}

.bb-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.bb-menu li {
  list-style: none;
}

.bb-menu a {
  display: inline-block;
  color: var(--text-dark);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bb-menu a:hover,
.bb-menu .current-menu-item a {
  color: var(--primary-blue);
}

.bb-btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--primary-blue);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bb-btn-header:hover {
  background: #0072aa;
}

/* Hamburger-Menü */

.bb-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.bb-hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.bb-menu-toggle.open .bb-hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.bb-menu-toggle.open .bb-hamburger-line:nth-child(2) {
  opacity: 0;
}

.bb-menu-toggle.open .bb-hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Hero */

.bb-hero {
  padding: 65px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e2eefb 100%);
  border-bottom: 1px solid var(--border-color);
}

.bb-hero-content {
  max-width: 860px;
}

.bb-hero-badge {
  display: inline-block;
  margin-bottom: 15px;
  padding: 4px 12px;
  background: #e0f2fe;
  border-radius: 20px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bb-hero h1 {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1.25;
}

.bb-hero p {
  margin-bottom: 24px;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

.bb-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}

.bb-btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.bb-btn-primary:hover {
  background: #0072aa;
}

.bb-btn-secondary {
  background: var(--white);
  border-color: var(--border-color);
  color: var(--primary-dark);
}

/* Bereiche und Leistungen */

.bb-section {
  padding: 60px 0;
  scroll-margin-top: 90px;
}

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

.bb-sec-title {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 28px;
  text-align: center;
}

.bb-sec-desc {
  max-width: 700px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
}

.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
}

.bb-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 56, 101, 0.12);
}

.bb-card-body {
  flex-grow: 1;
  padding: 24px;
}

.bb-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 19px;
}

.bb-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Notfall-Banner */

.bb-emergency-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--primary-dark);
  border-radius: var(--radius);
  color: var(--white);
}

.bb-emergency-banner h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 22px;
}

.bb-emergency-banner p {
  color: #cbd5e1;
}

.bb-btn-alert {
  padding: 13px 26px;
  background: #0284c7;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* FAQ */

.bb-faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.bb-faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.bb-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: var(--primary-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  text-align: left;
}

.bb-faq-icon {
  color: var(--primary-blue);
  font-size: 22px;
  transition: transform 0.25s ease;
}

.bb-faq-item.active .bb-faq-icon {
  transform: rotate(45deg);
}

.bb-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.bb-faq-answer-inner {
  padding: 14px 22px 20px;
  border-top: 1px solid #f1f5f9;
  color: var(--text-muted);
}

/* Kontaktformular, Kontaktdaten und Karte */

.bb-contact-section-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.bb-form-box {
  padding: 32px;
  background: var(--bg-card-gray);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.bb-form-box-title {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 21px;
}

.bb-form-box-subtitle {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.bb-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bb-form-group {
  display: flex;
  flex-direction: column;
}

.bb-form-group label {
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 600;
}

.bb-form-group input,
.bb-form-group textarea,
.bb-form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 14.5px;
}

.bb-form-group input:focus,
.bb-form-group textarea:focus,
.bb-form-group select:focus {
  outline: 3px solid rgba(0, 136, 204, 0.12);
  border-color: var(--primary-blue);
}

.bb-form-submit-btn {
  width: 100%;
  margin-top: 4px;
  padding: 13px 20px;
  background: var(--primary-blue);
  border: 0;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.bb-form-submit-btn:hover {
  background: #0072aa;
}

.bb-alert-success {
  padding: 12px 16px;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.bb-contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bb-info-card,
.bb-map-box {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.bb-info-card {
  padding: 26px;
}

.bb-info-card h3 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 19px;
}

.bb-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  font-size: 14.5px;
}

.bb-info-list a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.bb-info-list a:hover {
  text-decoration: underline;
}

.bb-map-header {
  padding: 10px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.bb-map-box iframe {
  display: block;
  width: 100%;
  min-height: 270px;
  border: 0;
}

/* Footer */

.bb-footer {
  padding: 50px 0 25px;
  background: var(--footer-bg);
  border-top: 3px solid var(--primary-blue);
  color: var(--footer-text);
  font-size: 14.5px;
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 30px;
}

.bb-footer-brand h4,
.bb-footer-col h5 {
  color: var(--white);
  font-weight: 700;
}

.bb-footer-brand h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.bb-footer-brand p {
  color: #cbd5e1;
}

.bb-footer-col h5 {
  margin-bottom: 14px;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bb-footer-list {
  list-style: none;
}

.bb-footer-list li {
  margin-bottom: 9px;
  color: #e2e8f0;
}

.bb-footer-list a,
.bb-footer-bottom a {
  color: #e2e8f0;
  text-decoration: none;
}

.bb-footer-list a:hover,
.bb-footer-bottom a:hover {
  color: var(--accent-blue);
}

.bb-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  color: #94a3b8;
  font-size: 13.5px;
}

/* Mobile Ansicht */

@media (max-width: 900px) {
  .bb-contact-section-wrap,
  .bb-footer-grid,
  .bb-form-row {
    grid-template-columns: 1fr;
  }

  .bb-logo-banner-wrap {
    padding: 16px 20px 12px;
  }

  .custom-logo {
    max-height: 120px;
  }

  .bb-menu-toggle {
    display: flex;
  }

  .bb-main-nav {
    position: static;
  }

  .bb-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .bb-menu.active {
    display: flex;
  }

  .bb-menu li {
    width: 100%;
  }

  .bb-menu a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
  }

  .bb-btn-header {
    padding: 7px 12px;
    font-size: 13px;
  }

  .bb-hero h1 {
    font-size: 29px;
  }
}
