/* ===================================================================
   stic gmbh – Stylesheet
   =================================================================== */

/* --- Lokale Schriften --- */
@font-face {
  font-family: 'Kumbh Sans';
  src: url("fonts/KumbhSans-Regular.16a5b18ba842.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kumbh Sans';
  src: url("fonts/KumbhSans-Bold.b7f8778fe047.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --green: #00D980;
  --green-dark: #007746;
  --dark: #1F3041;
  --gray: #f5f5f5;
  --error: #c00;
  --section-pad-y: 72px;
  --section-pad-x: 24px;
  --content-width: 640px;
  --content-width-wide: 720px;
  --nav-width: 960px;
}

/* --- Reset & Base --- */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark);
  background: #fff;
}

h1, h2, h3 {
  font-family: 'Kumbh Sans', sans-serif;
  line-height: 1.4;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

/* Focus ring: visible for keyboard users, hidden for mouse clicks via :focus-visible */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip navigation link: visually hidden until focused by keyboard */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 16px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* --- Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--gray);
  box-shadow: 0 2px 8px rgba(15,23,29,0.12);
}

nav {
  max-width: var(--nav-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 40px;
  width: auto;
}

nav ul { list-style: none; display: flex; align-items: center; gap: 8px; }
nav ul li { display: flex; }

nav ul a {
  /* Padding increases touch target to ~44px height (nav is 64px) and adds horizontal area */
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  border-radius: 3px;
}

nav ul a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }

nav ul a.active {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Hero --- */
.hero {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 100px 24px;
}

.hero h1 { font-size: 44px; margin-bottom: 16px; }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }

.hero-slogan {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: var(--content-width-wide);
  margin-left: auto;
  margin-right: auto;
}

.hero-slogan-side:first-child { text-align: right; }
.hero-slogan-side:last-child { text-align: left; }

.hero-slogan-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.slogan-icon { height: 0.9em; width: auto; flex-shrink: 0; position: relative; top: -2px; }

/* --- Button ---
   Dark text on bright green: #1F3041 on #00D980 = 7.2:1 → WCAG AAA ✓
   Hover uses dark green bg: #fff on #007746 = 5.6:1 → WCAG AA ✓ */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  padding: 12px 32px;
  border-radius: 100px;
  font-family: 'Kumbh Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Margin utility used by buttons/forms needing spacing from preceding content */
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* --- About --- */
.about {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}

/* Shared label style used across sections */
.label { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--green-dark); font-weight: 700; margin-bottom: 8px; }
.brand-letter { color: var(--green-dark); font-weight: 700; }
footer .brand-letter { color: var(--green); }
.about h2 { font-size: 28px; margin-bottom: 24px; }
.about p { margin-bottom: 20px; }

.about cite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-style: normal;
  font-size: 16px;
  color: var(--dark);
  margin-top: 16px;
}

.cite-name { display: block; font-weight: 700; text-align: left; line-height: 1.3; }
.cite-role { display: block; font-size: 13px; color: var(--dark); text-align: left; }

.portrait {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- References --- */
.references {
  background: var(--gray);
  text-align: center;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.references .label { margin-bottom: 20px; }

.references p {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* --- Inquiry Banner ---
   Heading: #1F3041 on #00D980 = 7.2:1 → WCAG AAA ✓
   Button bg: #fff on #00D980; button text: #007746 on #fff = 5.6:1 → WCAG AA ✓ */
.inquiry {
  background: var(--green);
  text-align: center;
  padding: 48px 24px;
}

.inquiry h2 { font-size: 26px; color: var(--dark); margin-bottom: 16px; }

.inquiry a {
  display: inline-block;
  background: #fff;
  color: var(--green-dark);
  padding: 10px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.inquiry a:hover { background: var(--dark); color: #fff; }

/* --- Subpage Layout (gemeinsamer Wrapper für alle Unterseiten) --- */
.subpage-section {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.subpage-section h1 { font-size: 28px; margin-bottom: 32px; color: var(--green-dark); }

/* --- Contact Form --- */
.contact-section.centered {
  text-align: center;
  padding-top: 96px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-family: 'Kumbh Sans', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s;
}

/* Custom focus style for form fields (replaces browser default) */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(0, 119, 70, 0.15);
}

.form-group textarea { resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #767676; }

.form-errors {
  border-left: 3px solid var(--error);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--error);
}

.form-errors ul { list-style: none; }
.field-error { font-size: 13px; color: var(--error); margin-top: 4px; }
.required-mark { color: var(--green-dark); text-decoration: none; font-style: normal; }

/* Honeypot: never shown to real users */
.honeypot { display: none; }

/* --- Success Page --- */
.success-icon { width: 64px; height: 64px; margin-bottom: 24px; }

.success-box {
  display: inline-block;
  background: var(--gray);
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 16px 28px;
  margin: 24px 0 32px;
  font-size: 16px;
  color: var(--green-dark);
}

/* --- Footer --- */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 56px 24px 32px;
}

.footer-grid {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-grid > div { flex: 1; min-width: 160px; }
.footer-about { flex: 0.8; }

footer h2 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

footer p, footer address { font-style: normal; font-size: 14px; line-height: 1.9; }
footer a { color: #ccc; }
footer a:hover { color: var(--green); }

.footer-icon {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  fill: var(--green);
  flex-shrink: 0;
  vertical-align: middle;
}

.footer-address {
  display: inline-flex;
  align-items: flex-start;
}

.footer-address .footer-icon { margin-top: 4px; }

/* #aaa on #1F3041 = 5.8:1 → WCAG AA pass */
.footer-meta { margin-top: 16px; font-size: 13px; color: #aaa; }

.footer-legal { display: block; margin-top: 4px; }

/* #aaa on #1F3041 = 5.8:1 → WCAG AA ✓ */
.footer-copy {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
  color: #aaa;
}

/* --- Engagement Page --- */
.engagement-intro { margin-bottom: 40px; }

.engagement-item {
  padding: 32px 0;
  border-top: 1px solid var(--gray);
}

.engagement-item h2 { font-size: 20px; margin-bottom: 12px; }
.engagement-item p { margin-bottom: 12px; }

.engagement-item-body { display: flex; gap: 24px; align-items: flex-start; }

.engagement-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.stic-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stic-list li {
  position: relative;
  padding-left: 22px;
}

.stic-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background-image: url("images/favicon.f78495d3cf12.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.engagement-slogan-text {
  margin-top: 16px;
  font-style: italic;
  color: var(--green-dark);
  font-weight: 700;
}

@media (max-width: 600px) {
  .engagement-item-body { flex-direction: column; }
  .engagement-img { width: 100%; height: auto; }
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-section h2 { font-size: 20px; margin-top: 40px; margin-bottom: 12px; }
.legal-section h3 { font-size: 16px; margin-top: 24px; margin-bottom: 8px; }
.legal-section p,
.legal-section address { font-style: normal; line-height: 1.9; margin-bottom: 12px; }
.legal-section ul { padding-left: 24px; margin-bottom: 12px; }
.legal-section li { margin-bottom: 8px; line-height: 1.9; }

/* --- Back-to-top Button ---
   #1F3041 on #00D980 = 7.2:1 → WCAG AAA ✓ (same as .btn) */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--dark);
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s;
  z-index: 50;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover { background: var(--green-dark); color: #fff; }

/* --- Responsive: Tablet (768px) --- */
@media (max-width: 768px) {
  :root { --section-pad-y: 56px; }
  .hero { padding: 60px 24px; }
  .contact-section.centered { padding-top: 72px; }
}

/* --- Responsive: Mobile (600px) --- */
@media (max-width: 600px) {
  :root { --section-pad-y: 48px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 48px 16px; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .btn { width: 100%; text-align: center; }
  .legal-section h2 { font-size: 18px; margin-top: 28px; margin-bottom: 10px; }
}
