/* TURCK Shop Theme - Inspired by shop.turck.de */
:root {
  --header-h: 0px;
  /* TURCK Brand Colors (Official CI) */
  --turck-yellow: #FFCC00;        /* RGB 255/204/0 - PANTONE 116 C */
  --turck-yellow-dark: #E6B800;   /* Darker Yellow for hover */
  --turck-black: #000000;          /* RGB 0/0/0 - RAL 9005 */
  --turck-anthracite: #2d3436;    /* Dark Grey */
  --turck-gray: #4a4a4a;          /* Grey */
  --turck-gray-light: #6c757d;    /* Light Grey */
  --turck-gray-lighter: #dee2e6;  /* Lighter Grey */
  --turck-white: #ffffff;          /* RGB 255/255/255 - RAL 9016 */
  --turck-bg: #f8f9fa;            /* Background */
  --turck-accent: #6E2847;        /* RGB 110/40/71 - PANTONE 216C (Accent Color) */
  --turck-accent-light: #8B3359;  /* Lighter Accent */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--turck-bg);
  color: var(--turck-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* CARDS - Industrial Style */
.card {
  background: var(--turck-white);
  border: 1px solid var(--turck-gray-lighter);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.15);
  border-left-color: var(--turck-yellow);
}

.card-header {
  background: var(--turck-anthracite);
  color: var(--turck-white);
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid var(--turck-yellow);
}

.card-body {
  padding: 1.5rem;
}

/* BUTTONS - TURCK Style */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--turck-yellow);
  color: var(--turck-black);
}

.btn-primary:hover {
  background: var(--turck-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 204, 0, 0.3);
}

.btn-secondary {
  background: var(--turck-anthracite);
  color: var(--turck-white);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background: var(--turck-gray);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(45, 52, 54, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--turck-yellow);
  color: var(--turck-black);
}

.btn-outline:hover {
  background: var(--turck-yellow);
}

/* INPUTS */
input, textarea, select {
  background: var(--turck-white);
  border: 1px solid var(--turck-gray-lighter);
  border-radius: 2px;
  padding: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
  color: var(--turck-black);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--turck-yellow);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--turck-gray-light);
}

/* HEADINGS */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--turck-black);
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--turck-black);
  margin: 0 0 0.75rem 0;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--turck-black);
  margin: 0 0 0.5rem 0;
}

/* SECTIONS */
.section {
  padding: 2rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--turck-anthracite);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--turck-yellow);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* HERO SECTION */
/* HERO SECTION */
.hero {
  background: var(--turck-yellow);
  color: var(--turck-black);
  padding: 1.5rem 0;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--turck-anthracite);
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--turck-black);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--turck-anthracite);
  margin-bottom: 0;
}

/* STATS - Industrial */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--turck-white);
  border: 1px solid var(--turck-gray-lighter);
  border-left: 4px solid var(--turck-yellow);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
  transform: translateY(-2px);
  border-left-color: var(--turck-yellow-dark);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--turck-anthracite);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
  color: var(--turck-black);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--turck-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* AGENDA - Professional Table */
details {
  background: var(--turck-white);
  border: 1px solid var(--turck-gray-lighter);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

details[open] {
  border-left-color: var(--turck-yellow);
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.15);
}

summary {
  list-style: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  font-weight: 600;
  color: var(--turck-black);
  background: var(--turck-white);
}

summary:hover {
  background: var(--turck-bg);
  padding-left: 1.75rem;
}

summary::-webkit-details-marker,
summary::marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--turck-yellow);
  transition: all 0.3s ease;
}

summary:hover::after {
  color: var(--turck-yellow-dark);
}

details[open] summary::after {
  content: '−';
  color: var(--turck-yellow);
}

.agenda-content {
  padding: 1.5rem;
  background: var(--turck-bg);
  border-top: 1px solid var(--turck-gray-lighter);
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
}

.agenda-table tr {
  border-bottom: 1px solid var(--turck-gray-lighter);
}

.agenda-table tr:last-child {
  border-bottom: none;
}

.agenda-table td {
  padding: 1rem 0.5rem;
  vertical-align: top;
}

.agenda-time {
  font-weight: 700;
  color: var(--turck-anthracite);
  font-size: 0.95rem;
  white-space: nowrap;
  width: 100px;
}

.agenda-title {
  font-weight: 600;
  color: var(--turck-black);
  margin-bottom: 0.25rem;
}

.agenda-subtitle {
  font-size: 0.875rem;
  color: var(--turck-gray);
}

.agenda-speaker {
  font-size: 0.875rem;
  color: var(--turck-gray-light);
}

/* INFO BANNER */
.info-banner {
  background: var(--turck-yellow);
  color: var(--turck-black);
  padding: 1rem 1.5rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--turck-anthracite);
}

.info-banner-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* IFRAMES */
.frames-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

/* Beide Cards mit Flexbox-Layout */
.frames-grid .card {
  display: flex;
  flex-direction: column;
}

/* Teams Card (linke Seite) - bestimmt die Höhe mit 16:9 Verhältnis */
.frames-grid .card:first-child .iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.frames-grid .card:first-child .iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Slido Card (rechte Seite) - passt sich an Teams Card-Höhe an */
.frames-grid .card:last-child {
  align-self: stretch; /* Streckt sich auf die Höhe der Teams Card */
}

.frames-grid .card:last-child .iframe-container {
  flex: 1; /* Füllt den restlichen Platz nach dem Header */
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 0; /* Wichtig für Flexbox */
}

.frames-grid .card:last-child .iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Standard iframe-container außerhalb von frames-grid */
.iframe-container {
  position: relative;
  overflow: hidden;
  background: #000;
}

.iframe-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 600px;
}

.iframeBox {
  height: calc(100vh - var(--header-h) - 300px);
  min-height: 400px;
  width: 100%;
  border: none;
}

@media (max-width: 1024px) {
  .iframeBox { height: 50vh; }
}

@media (max-width: 640px) {
  .iframeBox { height: 40vh; }
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-yellow {
  background: var(--turck-yellow);
  color: var(--turck-black);
}

.badge-dark {
  background: var(--turck-anthracite);
  color: var(--turck-white);
}

/* LINKS */
a {
  color: var(--turck-yellow-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* DIVIDER */
.divider {
  height: 3px;
  background: var(--turck-yellow);
  margin: 2rem 0;
}

/* ALERT / MESSAGE */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 2px;
  border-left: 4px solid;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.alert-warning {
  background: var(--turck-yellow);
  border-color: var(--turck-yellow-dark);
  color: var(--turck-black);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--turck-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--turck-gray-lighter);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--turck-yellow);
}

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

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

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
  
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.125rem; }
  
  .stat-value { font-size: 2rem; }
  
  .frames-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Auf Mobile: Beide Cards normal ohne Höhen-Synchronisation */
  .frames-grid .card:last-child {
    align-self: auto;
  }
  
  .frames-grid .card:last-child .iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 auf Mobile */
    height: 0;
    flex: none;
  }
  
  .iframe-16-9 {
    max-height: 400px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* UTILITY CLASSES */
.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; }

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

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }

/* LOGIN SPECIFIC */
.login-container {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--turck-anthracite) 0%, var(--turck-black) 100%);
  position: relative;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--turck-yellow);
}

.login-card {
  background: var(--turck-white);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 450px;
  width: 100%;
}

.login-header {
  background: var(--turck-yellow);
  color: var(--turck-black);
  padding: 2rem;
  text-align: center;
  border-bottom: 4px solid var(--turck-anthracite);
}

.login-body {
  padding: 2rem;
}

.login-footer {
  background: var(--turck-bg);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--turck-gray);
  border-top: 1px solid var(--turck-gray-lighter);
}
