/* =========================================
   ARNE TRUNK – STYLESHEET
   Civic Trust Color Scheme
   ========================================= */

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

:root {
  --primary:    #1B3A5C;
  --accent:     #4A7FA5;
  --accent-dark:#2E5F80;
  --bg:         #F7F8FA;
  --bg-white:   #FFFFFF;
  --text:       #1E2329;
  --text-muted: #5A6475;
  --border:     #D8DDE6;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(27, 58, 92, 0.08);
  --max-width:  1080px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }

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

section { padding: 80px 0; }
section:nth-child(even):not(.hero):not(.cta-banner):not(.article-header) { background: var(--bg-white); }

/* --- Header & Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

nav ul li a:hover,
nav ul li a.active { color: var(--primary); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary) !important; color: #fff !important; }

.nav-linkedin {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--text-muted) !important;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s !important;
}
.nav-linkedin:hover {
  color: #0077B5 !important;
  background: #EBF3FA;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  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(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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

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

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5480 100%);
  padding: 80px 0 0;
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-end;
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

/* Cert badges */
.hero-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 52px;
}

.hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.8);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

/* Photo column */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}

.hero-photo-card {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 18px;
  text-align: center;
  white-space: nowrap;
}

.hero-photo-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.hero-photo-card span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
}

/* Legacy cert-list (used in hero-card if needed elsewhere) */
.cert-list { list-style: none; }
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.cert-list li:last-child { border-bottom: none; }
.cert-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Section Header --- */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header { margin-bottom: 52px; }
.section-header p {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #EBF3FA;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary);
  padding: 72px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-top: 8px; }

/* --- Timeline (Erfahrung) --- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 52px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: #EBF3FA;
  padding: 3px 10px;
  border-radius: 20px;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-item h3 { margin-bottom: 10px; }
.timeline-item p  { color: var(--text-muted); font-size: 0.95rem; }

.timeline-bullets {
  list-style: none;
  margin-top: 12px;
}
.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.65;
}
.timeline-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.82rem;
  top: 1px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: #EBF3FA;
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 20px;
}

/* --- Certs Grid --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.cert-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cert-card p  { font-size: 0.82rem; color: var(--text-muted); }

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow); }

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card p  { color: var(--text-muted); font-size: 0.9rem; flex: 1; }

.blog-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- Article (Blog Single) --- */
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5480 100%);
  padding: 72px 0 60px;
  color: #fff;
}
.article-header h1 { color: #fff; max-width: 740px; }
.article-meta {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  gap: 20px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.article-body h2 { margin: 40px 0 16px; font-size: 1.45rem; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p  { margin-bottom: 20px; color: var(--text); }
.article-body ul { padding-left: 20px; margin-bottom: 20px; color: var(--text-muted); }
.article-body li { margin-bottom: 8px; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p   { color: var(--text-muted); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: #EBF3FA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-detail h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail p  { font-size: 0.95rem; margin: 0; color: var(--text); }

/* --- Form --- */
.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,127,165,0.15);
  background: #fff;
}

textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

/* --- Footer --- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 10px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo span { color: var(--accent); }

footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
footer ul li a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; gap: 40px; }
  .hero-card         { display: none; }
  .hero-photo        { display: none; }
  .hero-cert-badges  { padding-bottom: 52px; }
  .services-grid     { grid-template-columns: 1fr 1fr; }
  .blog-grid         { grid-template-columns: 1fr 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .cta-banner-inner  { flex-direction: column; align-items: flex-start; }
  .form-row          { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section             { padding: 56px 0; }
  .services-grid      { grid-template-columns: 1fr; }
  .blog-grid          { grid-template-columns: 1fr; }
  .footer-inner       { grid-template-columns: 1fr; }
  nav ul              { display: none; }
  nav ul.open         { display: flex; flex-direction: column; gap: 0; }
  .nav-toggle         { display: flex; }
  .nav-inner          { position: relative; flex-wrap: wrap; height: auto; padding: 14px 0; }
  nav ul {
    width: 100%;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 8px 0;
  }
  nav ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
}
