/*
 * Modern Design für Roland Würth - IT-Beratung
 * Modernisierte Version 2026
 */

/* CSS Custom Properties für konsistente Farben */
:root {
  --primary-color: #334155;
  --primary-dark: #1E293B;
  --accent-color: #0891B2;
  --accent-light: #CFFAFE;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset und Basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Container */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  min-height: 100vh;
}

/* Header Top Bar */
.header-top {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.75rem 0;
}

.header-top .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-top .icon ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.header-top .icon ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.95rem;
}

.header-top .icon ul li a {
  color: white;
  text-decoration: none;
}

.header-top .icon ul li a:hover {
  color: var(--accent-color);
}

.header-top i.message,
.header-top i.phone {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
}

/* Header Navigation */
.header-bottom {
  background-color: var(--bg-white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-bottom .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

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

.logo p {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 500;
  margin: 0.25rem 0 0 0;
}

/* Navigation Menu */
.top-menu ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.top-menu ul li {
  display: inline-block;
}

.top-menu ul li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: none;
}

.top-menu ul li a:hover,
.top-menu ul li a.active {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Mobile Menu */
span.menu {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

span.menu img {
  width: 24px;
  height: 24px;
}

/* Main Content Area */
.beautiful {
  padding: 3rem 0;
}

.beautiful .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Homepage Grids */
.beautiful-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.beautiful-grid {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.beautiful-grid:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Profile Image */
.callbacks_container img,
.rslides img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
}

/* Sidebar Sections */
.sidebar h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
}

.sidebar .list {
  list-style: none;
  padding-left: 0;
}

.sidebar .list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
  line-height: 1.7;
}

.sidebar .list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Tables */
.contentTable {
  width: 100%;
  margin-top: 1.5rem;
}

.contentTable td {
  padding: 0.75rem;
  vertical-align: top;
  line-height: 1.7;
}

/* Styled Cards for Content */
.content-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.content-card h3 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
}

/* Project Tables */
table.bold {
  width: 100%;
}

td.bold {
  font-weight: 600;
  color: var(--primary-color);
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 2rem 0;
  border-radius: 2px;
}

/* Lists in content */
ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.sublist {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, var(--text-dark), #111827);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-section .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left p {
  margin: 0;
  color: #D1D5DB;
  font-size: 0.9rem;
}

.footer-left p a {
  color: var(--accent-color);
  margin-left: 0.5rem;
}

.footer-left p a:hover {
  color: white;
}

.bottom-menu ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.bottom-menu ul li a {
  color: #D1D5DB;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.bottom-menu ul li a:hover,
.bottom-menu ul li a.active {
  color: white;
  background-color: var(--primary-color);
}

/* Back to Top Button */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}

#toTop:hover {
  background-color: var(--primary-dark);
  transform: translateY(-4px);
}

#toTop span {
  color: white;
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-bottom .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 100%;
  }

  .logo h1 {
    font-size: 1.75rem;
  }

  .top-menu {
    width: 100%;
    margin-top: 1rem;
  }

  .top-menu ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
  }

  .top-menu ul.show {
    display: flex;
  }

  .top-menu ul li {
    width: 100%;
  }

  .top-menu ul li a {
    display: block;
    width: 100%;
    padding: 1rem;
  }

  span.menu {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .beautiful-grids {
    grid-template-columns: 1fr;
  }

  .footer-section .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .bottom-menu {
    width: 100%;
  }

  .bottom-menu ul {
    justify-content: center;
  }

  .header-top .icon ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.5rem;
  }

  .logo p {
    font-size: 0.9rem;
  }

  .beautiful {
    padding: 2rem 0;
  }

  .beautiful-grid {
    padding: 1.5rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .contentTable td {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }
}

/* Utility Classes */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   DIV-basierte Table-Ersetzungen
   ============================================ */

/* Info-Rows (2-spaltig: Label + Content) */
.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--text-dark);
  padding-right: 1rem;
}

.info-content {
  color: var(--text-dark);
  line-height: 1.7;
}

/* Responsive: Stack auf mobilen Geräten */
@media (max-width: 768px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .info-label {
    font-size: 0.9rem;
    color: var(--text-light);
  }
}

/* Projekt-Karten (für projekte.html) */
.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.project-period {
  font-size: 0.9rem;
  color: var(--text-light);
  white-space: nowrap;
}

.project-details {
  display: grid;
  gap: 1rem;
}

.project-detail {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
}

.project-detail-label {
  font-weight: 600;
  color: var(--text-dark);
}

.project-detail-content {
  color: var(--text-dark);
  line-height: 1.7;
}

/* Responsive Projekt-Karten */
@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .project-detail {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .project-detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
  }
}

/* Kontakt-Info Blocks */
.contact-block {
  padding: 1rem 0;
  line-height: 1.8;
}

.contact-block strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

/* Listen-Styling in Content */
.info-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.info-content ul li {
  margin-bottom: 0.25rem;
}

/* Referenz-Links */
.ref-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.ref-link:hover {
  text-decoration: underline;
}

/* ============================================
   Moderne Table-Styles für projekte.html
   ============================================ */

.project-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.project-table td {
  padding: 0.75rem;
  vertical-align: top;
  line-height: 1.6;
}

.project-table .bold,
.project-table td.bold {
  font-weight: 600;
  color: var(--primary-color);
  padding-bottom: 0.5rem;
}

/* Verschachtelte Tabellen */
.project-table table {
  margin-top: 0.5rem;
}

.project-table table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.project-table table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 150px;
  vertical-align: top;
}

/* Listen in Tabellen */
.project-table ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.project-table ul li {
  margin-bottom: 0.25rem;
}

/* HR in Projekten */
.project-table hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 1.5rem 0;
  border-radius: 2px;
}
