/* TranslatorCRM Help System Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Brand Colors */
:root {
  --brand-turquoise: #7BC5CE; /* R123 G197 B206 */
  --brand-orange: #EE7742;    /* R238 G119 B66 */
  --brand-turquoise-dark: #5BA8B3;
  --brand-orange-dark: #E55A2B;
  --brand-turquoise-light: #A8D8DD;
  --brand-orange-light: #F4A582;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --background-light: #f8fffe;
  --background-white: #ffffff;
  --border-light: #e8f4f5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
}

/* no-sidebar entfernt – Sidebar bleibt erhalten */

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.aside {
  width: 280px;
  background: linear-gradient(180deg, var(--brand-turquoise) 0%, var(--brand-turquoise-dark) 100%);
  color: white;
  padding: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.brand {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.search {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.search::placeholder {
  color: rgba(255,255,255,0.7);
}


.nav {
  margin-bottom: 20px;
}

.nav-section {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin: 20px 0 10px 0;
  letter-spacing: 0.5px;
}

.nav a {
  display: block;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 0;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
  transform: translateX(4px);
}

.nav a.active {
  background: var(--brand-orange);
  color: white;
  border-color: var(--brand-orange-dark);
  box-shadow: 0 2px 8px rgba(238, 119, 66, 0.3);
  font-weight: 500;
}

.footer {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* Bottom-links entfernt */

/* Main Content */
.main {
  margin-left: 280px;
  padding: 40px;
  max-width: 800px;
  background: var(--background-white);
  min-height: 100vh;
}

/* Header with search */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

.search-container {
  flex-shrink: 0;
}

.header .search {
  width: 250px;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
  color: #495057;
  font-size: 14px;
}

.header .search::placeholder {
  color: #6c757d;
}

.header .search:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #2c3e50;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  margin: 32px 0 16px 0;
  color: #34495e;
  font-weight: 600;
}

.lead {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 24px;
}

.callout {
  background: linear-gradient(135deg, var(--brand-turquoise-light) 0%, rgba(123, 197, 206, 0.1) 100%);
  border-left: 4px solid var(--brand-turquoise);
  padding: 24px;
  margin: 24px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(123, 197, 206, 0.15);
  border: 1px solid rgba(123, 197, 206, 0.2);
}

.callout strong {
  color: var(--brand-turquoise-dark);
  font-weight: 600;
}

ol, ul {
  margin: 16px 0;
  padding-left: 24px;
}

li {
  margin: 8px 0;
  color: #555;
}

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

a:hover {
  color: var(--brand-turquoise-dark);
  text-decoration: underline;
  transform: translateY(-1px);
}

.screenshot {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 4px;
  color: #6c757d;
  font-style: italic;
}

.tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.tag {
  display: inline-block;
  background: var(--brand-turquoise-light);
  color: var(--brand-turquoise-dark);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  border: 1px solid rgba(123, 197, 206, 0.3);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--brand-turquoise);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(123, 197, 206, 0.3);
}

/* Documentation Sections */
.doc-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.doc-section {
  background: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(123, 197, 206, 0.1);
  transition: all 0.3s ease;
}

.doc-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(123, 197, 206, 0.2);
  border-color: var(--brand-turquoise-light);
}

.doc-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--brand-turquoise-dark);
  font-weight: 600;
}

.doc-section ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.doc-section li {
  margin: 8px 0;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.doc-section li:last-child {
  border-bottom: none;
}

.doc-section a {
  color: var(--brand-turquoise);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.doc-section a:hover {
  color: var(--brand-turquoise-dark);
  text-decoration: underline;
  transform: translateX(2px);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Smartphones (Portrait) - iPhone */
@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
    padding: 10px;
  }

  .container {
    flex-direction: column;
  }

  .aside {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
    background: #34495e;
  }

  .brand {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-section {
    font-size: 12px;
    margin: 8px 0 4px 0;
    color: #bdc3c7;
  }

  .nav a {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    margin: 2px;
    display: inline-block;
  }

  .main {
    margin-left: 0;
    padding: 15px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  h1, h2 {
    font-size: 1.2em;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.1em;
  }

  .callout {
    padding: 20px !important;
    margin: 20px 0 !important;
  }

  .promo-section {
    padding: 20px !important;
  }

  .doc-sections {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .doc-section {
    padding: 15px;
  }

  /* Grid layouts für mobile optimieren */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Buttons größer machen für Touch */
  a[style*="display: inline-block"] {
    padding: 12px 20px !important;
    font-size: 16px !important;
    margin: 8px 4px !important;
  }
}

/* Tablets (iPad) - Portrait und Landscape */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 1rem;
  }

  .aside {
    width: 240px;
    padding: 18px;
  }

  .main {
    margin-left: 240px;
    padding: 25px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .callout {
    padding: 25px !important;
  }

  .promo-section {
    padding: 25px !important;
  }

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

  /* Grid layouts für Tablet optimieren */
  div[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Desktops (macOS Safari, Chrome etc.) */
@media (min-width: 1025px) {
  body {
    font-size: 1.05rem;
  }

  .aside {
    width: 280px;
  }

  .main {
    margin-left: 280px;
    max-width: 1200px;
    padding: 30px;
  }

  .content {
    max-width: 900px;
    margin: auto;
  }

  .callout {
    padding: 32px !important;
  }

  .promo-section {
    padding: 40px !important;
  }

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

/* Dark Mode Unterstützung für Apple-Geräte */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #eee;
  }

  .main {
    background-color: #121212;
    color: #eee;
  }

  .callout {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    color: white !important;
  }

  .promo-section {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    color: white !important;
  }

  a {
    color: #7BC5CE;
  }

  .nav a {
    color: #bdc3c7;
  }

  .nav a:hover {
    color: #7BC5CE;
  }

  .doc-section {
    background: #2d3748;
    border: 1px solid #4a5568;
  }

  .doc-section h3 {
    color: #7BC5CE;
  }

  .doc-section li {
    color: #e2e8f0;
  }

  .doc-section a {
    color: #7BC5CE;
  }
}