:root {
  --primary: #3f6df6;
  --primary-dark: #2f57d6;
  --primary-soft: rgba(63, 109, 246, 0.1);
  --accent: #7dd3fc;
  --text: #1e293b;
  --text-soft: #5b6b80;
  --white: #ffffff;
  --bg: #f4f7ff;
  --bg-alt: #eef4ff;
  --border: rgba(63, 109, 246, 0.12);
  --shadow: 0 18px 45px rgba(37, 60, 122, 0.12);
  --shadow-soft: 0 10px 30px rgba(37, 60, 122, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.6)),
    url("../img/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

/* Header / Navigation */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(37, 60, 122, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.logo strong {
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.2;
}

.logo span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.logo-short {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
}

.menu-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 16px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle span:nth-child(3) {
  top: 30px;
}

.menu-toggle.active span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5e7fff);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(63, 109, 246, 0.25);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 18px 32px rgba(63, 109, 246, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* Sections */

section {
  position: relative;
  padding: 2rem 0;
  scroll-margin-top: 100px;
}

section:not(:last-of-type)::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 1500px;
  height: 1px;
  margin: 3rem auto 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(63, 109, 246, 0.8),
    transparent
  );
}

.section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-header p {
  max-width: 760px;
  margin: 0.8rem auto 0;
}

.hero-text p,
.section-header p,
.service-card p,
.contact-card p,
.contact-item,
.footer-card,
.hero-single p,
.map-placeholder p {
  color: var(--text-soft);
}

/* Cards */

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

/* Hero */

.hero {
  padding: 4rem 0 2rem;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-text {
  padding: 3.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.hero-info {
  position: relative;
  background: linear-gradient(180deg, #3f6df6 0%, #5e7fff 100%);
  color: var(--white);
  padding: 3rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-info::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-info h2,
.hero-info li {
  position: relative;
  color: var(--white);
}

.hero-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.hero-info li {
  padding-left: 1.5rem;
}

.hero-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

/* Intro card */

.hero-single {
  margin-top: 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-single-content {
  padding: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-single h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-single p {
  margin-bottom: 1rem;
}

/* Services */

.about,
.service-card,
.praxis-text,
.contact-card-inner,
.footer-card {
  padding: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(37, 60, 122, 0.12);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.service-card ul {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
}

/* Praxis / Galerie */

.praxis-layout {
  display: grid;
  gap: 1.5rem;
}

.praxis-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.praxis-item {
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.praxis-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(37, 60, 122, 0.15);
}

.praxis-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.praxis-item:hover img {
  transform: scale(1.05);
}

.praxis-item figcaption {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.9);
}

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 2fr);
  gap: 1.5rem;
}

.contact-card,
.map-card {
  overflow: hidden;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(63, 109, 246, 0.07), rgba(125, 211, 252, 0.08));
  border: 1px solid rgba(63, 109, 246, 0.08);
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  display: block;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100%;
  min-height: 420px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
}

.map-placeholder p {
  max-width: 400px;
}

/* Footer */

.footer {
  padding: 2rem 0 3rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.footer-links a {
  font-weight: 600;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(1000px, 90vw);
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-content p {
  margin: 1rem 0 0;
  color: #ffffff;
  font-size: 1rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

/* Scroll to top */

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5e7fff);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1500;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Responsive */

@media (max-width: 980px) {
  .hero-card,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .praxis-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text,
  .hero-info,
  .about,
  .service-card,
  .praxis-text,
  .contact-card-inner,
  .footer-card,
  .hero-single-content {
    padding: 1.5rem;
  }

  .praxis-item img {
    height: 280px;
  }
}

@media (max-width: 1100px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.7rem 0;
  }

  .logo-full {
    display: none;
  }

  .logo-short {
    display: block;
    font-size: 1rem;
  }

  .logo span {
    display: none;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }

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

  .nav-links a {
    width: 100%;
    max-width: 300px;
    padding: 0.9rem 0;
    border-radius: 12px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-text {
    padding-bottom: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 700px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-content img {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 46px;
    height: 46px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .praxis-gallery {
    grid-template-columns: 1fr;
  }

  .praxis-item img {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}