/* TIEFENWERK Website Styles */
/* Dark Theme matching React App */

:root {
  /* Colors - Dark Theme */
  --background: 0 0% 7%;
  --foreground: 0 0% 98%;
  --card: 0 0% 10%;
  --card-foreground: 0 0% 98%;
  --card-border: 0 0% 15%;
  --popover: 0 0% 10%;
  --popover-foreground: 0 0% 98%;
  --primary: 24 45% 48%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;
  --accent: 0 0% 15%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 15%;
  --input: 0 0% 15%;
  --ring: 24 45% 48%;
  --radius: 0.5rem;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 300;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background-color: transparent;
}

nav.scrolled {
  background-color: hsla(var(--background), 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

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

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 3rem;
  }
}

.nav-logo img {
  height: 104px;
  width: auto;
  object-fit: contain;
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .nav-logo img {
    height: 83px;
  }
}

body:not(.homepage) .nav-logo img,
nav.scrolled .nav-logo img {
  filter: none;
}

body.homepage nav:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 15px;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
  color: hsl(var(--muted-foreground));
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

body.homepage nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

body.homepage nav:not(.scrolled) .nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

body.homepage nav:not(.scrolled) .mobile-menu-toggle {
  color: white;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: hsl(var(--background));
  padding-top: 6rem;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-inline: 1.5rem;
  padding-block-start: 9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 300;
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: hsl(var(--muted-foreground));
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

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

@media (min-width: 1024px) {
  .hero-content {
    padding: 0 3rem;
  }
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 5rem;
  }
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: 1.25rem;
  }
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  min-height: 2.25rem;
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-outline {
  border: 1px solid currentColor;
  background-color: transparent;
  backdrop-filter: blur(8px);
  color: white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* Card */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-content {
  padding: 2rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .grid-md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-md-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .grid-lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Section */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
}

.section-top {
  padding-top: 6rem;
}

@media (min-width: 768px) {
  .section-top {
    padding-top: 7rem;
  }
}

@media (min-width: 1024px) {
  .section-top {
    padding-top: 8rem;
  }
}

/* Footer */
footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-logo img {
  max-height: 4rem;
  width: auto;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: hsl(var(--foreground));
}

/* Cookie Banner */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
}

#cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-card {
  max-width: 1400px;
  margin: 0 auto;
  background-color: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-header {
  display: flex;
  gap: 1rem;
}

.cookie-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.cookie-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary));
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.cookie-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-buttons {
    flex-direction: row;
  }
}

.cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.cookie-links a {
  text-decoration: underline;
}

.cookie-links a:hover {
  color: hsl(var(--foreground));
}

/* Cookie Settings Modal */
#cookie-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.8);
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cookie-settings-modal.show {
  opacity: 1;
}

.cookie-modal-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-modal-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.5rem;
}

.cookie-modal-close:hover {
  color: hsl(var(--foreground));
}

.cookie-category {
  padding: 1.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-category-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: hsl(var(--input));
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(20px);
}

.cookie-toggle input:checked ~ .cookie-toggle {
  background-color: hsl(var(--primary));
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.cookie-modal-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
}

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

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-primary {
  color: hsl(var(--primary));
}

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

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

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

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

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Icon */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Material Icons */
.material-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: hsla(var(--primary), 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.material-icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary));
}

/* Tabs */
.tabs {
  width: 100%;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
  height: auto;
}

@media (min-width: 768px) {
  .tabs-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tab-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(var(--muted-foreground));
}

.tab-trigger:hover {
  background-color: hsl(var(--accent));
}

.tab-trigger.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Process Steps */
.process-step {
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.process-step:hover .process-number {
  color: hsl(var(--primary));
}

.process-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: hsla(var(--muted-foreground), 0.3);
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .process-number {
    font-size: 3rem;
  }
}

.process-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .process-content h4 {
    font-size: 1.25rem;
  }
}

.process-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .process-content p {
    font-size: 1rem;
  }
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: hsl(var(--primary));
}

.accordion-icon {
  transition: transform 0.2s ease;
}

.accordion-trigger.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.accordion-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Contact Info */
.contact-info-box {
  display: flex;
  gap: 1rem;
}

.contact-icon-box {
  width: 3rem;
  height: 3rem;
  background-color: hsla(var(--primary), 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.contact-info-content {
  flex: 1;
}

.contact-info-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.contact-info-value {
  color: hsl(var(--foreground));
}

.contact-info-value a {
  transition: color 0.2s ease;
}

.contact-info-value a:hover {
  color: hsl(var(--primary));
}
