/* =========================================================
   GRUNDLAYOUT
   ---------------------------------------------------------
   - Schriften
   - Farben
   - Hintergrund
   ========================================================= */

body {
  font-family: Verdana, Helvetica, Arial, sans-serif;
  font-size: 10pt;
  color: #000;
  background-color: #d2d2d2;
}

/* Zentrale Seitenbreite (klassisches Fixed Layout) */
.seite {
  width: 680px;
  margin: 20px auto;
}

/* Weiße Inhaltsboxen mit schwarzem Rand */
.box {
  background-color: #fff;
  border: 1px solid #000;
}

/* Innenabstand für Textboxen */
.pad {
  padding: 18px;
}

/* Hilfsklasse für zentrierten Text */
.center {
  text-align: center;
}


/* =========================================================
   TYPOGRAFIE
   ---------------------------------------------------------
   Überschriften, Listen, Links
   ========================================================= */

h1 {
  font-size: 115%;
}

h2 {
  font-size: 100%;
}

h3 {
  font-size: 100%;
  font-weight: normal;
  text-decoration: underline;
}

/* Standard-Links */
a {
  color: #000099;
  text-decoration: none;
}

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

/* Aufzählungen mit Pfeilsymbol */
ul {
  list-style-image: url(pfeil.gif);
  line-height: 135%;
}

li {
  padding-bottom: 5px;
}

/* =========================================================
   HEADER
   ---------------------------------------------------------
   Name links, Portrait rechts
   ========================================================= */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
}

/* Namensgrafik */
.name {
  max-height: 150px;
}

/* Portraitbild */
.portrait {
  height: 150px;
  border: 1px solid #000;
}


/* =========================================================
   NAVIGATION + SPRACHE
   ---------------------------------------------------------
   Eine gemeinsame Zeile:
   - Navigation zentriert
   - Sprachumschalter rechts
   ========================================================= */

/* Gemeinsamer Container für Navigation und Sprache */
.nav-bar {
  display: flex;
  align-items: baseline; 
  margin: 14px 0 18px 0;
}

/* Navigation selbst (nur die Links) */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex: 1; 
}

/* Navigationslinks (klassische Textnavigation) */
.main-nav a.buttons {
  background: none;
  color: #000099;
  font-size: 10pt;
  font-weight: normal;
  padding: 0;
  width: auto;
  height: auto;
}

/* Hover-Zustand */
.main-nav a.buttons:hover {
  color: #000;
  text-decoration: underline;
}

/* Aktive Seite */
.main-nav a.active {
  font-weight: bold;
  color: #000099;
  cursor: default;
  text-decoration: none;
}

/* Sprachumschalter (EN | DE) */
.language-switch {
  font-size: 9pt;
  white-space: nowrap; 
  margin-left: 10px;
}

.language-switch a {
  color: #000099;
}

.language-switch a:hover {
  text-decoration: underline;
}

/* Aktive Sprache */
.language-switch .active {
  font-weight: bold;
  color: #000099;
}

/* Verhindere unnötige Bewegungen */ 
.main-nav a.active:hover,
.language-switch .active:hover {
  text-decoration: none;
}

/* =========================================================
   INHALTSFOOTER
   ---------------------------------------------------------
   Kontakt (E-Mail-Icon)
   ========================================================= */

.content-footer {
  margin-top: 24px;
}

.email-link img {
  vertical-align: middle;
}

.email-link:hover img {
  opacity: 0.75;
}

/* =========================================================
   SEITENFOOTER
   ---------------------------------------------------------
   Last update
   ========================================================= */

.page-footer {
  font-size: 9pt;
  margin-top: 8px;
  text-align: left; 
}

/* =========================================================
   CV-TABELLEN
   ---------------------------------------------------------
   Klassische, ruhige Darstellung:
   - feste Spalte für Jahreszahlen
   - dezente Abstände
   - keine Linien, keine Farben
   ========================================================= */

/* Erste Spalte: Jahreszahlen */
.content table td:first-child {
  width: 18%;
  white-space: nowrap;
  vertical-align: top;
  color: #555;
}

/* Vertikaler Abstand zwischen Einträgen */
.content table tr + tr td {
  padding-top: 6px;
}

/* Horizontaler Abstand zwischen Spalten */
.content table td {
  padding-right: 10px;
}

/* =========================================================
   DRUCKVERSION (CV)
   ---------------------------------------------------------
   - Navigation, Header, Footer ausblenden
   - Weißer Hintergrund
   - Optimierte Typografie
   ========================================================= */

@media print {

  /* Hintergrund & Seitenlayout */
  body {
    background: #fff;
    color: #000;
    font-size: 10pt;
  }

  .seite {
    width: auto;
    margin: 0;
  }

  /* Alles entfernen, was im Druck stört */
  .page-header,
  .nav-bar,
  .language-switch,
  .page-footer {
    display: none;
  }

  /* Content voll nutzen */
  .box {
    border: none;
  }

  .pad {
    padding: 0;
  }

  /* Überschriften etwas luftiger */
  h1 {
    font-size: 14pt;
    margin-bottom: 12px;
  }

  h2 {
    margin-top: 18px;
    margin-bottom: 6px;
  }

  /* CV-Tabellen im Druck */
  .content table {
    width: 100%;
    border-collapse: collapse;
  }

  .content table td:first-child {
    width: 22%;
    color: #000;
  }

  .content table tr + tr td {
    padding-top: 8px;
  }

  /* Links neutral drucken */
  a {
    color: #000;
    text-decoration: none;
  }

  /* Optional: URLs nicht anzeigen */
  a::after {
    content: "";
  }

  /* E-Mail-Icon entfernen */
  .content-footer {
    display: none;
  }

}
