/*
Theme Name: AmtsProfi
Theme URI: https://amtsprofi.de
Author: AmtsProfi Heilbronn
Description: Professionelle WordPress-Theme für Dokumenten- und Übersetzungsservice. Zweisprachig DE/RU, SEO-optimiert, mobilfreundlich.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: amtsprofi
*/

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

:root {
  --navy:       #1B3A5C;
  --navy-dark:  #142d47;
  --navy-light: #2E5280;
  --green:      #1D9E75;
  --green-dark: #0F6E56;
  --green-light:#5DCAA5;
  --green-bg:   #E1F5EE;
  --blue-bg:    #E6F1FB;
  --amber-bg:   #FAEEDA;
  --sage-bg:    #EAF3DE;
  --gray-bg:    #F7F8FA;
  --gray-line:  #E2E8EE;
  --text-main:  #1a1a2e;
  --text-muted: #5a6a7a;
  --text-light: #8a9aaa;
  --white:      #ffffff;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 4px rgba(27,58,92,0.08);
  --shadow-md:  0 4px 20px rgba(27,58,92,0.10);
  --shadow-lg:  0 8px 40px rgba(27,58,92,0.14);
  --font-head:  'Sora', sans-serif;
  --font-body:  'Plus Jakarta Sans', sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Container ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(29,158,117,0.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(29,158,117,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-line);
}
.btn-outline-dark:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── Section Labels ──────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* ── HEADER / NAV ────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(27,58,92,0.2);
}

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

.site-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--green-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}
.header-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

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

/* ── HERO ────────────────────────────────────── */
#hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(29,158,117,0.06);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(93,202,165,0.04);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93,202,165,0.15);
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(93,202,165,0.25);
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green-light);
  border-radius: 50%;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--green-light); }

.hero-text {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-light);
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.hero-visual {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(29,158,117,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-visual-inner {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: rgba(29,158,117,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-icon-box {
  width: 72px;
  height: 72px;
  background: var(--green);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(29,158,117,0.4);
}
.hero-icon-box svg { width: 36px; height: 36px; }

/* ── TRUST BAR ───────────────────────────────── */
#trust-bar {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-line);
  padding: 0.9rem 0;
}
.trust-list {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.75rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── SERVICES ────────────────────────────────── */
#services {
  padding: 5rem 0;
}
.services-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}
.services-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.service-price {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
  background: var(--green-bg);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── HOW IT WORKS ────────────────────────────── */
#how {
  background: var(--gray-bg);
  padding: 5rem 0;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.how-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
}
.how-header p { color: var(--text-muted); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: var(--gray-line);
}

.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 1;
}
.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* ── LANGUAGES BANNER ────────────────────────── */
#languages {
  background: var(--navy);
  padding: 1.25rem 0;
}
.lang-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lang-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  font-weight: 500;
}
.lang-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── ABOUT ───────────────────────────────────── */
#about {
  padding: 5rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
  border: 3px solid var(--green-light);
}
.about-content h2 { margin-bottom: 1rem; }
.about-content p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--green-light); }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── CONTACT ─────────────────────────────────── */
#contact {
  background: var(--navy);
  padding: 5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-content h2 { color: var(--white); margin-bottom: 0.75rem; }
.contact-content > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(29,158,117,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 16px; height: 16px; }
.contact-item-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.contact-item-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 1px;
}

/* ── Contact Form ────────────────────────────── */
.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  background: rgba(255,255,255,0.11);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy); }
.form-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,158,117,0.35);
}

/* ── FOOTER ──────────────────────────────────── */
#site-footer {
  background: var(--navy-dark);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── LANG SWITCHER ───────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px 10px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 10px;
  transition: color var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}
.lang-btn.active { color: var(--white); }
.lang-btn:hover { color: var(--white); }
.lang-divider { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── MOBILE NAV ──────────────────────────────── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn-primary { margin-top: 0.75rem; text-align: center; justify-content: center; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .mobile-nav.open { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .trust-list { gap: 0.4rem 1rem; }
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── Utility ─────────────────────────────────── */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
