/* ══════════════════════════════════════════════════════════
   Karner IT — Stylesheet
   CI: Gold (#d4a843) + Weinrot (#8b1a2b) auf Weiss
   ══════════════════════════════════════════════════════════ */

:root {
  --gold: #d4a843;
  --gold-light: #e8c96a;
  --gold-dark: #b8912e;
  --wine: #8b1a2b;
  --wine-light: #a62d3e;
  --wine-pale: rgba(139, 26, 43, 0.06);
  --text: #2c2c2c;
  --text-light: #4a4a4a;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9f9f7;
  --bg-dark: #2c2c2c;
  --border: #e2e0db;
  --border-light: #f0eeea;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 6px;
  --max-width: 1100px;
  --header-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .site-footer {
  margin-top: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wine-light); }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--wine);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
  color: #fff;
}

/* ── Focus Indicators ── */
a:focus-visible,
.btn:focus-visible,
.service-card:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
.main-nav a:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

/* ── Gold Top Bar ── */
.gold-bar {
  height: 5px;
  background: var(--gold);
}

/* ── Header ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo img {
  height: 32px;
  width: auto;
}
.footer-logo img {
  height: 28px;
  width: auto;
}
.logo span { color: var(--wine); }

.logo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: -2px;
  letter-spacing: 0.02em;
}

/* ── Navigation ── */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── Hero Section ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero h1 strong {
  font-weight: 600;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--wine);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero .intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.btn-primary:hover {
  background: var(--wine-light);
  border-color: var(--wine-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}
.btn-outline:hover {
  background: var(--wine);
  color: #fff;
}

/* ── Section Containers ── */
.section {
  padding: 4rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.section-header h2 strong {
  font-weight: 600;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.8rem;
  font-size: 1rem;
}

/* ── Service Cards (Startseite) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
  border-top: 3px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}

.service-card .card-domain {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card .card-ref {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 1rem;
  display: block;
}

/* ── Quote Block ── */
.quote-block {
  background: var(--bg-alt);
  border-left: 4px solid var(--wine);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--wine);
  line-height: 1.6;
}

.quote-block cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Trust / Numbers ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
}

.trust-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── Pillar Cards (Arbeitsweise) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 2rem;
  border-top: 4px solid var(--gold);
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 0.3rem;
}

.pillar-card .pillar-tagline {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ── Content Pages ── */
.page-hero {
  padding: 3.5rem 2rem 2.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text);
}

.page-hero h1 strong {
  font-weight: 600;
}

.page-hero .subtitle {
  color: var(--wine);
  font-size: 1rem;
  margin-top: 0.3rem;
}

.content {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.content p { margin-bottom: 1rem; }

.content ul, .content ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
}

.content li { margin-bottom: 0.4rem; }

/* ── Referenzen: Verschwiegenheit ── */
.confidential-hero {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-alt);
}

.confidential-hero .shield {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.confidential-hero .statement {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}

.confidential-hero .statement strong {
  font-weight: 600;
  color: var(--wine);
}

.confidential-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.competence-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.competence-card h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.competence-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.competence-card li {
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
}

.competence-card li:last-child { border-bottom: none; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--wine);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand .footer-logo span { color: var(--gold); }

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-right: 1.5rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ── Bio Layout ── */
.bio-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo {
  border-radius: var(--radius);
  border: 3px solid var(--border);
}

.bio-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wine);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.bio-details h3:first-child { margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .bio-layout { grid-template-columns: 1fr; }
  .bio-photo { max-width: 250px; }
  .competence-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 1.6rem; }

  .main-nav ul { display: none; }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: block; }
}
