/* ============================================================
   style.css – Statische Website karin-zander.com
   Keine externen Abhängigkeiten, keine Google Fonts.
   System-Fonts: Arial, Helvetica, sans-serif
   ============================================================ */

/* --- Design Tokens & Color Palette ------------------------- */
:root {
  --hero-gradient: linear-gradient(135deg, #0b1d3a 0%, #1a365d 50%, #204060 100%);
  --color-primary: #1a365d;
  --color-primary-dark: #0b1d3a;
  --color-primary-light: #204060;
  --color-accent: #2c5282;
  --color-bg-light: #f7f9fc;
  --color-border: #e2e8f0;
}

/* --- Accessibility / Skip-Link ----------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary-dark);
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none !important;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #fff;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* --- Layout ------------------------------------------------ */
.site-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header ------------------------------------------------ */
.site-header {
  background-color: #f5f5f0;
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 0;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Navigation -------------------------------------------- */
.main-nav {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #999;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: center;
}

.nav-list li a {
  display: block;
  padding: 0.35rem 0.5rem;
  color: #555;
  font-size: 0.85rem;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--hero-gradient);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(11, 29, 58, 0.25);
}

/* --- Hero / Header ----------------------------------------- */
.hero {
  position: relative;
  background: var(--hero-gradient);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-gradient {
  /* Alias zur Abwärtskompatibilität */
  background: var(--hero-gradient);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* --- Main Content ------------------------------------------ */
.main-content {
  padding: 2.5rem 0;
}

.main-content h1 {
  font-size: 1.75rem;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.main-content h2 {
  font-size: 1.35rem;
  color: #444;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.main-content h3 {
  font-size: 1.1rem;
  color: #555;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.main-content p {
  margin-bottom: 1rem;
}

.main-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.main-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: decimal;
}

.main-content li {
  margin-bottom: 0.4rem;
}

/* --- Separator Image --------------------------------------- */
.separator {
  width: 100%;
  max-width: 200px;
  margin: 1.5rem auto;
  opacity: 0.5;
}

/* --- Portrait / Image Float -------------------------------- */
.portrait {
  float: right;
  max-width: 220px;
  margin: 0 0 1.5rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Certificates Grid & Lightbox ------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cert-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover,
.cert-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(11, 29, 58, 0.15);
}

.cert-card img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-hint {
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-primary);
  text-align: center;
  background: var(--color-bg-light);
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* --- Lightbox Modal ---------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.88);
  z-index: 2000;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #fff;
}

.lightbox-caption {
  color: #fff;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #cbd5e0;
}

/* --- Contact Info Box & vCard ------------------------------ */
.contact-box {
  background-color: var(--color-bg-light);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-box p {
  margin-bottom: 0.5rem;
}

.contact-box strong {
  color: #333;
}

.btn-vcard {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--hero-gradient);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  text-decoration: none !important;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(11, 29, 58, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-vcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 29, 58, 0.3);
  text-decoration: none !important;
}

/* --- Links List -------------------------------------------- */
.links-list {
  list-style: none;
  padding-left: 0;
}

.links-list li {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
}

.links-list li a {
  font-weight: 600;
}

/* --- Costs Table ------------------------------------------- */
.costs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.costs-table th,
.costs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0d8;
}

.costs-table th {
  background-color: #f5f5f0;
  font-weight: 600;
  color: #333;
}

.costs-table tr:last-child td {
  border-bottom: 2px solid var(--color-primary);
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background-color: #f5f5f0;
  border-top: 1px solid #ddd;
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #666;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-toggle {
    display: block;
    margin: 0 auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
  }

  .nav-list.open {
    display: flex;
  }

  .hero {
    min-height: 200px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .portrait {
    float: none;
    margin: 0 auto 1.5rem;
    max-width: 180px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero {
    min-height: 150px;
  }
}

/* --- Print ------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle {
    display: none;
  }

  .main-content {
    padding: 0;
  }

  body {
    color: #000;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
