@charset "utf-8";

:root {
  --bg: #f6f8fc;
  --card: rgba(255, 255, 255, 0.92);
  --text: #0e1b2a;
  --muted: #5d6b7c;
  --line: rgba(15, 30, 50, 0.12);
  --brand: #0ea5e9;
  --brand2: #22c55e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
  --radius: 18px;
  --radius2: 22px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/Background.png"), url("../images/Background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: saturate(1.15) contrast(1.08);
  z-index: -2;
  transform: scale(1.03);
  transform-origin: center center;
  will-change: transform;
  animation: bgZoom 18s ease-in-out 0s infinite alternate;
}

@keyframes bgZoom {
  0% { transform: scale(1.03); }
  100% { transform: scale(1.08); }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(246, 248, 252, 0.2) 0%, rgba(246, 248, 252, 0.2) 45%, rgba(246, 248, 252, 0.2) 100%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 252, 0.75);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, var(--brand2), var(--brand));
  box-shadow: rgba(14, 165, 233, 0.2) 0 10px 25px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

.brand b {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgb(34, 52, 74);
  flex: 0 0 auto;
}

.nav a { padding: 8px 10px; border-radius: 12px; }
.nav a:hover { background: rgba(14, 165, 233, 0.1); }

.cta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.06) 0 10px 28px;
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #2563eb);
  color: rgb(255, 255, 255);
  border: 0;
  box-shadow: rgba(37, 99, 235, 0.22) 0 14px 34px;
}

.icon { width: 18px; height: 18px; display: inline-block; }

.hero { padding: 64px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 26px; align-items: start; }

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: rgb(31, 49, 72);
}

.h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  text-shadow: rgba(255, 255, 255, 0.35) 0 2px 18px;
}

.lead {
  color: rgb(48, 70, 95);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 18px;
  display: inline-block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 30, 50, 0.12);
  box-shadow: rgba(0, 0, 0, 0.1) 0 12px 34px;
  backdrop-filter: blur(6px);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.btn-lg { padding: 12px 16px; border-radius: 16px; }

.card { border: 1px solid var(--line); border-radius: var(--radius2); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.card-inner { padding: 18px; }

.kv { display: grid; gap: 10px; }

.kv-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 252, 255, 0.75);
  font-size: 13.5px;
  min-width: 0;
}

.kv-row b {
  color: rgb(15, 39, 65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv-row span {
  color: rgb(61, 83, 109);
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hint {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.08);
  padding: 12px;
  color: rgb(16, 58, 95);
  font-size: 13.5px;
  line-height: 1.55;
}

.hint b { color: rgb(11, 44, 76); }

.aside-split { display: grid; grid-template-columns: 1.55fr 0.45fr; gap: 12px; align-items: start; }

.map-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.map-head {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 30, 50, 0.1);
  background: rgba(246, 248, 252, 0.65);
}

.map-head b { display: block; font-size: 14px; color: rgb(15, 39, 65); }
.map-head span { display: block; font-size: 12.5px; color: rgb(84, 107, 134); margin-top: 2px; }

.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; background: rgba(235, 245, 255, 0.65); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.map-actions {
  padding: 10px 12px;
  border-top: 1px solid rgba(15, 30, 50, 0.1);
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.55);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(15, 30, 50, 0.12);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: rgba(0, 0, 0, 0.08) 0 10px 22px;
  transition: transform 0.18s;
  white-space: nowrap;
}

.map-link:hover { transform: translateY(-1px); }

section { padding: 34px 0; }

.section-title {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-shadow: rgba(255, 255, 255, 0.3) 0 2px 18px;
}

.section-title,
.about-card h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, Helvetica, Arial;
  font-weight: 700;
}

.section-sub {
  margin: 0 0 18px;
  display: inline-block;
  color: rgb(48, 70, 95);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 92ch;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 30, 50, 0.12);
  box-shadow: rgba(0, 0, 0, 0.1) 0 12px 34px;
  backdrop-filter: blur(6px);
}

.inbox-title {
  display: block;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: rgb(14, 27, 42);
  margin: 0 0 6px;
}

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }

.service-tile {
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: rgba(0, 0, 0, 0.12) 0 18px 60px;
  border: 1px solid rgba(15, 30, 50, 0.1);
  transition: transform 0.18s, box-shadow 0.18s;
  outline: none;
}

.service-tile:hover { transform: translateY(-3px); box-shadow: rgba(0, 0, 0, 0.16) 0 26px 80px; }

.tile-media {
  height: 140px;
  background: rgba(220, 235, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: rgba(20, 35, 55, 0.65);
  font-weight: 600;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.16), transparent 45%),
              radial-gradient(circle at 80% 40%, rgba(34, 197, 94, 0.12), transparent 50%),
              rgba(230, 243, 255, 0.55);
}

.tile-body { padding: 14px 14px 16px; }
.tile-title { margin: 0 0 8px; font-size: 15.5px; letter-spacing: -0.01em; }
.tile-text { margin: 0; color: rgb(90, 106, 124); font-size: 13.5px; line-height: 1.55; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}

.modal-overlay.open { display: flex; }

.modal {
  width: min(920px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: rgba(0, 0, 0, 0.4) 0 30px 120px;
  backdrop-filter: blur(10px);
  transform: scale(0.92);
  opacity: 0;
  animation: modalIn 0.22s ease 0s 1 forwards;
}

@keyframes modalIn { 100% { transform: scale(1); opacity: 1; } }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(15, 30, 50, 0.1);
  background: rgba(246, 248, 252, 0.65);
}

.modal-header b { font-size: 15px; }

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 50, 0.12);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.modal-close:hover { transform: translateY(-1px); }

.modal-content { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; min-height: 420px; }

.modal-media {
  background: rgba(235, 245, 255, 0.65);
  border-right: 1px solid rgba(15, 30, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  color: rgba(20, 35, 55, 0.65);
  font-weight: 600;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.14), transparent 45%),
              radial-gradient(circle at 80% 40%, rgba(34, 197, 94, 0.12), transparent 50%),
              rgba(230, 243, 255, 0.55);
}

.modal-body { padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.modal-body h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.modal-body p { margin: 0; color: rgb(65, 87, 111); font-size: 14.8px; line-height: 1.75; }

.legal-modal .modal { width: min(980px, 100%); }
.legal-modal .modal-content { grid-template-columns: 1fr; min-height: unset; }

.legal-body {
  padding: 18px;
  max-height: min(72vh, 720px);
  overflow: auto;
  color: rgb(65, 87, 111);
  font-size: 14.6px;
  line-height: 1.75;
}

.legal-body h3 { margin: 6px 0 10px; font-size: 18px; color: rgb(15, 39, 65); }
.legal-body h4 { margin: 14px 0 8px; font-size: 15px; color: rgb(15, 39, 65); }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 6px 0 12px 18px; padding: 0; }
.legal-body li { margin: 6px 0; }

.legal-box {
  background: rgba(246, 248, 252, 0.75);
  border: 1px solid rgba(15, 30, 50, 0.1);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0 14px;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.contact-card { padding: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

label { font-size: 12px; color: rgb(55, 80, 104); }

input, textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

textarea { min-height: 120px; resize: vertical; }

.small { font-size: 12px; color: var(--muted); line-height: 1.5; }

.about-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 30, 50, 0.12);
  box-shadow: rgba(0, 0, 0, 0.12) 0 18px 60px;
  backdrop-filter: blur(10px);
  padding: 18px;
}

.about-card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.about-card p { margin: 0; color: rgb(65, 87, 111); font-size: 14.8px; line-height: 1.75; }
.about-card p + p { margin-top: 10px; }

.reviews-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: rgba(0, 0, 0, 0.18) 0 24px 90px;
  backdrop-filter: blur(18px);
  padding: 18px;
  overflow: hidden;
}

.reviews-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reviews-title { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.reviews-title b { font-size: 20px; }
.reviews-title span { font-size: 13px; color: rgba(15, 30, 50, 0.7); }

.reviews-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }

.badge {
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 30, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 10px 28px;
  white-space: nowrap;
}

.stars { letter-spacing: 1px; }

.reviews-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.review {
  border-radius: 18px;
  border: 1px solid rgba(15, 30, 50, 0.1);
  background: rgba(250, 252, 255, 0.75);
  padding: 14px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 12px 34px;
}

.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.review-user { display: flex; align-items: center; gap: 10px; min-width: 0; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgb(15, 39, 65);
  flex: 0 0 auto;
}

.review-user b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.review-top small { color: rgb(84, 107, 134); white-space: nowrap; }

.review-stars { color: rgb(15, 39, 65); font-size: 13px; margin-bottom: 6px; }
.review p { margin: 0; color: rgb(65, 87, 111); line-height: 1.6; }

.reviews-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(246, 248, 252, 0.3);
  backdrop-filter: blur(14px);
}

.footer-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: rgba(0, 0, 0, 0.18) 0 24px 90px;
  backdrop-filter: blur(18px);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer-left b { display: block; }
.footer-left .small { color: rgba(15, 30, 50, 0.7); }

.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

.footer-actions a {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 50, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 10px 28px;
  transition: transform 0.18s;
}

.footer-actions a:hover { transform: translateY(-1px); }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-media { border-right: 0; border-bottom: 1px solid rgba(15, 30, 50, 0.1); }
  .nav { display: none; }
  .cta { min-width: auto; }
  .brand { min-width: auto; }
  .aside-split { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 16 / 10; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 12px; }
  .header { background: rgba(246, 248, 252, 0.92); }
  .header-inner { gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand b { font-size: 14px; }
  .brand span { font-size: 11.5px; }
  .cta { gap: 8px; }
  .btn { padding: 10px 12px; font-size: 13px; }
  .btn .icon { display: none; }
  #leistungen .section-title, #kontakt .section-title { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .lead, .section-sub { padding: 12px; }
  .footer-card { flex-direction: column; }
  .footer-actions { justify-content: flex-start; }
  .map-frame { aspect-ratio: 16 / 11; }
  .contact-card .kv-row { grid-template-columns: 92px 1fr; align-items: center; }
  .contact-card .kv-row b { white-space: nowrap; overflow: visible; text-overflow: clip; }
  .contact-card .kv-row span { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; text-align: right; }
}
