/* Unternehmensberatung Dingolfing – Concept-BR GmbH
   Statisches Stylesheet, keine externen Ressourcen. */

:root {
  --ink: #16202a;
  --text: #2a3540;
  --muted: #5a6570;
  --line: #e1ddd6;
  --bg: #ffffff;
  --surface: #f6f4f0;
  --surface-2: #eeebe5;
  --brand: #1e3445;
  --brand-2: #27455a;
  --brand-ink: #c8d4dd;
  --accent: #0a6fa6;
  --accent-ink: #075884;
  --accent-soft: #e6f1f8;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow: 0 1px 2px rgba(22, 32, 42, .05), 0 8px 24px rgba(22, 32, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -200px; z-index: 100; background: var(--bg); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 234px; height: 28px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 16px; }
.brand-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; color: var(--ink); text-decoration: none; font-size: .98rem; font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--surface); color: var(--ink); }
.main-nav a[aria-current="page"], .main-nav a.is-section { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.main-nav .nav-cta { border: 1px solid #b9b3a8; margin-left: 8px; padding: 9px 18px; border-radius: 999px; }
.main-nav .nav-cta[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; border-radius: 999px; }

.has-sub { position: relative; }
.sub-nav { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(22, 32, 42, .18); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
.sub-nav a { color: var(--ink); padding: 9px 12px; font-size: .95rem; }
.sub-nav a:hover, .sub-nav a:focus-visible { background: var(--surface); color: var(--ink); }
.sub-nav a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--ink); border: 1px solid #b9b3a8; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .95rem; cursor: pointer; }
  .nav-toggle-icon { position: relative; width: 18px; height: 12px; }
  .nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle-icon::before { top: 0; }
  .nav-toggle-icon span { top: 5px; }
  .nav-toggle-icon::after { top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }

  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(22, 32, 42, .08); padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:hover { background: transparent; }
  .main-nav a[aria-current="page"], .main-nav a.is-section { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; border-radius: 0; }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .sub-nav a { color: var(--muted); font-size: .98rem; padding: 10px 4px; }
  .sub-nav a:hover, .sub-nav a:focus-visible { background: transparent; color: var(--ink); }
  .sub-nav a[aria-current="page"] { background: transparent; color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; border-radius: 0; }
  .main-nav .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 999px; padding: 12px 18px; border: 1px solid #b9b3a8; }
  .main-nav .nav-cta[aria-current="page"] { box-shadow: none; padding-left: 18px; }
  .brand-text { padding-left: 12px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 184px; height: 22px; }
  .brand-text { padding-left: 10px; }
  .brand-title { font-size: .95rem; }
  .brand-sub { font-size: .66rem; }
  .nav-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; flex: none; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: #b9b3a8; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--accent-soft); color: var(--brand); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; padding: 48px 0 40px; }
.hero-content .lead { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero h1 { max-width: 13em; }

@media (min-width: 900px) {
  .hero { min-height: clamp(560px, 50vw, 720px); display: flex; align-items: center; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { object-position: 62% 50%; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(246, 244, 240, .96) 0%, rgba(246, 244, 240, .92) 42%, rgba(246, 244, 240, 0) 66%); }
  .hero-content { z-index: 2; padding: 72px 0; width: 100%; }
  .hero-text { max-width: 560px; }
}
@media (max-width: 899px) {
  .hero-media { aspect-ratio: 4 / 3; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-surface { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.about-text p { font-size: 1.125rem; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.stat-value { display: block; font-family: var(--font-display); font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 650; color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }

.focus-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.focus-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; color: var(--ink); line-height: 1.4; }
.tag-list li.is-key { background: var(--accent-soft); border-color: #bcd9ea; color: var(--accent-ink); font-weight: 600; }
.focus-box .tag-list + h3 { margin-top: 22px; }

/* Leistungskarten */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #c9c3b8; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-num { font-size: .82rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 18px; }
.card h2, .card h3 { font-size: 1.3rem; margin-bottom: .45em; letter-spacing: -.01em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }
.card-more { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--accent); }
@media (min-width: 960px) {
  .cards-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards-5 > li { grid-column: span 2; }
  .cards-5 > li:nth-child(n+4) { grid-column: span 3; }
}

/* Kontaktband */
.cta-band { background: var(--brand); color: var(--brand-ink); padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-band p { margin: 0; max-width: 36rem; font-size: 1.1rem; }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--surface); padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; margin: 0; }
.page-head h1 { margin-bottom: .4em; }

.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #a59f95; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.layout { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 1.8em 0; color: var(--ink); font-size: 1.1rem; }
.callout p { margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 1.4em 0; padding: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 72px; background: var(--surface); border-radius: var(--radius-sm); margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 650; font-size: 1rem; display: grid; place-items: center; line-height: 1; }
.steps strong { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 2px; }
.steps p { margin: 0; }
.steps.compact > li { padding-top: 16px; padding-bottom: 16px; }
.steps.compact > li::before { top: 12px; }

.m-list { list-style: none; padding: 0 !important; margin: 1.4em 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.m-list li { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; line-height: 1.5; }
.m-list strong { display: block; color: var(--brand); font-size: 1.05rem; }

.aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .aside-inner { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; } }
@media (max-width: 959px) { .aside-inner { display: flex; flex-direction: column; gap: 20px; } }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.aside-box h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.aside-nav { list-style: none; margin: 0; padding: 0; }
.aside-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.aside-nav li:last-child a { border-bottom: 0; }
.aside-nav a:hover { color: var(--accent); }
.aside-nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.aside-contact { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.aside-contact h2 { color: var(--brand-ink); }
.aside-contact p { margin: 0 0 14px; font-size: .98rem; }
.aside-contact a { color: #fff; font-weight: 600; text-decoration: none; display: block; padding: 4px 0; }
.aside-contact a:hover { text-decoration: underline; color: #fff; }

.pager { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: .85rem; color: var(--muted); }
.pager .next { text-align: right; }
@media (min-width: 600px) { .pager .next:only-child { grid-column: 2; } }

/* Kontaktseite */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--bg); }
.contact-card h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.contact-card .big { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.01em; display: inline-block; margin-bottom: 18px; }
.contact-card a.big:hover { color: var(--accent); }
.contact-card address { font-style: normal; font-size: 1.1rem; color: var(--ink); line-height: 1.6; margin-bottom: 0; }

/* Rechtstexte */
.legal { max-width: 46rem; padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); font-size: 1rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.8em; }
.legal h2.label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2em 0 .5em; }
.legal .block { margin: 0 0 1.2em; }
.legal ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: #15242f; color: #aebbc5; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e3e9ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-brand img { width: 201px; height: 24px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bottom ul { display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .aside, .cta-band, .nav-toggle, .pager { display: none !important; }
  .layout { display: block; }
}
