/* Modern CSS for ECG.ooo Website */

:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --accent-color: #f1faee;
  --dark-bg: #1d3557;
  --text-dark: #2b2d42;
  --text-light: #6c757d;
  --warning-bg: #fff3cd;
  --warning-border: #ffc107;
  --success-color: #28a745;
  --border-radius: 16px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  --gradient-secondary: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e63946 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f5f7fa 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 16px;
}

/* Navigation */
.navbar {
  background: var(--gradient-secondary) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff !important;
  transition: var(--transition);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

.nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  white-space: nowrap;
  word-break: keep-all;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Main Content */
main {
  padding-top: 2rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 200px);
}

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

.content-section {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem;
  margin-bottom: 2.5rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Typography */
.heading {
  color: var(--text-dark);
  text-align: center;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -1px;
}

h1.heading {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

h2 {
  color: var(--secondary-color);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow-hover);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 20s ease-in-out infinite;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.hero-section p.lead {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-badge {
  display: inline-block;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.app-store-badge:hover {
  transform: scale(1.08) translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.app-store-badge img {
  height: 60px;
  width: auto;
  display: block;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
}

.features-list li {
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.features-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.05), transparent);
  transition: var(--transition);
}

.features-list li:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  border-left-color: var(--secondary-color);
}

.features-list li:hover::before {
  width: 100%;
}

.features-list li strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

/* Warning Box */
.warning-text {
  background: linear-gradient(135deg, var(--warning-bg) 0%, #ffeaa7 100%);
  border: 2px solid var(--warning-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.warning-text::before {
  content: '⚠️';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.3;
}

.warning-text strong {
  color: #856404;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.warning-text p {
  margin: 0;
  color: #856404;
}

/* Carousel */
.carousel {
  max-width: 600px;
  margin: 3rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: #fff;
  padding: 1rem;
}

.carousel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--border-radius) - 4px);
  transition: var(--transition);
}

.carousel img:hover {
  transform: scale(1.02);
}

.slick-prev,
.slick-next {
  z-index: 1;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.slick-prev:hover,
.slick-next:hover {
  background: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.slick-prev:before,
.slick-next:before {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
}

.slick-dots {
  bottom: -40px;
}

.slick-dots li button:before {
  color: var(--primary-color);
  font-size: 14px;
  opacity: 0.5;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: var(--transition);
  font-size: 1rem;
  background: #f8f9fa;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.15);
  outline: none;
  background: #fff;
  transform: translateY(-2px);
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.valid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #28a745;
}

.form-control.is-valid ~ .valid-feedback {
  display: block;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  color: #fff;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
  background: var(--gradient-secondary);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Map Container */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 2rem 0;
  background: #fff;
  padding: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: calc(var(--border-radius) - 4px);
}

/* Footer */
#footer {
  background: var(--dark-bg);
  color: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
}

#footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.scroll-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.scroll-top a:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  margin: 1rem 0;
}

.app-store-badge:hover {
  transform: scale(1.05) translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.app-store-badge img {
  height: 60px;
  width: auto;
}

/* Text Center Utility */
.text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    padding: 1.5rem;
  }

  .content-section {
    padding: 2rem;
  }

  h1.heading {
    font-size: 2.75rem;
  }

  .heading {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }

  .hero-section p.lead {
    font-size: 1.1rem;
  }

  .heading {
    font-size: 2rem;
  }

  h1.heading {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .content-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  .carousel {
    max-width: 100%;
    padding: 0.5rem;
  }

  .features-list li {
    padding: 1.5rem;
  }

  .features-list li:hover {
    transform: translateY(-2px);
  }

  .nav-link {
    margin: 0.25rem 0;
    padding: 0.75rem 1rem !important;
  }

  .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .map-container iframe {
    height: 350px;
  }

  .app-store-badge img {
    height: 50px;
  }

  p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .heading {
    font-size: 1.75rem;
  }

  h1.heading {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .content-section {
    padding: 1.25rem;
  }

  .features-list li {
    padding: 1.25rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .map-container iframe {
    height: 300px;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }
}

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

.content-section {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed navbar */
}

/* Additional Modern Enhancements */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .mb-md-0 {
    margin-bottom: 0;
  }
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

.text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.ms-3 {
  margin-left: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-6,
.col-md-12 {
  padding: 0 15px;
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
  }
  
  .col-md-12 {
    flex: 0 0 100%;
  }
}

/* Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin: 1.5rem 0;
  padding: 0.75rem 0;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--text-light);
  font-weight: normal;
}

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

.breadcrumb-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 500;
}

/* Link Styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* List Styling */
ul:not(.features-list):not(.navbar-nav):not(.nav) {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

ul:not(.features-list):not(.navbar-nav):not(.nav) li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 2;
}

ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

/* Imprint/Legal Notice Styling */
.imprint {
  line-height: 1.8;
}

.imprint h2,
.imprint h3,
.imprint h4 {
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.imprint h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.imprint h3 {
  font-size: 1.5rem;
}

.imprint h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.imprint p {
  margin-bottom: 1rem;
}

/* Section Spacing */
section {
  margin-bottom: 3rem;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Focus States for Accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

