/* Sora (SIL Open Font License), the font the WordPress theme used. Self-hosted, so no visitor data goes to Google. */
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("/assets/fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("/assets/fonts/sora-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Agentara site styles.
   Recreates the look of the former WordPress theme (dark background, cream text)
   and the WordPress block classes used inside the pages. */
:root {
  --dark: #141e24;      /* WordPress "Secondary" */
  --cream: #fef4ee;     /* WordPress "Background" (used as the text colour) */
  --black: #000;
  --light: #f0f0f0;
  --wide: 1400px;
  --content: 645px;
  --font: "Sora", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wp--preset--spacing--40: 2rem;
  --wp--preset--spacing--50: 3rem;
  --wp--preset--spacing--80: 6rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dark); color: var(--cream); font: 18px/1.6 var(--font); }
img, video { max-width: 100%; height: auto; }
a { color: var(--cream); }
h1, h2, h3, h4 { color: var(--cream); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }

/* ---------- Header bar (logo + menu in a rounded dark box) ---------- */
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--dark); border: 1px solid var(--cream); border-radius: 20px; padding: 22px;
  margin: 20px auto; font-size: 1.15rem; position: relative; z-index: 2; }
.site-logo img { display: block; width: 154px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--cream); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Page layout (all pages except home) ---------- */
.page-shell { padding: 0 20px; }
.page-box { background: var(--dark); border-radius: 20px; padding: 0 20px 6rem; }
.page-title { font-size: clamp(2rem, 4vw, 2.6rem); max-width: var(--content); margin: 6rem auto 1.5rem; }
.page-content { font-size: 20px; }
.page-content > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.page-content > .alignwide { max-width: var(--wide); }
.page-content > .alignfull { max-width: none; }
.page-content > div[class^="ag-"], .page-content > div[class^="agentara-"] { max-width: var(--wide); }

/* ---------- WordPress block classes ---------- */
.alignwide { max-width: var(--wide); margin-left: auto; margin-right: auto; width: 100%; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.aligncenter img { margin: 0 auto; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-secondary-background-color { background-color: var(--dark); }
.has-custom-purple-background-color, .has-custom-green-background-color, .has-custom-orange-background-color { background-color: var(--dark); }
.has-white-background-color { background-color: #fff; }
.has-background-background-color { background-color: var(--cream); }
.has-secondary-color { color: var(--dark) !important; }
.has-secondary-color a { color: var(--dark); }
.has-background-color { color: var(--cream); }
.has-white-color { color: #fff; }
.has-background-border-color { border-color: var(--cream) !important; border-style: solid; }
.has-small-font-size { font-size: .9rem; }
.has-medium-font-size { font-size: 1.15rem; }
.has-large-font-size { font-size: 1.6rem; }
.has-x-large-font-size { font-size: 2.4rem; }
.wp-block-group { box-sizing: border-box; }
.wp-block-spacer { clear: both; }
.wp-block-separator { border: 0; border-top: 1px solid currentColor; opacity: .4; margin: 2em auto; }
.wp-block-image { margin: 0 0 1em; }
.wp-block-image img { display: block; }
.is-style-rounded img { border-radius: 9999px; }
.wp-block-columns { display: flex; gap: 2em; margin-bottom: 1.75em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns.are-vertically-aligned-center, .is-vertically-aligned-center { align-self: center; }
.wp-block-list { padding-left: 1.3em; }
.wp-block-buttons { display: flex; gap: .5em; flex-wrap: wrap; }
.wp-block-button__link { display: inline-block; background: var(--dark); color: var(--cream); border-radius: 9999px;
  padding: .7em 1.6em; text-decoration: none; font-weight: 600; }
.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 1em; min-height: 430px; }
.wp-block-cover__image-background, .wp-block-cover__video-background { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; max-width: none; z-index: 0; }
.wp-block-cover__background { position: absolute; inset: 0; z-index: 1; opacity: .5; }
.has-background-dim-0 { opacity: 0 !important; }
.has-background-dim-10 { opacity: .1 !important; }
.has-background-dim-20 { opacity: .2 !important; }
.wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; color: inherit; }
.wp-block-cover.is-light .wp-block-cover__inner-container { color: var(--dark); }
.is-style-section-1 { background: var(--dark); }
.is-testimonial-name { font-weight: 400; }

/* Home: the header bar sits inside the hero picture */
.layout-home .wp-block-cover .site-bar { margin-top: 0; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 16px; max-width: 480px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
.contact-form .req { font-weight: 400; opacity: .7; font-size: .85rem; }
.contact-form input, .contact-form textarea { font: 1rem var(--font); padding: 10px 12px; border: 1px solid #ccc;
  border-radius: 5px; background: #fff; color: #111; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--cream); outline-offset: 2px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; opacity: .75; margin: 0; }
.form-button { justify-self: start; background: #fff; color: var(--dark); border: 0; border-radius: 9999px;
  padding: 12px 30px; font: 1rem var(--font); cursor: pointer; }
.form-button:hover { opacity: .85; }
.form-button[disabled] { opacity: .5; cursor: wait; }
.form-status { min-height: 1.4em; margin: 0; font-size: 1rem; }
.form-done { max-width: 480px; padding: 28px; border: 1px solid var(--cream); border-radius: 20px; }
.form-done h2 { font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 20px 140px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid var(--cream); padding-top: 30px; }
.footer-links { display: flex; flex-direction: column; gap: 1vh; }
.footer-links a { color: var(--cream); }
.footer-company { text-align: right; }
.footer-company p { margin: 0 0 8px; }
.footer-mark { display: block; margin: 0 0 15px auto; max-width: 160px; filter: brightness(0) invert(1); }
.social { display: flex; gap: 12px; justify-content: flex-end; }
.social a { color: var(--cream); display: inline-flex; }
.copyright { margin-top: 20px; }

@media (max-width: 781px) {
  .wp-block-columns { flex-direction: column; }
  body { font-size: 16px; }
  .page-content { font-size: 17px; }
  .page-title { margin-top: 3rem; }
  .footer-company { text-align: left; }
  .footer-mark { margin-left: 0; }
  .social { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .wp-block-heading[style*="font-size:5rem"] { font-size: 2.6rem !important; }
  .wp-block-cover[style*="min-height:1100px"] { min-height: 56vw !important; }
}

/* Contact page: the WordPress layout kept the text and form in a centred 480px column */
.page-content > .alignfull > .wp-block-group { max-width: 480px; margin: 0 auto; }
.contact-form label { display: block; }
.contact-form label input, .contact-form label textarea { margin-top: 6px; }

/* Home: "Trusted by" logos sit in one centred row */
.wp-block-cover__inner-container > .wp-block-group.alignfull { display: flex; justify-content: center; align-items: flex-start; flex-wrap: nowrap; gap: 1.5em; }
.wp-block-cover__inner-container > .wp-block-group.alignfull > .wp-block-spacer { flex: 1 1 0; }
.wp-block-cover__inner-container > .wp-block-group.alignfull > figure { margin: 0; flex: none; }

/* ---------- Cookie banner and preferences ---------- */
.cookie-settings-link { font: inherit; color: var(--cream); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; }
.cookie-banner { position: fixed; z-index: 40; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(680px, calc(100% - 24px)); background: var(--cream); color: var(--dark); border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 15px; line-height: 1.5; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { color: var(--dark); font-size: 18px; margin: 0 0 6px; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: var(--dark); }
.cookie-banner-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cookie-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 240px; max-width: 100%; }
.cookie-btn { font: 600 15px var(--font); min-height: 42px; padding: 8px 14px; border-radius: 9999px; cursor: pointer;
  background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.cookie-btn.primary { background: var(--dark); color: var(--cream); }
.cookie-preferences { border: 0; border-radius: 20px; padding: 28px; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  overflow: auto; background: var(--cream); color: var(--dark); font-size: 16px; }
.cookie-preferences::backdrop { background: rgba(0,0,0,.55); }
.cookie-preferences h2 { color: var(--dark); font-size: 26px; margin: 0; }
.cookie-preferences-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.cookie-close { font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--dark); min-width: 44px; min-height: 44px; }
.cookie-preference-row { display: grid; grid-template-columns: 20px 1fr; gap: 14px; border-top: 1px solid #d8cfc8; padding: 16px 0; }
.cookie-preference-row input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--dark); }
.cookie-preference-row p { margin: 4px 0 0; font-size: 14.5px; }
.cookie-preferences-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
@media (max-width: 540px) {
  .cookie-banner-bottom { flex-direction: column-reverse; align-items: stretch; }
  .cookie-choices { width: 100%; }
  .cookie-preferences-actions { grid-template-columns: 1fr; }
}
@media print { .cookie-banner { display: none; } }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .9em; margin-bottom: 1.5em; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid rgba(254,244,238,.3); }
@media (max-width: 700px) { .cookie-table { display: block; overflow-x: auto; font-size: .8em; } .cookie-table td, .cookie-table th { overflow-wrap: anywhere; min-width: 90px; } }
.page-content .cookie-settings-link { font-size: inherit; }

/* ---------- Home hero: edge to edge, content centred like WordPress ---------- */
.layout-home main > .wp-block-group:first-child > .wp-block-cover.alignfull { margin-left: -20px; margin-right: -20px; width: auto; }
.wp-block-cover__inner-container > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.wp-block-cover__inner-container > .alignwide,
.wp-block-cover__inner-container > .alignfull { max-width: var(--wide); }
.wp-block-cover__inner-container > .cta-button-container,
.wp-block-cover__inner-container > style { max-width: none; }
.wp-block-cover__inner-container > .wp-block-group.alignfull { justify-content: space-between; align-items: center; }
.wp-block-cover__inner-container > .wp-block-group.alignfull > .wp-block-spacer { display: none; }
.wp-block-cover__inner-container > .wp-block-group.alignfull { padding: 0 20px; }
@media (max-width: 600px) { .wp-block-site-tagline { font-size: 1.3rem !important; } }

/* Testimonial: centred column, as in WordPress */
.is-style-section-1 { padding-left: 20px; padding-right: 20px; }
.is-style-section-1 > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.is-style-section-1 .is-service-name { font-size: 1.1rem; line-height: 1.75; }
.is-style-section-1 .is-testimonial-name { font-size: 1.5rem; line-height: 1.3; }
.is-style-section-1 .is-service-name { font-weight: 300; margin-top: 1.5em; }
@media (max-width: 600px) {
  .wp-block-cover__inner-container > .wp-block-group.alignfull { flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
  .wp-block-cover__inner-container > .wp-block-group.alignfull img { max-width: 150px; }
}

/* Sparkasse logo: its letters sit low in the image, so lift it to line up optically with the other logos */
img.wp-image-553 { position: relative; top: -5px; }

/* Home: one plain sentence under the tagline saying what Agentara is */
.hero-about { max-width: 640px; margin: 0 auto; font-size: 1.05rem; line-height: 1.55; opacity: .85; }
@media (max-width: 600px) { .hero-about { font-size: .95rem; } }
