/* ==========================================================================
   Code Tailor – static rebuild of codetailor.eu
   Design tokens taken from the original Elementor kit
   ========================================================================== */

/* Inter (SIL Open Font License) – variable font, self-hosted, latin subset */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  --primary: #0F41C6;        /* buttons, expertise section */
  --tab-active: #1B54EC;     /* active tab fill */
  --cyan: #02ACF3;           /* tab accent border */
  --light: #E9F4FF;          /* hero + icon backgrounds */
  --footer-bg: #D8EFF0;      /* footer */
  --dark: #1E1E1E;           /* headings / text */
  --text-soft: rgba(30, 30, 30, 0.72);
  --white: #FFFFFF;
  --border-soft: rgba(127, 127, 127, 0.18);
  --shadow-card: 0px 3px 50px 0px rgba(2, 1, 1, 0.08);
  --shadow-header: 0px 3px 50px 0px rgba(0, 0, 0, 0.03);
  --radius-card: 30px;
  --radius-img: 30px;
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3 { font-weight: 500; line-height: 1.15; }
.eyebrow {
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.section-title { font-size: clamp(32px, 4vw, 44px); }
.lead { font-size: 22px; line-height: 1.35; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 60px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #000; color: #fff; }

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 15px;
  z-index: 100;
  margin-bottom: -110px; /* let the hero flow underneath (original: -150px) */
}
.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-radius: 60px;
  box-shadow: var(--shadow-header);
  padding: 15px 30px;
  margin-top: 25px;
}
.brand img { height: 48px; width: auto; }
.header-right { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 18px;
  text-transform: capitalize;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.current { color: var(--primary); }

.lang-switch { display: flex; align-items: center; gap: 12px; }
.lang-switch a { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.lang-switch img { width: 22px; height: auto; border-radius: 2px; }
.lang-switch .lang-current { opacity: 0.45; pointer-events: none; }
.lang-switch a:not(.lang-current):hover { color: var(--primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; fill: var(--dark); }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .site-header { top: 10px; margin-bottom: -95px; }
  .header-pill { border-radius: 40px; padding: 8px 20px; }
  .brand img { height: 40px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    padding: 20px 30px;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-header .container { position: relative; }
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background-color: var(--light);
  background-image: url('../img/bg-hero.svg');
  background-size: cover;
  background-position: center;
  padding: 200px 0 200px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-grid img { border-radius: var(--radius-img); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-copy .eyebrow { font-size: 19px; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.1; }
.hero-copy .lead { color: var(--text-soft); }

@media (max-width: 900px) {
  .hero { padding: 160px 20px 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- About ------------------------------------------------------------------ */
.about {
  position: relative;
  background: #fff;
  border-radius: 70px 70px 0 0;
  margin-top: -70px;
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 55px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius-img); }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

@media (max-width: 900px) {
  .about { border-radius: 20px 20px 0 0; margin-top: -20px; padding: 60px 0 70px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid img { order: 2; }
}

/* ---- Expertise (tabs) -------------------------------------------------------- */
.expertise {
  position: relative;
  z-index: 1;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 0 0 110px;
}
/* white notch tab at the top holding the heading (original Elementor graphic) */
.expertise-head {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
  background: url('../img/bg-expertise-inner.png') top center no-repeat;
  background-size: contain;
  padding-top: 14px;
}
.expertise-head h2 { color: var(--primary); }
.expertise-head p { color: rgba(255, 255, 255, 0.85); font-size: 19px; margin-top: 36px; }

.tabs { display: flex; gap: 90px; align-items: flex-start; }
.tab-list { display: flex; flex-direction: column; width: 46%; flex: none; }
.tab-title {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  background: none;
  border: none;
  border-right: 5px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px 0 0 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  text-align: left;
  padding: 22px 40px 22px 20px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.tab-title svg { width: 51px; height: 51px; flex: none; }
.tab-title:hover { background: var(--tab-active); }
.tab-title[aria-selected="true"] {
  background: var(--tab-active);
  border-right-color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.tab-panels { flex: 1; min-width: 0; }
.tab-panel { display: none; flex-direction: column; gap: 28px; }
.tab-panel.active { display: flex; }
.tab-panel p { font-size: 21px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }
.tab-panel img { border-radius: var(--radius-img); width: 100%; object-fit: cover; }

.expertise-cta {
  margin-top: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.expertise-cta p { max-width: 820px; font-size: 21px; line-height: 1.4; }

@media (max-width: 900px) {
  .expertise { border-radius: 25px; padding-bottom: 70px; }
  .expertise-head { background: none; padding-top: 50px; }
  .expertise-head h2 { color: #fff; }
  .expertise-head p { margin-top: 20px; }
  .tabs { flex-direction: column; gap: 30px; }
  .tab-list { width: 100%; }
  .tab-title { border-radius: 18px; border-right: none; padding: 18px 20px; font-size: 20px; gap: 20px; }
  .tab-title svg { width: 38px; height: 38px; }
  .tab-title[aria-selected="true"] { border-bottom-color: var(--cyan); }
}

/* ---- Services ------------------------------------------------------------------ */
.services {
  background: var(--light);
  border-radius: 0 0 50px 50px;
  margin-top: -50px;
  padding: 160px 0 90px;
}
.services-head {
  margin: 0 0 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-card svg { width: 96px; height: 96px; }
.service-card h3 { font-size: 24px; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; }
.service-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } .services { border-radius: 0 0 25px 25px; margin-top: -25px; padding: 100px 0 60px; } }

/* ---- Features ("Was zeichnet mich aus?") ------------------------------------------ */
.features { padding: 90px 0 110px; }
.features-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-box {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-box h3 { font-size: 22px; line-height: 1.25; }
.feature-box p { color: var(--text-soft); }

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } .features { padding: 20px 0 70px; } }

/* ---- Contact ------------------------------------------------------------------------ */
.contact { padding: 0 0 90px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background-color: var(--primary);
  background-image: url('../img/bg-contact.svg');
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  color: #fff;
  padding: 80px 60px;
}
.contact-card h2 {
  width: 47%;
  flex: none;
  font-size: clamp(30px, 3.4vw, 42px);
  color: #fff;
}
.contact-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 60px;
  color: #fff;
  font-size: 18px;
  padding: 15px 28px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact-action svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.contact-action:hover { border-color: #fff; background: rgba(255, 255, 255, 0.18); }

@media (max-width: 900px) {
  .contact-card { flex-direction: column; align-items: stretch; padding: 50px 24px; gap: 30px; }
  .contact-card h2 { width: 100%; }
  .contact-actions { align-items: stretch; }
  .contact-action { justify-content: center; }
  .contact-actions .btn { justify-content: center; }
}

/* ---- Footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); padding: 90px 0 30px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-top .brand img { height: 54px; }
.footer-nav ul { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--primary); }

.footer-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}
.footer-follow { display: flex; align-items: center; gap: 24px; }
.footer-follow h2 { font-size: 22px; font-weight: 500; }
.social-list { display: flex; gap: 14px; }
.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  transition: background-color 0.25s ease;
}
.social-list a svg { width: 18px; height: 18px; fill: #fff; }
.social-list a:hover { background: var(--primary); }

.footer-contacts { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-box { display: flex; align-items: center; gap: 16px; }
.contact-box svg { width: 34px; height: 34px; fill: var(--dark); flex: none; }
.contact-box h3 { font-size: 17px; font-weight: 500; }
.contact-box a { color: var(--text-soft); }
.contact-box a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(30, 30, 30, 0.12);
  margin-top: 50px;
  padding-top: 26px;
  font-size: 15px;
}
.legal-nav ul { display: flex; gap: 24px; }
.legal-nav a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .site-footer { padding: 60px 0 24px; }
  .footer-top, .footer-mid, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Legal pages -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--light);
  background-image: url('../img/bg-hero.svg');
  background-size: cover;
  background-position: center;
  padding: 180px 0 80px;
  text-align: left;
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
.legal-content { padding: 70px 0 90px; max-width: 880px; }
.legal-content h1 { font-size: 38px; margin: 0 0 24px; }
.legal-content h2 { font-size: 30px; margin: 44px 0 16px; }
.legal-content h3 { font-size: 24px; margin: 32px 0 12px; }
.legal-content h4 { font-size: 19px; margin: 24px 0 10px; }
.legal-content p { margin: 0 0 16px; color: var(--text-soft); }
.legal-content ul { list-style: disc; padding-left: 24px; margin: 0 0 16px; color: var(--text-soft); }
.legal-content a { color: var(--primary); word-break: break-word; }
.legal-content a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .page-hero { padding: 150px 0 60px; }
}
