/* ============================================================
   GeoStudys Consulting — Stylesheet
   ============================================================ */

:root {
  --navy:        #1a3a5c;
  --navy-dark:   #122a44;
  --navy-light:  #5a7a9a;
  --sand-bg:     #f5f0e6;
  --sand-accent: #8b7355;
  --sand-dark:   #5e4e3a;
  --petrol-bg:   #e8eef2;
  --petrol-acc:  #3d6b8a;
  --petrol-dark: #244966;
  --bg:          #fafafa;
  --white:       #ffffff;
  --text:        #2a2a2a;
  --text-muted:  #6a6a6a;
  --text-light:  #9a9a9a;
  --border:      #e5e5e5;
  --border-strong:#cfcfcf;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy-light); }

/* ---------- HEADER ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--navy);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before, .logo-mark::after {
  content: '';
  position: absolute;
  background: var(--white);
}
.logo-mark::before { top: 8px; left: 6px; right: 6px; height: 1.5px; }
.logo-mark::after  { top: 14px; left: 6px; right: 6px; height: 1.5px; opacity: 0.6; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
nav.main-nav a:hover { color: var(--navy); }
nav.main-nav a.active { color: var(--navy); font-weight: 500; }

.lang-switch {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
.lang-switch span.active { color: var(--navy); font-weight: 500; }

/* ---------- HERO (Startseite) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, #fbfaf7 100%);
  padding: 100px 32px 88px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg .layer-1 { opacity: 0.13; }
.hero-bg .layer-2 { opacity: 0.11; }
.hero-bg .layer-3 { opacity: 0.09; }
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--navy-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero h1 {
  font-family: 'Source Serif Pro', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- SECTION-HERO (Innenseiten) ---------- */
.section-hero {
  padding: 72px 32px 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.section-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}
.section-hero .breadcrumb {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 16px;
}
.section-hero h1 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.section-hero p.subtitle {
  font-size: 17px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* ---------- TWO PILLARS ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.pillar {
  padding: 64px 48px;
  position: relative;
  text-decoration: none;
  color: var(--text);
  transition: filter 0.3s;
}
.pillar:hover { filter: brightness(0.98); }
.pillar-1 { background: var(--sand-bg); border-right: 1px solid var(--border); }
.pillar-2 { background: var(--petrol-bg); }

.pillar-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.pillar-1 .pillar-eyebrow { color: var(--sand-dark); }
.pillar-2 .pillar-eyebrow { color: var(--petrol-dark); }

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pillar-1 .pillar-icon { background: var(--sand-accent); }
.pillar-2 .pillar-icon { background: var(--petrol-acc); }
.pillar-icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 1.6; }

.pillar h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.25;
}
.pillar-1 h2 { color: var(--sand-dark); }
.pillar-2 h2 { color: var(--petrol-dark); }

.pillar-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.pillar ul { list-style: none; margin-bottom: 36px; }
.pillar li {
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pillar li:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.pillar li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
}
.pillar-1 li::before { background: var(--sand-accent); }
.pillar-2 li::before { background: var(--petrol-acc); }
.pillar li strong { font-weight: 500; }
.pillar li small {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.pillar-cta {
  display: inline-block;
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.pillar-1 .pillar-cta { color: var(--sand-dark); border-color: var(--sand-accent); }
.pillar-2 .pillar-cta { color: var(--petrol-dark); border-color: var(--petrol-acc); }
.pillar-1 .pillar-cta:hover { background: var(--sand-accent); color: var(--white); }
.pillar-2 .pillar-cta:hover { background: var(--petrol-acc); color: var(--white); }

/* ---------- TRUST BAND ---------- */
.trust {
  background: var(--navy);
  color: var(--white);
  padding: 56px 32px;
  text-align: center;
}
.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trust-item h3 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--white);
}
.trust-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}

/* ---------- CONTENT ---------- */
.content {
  padding: 64px 32px;
  background: var(--white);
}
.content-inner { max-width: 920px; margin: 0 auto; }
.content h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}
.content p { margin-bottom: 16px; line-height: 1.7; }
.content ul {
  list-style: none;
  margin-bottom: 22px;
  padding-left: 0;
}
.content ul li {
  padding: 7px 0 7px 22px;
  position: relative;
  line-height: 1.6;
}
.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 1.5px;
  background: var(--navy-light);
}
.content em.fachbegriff { font-style: italic; color: var(--navy-dark); }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-size: 15px;
}
.content table th {
  background: var(--petrol-bg);
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--petrol-dark);
  border-bottom: 1px solid var(--border-strong);
}
.content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.content table tr:last-child td { border-bottom: none; }
.content table.sand th { background: var(--sand-bg); color: var(--sand-dark); }

.content .anwendungsfelder {
  background: var(--bg);
  border-left: 3px solid var(--navy-light);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}

.content .validierung-box {
  background: var(--petrol-bg);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 28px 0;
}
.content .validierung-box h3 {
  margin-top: 0;
  color: var(--petrol-dark);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 80px 32px;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cta-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 18px;
  font-weight: 500;
}
.cta-section h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--navy);
  color: var(--white) !important;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.3px;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy-dark); color: var(--white) !important; }

.btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background: var(--white);
  color: var(--navy) !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid var(--navy);
  letter-spacing: 0.3px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--navy); color: var(--white) !important; }

/* ---------- REFERENZEN-KACHELN ---------- */
.referenz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.referenz-kachel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 28px 24px;
  transition: border-color 0.2s;
}
.referenz-kachel:hover { border-color: var(--navy-light); }
.referenz-kachel h3 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.referenz-kachel .meta {
  font-size: 12px;
  color: var(--navy-light);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.referenz-kachel dl {
  font-size: 14px;
  line-height: 1.55;
}
.referenz-kachel dt {
  font-weight: 500;
  color: var(--text);
  margin-top: 10px;
}
.referenz-kachel dd { color: var(--text-muted); margin-left: 0; }

/* ---------- KONTAKTFORMULAR ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-top: 24px;
}
.kontakt-info h2 {
  margin-top: 0 !important;
}
.kontakt-info address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.kontakt-info address strong {
  font-weight: 500;
  color: var(--navy);
}

form.anfrage {
  background: var(--bg);
  padding: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
form.anfrage .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
form.anfrage label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
form.anfrage label .req { color: #c0392b; }
form.anfrage input[type="text"],
form.anfrage input[type="email"],
form.anfrage input[type="tel"],
form.anfrage textarea,
form.anfrage input[type="file"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--white);
  transition: border-color 0.2s;
}
form.anfrage input:focus,
form.anfrage textarea:focus {
  outline: none;
  border-color: var(--navy);
}
form.anfrage textarea {
  resize: vertical;
  min-height: 120px;
}
form.anfrage .full { margin-bottom: 16px; }
form.anfrage .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
  font-size: 13.5px;
  line-height: 1.5;
}
form.anfrage .checkbox-row input { margin-top: 3px; }
form.anfrage .submit-row { display: flex; align-items: center; gap: 16px; }
form.anfrage .form-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
}
form.anfrage .upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Mehrfach-Upload-Bereich ---- */
.upload-area {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 14px;
}
.upload-btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-btn:hover {
  background: var(--navy);
  color: var(--white);
}
.datei-liste {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.datei-liste:not(:empty) {
  margin-top: 12px !important;
  padding-top: 8px !important;
  border-top: 1px solid var(--border);
}
.datei-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 14px;
}
.datei-item:last-child {
  border-bottom: none !important;
}
.datei-item::before {
  display: none !important;
}
.datei-item .d-name {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.datei-item .d-size {
  color: var(--text-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.datei-item .d-del {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.datei-item .d-del:hover {
  background: #c0392b;
  color: var(--white);
  border-color: #c0392b;
}
.datei-summe {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: right;
}
.datei-summe.warn {
  color: #c0392b;
}

.form-success, .form-error {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.6;
}
.form-success { background: #e8f3eb; color: #1e5733; border-left: 3px solid #2c7a47; }
.form-error { background: #fbeaea; color: #7a1e1e; border-left: 3px solid #c0392b; }

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 56px 32px 24px;
  font-size: 13.5px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
footer.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-weight: 500;
}
footer.site-footer ul { list-style: none; }
footer.site-footer li { padding: 5px 0; }
footer.site-footer a { color: rgba(255,255,255,0.7); }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer p { line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .header-inner { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
  nav.main-nav ul { gap: 16px; flex-wrap: wrap; }
  nav.main-nav a { font-size: 13px; }
  .lang-switch { padding-left: 14px; }
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .section-hero { padding: 56px 20px 40px; }
  .section-hero h1 { font-size: 26px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 48px 28px; }
  .pillar-1 { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar h2 { font-size: 23px; }
  .trust-inner { grid-template-columns: 1fr; gap: 28px; }
  .content { padding: 48px 20px; }
  .content h2 { font-size: 22px; }
  .cta-section { padding: 56px 20px; }
  .cta-section h2 { font-size: 24px; }
  .referenz-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
  form.anfrage { padding: 24px 20px; }
  form.anfrage .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- Download-Bereich ---- */
.downloads-liste {
  list-style: none !important;
  margin: 0 0 36px 0 !important;
  padding: 0 !important;
}
.downloads-liste li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
}
.downloads-liste li::before {
  display: none !important;
}
.downloads-liste li:last-child {
  border-bottom: none;
}
.downloads-liste a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.15s, padding-left 0.15s;
  gap: 16px;
}
.downloads-liste a:hover {
  background: var(--sand-light);
  padding-left: 12px;
}
.downloads-liste .dl-titel {
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.downloads-liste .dl-meta {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .downloads-liste a { flex-direction: column; gap: 4px; }
  .downloads-liste .dl-meta { font-size: 12px; }
}

/* CTA-Knopf nach Tabellen */
.details-cta {
  text-align: center;
  margin: 32px 0 16px;
}
