/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  background: #0f172a;
  -webkit-font-smoothing: antialiased;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(80, 120, 255, 0.12) 0%,
    transparent 40%
  );
}

@media (max-width: 767px) {
  body::before {
    display: none;
  }
}

/* ===== Header (sticky nav) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.header__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.header__logo:hover {
  opacity: 1;
}

.header__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.header__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.header__link:hover {
  color: #e2e8f0;
}

.header__link.is-active {
  color: #3b82f6;
}

/* Language switcher (inside header) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lang-switcher__btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  background: none;
  border: none;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-switcher__btn:hover {
  color: #e2e8f0;
}

.lang-switcher__btn.is-active {
  color: #3b82f6;
}

.lang-switcher__sep {
  color: #64748b;
  font-size: 0.75rem;
  user-select: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ===== Typography ===== */
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn--primary {
  color: #0f172a;
  background: #3b82f6;
}

.btn--primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ===== Hero (full-screen, lokální pozadí) ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  background-color: #0f172a;
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.7) 70%, #0f172a 100%),
    url('images/hero-berlin.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero__container {
  position: relative;
  z-index: 10;
  max-width: 850px;
  width: 100%;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ===== Section common ===== */
.section {
  padding: 4rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Accordion (Services + FAQ) ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion__item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.accordion__item:first-child {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.accordion__trigger:hover {
  color: #3b82f6;
}

.accordion__trigger .accordion__title {
  flex: 1;
  padding-right: 1rem;
}

.accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.2s ease;
}

.accordion__trigger:hover .accordion__icon {
  color: #3b82f6;
}

.accordion__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: currentColor;
}

.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 10px;
  margin: -5px 0 0 -1px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  overflow: hidden;
  transition: height 0.3s ease;
}

.accordion__panel[hidden] {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.accordion__content {
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

.accordion--faq .accordion__content {
  padding-top: 0;
}

/* ===== Projects ===== */
.projects-subtitle {
  margin: -0.5rem 0 2rem;
  max-width: 520px;
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.55;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.project-card {
  padding: 1.5rem 1.625rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
}

.project-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

.project-card__detail {
  margin: 0 0 0.75rem;
}

.project-card__detail p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.project-card__detail p + p {
  margin-top: 0.75rem;
}

.project-card__toggle {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.project-card__toggle:hover {
  color: #60a5fa;
}

.project-card__toggle[aria-expanded="true"] {
  color: #94a3b8;
}

.project-card__toggle-less[hidden] {
  display: none;
}

.project-card__toggle[aria-expanded="true"] .project-card__toggle-more {
  display: none;
}

.project-card__toggle[aria-expanded="true"] .project-card__toggle-less {
  display: inline;
}

.project-card__toggle[aria-expanded="true"] .project-card__toggle-less[hidden] {
  display: inline;
}

/* ===== How I help businesses ===== */
.process {
  padding: 4rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.process.section {
  padding: 4rem 0;
}

.process__intro {
  margin: 0 0 2rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 520px;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.process-step:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.process-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  font-size: 1rem;
  font-weight: 600;
}

.process-step__content {
  min-width: 0;
}

.process-step__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.35rem;
}

.process-step__desc {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ===== About ===== */
.about__block {
  max-width: 560px;
}

.about__text {
  margin: 0 0 1.5rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about__founder {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.about__founder strong {
  color: #e2e8f0;
}

/* ===== Contact ===== */
.contact {
  padding: 4rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

.contact__logo {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.contact__logo img {
  display: block;
  margin: 0 auto;
  height: 84px;
  width: auto;
}

.contact__intro {
  margin: 0 auto 1.25rem;
  max-width: 400px;
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.55;
}

.contact__form {
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: left;
}

.contact__form-honey {
  position: absolute;
  left: -9999px;
}

.contact__form-group {
  margin: 0 0 1.25rem;
}

.contact__form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.contact__form-group input,
.contact__form-group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder {
  color: #64748b;
}

.contact__form-group input:hover,
.contact__form-group textarea:hover {
  border-color: rgba(148, 163, 184, 0.3);
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.06);
}

.contact__form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== Workflow analyzer ===== */
.workflow-analyzer__subtitle {
  margin: -0.5rem 0 2rem;
  max-width: 560px;
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.55;
}

.workflow-analyzer__card {
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.workflow-analyzer__card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.workflow-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}

@media (min-width: 640px) {
  .workflow-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.workflow-form__group {
  margin: 0 0 1.25rem;
}

.workflow-form__group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.workflow-form__group input,
.workflow-form__group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.workflow-form__group input::placeholder,
.workflow-form__group textarea::placeholder {
  color: #64748b;
}

.workflow-form__group input:focus,
.workflow-form__group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.06);
}

.workflow-form__group textarea {
  min-height: 80px;
  resize: vertical;
}

.workflow-form__actions {
  margin: 1.25rem 0 0;
}

.workflow-form__hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.workflow-result {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.workflow-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.workflow-result__heading {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 0.35rem;
}

.workflow-result__type {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
}

.workflow-result__also {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.workflow-result__subheading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.workflow-result__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.workflow-result__list li + li {
  margin-top: 0.35rem;
}

.workflow-result__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.workflow-result__text:last-of-type {
  margin-bottom: 0;
}

.workflow-result__ai {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.workflow-result__ai p {
  margin: 0 0 1rem;
}

.workflow-result__ai p:last-child {
  margin-bottom: 0;
}

.contact__form-actions {
  margin: 1.5rem 0 0;
}

.contact__form-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .contact__form-actions .btn {
    width: auto;
  }
}

.contact__email {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #cbd5e1;
}

.contact__email a {
  color: #3b82f6;
  text-decoration: none;
}

.contact__email a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.footer a {
  color: #64748b;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #94a3b8;
}

/* ===== Impressum page ===== */
.impressum-page {
  padding: clamp(4rem, 12vw, 6rem) 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Vycentruje všechno na střed */
}

.impressum-page__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Tady vytváříme tu elegantní průhlednou kartu */
.impressum-page__content {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px; /* Aby karta nebyla roztažená přes celý monitor */
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.impressum-page__content p {
  margin: 0 0 1.25rem;
}

.impressum-page__content p:last-child {
  margin-bottom: 0;
}

.impressum-page__content strong {
  display: block;
  font-size: 1.2rem;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.impressum-page__content a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.impressum-page__content a:hover {
  color: #60a5fa;
}

/* Vyladěné tlačítko pro návrat zpět */
.impressum-page__back {
  margin-top: 3rem;
  text-align: center;
}

.impressum-page__back a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.impressum-page__back a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}