/* ==========================================================================
   stucki.co — Design System
   Richard Stucki · Senior Advisor · Baubewilligungsverfahren & Einsprachen
   ========================================================================== */

:root {
  /* Palette */
  --cream: #F5F1EA;
  --cream-deep: #EFE9DF;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --ink-quiet: #6B6B6B;
  --bordeaux: #891720;
  --bordeaux-deep: #6B1119;
  --rule: #D8D1C3;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --measure: 62ch;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section: clamp(4rem, 10vh, 7rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--bordeaux); text-decoration: none; border-bottom: 1px solid currentColor; transition: color 0.2s ease; }
a:hover { color: var(--bordeaux-deep); }

/* Layout */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 760px;
}

/* =========================================================
   Header — understated, single line
   ========================================================= */
.site-header {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: none;
}
.brand:hover { color: var(--bordeaux); }
.brand em {
  font-style: italic;
  color: var(--ink-quiet);
  font-weight: 400;
}
.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.nav a {
  color: var(--ink-soft);
  border: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--bordeaux);
}

/* =========================================================
   Hero — typography only. No images. No renders.
   ========================================================= */
.hero {
  padding: clamp(4rem, 12vh, 9rem) 0 clamp(3rem, 8vh, 6rem);
}
.hero .kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}
.hero h1 .accent {
  color: var(--bordeaux);
  font-style: italic;
}
.hero .lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 2.5rem;
  font-weight: 400;
}
.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--bordeaux);
  border: none;
  margin: 0 0 2.5rem;
}

/* =========================================================
   Buttons — two styles, both restrained
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--bordeaux);
  color: var(--cream);
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--bordeaux-deep);
  border-color: var(--bordeaux-deep);
}
.btn + .btn { margin-left: 0.75rem; }

/* =========================================================
   Sections — generous whitespace
   ========================================================= */
section {
  padding: var(--section) 0;
}
section + section {
  border-top: 1px solid var(--rule);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 1.5rem;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 1.5rem;
  max-width: 28ch;
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
h4 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 0.75rem;
}
p { margin: 0 0 1.2rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* =========================================================
   Credential strip — the quiet credibility row
   ========================================================= */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 0;
}
.credentials .cred {
  font-size: 0.92rem;
}
.credentials .cred-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.credentials .cred-value {
  color: var(--ink);
  line-height: 1.4;
}

/* =========================================================
   Leistungen — three service tiers
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3rem;
}
.service {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.service:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) {
  .service {
    grid-template-columns: 60px 1fr;
    gap: 2.5rem;
  }
}
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--bordeaux);
  line-height: 1;
  padding-top: 0.25rem;
}
.service-body h3 { margin-bottom: 0.5rem; }
.service-body .service-meta {
  font-size: 0.85rem;
  color: var(--ink-quiet);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.service-body p { color: var(--ink-soft); }

/* =========================================================
   Referenzen — case descriptions, no photos
   ========================================================= */
.refs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3rem;
}
.ref {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}
.ref:last-child { border-bottom: 1px solid var(--rule); }
.ref-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.ref h3 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  max-width: 28ch;
}
.ref .ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .ref .ref-grid { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
}
.ref-grid h4 { margin-bottom: 0.5rem; }
.ref-grid p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Fachbeiträge index — list of articles
   ========================================================= */
.posts {
  margin-top: 3rem;
}
.post-item {
  display: block;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: none;
  color: var(--ink);
  transition: padding-left 0.3s ease;
}
.post-item:last-child { border-bottom: 1px solid var(--rule); }
.post-item:hover {
  padding-left: 1rem;
  color: var(--bordeaux);
}
.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.post-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 500;
  max-width: 32ch;
}

/* =========================================================
   Article — single post layout
   ========================================================= */
.article {
  padding: clamp(3rem, 8vh, 5rem) 0 var(--section);
  max-width: 720px;
  margin: 0 auto;
}
.article .back {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 3rem;
  border: none;
}
.article .back:hover { color: var(--bordeaux); }
.article-meta {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1rem;
  font-weight: 500;
}
.article h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 2rem;
  max-width: 30ch;
}
.article .lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-style: italic;
}
.article h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.article p, .article li {
  font-size: 1.05rem;
  line-height: 1.7;
}
.article ul, .article ol {
  max-width: var(--measure);
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}
.article li { margin-bottom: 0.5rem; }
.article blockquote {
  border-left: 2px solid var(--bordeaux);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-quiet);
}

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-block h4 { margin-bottom: 0.5rem; }
.contact-block .big {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
}
.contact-block .big a { border: none; }
.contact-block .big a:hover { border-bottom: 1px solid currentColor; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-quiet);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--ink-quiet);
  border: none;
}
.site-footer a:hover { color: var(--bordeaux); }
.site-footer .footer-links { display: flex; gap: 1.5rem; }

/* =========================================================
   Utilities & motion
   ========================================================= */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero .kicker,
  .hero h1,
  .hero .lede,
  .hero-rule,
  .hero .cta-row {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease-out forwards;
  }
  .hero .kicker   { animation-delay: 0.05s; }
  .hero h1        { animation-delay: 0.15s; }
  .hero-rule      { animation-delay: 0.30s; }
  .hero .lede     { animation-delay: 0.40s; }
  .hero .cta-row  { animation-delay: 0.55s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Print */
@media print {
  .nav, .site-footer, .btn { display: none; }
  body { background: white; color: black; }
}

/* ==========================================================================
   Wordmark — Variant B with subtitle
   ========================================================================== */
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: none;
  text-decoration: none;
}
.brand-block:hover .brand-main { color: var(--bordeaux-deep); }
.brand-block:hover .brand-main .tld { color: var(--bordeaux-deep); }

.brand-main {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  line-height: 1;
  transition: color 0.2s ease;
}
.brand-main .tld {
  color: var(--bordeaux);
  font-weight: 400;
  transition: color 0.2s ease;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 500;
}

/* ==========================================================================
   Header with logo mark — replaces typographic wordmark
   ========================================================================== */
.brand-block-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: none;
  text-decoration: none;
}
.brand-block-logo:hover .brand-mark { transform: translateY(-1px); }
.brand-block-logo:hover .brand-sub { color: var(--ink); }

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.005em;
}
.brand-name .tld {
  color: var(--bordeaux);
  font-weight: 400;
}
