/* ===== Arcos EIT GmbH – Design System ===== */

:root {
  --cream: #faf5ec;
  --cream-deep: #f2e9d8;
  --charcoal: #2b2a26;
  --charcoal-soft: #56534c;
  --forest: #2c4a44;
  --forest-deep: #1c332f;
  --terracotta: #c96a3f;
  --terracotta-soft: #e8b79a;
  --gold: #d3a24a;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(28, 51, 47, 0.25);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(201, 106, 63, 0.6);
}
.btn-primary:hover { background: #b4562f; }
.btn-secondary {
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--forest-deep);
}
.btn-secondary:hover { background: var(--forest-deep); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--forest-deep);
}

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 42, 38, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-img { height: 38px; width: auto; display: block; }
.logo-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  padding-left: 14px;
  border-left: 2px solid rgba(43,42,38,0.15);
  line-height: 1.3;
  max-width: 12ch;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-badge {
  background: var(--white);
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-flex;
}
.footer-logo-badge img { height: 26px; width: auto; display: block; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.98rem;
}
nav.main-nav a:hover { color: var(--terracotta); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--white);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 28px 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(211, 162, 74, 0.18);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.hero .lede { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--terracotta-soft), var(--forest));
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(28,51,47,0.55), transparent 55%);
}
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  color: var(--forest-deep);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Section basics ===== */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; }

/* ===== Offer cards ===== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.offer-card:hover { transform: translateY(-6px); }
.offer-card-media {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.offer-card-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-body { padding: 28px 30px 32px; position: relative; }
.offer-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--terracotta);
  box-shadow: var(--shadow);
  margin-top: -48px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.offer-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.offer-card p { color: var(--charcoal-soft); font-size: 0.98rem; margin-bottom: 0; }
.offer-card-featured { border: 2px solid var(--terracotta); }
.offer-badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  position: absolute;
  top: 18px;
  right: 18px;
}

/* ===== Values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item { text-align: center; padding: 8px; }
.value-item .value-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; color: var(--charcoal-soft); margin: 0; }

/* ===== Berner Modell steps ===== */
.model-section { background: var(--cream-deep); }
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.model-text p { color: var(--charcoal-soft); }
.model-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}
.model-image img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex; gap: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: "Fraunces", serif;
}
.step h4 { margin-bottom: 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--charcoal-soft); font-size: 0.94rem; }

/* ===== Resources / official links ===== */
.resources-block {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(43,42,38,0.12);
}
.resources-block h3 { font-size: 1.2rem; }
.resources-block > p { color: var(--charcoal-soft); max-width: 60ch; }
.resources-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.resources-list a {
  display: block;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 0.96rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.resources-list a:hover { transform: translateY(-3px); color: var(--terracotta); }
.resources-list a span {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-top: 4px;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 3px solid var(--cream-deep);
  box-shadow: var(--shadow);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card blockquote {
  font-style: italic;
  color: var(--charcoal-soft);
  margin: 0 0 14px;
  font-size: 0.98rem;
}
.team-card cite { font-style: normal; font-weight: 600; color: var(--forest-deep); }

/* ===== Photo banner (lifestyle image with caption) ===== */
.photo-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  aspect-ratio: 21/9;
}
.photo-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(28,51,47,0.75), transparent);
  color: var(--white);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}
@media (max-width: 700px) {
  .photo-banner { aspect-ratio: 4/5; }
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: linear-gradient(135deg, rgba(201,106,63,0.92), rgba(211,162,74,0.92)), var(--cta-img, none) center/cover;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.cta h2 { color: var(--white); }
.cta p { color: rgba(255,255,255,0.9); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ===== Page header (subpages) ===== */
.page-header {
  position: relative;
  background: linear-gradient(135deg, rgba(28,51,47,0.88), rgba(28,51,47,0.94)), var(--header-img, none) center/cover;
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.8); margin: 0; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--cream-deep);
  color: var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-card p { margin: 0; color: var(--charcoal-soft); }
.contact-card a { color: var(--forest-deep); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--terracotta); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row input, .form-row textarea {
  border: 1.5px solid rgba(43,42,38,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--cream);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* ===== Legal / long-form text pages ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow);
}
.legal-content h2 { margin-top: 2em; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--charcoal-soft); }
.legal-content ul { padding-left: 1.2em; }
.legal-content a { color: var(--forest-deep); font-weight: 600; }
.legal-note {
  background: var(--cream-deep);
  border-left: 4px solid var(--terracotta);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .legal-content { padding: 32px 24px; }
}

/* ===== News ===== */
.news-list { display: flex; flex-direction: column; gap: 28px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow);
}
.news-date {
  font-family: "Fraunces", serif;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.05rem;
}
.news-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.news-item p { color: var(--charcoal-soft); }
.news-item a.read-more {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--forest-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta);
}

/* ===== Accessibility: focus states ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Accessibility widget ===== */
.a11y-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  font-family: "Inter", sans-serif;
}
.a11y-fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.45);
}
.a11y-fab:hover { background: var(--terracotta); }
.a11y-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-title { font-size: 1rem; margin-bottom: 14px; color: var(--forest-deep); }
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.a11y-row:last-child { margin-bottom: 0; }
.a11y-row > span { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.a11y-btn-group { display: flex; gap: 6px; }
.a11y-btn-group button {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid rgba(43,42,38,0.2);
  background: var(--cream);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.a11y-btn-group button:hover { background: var(--cream-deep); }
.a11y-toggle-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(43,42,38,0.2);
  background: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.a11y-toggle-btn[aria-pressed="true"] {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* Font scale steps applied to <html> */
html[data-font-scale="-1"] { font-size: 93.75%; }
html[data-font-scale="1"] { font-size: 112.5%; }
html[data-font-scale="2"] { font-size: 125%; }
html[data-font-scale="3"] { font-size: 137.5%; }

/* High contrast mode */
body.a11y-high-contrast {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-high-contrast h1, body.a11y-high-contrast h2, body.a11y-high-contrast h3, body.a11y-high-contrast h4 { color: #fff !important; }
body.a11y-high-contrast .site-header { background: #000 !important; border-bottom: 2px solid #fff; }
body.a11y-high-contrast .logo-text span, body.a11y-high-contrast nav.main-nav a { color: #fff !important; }
body.a11y-high-contrast .hero,
body.a11y-high-contrast .model-section,
body.a11y-high-contrast .page-header,
body.a11y-high-contrast footer.site-footer { background: #000 !important; }
body.a11y-high-contrast .offer-card,
body.a11y-high-contrast .team-card,
body.a11y-high-contrast .contact-card,
body.a11y-high-contrast .form-card,
body.a11y-high-contrast .news-item,
body.a11y-high-contrast .step {
  background: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  color: #fff !important;
}
body.a11y-high-contrast .offer-card p,
body.a11y-high-contrast .team-card blockquote,
body.a11y-high-contrast .news-item p,
body.a11y-high-contrast .step p,
body.a11y-high-contrast .value-item p,
body.a11y-high-contrast .contact-card p,
body.a11y-high-contrast .section-head p { color: #fff !important; }
body.a11y-high-contrast .btn-primary { background: #ffd400 !important; color: #000 !important; }
body.a11y-high-contrast .btn-secondary { border-color: #fff !important; color: #fff !important; }
body.a11y-high-contrast a { color: #ffd400 !important; }
body.a11y-high-contrast .cta { background: #000 !important; border: 2px solid #fff; }

/* Underline links mode */
body.a11y-underline-links a:not(.btn):not(.a11y-fab):not(.a11y-toggle-btn) { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
  .offer-grid, .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .resources-list { grid-template-columns: 1fr; }
  .logo-tagline { display: none; }
  nav.main-nav { display: none; }
}
