:root {
  --navy: #0F2B3C;
  --ocean: #1D6F8E;
  --ocean-dark: #155A74;
  --sky: #3AADDB;
  --copper: #B8864E;
  --sand: #F6F2EC;
  --warm: #FFFDF9;
  --slate: #64748B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--navy);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
}

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

img[src*="logo"] {
  background: transparent;
  filter: none;
}

::selection {
  background: var(--ocean);
  color: white;
}

html, body {
  overflow-x: hidden;
}

#campaign-bar {
  z-index: 60;
}

#site-header {
  top: 0;
  transition: top 0.3s ease;
}

body.has-campaign #site-header {
  top: 40px;
}

.hero-section {
  min-height: 90vh;
}

.hero-heading {
  line-height: 1.08;
}

.badge-label {
  font-size: 11px;
}

.header-bg {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

body.scrolled .header-bg {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 24px rgba(15,43,60,0.08);
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ocean);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ocean);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.stat-item {
  border-right: 1px solid rgba(15,43,60,0.06);
}

.stat-item:last-child {
  border-right: none;
}

@media (max-width: 1023px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(15,43,60,0.06); }
}

.service-card {
  border-top: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-top-color: var(--ocean);
}

.service-card.popular {
  border-top-color: var(--copper);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(29,111,142,0.04));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.review-card {
  position: relative;
}

.review-card::before {
  content: '\201C';
  font-family: 'Lora', Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--copper);
  opacity: 0.1;
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  pointer-events: none;
}

.faq-item summary {
  list-style: none;
  font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(29,111,142,0.12);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ocean); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
  border-radius: 4px;
}

a, button {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; line-height: 1.12; }
  h2 { font-size: 1.75rem; }

  form input,
  form select,
  form textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .fixed.bottom-6.left-6 { left: 1rem; padding: 0.625rem 0.875rem; }
}

@media (max-width: 640px) {
  #kontakt, #kontakt > div, #kontakt > div > div, #kontakt > div > div > div {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .contact-grid > div, .grid > div {
    min-width: 0;
    max-width: 100%;
  }
}

#contact-form {
  max-width: 100%;
  overflow: hidden;
}

#contact-form .g-recaptcha {
  transform-origin: left center;
  max-width: 100%;
}

@media (max-width: 400px) {
  #contact-form .g-recaptcha {
    transform: scale(0.85);
  }
}

@media (max-width: 340px) {
  #contact-form .g-recaptcha {
    transform: scale(0.75);
  }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .fixed.bottom-6 { padding-bottom: env(safe-area-inset-bottom); }
  footer { padding-bottom: env(safe-area-inset-bottom); }
}

@media print {
  #site-header, .fixed { position: static; }
}
