/*
Theme Name: Horst Kandutsch Advisory
Theme URI: https://horstkandutsch.at
Author: Softwaregutachten.at
Description: Personal advisory website for Dr. Horst A. Kandutsch.
Version: 1.2.0
Text Domain: hk-advisory
*/

:root {
  --paper: #f5f1e8;
  --paper-strong: #ebe3d4;
  --ink: #172522;
  --muted: #596965;
  --teal: #0c514a;
  --teal-light: #dce9e3;
  --copper: #c27045;
  --copper-soft: #ecd3c2;
  --line: rgba(23, 37, 34, .16);
  --white: #fffdf8;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(34, 48, 43, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--white); background: var(--teal); }

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; padding: 28px clamp(22px,5vw,80px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.brand__text strong { font-family: var(--serif); font-size: 20px; letter-spacing: .04em; text-transform: none; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.button)::after { content: ""; display: block; width: 0; height: 1px; background: currentColor; transition: width .25s ease; }
.site-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; border: 0; background: transparent; color: inherit; font: inherit; }

.hero { position: relative; min-height: 820px; padding: 150px clamp(22px,5vw,80px) 72px; background: radial-gradient(circle at 82% 15%, rgba(194,112,69,.22), transparent 32%), linear-gradient(120deg, #f9f5ed 0%, #e8e6d9 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(23,37,34,.06) 1px, transparent 1px), linear-gradient(90deg,rgba(23,37,34,.06) 1px,transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, #000, transparent 80%); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); align-items: end; gap: clamp(32px,7vw,112px); max-width: 1440px; min-height: 590px; margin: 0 auto; }
.eyebrow { margin: 0 0 22px; color: var(--copper); font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font-family: var(--serif); font-size: clamp(68px,8vw,126px); font-weight: 500; letter-spacing: -.055em; line-height: .84; }
.hero h1 em { color: var(--teal); font-style: italic; }
.hero__lead { max-width: 690px; margin: 34px 0 0; font-size: clamp(19px,2vw,25px); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 25px; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal); color: var(--white); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .04em; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--teal); }
.hero__portrait { position: relative; min-height: 610px; }
.hero__portrait::before { content: ""; position: absolute; inset: 6% 0 0 8%; border-radius: 52% 48% 5% 5% / 38% 42% 5% 5%; background: var(--teal); }
.hero__portrait::after { content: ""; position: absolute; right: -5%; bottom: 8%; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.52); }
.hero__portrait img { position: absolute; z-index: 2; inset: auto 0 0; width: 112%; max-width: none; filter: drop-shadow(0 30px 25px rgba(10,28,25,.18)); }
.hero__note { position: absolute; z-index: 3; right: -2%; top: 15%; width: 180px; padding: 18px; background: var(--white); box-shadow: var(--shadow); font-family: var(--serif); font-size: 20px; line-height: 1.2; transform: rotate(2deg); }

.section { padding: clamp(80px,10vw,150px) clamp(22px,5vw,80px); }
.section__inner { max-width: 1280px; margin: 0 auto; }
.intro { background: var(--ink); color: var(--white); }
.intro__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px,8vw,130px); }
.kicker { color: #ddb090; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.intro h2, .section-title { margin: 0; font-family: var(--serif); font-size: clamp(48px,6vw,82px); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
.intro__copy { font-size: clamp(20px,2.1vw,29px); line-height: 1.45; }
.intro__copy p:first-child { margin-top: 0; }
.fact-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 70px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.fact { padding: 28px; background: var(--ink); }
.fact strong { display: block; color: #ddb090; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.fact span { color: rgba(255,255,255,.72); font-size: 14px; }

.services { background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 60px; }
.section-heading p { max-width: 480px; margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.service-card { position: relative; min-height: 330px; padding: clamp(28px,4vw,52px); border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.service-card:nth-child(2), .service-card:nth-child(3) { background: var(--teal-light); }
.service-card__number { color: var(--copper); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.service-card h3 { max-width: 470px; margin: 46px 0 16px; font-family: var(--serif); font-size: clamp(34px,4vw,53px); font-weight: 500; line-height: 1; }
.service-card p { max-width: 560px; color: var(--muted); }
.service-card::after { content: "↗"; position: absolute; top: 34px; right: 34px; font-size: 24px; }

.approach { background: var(--paper-strong); }
.steps { margin-top: 65px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 100px .8fr 1.2fr; gap: 35px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step__number { color: var(--copper); font-family: var(--serif); font-size: 24px; }
.step h3 { margin: 0; font-family: var(--serif); font-size: clamp(30px,3vw,44px); font-weight: 500; }
.step p { margin: 0; color: var(--muted); }

.quote-section { position: relative; color: var(--white); background: var(--teal); }
.quote-section blockquote { max-width: 1120px; margin: 0; font-family: var(--serif); font-size: clamp(42px,6vw,82px); font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
.quote-section blockquote em { color: #e7b99a; }
.quote-section cite { display: block; margin-top: 34px; font-family: var(--sans); font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.ai-ready { background: var(--white); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px,9vw,130px); align-items: center; }
.ai-visual { position: relative; min-height: 520px; border-radius: 2px; background: var(--ink); overflow: hidden; }
.ai-visual__orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.ai-visual__orb--one { width: 330px; height: 330px; top: -50px; right: -45px; background: radial-gradient(circle at 35% 30%, #e9b798, var(--copper)); }
.ai-visual__orb--two { width: 260px; height: 260px; bottom: -60px; left: -35px; background: radial-gradient(circle at 35% 30%, #d9eee4, #327369); }
.ai-visual__lines { position: absolute; inset: 13%; border: 1px solid rgba(255,255,255,.35); transform: rotate(7deg); }
.ai-visual__label { position: absolute; z-index: 2; left: 10%; bottom: 10%; max-width: 330px; color: white; font-family: var(--serif); font-size: 42px; line-height: 1; }
.ai-copy h2 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(47px,5vw,72px); font-weight: 500; line-height: .98; }
.ai-copy p { color: var(--muted); }
.check-list { margin: 32px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--copper); font-weight: 900; }

.cta { text-align: center; background: var(--copper-soft); }
.cta h2 { max-width: 1000px; margin: 0 auto 28px; font-family: var(--serif); font-size: clamp(52px,7vw,96px); font-weight: 500; letter-spacing: -.04em; line-height: .92; }
.cta p { max-width: 720px; margin: 0 auto 34px; font-size: 20px; }
.site-footer { padding: 34px clamp(22px,5vw,80px); background: var(--ink); color: rgba(255,255,255,.74); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 30px; max-width: 1440px; margin: auto; font-size: 13px; }
.site-footer a { color: white; }

.legal-page { min-height: 70vh; padding-top: 160px; }
.legal-page .entry-content { max-width: 880px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(54px,7vw,90px); font-weight: 500; }

.maintenance { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: radial-gradient(circle at 85% 10%, rgba(194,112,69,.3), transparent 35%), var(--paper); }
.maintenance__card { position: relative; width: min(1060px,100%); padding: clamp(36px,8vw,92px); border: 1px solid var(--line); background: rgba(255,253,248,.88); box-shadow: var(--shadow); overflow: hidden; }
.maintenance__card::after { content: ""; position: absolute; width: 310px; height: 310px; right: -160px; bottom: -160px; border-radius: 50%; background: var(--teal); }
.maintenance h1 { max-width: 800px; margin: 36px 0 24px; font-family: var(--serif); font-size: clamp(56px,8vw,104px); font-weight: 500; letter-spacing: -.05em; line-height: .88; }
.maintenance p { max-width: 650px; color: var(--muted); font-size: 19px; }
.maintenance__status { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.maintenance__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 6px rgba(194,112,69,.16); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 82px; right: 22px; flex-direction: column; align-items: stretch; width: min(320px,calc(100vw - 44px)); padding: 24px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding-top: 135px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { min-height: 560px; max-width: 620px; width: 100%; margin: 0 auto; }
  .intro__grid, .ai-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .step p { grid-column: 2; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .site-header { padding: 20px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__text span { display: none; }
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: clamp(58px,19vw,88px); }
  .hero__portrait { min-height: 430px; }
  .hero__note { right: 0; top: 6%; width: 145px; font-size: 16px; }
  .section { padding-inline: 20px; }
  .fact-row, .service-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .step { grid-template-columns: 42px 1fr; gap: 16px; }
  .site-footer__inner { flex-direction: column; }
}

/* Header and portrait refinements. */
.site-header {
  min-height: 118px;
  padding-block: 22px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(23, 37, 34, .08);
  background: rgba(249, 245, 237, .78);
  backdrop-filter: blur(12px);
}
.site-header__inner { min-height: 72px; gap: 38px; }
.brand { flex: 0 0 auto; gap: 17px; }
.brand__mark {
  width: 62px;
  height: 62px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand__text { gap: 4px; font-size: 11px; line-height: 1.15; }
.brand__text strong { font-size: 22px; line-height: 1; }
.site-nav { gap: clamp(18px, 2vw, 32px); }
.site-nav__phone { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.site-nav__phone span { color: var(--copper); font-size: 9px; letter-spacing: .16em; }
.hero { padding-top: 178px; }
.hero__portrait img {
  right: -4%;
  bottom: -1%;
  left: auto;
  width: 106%;
}

@media (max-width: 1180px) {
  .site-nav { display: none; position: absolute; top: 104px; right: 22px; flex-direction: column; align-items: stretch; width: min(340px, calc(100vw - 44px)); padding: 26px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-nav__phone { padding-top: 14px; border-top: 1px solid var(--line); }
}

@media (max-width: 650px) {
  .site-header { min-height: 94px; padding: 14px 20px; }
  .site-header__inner { position: relative; min-height: 64px; gap: 16px; }
  .brand { gap: 11px; }
  .brand__mark { width: 48px; height: 48px; font-size: 13px; }
  .brand__text strong { max-width: 190px; font-size: 17px; line-height: 1.05; }
  .nav-toggle {
    position: absolute;
    top: 8px;
    right: 0;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .site-nav { top: 82px; }
  .hero { padding-top: 130px; }
  .hero__content { min-width: 0; }
  .hero h1 { max-width: 100%; font-size: clamp(48px, 15vw, 62px); line-height: .9; overflow-wrap: anywhere; }
  .hero__lead { font-size: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .button { width: 100%; }
  .hero__portrait img { right: -8%; width: 112%; }
}


/* Balanced header and portrait spacing — 2026-09-21 */
@media (min-width: 1181px) {
  .site-header {
    min-height: 132px;
    padding-block: 30px;
  }
  .site-header__inner {
    min-height: 70px;
  }
  .hero {
    padding-top: 198px;
  }
  .hero__portrait img {
    right: 4%;
    bottom: 0;
    width: 82%;
  }
  .hero__note {
    top: 20%;
    right: 2%;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .site-header {
    min-height: 112px;
    padding-block: 24px;
  }
  .site-header__inner {
    min-height: 64px;
  }
  .hero {
    padding-top: 170px;
  }
  .hero__portrait img {
    right: 0;
    width: 94%;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding-block: 22px;
  }
  .hero {
    padding-top: 154px;
  }
  .hero__portrait {
    margin-top: 26px;
  }
  .hero__portrait img {
    right: 0;
    width: 100%;
  }
}

@media (max-width: 650px) {
  .site-header {
    min-height: 104px;
    padding: 18px 20px;
  }
  .hero {
    padding-top: 146px;
  }
  .hero__portrait img {
    right: -2%;
    width: 100%;
  }
}


/* Normalize WordPress auto-paragraphs inside design grids — 2026-09-21 */
.service-card > p:empty,
.step > p:empty {
  display: none;
}
