/* ============================================================
   IMO Services - Main Stylesheet
   Design: Soft Light / Elegant Blue / Warm Accent
   ============================================================ */

:root {
  --primary: #7c8fdf;
  --primary-dark: #5f74cb;
  --primary-soft: #eef2ff;
  --secondary-soft: #f8e9e2;
  --accent: #efc3b0;
  --accent-strong: #e6ad94;

  --white: #ffffff;
  --bg: #f7f9fc;
  --bg-alt: #f1f5fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-soft: #fcfdff;

  --border: #e6ebf4;
  --border-strong: #d8dfec;

  --text: #27344a;
  --heading: #182235;
  --text-muted: #718096;

  --success-bg: #dcfce7;
  --success-text: #166534;
  --error-bg: #fee2e2;
  --error-text: #991b1b;

  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 20px rgba(31, 41, 55, 0.05);
  --shadow: 0 14px 38px rgba(95, 116, 203, 0.10);
  --shadow-lg: 0 22px 55px rgba(95, 116, 203, 0.16);

  --transition: .3s ease;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --fs-base: 1rem;
}

/* High contrast mode */
[data-contrast="high"] {
  --primary: #4058c9;
  --primary-dark: #243ca8;
  --text: #111827;
  --heading: #000000;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #cfd8e3;
  filter: contrast(1.08);
}

/* Font size modes */
[data-fontsize="large"] { font-size: 110%; }
[data-fontsize="xlarge"] { font-size: 120%; }

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--fs-base);
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 143, 223, 0.10), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(239, 195, 176, 0.16), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 55%, #f8fafe 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

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

ul {
  list-style: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -52px;
  left: 1rem;
  z-index: 9999;
  background: var(--heading);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .88rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  position: relative;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(124, 143, 223, 0.28);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 28px rgba(95, 116, 203, 0.22);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 0 16px 34px rgba(95, 116, 203, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-dark);
  border-color: rgba(124, 143, 223, 0.22);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: rgba(124, 143, 223, 0.4);
}

.btn-white {
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .85rem;
}

.btn-nav {
  padding: .7rem 1.2rem !important;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2rem));
  z-index: 1000;
  background: rgba(24, 34, 53, 0.92);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1rem 1.25rem;
  display: none;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: .92rem;
}

.cookie-inner a {
  color: #cfd8ff;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 235, 244, 0.8);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 143, 223, 0.18), rgba(239, 195, 176, 0.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.15rem;
  color: var(--heading);
  letter-spacing: -.02em;
}

.logo-text strong {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: .65rem .9rem;
  border-radius: 12px;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  background: rgba(124, 143, 223, 0.10);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--heading);
  transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* Flash messages */
.flash-container {
  position: fixed;
  top: 92px;
  right: 1.5rem;
  z-index: 600;
  width: min(360px, calc(100% - 2rem));
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  margin-bottom: .65rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.alert-success {
  background: rgba(220, 252, 231, 0.92);
  color: var(--success-text);
}

.alert-error {
  background: rgba(254, 226, 226, 0.95);
  color: var(--error-text);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.alt-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
    var(--bg-alt);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, rgba(124, 143, 223, 0.14), rgba(239, 195, 176, 0.16));
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .48rem .95rem;
  border: 1px solid rgba(124, 143, 223, 0.12);
  border-radius: var(--radius-pill);
  margin-bottom: .95rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: .7rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 143, 223, 0.22), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(239, 195, 176, 0.28), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(160, 174, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #fcfdff 0%, #f5f8ff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  z-index: 0;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: rgba(124, 143, 223, 0.12);
  top: 8%;
  left: -80px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: rgba(239, 195, 176, 0.16);
  bottom: 6%;
  right: -50px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c8fdf' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  border: 1px solid rgba(124, 143, 223, 0.18);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  padding: .55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--heading);
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat {
  min-width: 140px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading);
}

.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.35rem;
  color: rgba(39, 52, 74, 0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(124, 143, 223, 0.10), transparent 30%);
  pointer-events: none;
}

.service-card:hover,
.service-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 143, 223, 0.22);
}

.service-card:focus {
  outline: 3px solid rgba(124, 143, 223, 0.18);
  outline-offset: 2px;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.15rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 143, 223, 0.15), rgba(239, 195, 176, 0.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.service-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .55rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: .96rem;
}

.coming-soon {
  opacity: .88;
}

.badge-soon {
  display: inline-block;
  margin-top: .9rem;
  padding: .32rem .75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #5b3829;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 143, 223, 0.22);
}

.project-card:focus {
  outline: 3px solid rgba(124, 143, 223, 0.18);
}

.project-img {
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #f8e9e2);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.project-info {
  padding: 1.35rem;
}

.project-cat {
  font-size: .74rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-info h3 {
  font-size: 1.12rem;
  color: var(--heading);
  margin: .4rem 0 .55rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: .94rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.step {
  text-align: center;
  padding: 2rem 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9eaef1);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 26px rgba(95, 116, 203, 0.22);
}

.step h3 {
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: .45rem;
}

.step p {
  color: var(--text-muted);
  font-size: .94rem;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 143, 223, 0.22), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(239, 195, 176, 0.28), transparent 22%),
    linear-gradient(135deg, #eef2ff 0%, #f8fbff 42%, #fff5f0 100%);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--heading);
  margin-bottom: .9rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.06rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-banner .btn-outline-white {
  background: rgba(124, 143, 223, 0.08);
  color: var(--primary-dark);
  border-color: rgba(124, 143, 223, 0.18);
}

.cta-banner .btn-outline-white:hover {
  background: rgba(124, 143, 223, 0.14);
  color: var(--primary-dark);
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(124, 143, 223, 0.20), transparent 26%),
    radial-gradient(circle at 80% 28%, rgba(239, 195, 176, 0.24), transparent 24%),
    linear-gradient(180deg, #fafcff 0%, #f1f5fb 100%);
  color: var(--heading);
  padding: 4.5rem 0 3.4rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin-bottom: .55rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* Gallery */
.gallery-filter {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: .52rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid rgba(124, 143, 223, 0.20);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.65);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.07);
}

.gallery-item:focus {
  outline: 3px solid rgba(124, 143, 223, 0.24);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(24, 34, 53, 0.82));
  color: var(--white);
  padding: 1rem .85rem .8rem;
  font-size: .86rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover figcaption,
.gallery-item:focus figcaption {
  opacity: 1;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(16, 24, 40, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}

.lightbox-content figcaption {
  color: var(--white);
  margin-top: .9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.24);
  transform: scale(1.05);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-info h2,
.kontakt-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--heading);
  margin-bottom: 1.4rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

.contact-list strong {
  display: block;
  font-weight: 700;
  color: var(--heading);
}

.contact-list a,
.contact-list p {
  color: var(--text-muted);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-weight: 600;
  font-size: .92rem;
  color: var(--heading);
}

.form-group label span[aria-label="Pflichtfeld"] {
  color: #ef4444;
}

.form-group .optional {
  font-weight: 400;
  color: #94a3b8;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .88rem 1rem;
  font-size: .96rem;
  font-family: var(--font);
  color: var(--text);
  background: rgba(255,255,255,0.95);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(124, 143, 223, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 143, 223, 0.12);
  background: var(--white);
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: .75rem;
}

.form-check input {
  width: auto;
  flex-shrink: 0;
  margin-top: .2rem;
  accent-color: var(--primary);
}

.form-hint {
  font-size: .82rem;
  color: #94a3b8;
}

/* Services detail */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-detail {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.service-detail:hover,
.service-detail:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-detail:focus {
  outline: 3px solid rgba(124, 143, 223, 0.18);
}

.service-detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 143, 223, 0.16), rgba(239, 195, 176, 0.20));
}

.service-detail-body h2 {
  font-size: 1.28rem;
  margin-bottom: .45rem;
  color: var(--heading);
}

.service-detail-body p {
  color: var(--text-muted);
}

/* Legal pages */
.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  font-size: 1.45rem;
  margin: 2rem 0 .8rem;
  color: var(--heading);
}

.legal-content h3 {
  font-size: 1.12rem;
  margin: 1.25rem 0 .55rem;
  color: var(--heading);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: .75rem;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 143, 223, 0.10), transparent 20%),
    linear-gradient(180deg, #1d2738 0%, #162031 100%);
  color: var(--white);
  padding: 4.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #d4dcff;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col li,
.footer-col address {
  color: rgba(255,255,255,0.72);
  font-size: .94rem;
  margin-bottom: .45rem;
  font-style: normal;
}

.footer-col a {
  color: rgba(255,255,255,0.78);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.66);
  font-size: .92rem;
}

.a11y-btn {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: .55rem .9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.a11y-btn:hover {
  background: rgba(255,255,255,0.16);
}

/* Responsive */
@media (max-width: 991px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    padding: 1rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: .8rem 1rem;
  }

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

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    flex-direction: column;
  }

  .stat {
    width: 100%;
  }

  .flash-container {
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    flex-direction: column;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .cookie-banner {
    bottom: .75rem;
    width: calc(100% - 1rem);
    padding: .95rem 1rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .section-header h2,
  .cta-banner h2,
  .page-hero h1 {
    line-height: 1.18;
  }
}
