/* --- RESET & BASELINE NORMALIZATION --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #163153;
  background: #F5F4F0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #163153;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E08C21;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

/* --- TYPOGRAPHY SCALE & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #163153;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
p, li, dt, dd, cite, blockquote {
  font-size: 1rem;
  margin-bottom: 12px;
}
blockquote {
  font-style: italic;
  color: #163153;
  border-left: 4px solid #E08C21;
  padding-left: 16px;
  margin-bottom: 8px;
}
cite {
  display: block;
  font-size: 0.95rem;
  color: #2B4267;
  margin-top: 6px;
  font-style: normal;
}
strong, b {
  font-weight: 700;
}

/* --- CONTAINER LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #D6DBE3;
  box-shadow: 0 2px 8px rgba(22,49,83,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
header img {
  height: 40px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #163153;
  padding: 8px 4px;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, 
.main-nav a:focus {
  color: #E08C21;
}

.cta-button {
  background: #E08C21;
  color: #fff;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 28px;
  margin-left: 28px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22,49,83,0.09);
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-block;
}
.cta-button.primary {
  background: #163153;
  color: #fff;
  border: none;
}
.cta-button:hover, .cta-button:focus {
  background: #E08C21;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(22,49,83,0.14);
}

/* Burger menu button */
.mobile-menu-toggle {
  background: #163153;
  color: #fff;
  border-radius: 4px;
  border: 2px solid #E08C21;
  font-size: 2rem;
  padding: 4px 14px 8px 14px;
  margin-left: 22px;
  cursor: pointer;
  display: none;
  transition: background 0.2s;
  z-index: 1101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E08C21;
  color: #fff;
  border-color: #163153;
}

/* --- HERO SECTIONS --- */
.hero {
  background: #163153;
  color: #fff;
  padding: 60px 0 48px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
}
.hero .cta-button {
  background: #E08C21;
  color: #fff;
}
/* Category hero backgrounds */
.hero.kuechen-hacks { background: #183A5E; }
.hero.alltags-hacks { background: #1B466C; }
.hero.zuhause-hacks { background: #204B65; }
.hero.tech-pc-hacks { background: #253E53; }

/* --- SECTION SPACING & FLEX PATTERNS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(22,49,83,0.07);
  padding: 32px 28px 28px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(22,49,83,0.13);
  transform: translateY(-4px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(22,49,83,0.09);
  margin-bottom: 20px;
  border-left: 6px solid #E08C21;
  transition: box-shadow 0.18s;
}
.testimonial-card blockquote {
  color: #163153;
  font-size: 1.13rem;
  margin-bottom: 0;
}
.testimonial-card cite {
  color: #204B65;
  margin-top: 0;
  margin-left: 8px;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(22,49,83,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}
.feature-grid li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(22,49,83,.08);
  min-width: 240px;
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 20px 24px 20px;
  transition: box-shadow 0.18s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-grid li img {
  height: 42px;
  width: 42px;
  margin-bottom: 10px;
}
.feature-grid li h3 {
  font-size: 1.2rem;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px rgba(22,49,83,0.15);
  transform: translateY(-2px) scale(1.02);
}

/* --- TIPS LISTS, FAQ, VALUES --- */
.tips-list ul, .values ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tips-list li, .values li {
  background: #fff;
  border-radius: 7px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(22,49,83,0.07);
  color: #163153;
}
.faq dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq dt {
  font-weight: bold;
  margin-top: 10px;
}
.faq dd {
  margin-left: 20px;
  color: #2B4267;
}

/* --- LEGAL --- */
.legal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(22,49,83,0.07);
}
.legal ul {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 24px 0 8px 0;
}

/* --- NEWSLETTER --- */
.newsletter-signup form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}
.newsletter-signup input[type=email] {
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid #d3dbe9;
  font-size: 1rem;
  min-width: 230px;
  background: #fff;
  margin-right: 12px;
  transition: border 0.16s;
}
.newsletter-signup input[type=email]:focus {
  border: 1.5px solid #E08C21;
}

/* --- CONTACT FORM --- */
.contact-details {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 9px;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  background: #F5F4F0;
  padding: 18px 0;
  border-radius: 8px;
}
.contact input[type=text], .contact input[type=email], .contact textarea {
  width: 100%;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid #d6dbef;
  font-size: 1rem;
  background: #fff;
  resize: none;
  transition: border 0.15s;
}
.contact textarea {
  min-height: 88px;
  max-width: 100%;
}
.contact input:focus, .contact textarea:focus {
  border: 1.5px solid #E08C21;
}
.contact .cta-button {
  margin-top: 8px;
}

/* --- THANK YOU --- */
.thank-you {
  background: #fff4e8;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(22,49,83,0.13);
}

/* --- FOOTER --- */
footer {
  background: #163153;
  color: #fff;
  padding: 36px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.96;
  transition: color 0.21s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E08C21;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
  color: #F5F4F0;
}
.footer-contact img {
  height: 19px;
  width: 19px;
  margin-right: 7px;
}
.trust-signals {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #ffc869;
  opacity: .96;
}
.trust-signals img {
  height: 32px;
  width: 32px;
}

/* --- MOBILE MENU STYLING --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90vw;
  max-width: 350px;
  background: #163153;
  color: #fff;
  z-index: 1102;
  box-shadow: -2px 0 18px rgba(22,49,83,.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 16px 26px 32px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 4px;
  border: 2px solid #E08C21;
  padding: 0 10px 2px 10px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border 0.14s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E08C21;
  border-color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 14px 0 12px 0;
  border-radius: 4px;
  transition: background 0.14s, color 0.13s;
  opacity: .99;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E08C21;
  color: #163153;
}
/* Overlay behind mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  top:0;left:0;width:100vw;height:100vh;
  background: rgba(22,49,83,0.42);
  z-index: 1100;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #163153;
  box-shadow: 0 -3px 18px rgba(22,49,83,0.11);
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  z-index: 1130;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.18s, transform 0.28s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  max-width: 700px;
  font-size: 0.95rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  background: #163153;
  color: #fff;
  border-radius: 5px;
  padding: 9px 23px;
  margin-right: 3px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border: none;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #163153;
  border: 2px solid #E08C21;
}
.cookie-banner .cookie-btn.accept {
  background: #E08C21;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #2B4267;
  color: #fff;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #E08C21;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: #163153;
  color: #fff;
  border-color: #163153;
}

/* Cookie modal (preferences) */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width: 100vw; height: 100vh;
  background: rgba(22,49,83,0.37);
  z-index: 1140;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #163153;
  border-radius: 12px;
  padding: 34px 30px 30px 30px;
  box-shadow: 0 8px 38px 0 rgba(22,49,83,0.27);
  max-width: 420px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalIn 0.29s cubic-bezier(.5,0,.3,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(36px) scale(.93); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .modal-title {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-modal .modal-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ecedef;
}
.cookie-modal .category-row:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle {
  width: 35px; height: 19px;
  border-radius: 999px;
  background: #D6DBE3;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .cookie-toggle.checked,
.cookie-modal .cookie-toggle[aria-checked='true']
{
  background: #E08C21;
}
.cookie-modal .cookie-toggle-inner {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle.checked .cookie-toggle-inner,
.cookie-modal .cookie-toggle[aria-checked='true'] .cookie-toggle-inner {
  left: 17px;
}
.cookie-modal .toggle-label {
  font-size: 1rem;
}
.cookie-modal .toggle-label.essential {
  font-weight: 600;
  color: #163153;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2B4267;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.14s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: #E08C21;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 8px 22px;
}

/* --- RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container { padding: 0 6vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .main-nav {
    display: none;
  }
  header .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .newsletter-signup form {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  section, .section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 9px;
  }
  .thank-you {
    padding: 19px 5px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    text-align: left;
    padding: 23px 9px 20px 9px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 7px;
    align-items: stretch;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.26rem; }
  .newsletter-signup input[type=email], .contact input, .contact textarea {
    font-size: 0.95rem;
    min-width: 100px;
  }
}

/* --- MISC MICRO-INTERACTIONS --- */
a, .cta-button, button, .cookie-btn, .cookie-toggle {
  transition: background 0.17s, color 0.16s, box-shadow 0.17s, border 0.15s, opacity 0.15s, transform 0.13s;
}
li, .card, .testimonial-card, .feature-grid li {
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:active, .feature-grid li:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* --- UTILITIES & ACCENT --- */
.bg-accent {
  background: #E08C21 !important;
  color: #fff !important;
}
.text-accent {
  color: #E08C21 !important;
}
.rounded {
  border-radius: 8px;
}
.shadow {
  box-shadow: 0 2px 12px rgba(22,49,83,0.13);
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #E08C21;
  outline-offset: 1px;
}

/* --- PRINT FRIENDLY --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* END OF PROFESSIONAL CORPORATE FLEXBOX CSS */
