/* ── Shared styles for Hochstrasser Immobilien ── */

a:focus-visible, button:focus-visible { outline: 2px solid #0b63ff; outline-offset: 2px; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-size: 14px; font-weight: 600; text-decoration: none; z-index: 100;
}
.skip-link:focus, .skip-link:focus-visible, .skip-link:focus-within {
  position: fixed; left: 0; top: 0; width: auto; height: auto; overflow: visible; clip: auto; z-index: 999;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #666;
  --line: #eaeaea;
  --accent: #0b63ff;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, system-ui, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html { -webkit-text-size-adjust: 100%; }
body { padding-top: 60px; }

a { color: inherit; }

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@supports (padding: max(0px)) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; letter-spacing: .2px; }
.logo img, .logo picture { height: 40px; display: block; margin-top: 4px; }
.logo span { font-weight: 500; color: var(--muted); }

/* ── Desktop Nav ── */
.desktop-nav { display: flex; gap: 18px; align-items: center; }
.desktop-nav a {
  text-decoration: none; opacity: .92;
  border-radius: 12px; padding: 8px 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.desktop-nav a:hover {
  opacity: 1; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border: 1px solid #e6e6e6; background: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 12px 16px;
  border-radius: 999px; border: 1px solid var(--line); text-decoration: none;
  cursor: pointer; font: inherit;
}
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.small:hover {
  opacity: 1; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border: 1px solid #e6e6e6; background: #fff;
}

/* ── Section ── */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: #fafafa; }

/* ── CTA Full-width ── */
.cta-full { background: #0a0a0a; color: #fff; text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.cta-inner p { color: #d1d1d1; margin-top: 6px; }

/* ── Form ── */
#kontakt { scroll-margin-top: 0; position: relative; z-index: 2; background: var(--bg); padding: 60px 0; overflow: hidden; }
.form { max-width: 860px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
input, textarea, select {
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-weight: inherit;
  font-size: 16px !important; max-width: 100%; min-width: 0;
}
textarea { height: 150px; resize: none; }
.fineprint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.fineprint a { text-decoration: underline; }

/* ── Footer ── */
.footer { padding: 40px 0 20px; text-align: center; border-top: 1px solid var(--line); }
.footer-nav { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-nav a { color: var(--text); font-size: 13px; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyr { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: -0.01em; }

/* ── Mobile ── */
@media (max-width: 680px) {
  .container { padding: 0 24px; }
  .logo img { height: 28px; margin-top: 2px; }
  .desktop-nav .btn.small { font-size: 13px; padding: 6px 10px; border-radius: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  input, textarea { width: 100%; }
}
@media (max-width: 960px) {
  input, select, textarea { font-size: 16px; }
  .form-grid input, .form-grid textarea { width: 100%; min-width: 0; }
}
