/*
Theme Name: Digital Visitenkarte
Theme URI: https://example.com/digital-visitenkarte
Author: AI Generated
Description: Ein modernes WordPress‑Theme für eine digitale Visitenkarte. Das Design orientiert sich an den in der fastWP‑Übersicht vorgestellten vCard‑Templates, bei denen die wichtigsten Informationen komprimiert auf einer Seite dargestellt werden【877539468880486†L45-L69】. Das Theme bietet Abschnitte für die Vorstellung, Skills, ein Portfolio sowie Kontaktinformationen und bindet optionale Social‑Media‑Profile ein.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digital-visitenkarte
Tags: one-page, personal, portfolio, responsive
*/

/*
 * Grundlegendes Layout
 *
 * Das Layout orientiert sich an klassischen vCard‑Themes wie FlexyVcard und Zwin, die eine Übersicht, einen Lebenslauf
 * und einen Kontaktbereich auf einer responsiven Seite anbieten【877539468880486†L83-L87】【877539468880486†L99-L105】. Ein vertikales Navigationsmenü
 * führt zu den einzelnen Bereichen.
 */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background: #f7f7f7;
  scroll-behavior: smooth;
}

/* Container für das gesamte Layout */
.dv-container {
  display: flex;
  min-height: 100vh;
}

/* Linke Navigation */
.dv-nav {
  width: 240px;
  background: #fff;
  border-right: 1px solid #e5e5e5;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}
.dv-nav .dv-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
}
.dv-nav .dv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dv-nav h1 {
  font-size: 24px;
  text-align: center;
  margin: 0 0 5px;
}
.dv-nav h2 {
  font-size: 16px;
  font-weight: normal;
  color: #777;
  text-align: center;
  margin: 0 0 20px;
}
.dv-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dv-nav ul li {
  margin: 10px 0;
}
.dv-nav ul li a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background 0.3s;
}
.dv-nav ul li a:hover {
  background: #f0f0f0;
}

/* Hauptinhalt */
.dv-content {
  margin-left: 240px;
  padding: 40px;
  box-sizing: border-box;
  width: calc(100% - 240px);
}
.dv-section {
  margin-bottom: 60px;
}
.dv-section h3 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 10px;
}

/* About Section */
.dv-about p {
  line-height: 1.6;
}

/* Skills Section */
.dv-skills .skill {
  margin-bottom: 15px;
}
.dv-skills .skill .skill-name {
  font-weight: bold;
}
.dv-skills .skill .skill-bar {
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
  margin-top: 5px;
}
.dv-skills .skill .skill-bar-inner {
  background: #0073aa;
  height: 8px;
  width: 0;
  transition: width 1s ease-in-out;
}

/* Portfolio Section */
.dv-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.dv-portfolio-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.dv-portfolio-item:hover {
  transform: translateY(-3px);
}
.dv-portfolio-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.dv-portfolio-item .dv-portfolio-caption {
  padding: 10px;
  font-size: 14px;
  text-align: center;
}

/* Contact Section */
.dv-contact .dv-contact-info {
  font-size: 14px;
  line-height: 1.8;
}
.dv-contact .dv-contact-info i {
  margin-right: 8px;
}
.dv-contact .dv-social-links a {
  margin-right: 10px;
  font-size: 20px;
  color: #0073aa;
  text-decoration: none;
}

@media (max-width: 768px) {
  .dv-nav {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dv-nav .dv-avatar {
    width: 60px;
    height: 60px;
  }
  .dv-nav h1, .dv-nav h2 {
    display: none;
  }
  .dv-nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  .dv-nav ul li {
    margin: 0 5px;
  }
  .dv-nav ul li a {
    padding: 10px;
    font-size: 14px;
  }
  .dv-content {
    margin-left: 0;
    width: 100%;
  }
}
