/**
 * S.Y.Z. GmbH & Co. KG - PROFESSIONAL CORPORATE CSS
 * Eckig, Seriös, Business-Like - KEINE runden Ecken!
 * Version 3.0 - RICHTIG professionell
 */

/* ============================================================================
   CSS VARIABLES - CORPORATE
   ============================================================================ */
:root {
  /* Corporate Colors aus Briefkopf */
  --color-primary: #2C4A67;
  --color-primary-dark: #1A2E3F;
  --color-primary-light: #4A6B8A;
  --color-secondary: #4A90E2;
  --color-success: #2ECC71;
  --color-warning: #F39C12;
  --color-danger: #E74C3C;
  --color-white: #FFFFFF;
  --color-light: #F8F9FA;
  --color-grey: #E0E0E0;
  --color-dark: #333333;
  --color-text: #2C3E50;
  
  /* Professional Shadows - subtil */
  --shadow-sm: 0 1px 3px rgba(44, 74, 103, 0.08);
  --shadow-md: 0 2px 6px rgba(44, 74, 103, 0.12);
  --shadow-lg: 0 4px 12px rgba(44, 74, 103, 0.15);
  
  /* KEINE runden Ecken - Business Style! */
  --radius: 0px;
  
  /* Transitions */
  --transition: 0.2s ease;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-primary);
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   TYPOGRAPHY - Professional
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-secondary);
}

/* ============================================================================
   NAVIGATION - Professional & Eckig
   ============================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  z-index: 10000;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  position: relative;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600;
  /* ECKIG */
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 10000;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  display: block;
}

/* HAMBURGER ANIMATION WHEN ACTIVE */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================================
   HERO SLIDER - Professional & Eckig
   ============================================================================ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 70px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(44, 74, 103, 0.9) 0%,
    rgba(26, 46, 63, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  color: white;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  /*max-width: 600px;*/
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  /* ECKIG */
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: var(--color-secondary);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: white;
  font-size: 1.5rem;
  /* ECKIG */
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.slider-arrow.prev {
  left: 40px;
}

.slider-arrow.next {
  right: 40px;
}

/* ============================================================================
   BUTTONS - Professional & Eckig
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  /* ECKIG - kein border-radius! */
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

.btn-light {
  background: white;
  color: var(--color-primary);
}

.btn-light:hover {
  background: var(--color-light);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================================================
   SECTIONS & CONTAINERS
   ============================================================================ */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

/* ============================================================================
   GRID LAYOUTS
   ============================================================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================================
   CARDS - Professional & ECKIG
   ============================================================================ */
.card {
  background: white;
  border: 1px solid var(--color-grey);
  transition: var(--transition);
  overflow: hidden;
  /* ECKIG - kein border-radius! */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card-text {
  color: #666;
  margin-bottom: 1.5rem;
}

.card-footer {
  border-top: 1px solid var(--color-grey);
  padding-top: 1.5rem;
}

/* ============================================================================
   FORMS - Professional
   ============================================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-grey);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  /* ECKIG */
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 74, 103, 0.1);
}

.form-control.error {
  border-color: var(--color-danger);
}

.field-error {
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid;
}

.form-message.success {
  background: #d4edda;
  border-color: var(--color-success);
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  border-color: var(--color-danger);
  color: #721c24;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   BREADCRUMBS - Professional
   ============================================================================ */
.breadcrumbs {
  background: var(--color-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-grey);
  margin-top: 70px;
}

.breadcrumbs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumbs-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-list li:not(:last-child)::after {
  content: '/';
  color: var(--color-grey);
}

.breadcrumbs-list a {
  color: var(--color-text);
}

.breadcrumbs-list a:hover {
  color: var(--color-primary);
}

/* ============================================================================
   SERVICE PAGES - Professional Layout
   ============================================================================ */
.service-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 5rem 0;
  margin-top: 70px;
}

.service-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.service-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 100%;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  padding: 4rem 0;
}

.service-main {
  min-width: 0;
}

.service-sidebar {
  background: var(--color-light);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--color-grey);
}

.sidebar-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-grey);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-box {
  padding: 2rem;
  background: white;
  border: 1px solid var(--color-grey);
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

/* ============================================================================
   CONTENT SECTIONS
   ============================================================================ */
.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.content-section ul,
.content-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* ============================================================================
   TABLES - Professional
   ============================================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
}

table thead {
  background: var(--color-primary);
  color: white;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-grey);
}

table tbody tr:hover {
  background: var(--color-light);
}

/* ============================================================================
   FOOTER - Professional
   ============================================================================ */
footer {
  background: var(--color-primary-dark);
  color: white;
  padding: 4rem 0 2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: white;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .service-content {
    grid-template-columns: 1fr;
  }
  
  .service-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* MOBILE NAVIGATION */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    height: calc(100vh - 70px);
    overflow-y: auto;
    align-items: flex-start;
    gap: 0;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-grey);
  }
  
  .nav-menu li a {
    display: block;
    padding: 1rem 0;
    width: 100%;
  }
  
  .nav-logo-img {
    height: 40px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-content {
    padding: 0 1.5rem;
  }
  
  .slider-arrow {
    display: none;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero-slider {
    min-height: 500px;
  }
}

/* Logo Hover Effect */
.nav-logo:hover .nav-logo-img {
    opacity: 0.9;
}
