/**
 * H.A.M. Property Management – Hauptseite
 * Lädt variables.css voraus – beide im Head einbinden.
 */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ====== MAINTENANCE BANNER ====== */
.maintenance-banner {
  position: sticky;
  top: 0;
  z-index: 10002;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.maintenance-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

.maintenance-banner a {
  color: var(--green-light);
  font-weight: 700;
  text-decoration: underline;
}

.maintenance-banner a:hover {
  color: var(--green);
}

/* ====== FULL MAINTENANCE MODE (OVERLAY) ====== */
html.ham-maintenance,
html.ham-maintenance body {
  height: 100%;
}

html.ham-maintenance body {
  overflow: hidden;
}

[data-maintenance-overlay] {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy-dark);
  color: var(--white);
}

.ham-maintenance__card {
  width: min(760px, 100%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
}

.ham-maintenance__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,179,66,0.14);
  border: 1px solid rgba(124,179,66,0.35);
  color: #cfe7b6;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 14px;
}

.ham-maintenance__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 0 0 10px;
}

.ham-maintenance__text {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.ham-maintenance__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.ham-maintenance__links a {
  color: var(--green-light);
  font-weight: 800;
  text-decoration: underline;
}

.ham-maintenance__links a:hover {
  color: var(--green);
}

.ham-maintenance__small {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

:root {
  /* iOS Safe-Area Insets (Notch/Home-Indicator) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* Mobile Tap UX (iOS/Android) */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button, [role="button"], .btn-primary, .btn-secondary-outline, .btn-add-position, .btn-remove, .chatbot-btn, .chatbot-close, .chatbot-send {
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(61,108,185,0.25);
  text-decoration: none;
  font-weight: 800;
  z-index: 10000;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(61,108,185,0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { transform: none; }
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ====== TOP BAR ====== */
.top-bar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar-item:hover { color: var(--green-light); }

.top-bar-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* ====== NAVIGATION ====== */
.navbar {
  background: var(--white);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  width: 160px;
  height: auto;
  max-width: 100%;
}

.logo-h {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--navy);
  font-weight: 300;
  line-height: 1;
  font-style: italic;
}

.logo-text {
  font-size: 0.55rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--blue-accent); }
.nav-links a:hover::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

/* ====== CONTAINER ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 600px;
  min-height: max(600px, 100vh);
  min-height: max(600px, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #2d5a8e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.8" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect fill="url(%23dots)" width="100" height="100"/></svg>');
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 74, 0.65);
  z-index: 2;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-bg.png');
  background-size: cover;
  /* Fokus auf Hand/Eimer (links oben) */
  background-position: 18% 22%;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 24px;
  max-width: 900px;
  animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--blue-accent);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2d5aa0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,108,185,0.35);
}

.btn-green {
  background: var(--green);
}

.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 24px rgba(124,179,66,0.35);
}

/* ====== SECTION UTILS ====== */
.section {
  padding: 80px 0;
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-gray {
  background: var(--gray-50);
}

.section-gray-inner {
  background: var(--gray-50);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-top: 48px;
}

.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 10px;
}

.section-navy .section-label {
  color: var(--green-light);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.section-navy .section-title {
  color: var(--white);
}

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

.section-navy .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.text-center { text-align: center; }

/* ====== ABOUT / PARTNER SECTION ====== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image--photo {
  background: var(--navy-dark);
}

.about-image--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-placeholder {
  font-size: 4rem;
  opacity: 0.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.category-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(61,108,185,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
  font-size: 1.3rem;
}

.category-item h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.category-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ====== WHY US ====== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.why-icon svg {
  width: 48px;
  height: 48px;
}

/* WHY-Icons: immer H.A.M.-Grün (überschreibt inline SVG) */
.why-icon svg * {
  stroke: var(--green) !important;
}
.why-icon svg [fill]:not([fill="none"]) {
  fill: var(--green) !important;
}

.why-card h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-500);
}

/* ====== SERVICES GRID ====== */
.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61,108,185,0.2);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2.5rem;
}

.service-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
}

/* Service-Icons: 2-Farben-System (Grün + Navy-Kontrast) */
.service-icon svg * {
  stroke: currentColor;
  fill: none;
}
.service-icon svg .icon-accent {
  stroke: var(--navy);
}

.service-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ====== MORE SERVICES (Navy BG) ====== */
.more-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.more-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.more-service-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.06);
}

.more-service-item:hover {
  background: rgba(255,255,255,0.12);
}

.more-service-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.more-service-icon-svg svg {
  width: 40px;
  height: 40px;
}

.more-service-item h4 {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.more-service-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

.more-services-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-image: url('/assets/images/more-services-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative;
}

.more-services-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,32,57,0.15) 0%, rgba(19,32,57,0.35) 100%);
}

.more-services-image-placeholder {
  font-size: 5rem;
  opacity: 0.2;
}

/* ====== CALCULATOR ====== */
.calculator-section {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 0;
  color: var(--white);
}

/* Header innerhalb des Kalkulators auf hellem Hintergrund lesbar */
.calculator-section .section-label {
  color: var(--green-light);
}
.calculator-section .section-title {
  color: var(--white);
}
.calculator-section .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.calc-header h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.calc-header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.calc-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.calc-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.calc-checkbox label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.calc-row {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.calc-select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  flex: 1;
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.calc-select option {
  background: var(--navy-dark);
  color: var(--white);
}

.calc-input {
  background: rgba(124,179,66,0.15);
  border: 2px solid var(--green);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100px;
  text-align: center;
  font-weight: 600;
}

.calc-input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(124,179,66,0.2);
}

.calc-unit {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-remove {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-remove:hover { background: rgba(255,70,70,0.3); }

.btn-add-position {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-add-position:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.calc-table-wrapper {
  margin-top: 24px;
}

.calc-inline-contact {
  margin-top: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
}

.calc-inline-contact-head h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.calc-inline-contact-head p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.calc-inline-contact-row,
.calc-inline-contact-grid {
  display: flex;
  gap: 12px;
}

.calc-inline-contact-row {
  margin-bottom: 12px;
}

.calc-inline-contact-row .anfrage-select {
  flex: 1;
  min-width: 180px;
  width: 100%;
}

.calc-inline-contact-grid {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.calc-inline-contact-grid .anfrage-input {
  flex: 1;
  min-width: 180px;
}

.calc-inline-contact .anfrage-textarea {
  margin-bottom: 12px;
  min-height: 110px;
}

.calc-inline-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
  transition: all 0.2s;
}

.btn-secondary-outline:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  transform: translateY(-2px);
}

.calculator-section .anfrage-input,
.calculator-section .anfrage-select,
.calculator-section .anfrage-textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}

.calculator-section .anfrage-input::placeholder,
.calculator-section .anfrage-textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.calculator-section .anfrage-input:focus,
.calculator-section .anfrage-select:focus,
.calculator-section .anfrage-textarea:focus {
  border-color: var(--green);
  outline: none;
}

.calculator-section .anfrage-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
}

.calculator-section .anfrage-select option {
  background: var(--navy-dark);
  color: var(--white);
}

.calc-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
}

.calc-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-table th:last-child { text-align: right; }

.calc-table td {
  padding: 14px 16px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.calc-table td:last-child { text-align: right; font-weight: 500; }

.calc-table tr.subtotal td,
.calc-table tr.total td {
  font-weight: 700;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.calc-table tr.total td {
  font-size: 1.05rem;
  color: var(--green-light);
}

.calc-contact-form {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.calc-form-title {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  font-weight: 600;
}

.calc-form-row-anrede {
  margin-bottom: 12px;
}

.calc-form-row-anrede .calc-form-select {
  width: 100%;
  max-width: 275px;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .calc-form-grid {
    grid-template-columns: 1fr;
  }
}

.calc-form-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.calc-form-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.calc-form-input:focus {
  outline: none;
  border-color: var(--green);
}

.calc-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.calc-form-select option {
  background: var(--navy-dark);
  color: var(--white);
}

.calc-form-textarea {
  width: 100%;
  margin-top: 12px;
  min-height: 100px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.calc-form-textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.calc-form-textarea:focus {
  outline: none;
  border-color: var(--green);
}

.calc-form-error {
  font-size: 0.9rem;
}

.calc-hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* ====== ANFRAGE (Calendly-Design) ====== */
.anfrage-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.anfrage-info {
  background: var(--gray-50);
  padding: 40px 32px;
  min-height: 100%;
}

.anfrage-host {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.anfrage-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.3;
}

.anfrage-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.anfrage-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.anfrage-meta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
}

.anfrage-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.anfrage-form {
  padding: 40px 32px;
}

.anfrage-form-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.anfrage-form-row {
  margin-bottom: 16px;
}

.anfrage-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.anfrage-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(26,43,74,0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.anfrage-input::placeholder {
  color: var(--gray-500);
}

.anfrage-input:focus {
  outline: none;
  border-color: var(--green);
}

.anfrage-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%231a2b4a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  max-width: 200px;
}

.anfrage-select option {
  background: var(--white);
  color: var(--text-dark);
}

.anfrage-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(26,43,74,0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  resize: vertical;
  transition: border-color 0.2s;
}

.anfrage-textarea::placeholder {
  color: var(--gray-500);
}

.anfrage-textarea:focus {
  outline: none;
  border-color: var(--green);
}

.anfrage-form-actions {
  margin-top: 8px;
}

.anfrage-error {
  font-size: 0.9rem;
  color: #d97706;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .anfrage-layout {
    grid-template-columns: 1fr;
  }

  .anfrage-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== CONTACT CARDS ====== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,43,74,0.3);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.contact-card h4 {
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo img {
  display: block;
  width: 170px;
  height: auto;
  max-width: 100%;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer h4 {
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green-light); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover { color: var(--green-light); }

.footer-contact-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--green-light); }

/* ====== FLOATING CHATBOT ====== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chatbot {
  position: fixed;
  right: calc(22px + var(--safe-right));
  bottom: calc(22px + var(--safe-bottom));
  z-index: 9999;
}

.chatbot-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(61,108,185,0.16), rgba(61,108,185,0) 65%);
  opacity: 0.9;
  pointer-events: none;
}

.chatbot-btn {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  box-shadow: none;
}

.chatbot-btn:focus-visible {
  outline: 3px solid rgba(124,179,66,0.9);
  outline-offset: 4px;
}

.chatbot-btn:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 22px 38px rgba(19,32,57,0.28));
}

.chatbot-icon {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
  background: transparent;
  /* 3D-Feeling: mehrere weiche Schatten + leichte Highlights */
  filter:
    drop-shadow(0 18px 28px rgba(19,32,57,0.24))
    drop-shadow(0 6px 10px rgba(19,32,57,0.18));
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 140px));
  max-height: min(560px, calc(100svh - 140px));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(19,32,57,0.30);
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  background: linear-gradient(135deg, rgba(19,32,57,0.92), rgba(26,43,74,0.86));
  color: var(--white);
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.chatbot-avatar img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
  display: block;
}

.chatbot-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.1;
}

.chatbot-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
}

.chatbot-close:hover { background: rgba(255,255,255,0.16); }
.chatbot-close:focus-visible {
  outline: 3px solid rgba(124,179,66,0.9);
  outline-offset: 2px;
}

.chatbot-actions {
  padding: 14px;
  background: rgba(248,249,250,0.92);
  display: grid;
  gap: 12px;
}

.chatbot-action {
  display: grid;
  gap: 2px;
  padding: 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(26,43,74,0.12);
  color: var(--text-dark);
  background: var(--white);
  box-shadow: 0 10px 20px rgba(19,32,57,0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chatbot-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(19,32,57,0.14);
  border-color: rgba(26,43,74,0.18);
}

.chatbot-action:focus-visible {
  outline: 3px solid rgba(124,179,66,0.9);
  outline-offset: 2px;
}

.chatbot-action-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.chatbot-action-sub {
  font-size: 0.9rem;
  color: rgba(26,43,74,0.70);
}

.chatbot-action--whatsapp {
  border-color: rgba(124,179,66,0.28);
}

.chatbot-action--call {
  border-color: rgba(61,108,185,0.22);
}

.chatbot-note {
  margin: 4px 2px 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(26,43,74,0.65);
}

.chatbot-messages {
  padding: 14px;
  background: rgba(248,249,250,0.92);
  overflow: auto;
  max-height: 360px;
}

.chatbot-msg {
  display: flex;
  margin: 10px 0;
}
.chatbot-msg--user { justify-content: flex-end; }
.chatbot-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.chatbot-msg--bot .chatbot-bubble {
  background: var(--white);
  border: 1px solid rgba(26,43,74,0.10);
  color: var(--text-dark);
}
.chatbot-msg--user .chatbot-bubble {
  background: rgba(26,43,74,0.92);
  color: var(--white);
}

.chatbot-inputbar {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(26,43,74,0.10);
}

.chatbot-input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(26,43,74,0.18);
  padding: 12px 12px;
  font-size: 0.95rem;
  background: transparent;
}
.chatbot-input:focus-visible {
  outline: 3px solid rgba(61,108,185,0.35);
  outline-offset: 2px;
}

.chatbot-send {
  border-radius: 14px;
  border: none;
  padding: 12px 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-accent), #2f7fe8);
  color: var(--white);
  cursor: pointer;
  min-width: 88px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 22px rgba(61,108,185,0.28);
}
.chatbot-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(61,108,185,0.32);
}
.chatbot-send:focus-visible {
  outline: 3px solid rgba(124,179,66,0.9);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .chatbot { right: 14px; bottom: 14px; }
  .chatbot-panel { bottom: 88px; }
  .chatbot-btn { width: 70px; height: 70px; border-radius: 20px; }
  .chatbot-icon { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-btn, .chatbot-send { transition: none; }
}

/* ====== ANIMATIONS ====== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .more-services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-cards-grid { grid-template-columns: 1fr; }

  .calculator-section { padding: 28px 16px; }
  .calc-top-bar { flex-direction: column; align-items: stretch; }
  .calc-top-bar .btn-add-position { justify-content: center; width: 100%; }

  /* Kalkulator: Mobile-Layout (ohne Overflow) */
  .calc-row {
    display: grid;
    grid-template-columns: 1fr 96px auto;
    grid-template-areas:
      "service service service"
      "freq sqm unit"
      "remove remove remove";
    gap: 10px;
    align-items: center;
    padding: 14px 14px;
  }

  .calc-row .calc-service { grid-area: service; }
  .calc-row .calc-freq { grid-area: freq; }
  .calc-row .calc-sqm { grid-area: sqm; width: 96px; }
  .calc-row .calc-unit { grid-area: unit; justify-self: start; }
  .calc-row .btn-remove { grid-area: remove; width: 100%; justify-content: center; }

  .calc-select { min-width: 0; width: 100%; }

  /* Tabelle: horizontal scrollen statt quetschen */
  .calc-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .calc-table { min-width: 640px; }
  .calc-table th, .calc-table td { white-space: nowrap; }

  .hero { min-height: 480px; }
  .hero h1 { font-size: 2.2rem; }
  /* Mobile: Fokus etwas höher für Hand/Eimer */
  .hero-bg-img { background-position: 22% 18%; }

  .top-bar .container { gap: 16px; font-size: 0.78rem; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* iOS: verhindert Auto-Zoom bei Fokus (>=16px) */
  .anfrage-input,
  .anfrage-select,
  .anfrage-textarea,
  .calc-input,
  .calc-select,
  .chatbot-input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .calculator-section { padding: 24px 14px; }
  .calc-header h3 { font-size: 1.25rem; }
  .calc-checkbox label { font-size: 0.92rem; }
  .calc-row { grid-template-columns: 1fr 92px auto; }
  .calc-row .calc-sqm { width: 92px; }
  .calc-select, .calc-input { padding: 12px 14px; }
}
