/* =====================================================
   InfoRapid – Responsive Stylesheet
   ===================================================== */

:root {
  --color-primary:     #2d5fa6;
  --color-primary-dk:  #1c3f73;
  --color-primary-lt:  #5c82c5;
  --color-accent:      #e8edf8;
  --color-accent-dk:   #d0d8f0;
  --color-nav-bg:      #788daf;
  --color-text:        #1a1a2e;
  --color-text-muted:  #555566;
  --color-border:      #c8cfe8;
  --color-white:       #ffffff;
  --color-bg:          #f7f8fc;
  --color-footer-bg:   #1c2a3a;

  --font-sans: 'Segoe UI', Arial, Helvetica, sans-serif;
  --font-size-base: 1rem;

  --radius: 6px;
  --shadow: 0 2px 8px rgba(44,95,166,0.10);
  --shadow-md: 0 4px 16px rgba(44,95,166,0.14);

  --nav-height: 60px;
  --sidebar-w: 220px;
  --max-w: 1140px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--color-primary-dk); }
ul { list-style: none; }

/* =====================================================
   TOP-NAV / HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary-dk);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-logo span { color: #8ec5fc; }
.nav-logo:hover { text-decoration: none; color: var(--color-white); }

.nav-links {
  display: flex;
  gap: .25rem;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: .35rem .8rem;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
}

/* Lang flag buttons */
.lang-switch { display: flex; gap: .4rem; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,0.9);
  transition: background .15s;
}
.lang-switch a:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.lang-switch a.active { background: rgba(255,255,255,0.22); border-color: #fff; color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--color-primary-dk);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: .95rem;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Two-column layout: sidebar + main */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 2rem;
  align-items: start;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}
.sidebar-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.sidebar-block__title {
  background: var(--color-primary-dk);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem .9rem;
}
.sidebar-nav a {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--color-accent);
  font-size: .87rem;
  color: var(--color-text);
  transition: background .12s;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { background: var(--color-accent); text-decoration: none; }
.sidebar-nav a.active { background: var(--color-accent-dk); font-weight: 600; }
.sidebar-nav a .nav-icon { font-size: .7rem; margin-top: .25rem; color: var(--color-primary); }
.sidebar-nav a .nav-desc {
  font-size: .78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  display: block;
}

/* Impressum block */
.sidebar-impressum { padding: .8rem .9rem; font-size: .82rem; color: var(--color-text-muted); line-height: 1.6; }
.sidebar-impressum strong { display: block; color: var(--color-text); margin-bottom: .25rem; }

/* =====================================================
   HERO (index / language select)
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 60%, var(--color-primary-lt) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: .5rem; letter-spacing: .02em; }
.hero p { font-size: 1.1rem; opacity: .88; max-width: 500px; margin: 0 auto 2rem; }
.lang-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lang-card {
  background: rgba(255,255,255,0.13);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 1.75rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.lang-card:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; color: #fff; }
.lang-card .flag { font-size: 2.5rem; }

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-title {
  background: var(--color-nav-bg);
  color: #fff;
  padding: .6rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}
.section-body {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

/* =====================================================
   PRODUCT GRID (home page)
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.product-card__header {
  background: var(--color-nav-bg);
  color: #fff;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 700;
}
.product-card__img {
  background: var(--color-accent);
  text-align: center;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body {
  padding: .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: .3rem;
}
.product-card__desc { font-size: .87rem; color: var(--color-text-muted); flex: 1; }
.product-card__badges { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 20px;
  background: var(--color-accent-dk);
  color: var(--color-primary-dk);
}
.badge--green { background: #d4edda; color: #155724; }
.badge--orange { background: #fff3cd; color: #856404; }

/* =====================================================
   PRESS RELEASES
   ===================================================== */
.press-release {
  background: #f0f2f8;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.press-release h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dk);
  margin-bottom: .75rem;
}
.press-release p { font-size: .88rem; line-height: 1.7; color: var(--color-text); }
.press-release p + p { margin-top: .75rem; }

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.product-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}
.product-hero h1 { font-size: 1.5rem; font-weight: 700; }
.product-hero p { font-size: .9rem; opacity: .88; margin-top: .3rem; }

.content-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.content-card h2 { font-size: 1.1rem; color: var(--color-primary-dk); margin-bottom: .75rem; }
.content-card h3 { font-size: .97rem; color: var(--color-primary); margin-top: 1rem; margin-bottom: .4rem; }
.content-card p { font-size: .9rem; line-height: 1.75; color: var(--color-text); margin-bottom: .75rem; }
.content-card ul { padding-left: 1.25rem; list-style: disc; }
.content-card ul li { font-size: .9rem; line-height: 1.7; margin-bottom: .2rem; }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.screenshots-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}
/* Single-image: full width */
.screenshots-grid.screenshots-single {
  grid-template-columns: 1fr;
}
.screenshots-grid.screenshots-single img {
  max-width: 100%;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.pricing-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  background: var(--color-white);
}
.pricing-card.featured { border-color: var(--color-primary); background: var(--color-accent); }
.pricing-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.pricing-card .price { font-size: 1.6rem; font-weight: 800; color: var(--color-primary); margin: .4rem 0; }
.pricing-card .price-note { font-size: .8rem; color: var(--color-text-muted); }
.pricing-card ul { text-align: left; font-size: .85rem; margin: .75rem 0; list-style: disc; padding-left: 1.1rem; }

/* CTA Buttons */
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-primary-dk); }

/* =====================================================
   NEWS/NOTICE BLOCKS
   ===================================================== */
.notice {
  background: var(--color-accent);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .8rem 1rem;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.notice strong { color: var(--color-primary-dk); display: block; margin-bottom: .2rem; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-item .icon { font-size: 1.1rem; margin-top: .1rem; }
.contact-item .label { font-size: .8rem; color: var(--color-text-muted); }
.contact-item .value { font-size: .9rem; font-weight: 600; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.75);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: .4rem;
}
.footer-col a { color: rgba(255,255,255,0.68); font-size: .85rem; display: block; padding: .2rem 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col p { font-size: .85rem; line-height: 1.65; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,0.45);
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-text-muted); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  /* On mobile the sidebar appears below main on product pages */
  .sidebar-order-first { order: -1; }
}

@media (max-width: 700px) {
  .nav-links, .lang-switch { display: none; }
  .nav-toggle { display: flex; }

  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 2.5rem 1rem 2rem; }

  .product-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  .screenshots-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 450px) {
  .lang-cards { flex-direction: column; align-items: stretch; }
  .lang-card { padding: 1.25rem; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
