/* ===== omninoo GmbH - Custom Theme ===== */

:root {
  --color-primary: #1a6b7a;
  --color-primary-dark: #134f5c;
  --color-accent: #3ab5c4;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fa;
  --color-bg-dark: #0f2b33;
  --color-text: #2c3e50;
  --color-text-light: #6b7b8d;
  --color-border: #e2e8f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 1100px;
  --header-height: 88px;
}

/* ===== Reset & Base ===== */

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

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

/* ===== Typography ===== */

h1, h2, h3, h4 {
  color: var(--color-bg-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* ===== Layout ===== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

section.alt {
  background: var(--color-bg-alt);
}

/* ===== Header & Navigation ===== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-bg-dark);
}

.logo img {
  height: 42px;
  width: auto;
}

.logo-slogan {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  letter-spacing: 0.12em;
  margin-top: 4px;
  padding-left: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: var(--color-primary);
}

nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero Section ===== */

.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero .bg-image,
.page-header .bg-image,
.image-section .section-bg .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: inherit;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero .bg-image.loaded,
.page-header .bg-image.loaded,
.image-section .section-bg .bg-image.loaded {
  opacity: 1;
}

.hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 43, 51, 0.88) 0%, rgba(19, 79, 92, 0.82) 100%);
  z-index: 1;
}

.hero:not([style*="background-image"])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(58, 181, 196, 0.15) 0%, transparent 60%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #ffffff;
  font-size: 3.25rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero .subtitle {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

/* ===== Stats Bar ===== */

.stats-bar {
  background: var(--color-bg-dark);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

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

/* ===== Testimonials ===== */

.testimonial {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.testimonial-author strong {
  color: var(--color-primary-dark);
  font-style: normal;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 181, 196, 0.3);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== Cards & Grid ===== */

.grid {
  display: grid;
  gap: 2rem;
}

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

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

/* ===== Tech Tags ===== */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  transition: all 0.2s;
}

.tech-tag:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.tech-tag.primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ===== Section Headers ===== */

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.75rem;
}

.section-header p {
  margin-top: 1rem;
  max-width: 600px;
}

/* ===== Blog List ===== */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item time {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-family: var(--font-mono);
}

.blog-item h2 {
  margin: 0.25rem 0;
  font-size: 1.35rem;
}

.blog-item h2 a {
  color: var(--color-bg-dark);
}

.blog-item h2 a:hover {
  color: var(--color-primary);
}

.blog-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== Single Blog Post ===== */

.blog-post {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.blog-post .meta {
  color: var(--color-text-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.blog-post .content h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.blog-post .content h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.blog-post .content p {
  color: var(--color-text);
}

.blog-post .content code {
  font-family: var(--font-mono);
  background: var(--color-bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.blog-post .content pre {
  background: var(--color-bg-dark);
  color: #e0e0e0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post .content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.blog-post .content ul, .blog-post .content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--color-text);
}

.blog-post .content li {
  margin-bottom: 0.5rem;
}

/* ===== Kontakt ===== */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info .contact-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

/* ===== Task List ===== */

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.task-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 3px;
}

/* ===== Contact Grid ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.contact-card .card-icon {
  margin: 0 auto 1.25rem;
}

.contact-card h3 {
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-card .btn {
  margin-top: 0.5rem;
}

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

/* ===== CTA Icon ===== */

.cta-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 1.5rem;
}

/* ===== Footer ===== */

footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
  color: var(--color-accent);
}

footer .footer-tagline {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.4);
}

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

/* ===== Page Header ===== */

.page-header {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-header[style*="background-image"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 43, 51, 0.85) 0%, rgba(19, 79, 92, 0.78) 100%);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.page-header .page-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

/* ===== Image Section ===== */

.image-section {
  position: relative;
  overflow: hidden;
}

.image-section .section-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.image-section .section-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 43, 51, 0.9) 0%, rgba(19, 79, 92, 0.85) 100%);
  z-index: 1;
}

.image-section .container {
  position: relative;
  z-index: 2;
}

.image-section h2,
.image-section p,
.image-section .task-item {
  color: #ffffff;
}

.image-section .task-item svg {
  color: var(--color-accent);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 3rem 0; }

  .hero {
    padding: 7rem 0 4rem;
  }

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

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  nav a {
    font-size: 1.1rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ===== Scroll Animations ===== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== Tooltips ===== */

abbr[title], abbr[data-title] {
  position: relative;
  text-decoration: underline dotted var(--color-accent);
  text-underline-offset: 3px;
  cursor: help;
}

abbr[data-title]::after {
  content: attr(data-title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-dark);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  z-index: 100;
}

abbr[data-title]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-bg-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  z-index: 100;
}

abbr[data-title]:hover::after,
abbr[data-title]:hover::before {
  opacity: 1;
}

a.read-more {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  color: var(--color-primary);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

a.read-more::before {
  content: '→ ';
}

a.read-more:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

.page-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  white-space: nowrap;
  margin-top: 0.5rem;
}

hr.edit-divider {
  border: none;
  border-top: 2px solid #d4e8ec;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.edit-note {
  color: var(--color-text-light);
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.blog-subtitle {
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }
}
