/* DSGVO-konforme Website für ian-service.de */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a4d7a;
  --secondary-color: #2a7ab8;
  --accent-color: #e8730f;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333;
  --text-color: #2c3e50;
  --border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* LAYOUT */
header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

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

header nav a.active {
  background-color: var(--accent-color);
}

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

footer {
  background-color: var(--light-gray);
  border-top: 1px solid var(--medium-gray);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 1rem;
}

footer a:hover {
  text-decoration: underline;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 3px solid var(--primary-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  flex: 1;
}

.cookie-banner a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.cookie-banner .btn-accept:hover {
  background-color: var(--secondary-color);
}

.cookie-banner .btn-reject {
  background-color: var(--medium-gray);
  color: var(--dark-gray);
}

.cookie-banner .btn-reject:hover {
  background-color: #ccc;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-buttons {
    flex-direction: column;
  }

  .cookie-banner button {
    width: 100%;
  }
}

/* HEADINGS */
h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  color: var(--primary-color);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--secondary-color);
}

h4 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem 0;
  color: var(--text-color);
}

/* CONTENT SECTIONS */
section {
  margin: 3rem 0;
}

.intro-section {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.intro-section h2 {
  margin-top: 0;
}

/* LINKS */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* LISTS */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* CONTACT INFO */
.contact-info {
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info strong {
  color: var(--primary-color);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--medium-gray);
  color: var(--dark-gray);
}

.btn-secondary:hover {
  background-color: #ccc;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

th {
  background-color: var(--light-gray);
  font-weight: 600;
  color: var(--primary-color);
}

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

/* INLINE ELEMENTS */
strong {
  font-weight: 600;
  color: var(--text-color);
}

em {
  font-style: italic;
}

code {
  background-color: var(--light-gray);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  header nav {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  header nav a {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  footer {
    padding: 1.5rem;
  }

  footer a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* PRINT STYLE */
@media print {
  header, footer, .cookie-banner {
    display: none;
  }

  body {
    line-height: 1.8;
    font-size: 12pt;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

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

  page-break-inside: avoid;

  h2, h3, h4 {
    page-break-after: avoid;
  }

  ul, ol, p {
    orphans: 3;
    widows: 3;
  }

  .contact-info {
    border: 1px solid var(--medium-gray);
    background-color: transparent;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }

  header {
    background-color: #0d1b2a;
  }

  .intro-section,
  .contact-info {
    background-color: #2a2a2a;
  }

  footer {
    background-color: #2a2a2a;
    border-top-color: #444;
  }

  th {
    background-color: #2a2a2a;
  }

  tr:hover {
    background-color: #333;
  }

  code {
    background-color: #2a2a2a;
  }
}
