/* ==========================================================================
   Across Barriers GmbH — Modern stylesheet
   Responsive, semantic, accessible. German-language site.
   ========================================================================== */

:root {
  --color-primary: #0b5d6e;        /* deep teal */
  --color-primary-dark: #084a58;
  --color-accent: #17a2b8;         /* bright teal */
  --color-accent-soft: #e3f4f7;
  --color-text: #2b2f33;
  --color-muted: #5f6b73;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7f9;
  --color-border: #e2e8ee;
  --color-link: #0b5d6e;
  --color-link-hover: #084a58;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 93, 110, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 93, 110, 0.12);
  --max-width: 1120px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em 1.4em; padding: 0; }
li { margin-bottom: 0.35em; }

/* ---------- Layout container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img { height: 46px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.78rem; opacity: 0.85; }

/* ---------- Navigation ---------- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  color: #eaf6f8;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
}
.main-nav a.active {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.4rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  padding: 56px 0;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-text h1 { color: #fff; font-size: 2.3rem; margin-bottom: 0.4em; }
.hero-text p { font-size: 1.1rem; opacity: 0.95; }
.hero-img { flex: 1 1 320px; text-align: center; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  margin-top: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-primary); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: var(--color-primary); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--color-accent-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 0;
}
.page-header h1 { margin: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-link); }

/* ---------- Main content ---------- */
main { padding: 40px 0 60px; }
.content { max-width: 820px; }
.content-wide { max-width: 100%; }

/* ---------- Sections / cards ---------- */
.section { margin-bottom: 48px; }
.section-title {
  text-align: center;
  margin-bottom: 28px;
}
.section-title h2 { margin-bottom: 0.2em; }
.section-title p { color: var(--color-muted); max-width: 640px; margin: 0 auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--color-muted); font-size: 0.95rem; }
.card .card-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ---------- Feature / highlight band ---------- */
.highlight-band {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--color-accent); }
.stat .stat-label { color: var(--color-muted); }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- News list ---------- */
.news-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-bg);
  box-shadow: var(--shadow);
}
.news-item .news-date { color: var(--color-muted); font-size: 0.85rem; }
.news-item h3 { margin: 6px 0; }
.news-item .news-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.news-item img { border-radius: 6px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 18px 0; }
.faq-item h3 { margin-bottom: 0.3em; }

/* ---------- Contact / info table ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.info-table td:first-child { font-weight: 600; color: var(--color-primary-dark); width: 40%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #dceef2;
  padding: 40px 0 0;
  margin-top: 40px;
}
.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #cfe9ee; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding: 16px 0;
  font-size: 0.85rem;
  text-align: center;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--color-primary);
  padding: 8px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 10px 12px; }
  .hero-text h1 { font-size: 1.8rem; }
}

/* ---------- Recommendations (Empfehlungen) ---------- */
.rec-list { list-style: none; margin-left: 0; }
.rec-list li { margin-bottom: 1.4em; padding-left: 0; }
.rec-list li p { margin: 4px 0 0; color: var(--color-muted); font-size: 0.95rem; }
.rec-list .ext { font-size: 0.8em; opacity: 0.65; }
.rec-note { font-size: 0.85rem; color: var(--color-muted); border-top: 1px dashed var(--color-border); padding-top: 12px; }

/* ---------- Homepage "Übrigens" note ---------- */
.lesenswert { margin-bottom: 48px; }
.lesenswert-box {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.95rem;
}
.lesenswert-box p { margin-bottom: 0; }
.lesenswert-box strong { color: var(--color-primary-dark); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
}
