body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  line-height: 1.6;
  background: #0000003d;
  color: #333;
}

header {
  text-align: center;
  padding-bottom: 20px;
}

.portrait {
  width: 300px;
  border-radius: 5%;
}

h1, h2, h3 {
  color: #2c3e50;
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea, button {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 1rem;
}

button {
  background-color: #2c3e50;
  border: none;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #486077;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  .portrait {
    width: 100px;
  }
}

/* ——— Berufserfahrung: drehbare Karten mit "Seil"-Rahmen ——— */
.experience {
  margin-top: 2rem;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1000px; /* 3D-Eindruck */
}

@media (max-width: 800px) {
  .exp-grid { grid-template-columns: 1fr; }
}

.exp-card {
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s ease;
  outline: none;
}

/* Fokusrahmen für Tastatur */
.exp-card:focus-visible {
  box-shadow: 0 0 0 3px #2c3e50;
  border-radius: 12px;
}

/* WICHTIG: Karte selbst dreht nie */
.exp-card.open { transform: none; }
.exp-card:hover { transform: none; }

/* Nur der Frame dreht */
.exp-card.open .exp-frame { transform: rotateY(180deg); }

/* Rahmen als "Seil" via border-image mit diagonalen Streifen */
.exp-frame {
  position: relative;
  height: 260px;
  border: 3px solid transparent;
  border-radius: 12px;
  background: #fff;
  transform-style: preserve-3d;
  transition: border-color .25s ease, transform .6s ease;
  backface-visibility: hidden;
}

/* Jahreszahlen: immer statisch */
.exp-year {
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 6px;
  transform: none !important;
}

/* Wenn Karte umgedreht ist, Rahmen dunkelblau */
.exp-card.open .exp-frame {
  border-color: #2c3e50;
}

/* Beim Hover Rahmen blau */
.exp-card:hover .exp-frame {
  border-color: #2c3e50;
}

/* Icon mittig */
.exp-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42%;
  height: 42%;
  object-fit: contain;
  transform: translateZ(20px);
  transition: filter .3s ease, transform .3s ease;
  pointer-events: none;
}

/* Weißer Schleier */
.veil {
  position: absolute;
  inset: 16px;
  background: rgba(255,255,255,0);
  border-radius: 6px;
  transition: background .35s ease;
  pointer-events: none;
}

/* Rückseite */
.exp-content {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.exp-icon.faded {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42%;
  height: 42%;
  opacity: 0.15;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Überschrift (falls über Karte) */
.exp-header {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #2c3e50;
}

/* ——— Modal für Kontaktformular ——— */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 1000;
  padding: 24px;
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  animation: modalIn .18s ease;
}

@keyframes modalIn {
  from { transform: translateY(-6px); opacity: .0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #444;
}
.modal-close:hover { color: #2c3e50; }

#contactForm {
  display: grid;
  gap: 12px;
}

#contactForm label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #2c3e50;
}

#contactForm input,
#contactForm textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  background: #f9fbff;
  outline: none;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44,62,80,.25);
  background: #fff;
}

/* Button Styles */
.btn-primary {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s ease;
}
.btn-primary:hover { background: #374a5e; }
.btn-block { width: 100%; }

.hidden { display: none !important; }







