:root{
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;

  --text: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;

  --border: #e5e7eb;
  --border-strong: #d7dde5;

  --brand: #1d4ed8;
  --brand-dark: #163fb0;
  --brand-soft: #e8eef9;

  --footer-bg: #111827;
  --footer-text: #9ca3af;

  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.05);
  --shadow-card: 0 16px 40px rgba(17, 24, 39, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --header-height: 70px;
  --section-space: 120px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;

  background: url("/assets/img/bg/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea{
  font: inherit;
}

.container{
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section{
  padding: var(--section-space) 0;
  background: transparent;
  backdrop-filter: blur(6px);
}

.section-sm{
  padding: 80px 0;
}

.eyebrow{
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title{
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-text{
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

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

.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.18);
}

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

.btn-secondary{
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

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

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.site-brand{
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-brand img{
  height: 36px;
  width: auto;
}

.site-brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-title{
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.site-brand-subtitle{
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a{
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active{
  background: var(--brand-soft);
  color: var(--brand);
}

.site-header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer{
  margin-top: 120px;
  padding: 40px 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer-links{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-links a:hover{
  color: #fff;
}

@media (max-width: 980px){
  .grid-2,
  .grid-3{
    grid-template-columns: 1fr;
  }

  .site-header-inner{
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-nav{
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 640px){
  :root{
    --section-space: 80px;
  }

  .container{
    width: min(100% - 28px, var(--container));
  }

  .site-header-actions{
    width: 100%;
  }

  .site-header-actions .btn{
    width: 100%;
  }
}

.page-hero{
  padding: 110px 0 70px;
  background: transparent;
}

.page-title{
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-intro{
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-form{
  display:grid;
  gap:18px;
}

.form-row{
  display:grid;
  gap:8px;
}

.form-row label{
  font-weight:600;
  color:var(--text);
}

.form-row input,
.form-row select,
.form-row textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--text);
  outline:none;
  transition:border-color 180ms ease, box-shadow 180ms ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(29,78,216,0.10);
}

.form-row textarea{
  resize:vertical;
  min-height:180px;
}

.form-checkbox{
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:12px;
}

.form-checkbox input{
  margin-top:4px;
}

.form-checkbox label{
  font-weight:400;
  color:var(--text-soft);
}

.form-checkbox a{
  color:var(--brand);
}

/* =========================
   MOBILE / TABLET OVERRIDES
   Desktop bleibt unverändert
   ========================= */

@media (max-width: 1100px) {
  .container,
  .wrapper,
  .content,
  .inner {
    width: min(100%, 100% - 32px);
  }

  .grid,
  .cards,
  .hero-grid,
  .two-col,
  .three-col,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  .wrapper,
  .content,
  .inner {
    width: min(100%, 100% - 24px);
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.15;
  }

  h3 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  p,
  li,
  a,
  button,
  input,
  textarea {
    font-size: 0.98rem;
  }

  .hero,
  .hero-content,
  .hero-text {
    text-align: left;
  }

  .hero-actions,
  .button-row,
  .cta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .hero-actions .btn,
  .button-row .btn,
  .cta-row .btn,
  .hero-actions a,
  .button-row a,
  .cta-row a {
    width: 100%;
    justify-content: center;
  }

  .card,
  .service-card,
  .feature-card,
  .contact-card {
    padding: 22px;
    border-radius: 18px;
  }

  .site-header,
  header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-header .inner,
  header .inner,
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  nav ul,
  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links a,
  nav a {
    font-size: 0.95rem;
  }

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

  .contact-form .row,
  form .row,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  input,
  textarea,
  select,
  button {
    min-height: 48px;
  }

  textarea {
    min-height: 140px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .container,
  .wrapper,
  .content,
  .inner {
    width: min(100%, 100% - 18px);
  }

  .section {
    padding: 44px 0;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.4rem, 7vw, 1.9rem);
  }

  .card,
  .service-card,
  .feature-card,
  .contact-card {
    padding: 18px;
    border-radius: 16px;
  }
}