/*
Theme Name: CroRank Editable
Theme URI: https://example.com/
Author: CroRank
Author URI: https://example.com/
Description: Modernes Onepage-WordPress-Theme für CroRank mit bearbeitbaren Customizer-Inhalten.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: crorank
*/

:root{
  --navy:#061d3f;
  --navy-2:#0a2e62;
  --blue:#0057bf;
  --red:#e5232e;
  --soft:#f6f9fd;
  --text:#0e1b2f;
  --muted:#617084;
  --line:#dfe7f2;
  --shadow:0 24px 60px rgba(9,31,68,.13);
  --shadow-soft:0 14px 36px rgba(9,31,68,.09);
  --radius:24px;
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea{font:inherit}

.cr-container{max-width:var(--container);margin:0 auto;padding:0 24px}
.cr-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:999px;background:#eef4ff;color:var(--blue);
  font-weight:800;font-size:13px;letter-spacing:.02em
}
.cr-pill.red{background:#fff1f2;color:var(--red)}
.cr-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border-radius:999px;padding:15px 24px;font-weight:900;font-size:15px;
  background:var(--blue);color:#fff;border:2px solid var(--blue);
  box-shadow:0 14px 24px rgba(0,87,191,.22);transition:.2s ease
}
.cr-btn:hover{transform:translateY(-2px);box-shadow:0 18px 32px rgba(0,87,191,.30)}
.cr-btn.dark{background:var(--navy);border-color:var(--navy);box-shadow:0 14px 24px rgba(6,29,63,.22)}
.cr-btn.red{background:var(--red);border-color:var(--red);box-shadow:0 14px 24px rgba(229,35,46,.22)}
.cr-btn.outline{background:#fff;color:var(--blue);box-shadow:none}
.cr-section-head{text-align:center;max-width:760px;margin:0 auto 36px}
.cr-eyebrow{color:var(--red);font-weight:900;letter-spacing:.18em;text-transform:uppercase;font-size:12px;margin:0 0 8px}
.cr-section-head h2{font-size:clamp(30px,4vw,44px);line-height:1.08;margin:0;color:var(--navy)}
.cr-section-head p{color:var(--muted);font-size:18px;margin:14px 0 0}

/* Header */
.cr-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.82);backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(223,231,242,.65)
}
.admin-bar .cr-header{top:32px}
.cr-nav{
  max-width:1240px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:28px
}
.cr-logo img{height:46px;width:auto}
.cr-menu{display:flex;gap:34px;align-items:center;font-size:15px;font-weight:800;color:#0f2447}
.cr-menu a{opacity:.92}
.cr-menu a:hover{color:var(--blue)}
.cr-mobile-toggle{display:none;background:var(--navy);color:#fff;border:0;border-radius:12px;padding:10px 13px;font-weight:900}

/* Hero */
.cr-hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 68% 18%, rgba(0,87,191,.12), transparent 25%),
    linear-gradient(180deg,#fff 0%,#f7fbff 100%);
  padding:42px 0 0
}
.cr-hero-bg{
  position:absolute;right:0;top:50px;width:52%;height:430px;
  background:url("assets/croatia-coast.svg") center/cover no-repeat;
  opacity:.8;filter:saturate(1.05)
}
.cr-hero-grid{position:relative;display:grid;grid-template-columns:1.02fr .98fr;gap:42px;align-items:center;min-height:540px}
.cr-hero h1{
  color:var(--navy);font-size:clamp(42px,5.4vw,70px);line-height:.98;letter-spacing:-.055em;margin:22px 0 18px
}
.cr-hero h1 strong{color:var(--blue)}
.cr-hero-copy{font-size:18px;color:#39485d;max-width:590px;margin:0 0 28px}
.cr-hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.cr-checks{display:flex;gap:26px;flex-wrap:wrap;margin-top:26px;color:#536176;font-size:14px;font-weight:800}
.cr-checks span{display:flex;align-items:center;gap:8px}
.cr-checks i{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;background:#e9f1ff;color:var(--blue);font-style:normal;font-size:12px}

.cr-visual{position:relative;min-height:430px}
.cr-map-line{
  position:absolute;inset:30px 10px auto auto;width:360px;height:330px;border-radius:40px;
  background:rgba(255,255,255,.68);border:1px solid rgba(223,231,242,.8);box-shadow:var(--shadow);
  overflow:hidden
}
.cr-map-line svg{width:100%;height:100%}
.cr-card{
  position:absolute;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);
  border:1px solid rgba(223,231,242,.86);box-shadow:var(--shadow-soft);border-radius:18px;padding:18px
}
.cr-stat-1{left:20px;top:34px;width:190px}
.cr-stat-2{left:214px;top:54px;width:150px}
.cr-business{right:0;top:92px;width:210px}
.cr-search{left:74px;bottom:64px;width:330px}
.cr-card h4{margin:0 0 10px;font-size:13px;color:#223653}
.cr-metric{font-size:28px;font-weight:950;color:var(--navy);letter-spacing:-.04em}
.cr-rise{color:#10a359;font-weight:900;font-size:14px}
.cr-bars{display:flex;align-items:end;gap:7px;height:70px;margin-top:10px}
.cr-bars b{display:block;width:16px;background:linear-gradient(180deg,#70a8ff,#0057bf);border-radius:6px 6px 2px 2px}
.cr-stars{color:#f8a800;letter-spacing:1px;font-size:14px}
.cr-photo{
  height:70px;margin-top:10px;border-radius:12px;
  background:linear-gradient(120deg,rgba(0,87,191,.28),rgba(255,255,255,.2)),url("assets/croatia-coast.svg") center/cover
}
.cr-searchbar{
  display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font-weight:800;font-size:14px
}
.g-dot{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:var(--blue);font-weight:950}
.cr-result{display:flex;justify-content:space-between;gap:16px;margin-top:12px;align-items:center}
.cr-result b{display:block;color:var(--navy)}
.cr-mini{color:var(--muted);font-size:13px}

.cr-trustbar{
  position:relative;z-index:3;margin-top:-4px;background:rgba(255,255,255,.92);border:1px solid var(--line);
  border-radius:22px;box-shadow:var(--shadow-soft);display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden
}
.cr-trustitem{display:flex;gap:14px;align-items:center;padding:24px 26px;border-right:1px solid var(--line);font-weight:900;color:var(--navy)}
.cr-trustitem:last-child{border-right:0}
.cr-trusticon{width:44px;height:44px;border-radius:14px;background:#eef4ff;display:grid;place-items:center;color:var(--blue);font-size:22px;overflow:hidden}
.cr-trustitem:nth-child(1) .cr-trusticon,.cr-trustitem:nth-child(4) .cr-trusticon{background:#fff1f2;color:var(--red)}
.cr-trusticon img{max-width:26px;max-height:26px;width:auto;height:auto;display:block;object-fit:contain}
.cr-trustitem small{display:block;color:var(--muted);font-weight:700;margin-top:2px}

/* Services */
.cr-services{padding:72px 0 40px;background:#fff}
.cr-service-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
.cr-service{
  min-height:230px;border:1px solid var(--line);border-radius:24px;padding:26px 22px;background:#fff;
  box-shadow:0 10px 30px rgba(9,31,68,.06);display:flex;flex-direction:column;transition:.2s ease
}
.cr-service:hover{transform:translateY(-5px);box-shadow:var(--shadow-soft)}
.cr-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#eef4ff;color:var(--blue);font-size:28px;margin-bottom:18px;overflow:hidden}
.cr-icon img{max-width:32px;max-height:32px;width:auto;height:auto;display:block;object-fit:contain}
.cr-service:nth-child(2) .cr-icon{background:#f3f9ff}
.cr-service:nth-child(3) .cr-icon,.cr-service:nth-child(5) .cr-icon{background:#fff1f2;color:var(--red)}
.cr-service h3{font-size:20px;line-height:1.15;margin:0 0 10px;color:var(--navy)}
.cr-service p{font-size:14px;color:var(--muted);margin:0 0 20px}
.cr-arrow{margin-top:auto;color:var(--blue);font-size:26px;font-weight:900}

/* Steps */
.cr-steps{padding:32px 0 54px;background:linear-gradient(180deg,#fff,#f8fbff)}
.cr-step-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.cr-step{position:relative;background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 24px;box-shadow:0 10px 30px rgba(9,31,68,.06)}
.cr-number{position:absolute;left:22px;top:-17px;width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:950;box-shadow:0 10px 22px rgba(0,87,191,.28)}
.cr-step h3{margin:10px 0 8px;color:var(--navy)}
.cr-step p{margin:0;color:var(--muted)}
.cr-step:after{content:"";position:absolute;right:-33px;top:50%;width:40px;border-top:2px dashed #9bb5d7}
.cr-step:last-child:after{display:none}

/* Testimonials */
.cr-testimonials{padding:56px 0;background:#fff}
.cr-test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.cr-test{
  background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 10px 30px rgba(9,31,68,.06)
}
.cr-quote{color:var(--red);font-size:38px;line-height:1;font-weight:950}
.cr-test p{color:#334259;margin:8px 0 18px}
.cr-person{display:flex;align-items:center;gap:12px}
.cr-avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#dcecff,#fff1f2);border:1px solid var(--line)}
.cr-person b{display:block;color:var(--navy)}
.cr-person small{color:var(--muted)}
.cr-rating{color:#f8a800;margin-top:2px}

/* CTA */
.cr-cta{padding:16px 0 0;background:#fff}
.cr-cta-box{
  display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center;overflow:hidden;
  background:linear-gradient(120deg,#061d3f 0%,#0a2e62 48%,#0057bf 100%);
  color:#fff;border-radius:28px;padding:40px 48px;box-shadow:var(--shadow)
}
.cr-cta h2{font-size:clamp(30px,4vw,46px);line-height:1.05;margin:0 0 16px}
.cr-cta p{color:#d9e6fb;margin:0 0 24px;max-width:560px}
.cr-cta-list{display:grid;gap:18px;color:#e7f0ff;font-weight:800}
.cr-experience-badge{display:flex;align-items:center;gap:18px;background:rgba(255,255,255,.96);color:var(--navy);border:1px solid rgba(255,255,255,.55);border-radius:22px;padding:16px 18px;box-shadow:0 18px 42px rgba(0,0,0,.18);max-width:430px}
.cr-experience-shield{position:relative;min-width:76px;height:82px;border-radius:18px 18px 24px 24px;background:linear-gradient(160deg,#0a69e8,#003f9d);color:#fff;display:grid;place-items:center;text-align:center;box-shadow:inset 0 0 0 2px rgba(255,255,255,.22),0 12px 22px rgba(0,87,191,.25)}
.cr-experience-shield:before,.cr-experience-shield:after{content:"";position:absolute;bottom:8px;width:25px;height:38px;border:2px solid #9fbdf0;border-top:0;border-right:0;border-radius:0 0 0 26px;opacity:.9}
.cr-experience-shield:before{left:-18px;transform:rotate(-22deg)}
.cr-experience-shield:after{right:-18px;transform:scaleX(-1) rotate(-22deg)}
.cr-experience-shield strong{display:block;font-size:32px;line-height:.9;letter-spacing:-1px}
.cr-experience-shield small{display:block;text-transform:uppercase;font-size:11px;font-weight:950;letter-spacing:.7px;margin-top:-16px}
.cr-experience-copy b{display:block;font-size:19px;line-height:1.15;color:var(--navy)}
.cr-experience-copy span{display:block;font-size:16px;line-height:1.35;color:#253a5b;font-weight:700;margin-top:3px}
.cr-cta-image{width:100%;aspect-ratio:8/5;min-height:0;height:auto;border-radius:22px;background:url("assets/croatia-coast.svg") center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);overflow:hidden}
.cr-cta-image.has-custom-image{background:#fff;box-shadow:0 18px 42px rgba(0,0,0,.16)}
.cr-cta-image img{width:100%;height:100%;object-fit:contain;display:block;border-radius:22px;background:#fff}

/* Footer */
.cr-footer{background:#061d3f;color:#fff;margin-top:0;padding:34px 0}
.cr-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px;align-items:start}
.cr-footer img{height:54px;width:auto;filter:brightness(0) invert(1)}
.cr-footer p,.cr-footer a{color:#c8d5e9;font-size:14px}
.cr-footer h4{margin:0 0 10px;color:#fff}
.cr-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.cr-social{display:flex;gap:10px;margin-top:14px}
.cr-social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;color:#fff;text-decoration:none;font-weight:900;overflow:hidden}
.cr-social a:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.cr-social-img{width:20px!important;height:20px!important;object-fit:contain;filter:none!important;display:block}

/* Responsive */
@media (max-width: 1024px){
  .cr-hero-grid{grid-template-columns:1fr;min-height:auto;padding-bottom:30px}
  .cr-visual{min-height:410px}
  .cr-service-grid{grid-template-columns:repeat(2,1fr)}
  .cr-trustbar{grid-template-columns:repeat(2,1fr)}
  .cr-trustitem:nth-child(2){border-right:0}
  .cr-trustitem:nth-child(1),.cr-trustitem:nth-child(2){border-bottom:1px solid var(--line)}
}
@media (max-width: 820px){
  .admin-bar .cr-header{top:46px}
  .cr-menu,.cr-nav .cr-btn{display:none}
  .cr-mobile-toggle{display:block}
  .cr-logo img{height:40px}
  .cr-mobile-open .cr-menu{
    display:grid;position:absolute;left:20px;right:20px;top:72px;background:#fff;border:1px solid var(--line);
    border-radius:22px;padding:18px;box-shadow:var(--shadow-soft);gap:14px
  }
  .cr-hero{padding-top:28px}
  .cr-hero h1{font-size:46px}
  .cr-hero-copy{font-size:16px}
  .cr-visual{min-height:500px;margin-top:-10px}
  .cr-map-line{right:0;left:0;margin:auto;width:100%;height:330px}
  .cr-stat-1{left:0;top:20px}
  .cr-stat-2{right:0;left:auto;top:54px}
  .cr-business{right:6px;top:178px}
  .cr-search{left:0;right:0;bottom:18px;width:100%}
  .cr-trustbar{margin-top:10px}
  .cr-service-grid,.cr-step-grid,.cr-test-grid,.cr-cta-box,.cr-footer-grid{grid-template-columns:1fr}
  .cr-step:after{display:none}
  .cr-cta-box{padding:34px 24px}
  .cr-experience-badge{align-items:center;max-width:none}
}
@media (max-width: 560px){
  .cr-container{padding:0 18px}
  .cr-nav{padding:12px 18px}
  .cr-logo img{height:34px}
  .cr-hero h1{font-size:39px}
  .cr-hero-actions{display:grid}
  .cr-btn{width:100%}
  .cr-experience-badge{padding:14px;gap:14px}
  .cr-experience-shield{min-width:66px;height:72px}
  .cr-experience-shield strong{font-size:28px}
  .cr-experience-copy b{font-size:17px}
  .cr-experience-copy span{font-size:14px}
  .cr-checks{gap:12px;display:grid}
  .cr-visual{min-height:470px}
  .cr-stat-1,.cr-stat-2,.cr-business,.cr-search{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:100%;margin:12px 0}
  .cr-map-line{display:none}
  .cr-visual{display:grid;gap:0;min-height:auto}
  .cr-trustbar{grid-template-columns:1fr}
  .cr-trustitem{border-right:0;border-bottom:1px solid var(--line);padding:20px}
  .cr-trustitem:last-child{border-bottom:0}
  .cr-service{min-height:auto}
}


/* Subpages */
.cr-page-hero{
  position:relative;
  overflow:hidden;
  background:radial-gradient(circle at 72% 18%, rgba(0,87,191,.12), transparent 28%), linear-gradient(180deg,#fff 0%,#f7fbff 100%);
  padding:82px 0 54px;
  border-bottom:1px solid rgba(223,231,242,.8)
}
.cr-page-hero h1{
  margin:18px 0 0;
  color:var(--navy);
  font-size:clamp(38px,5vw,62px);
  line-height:1.02;
  letter-spacing:-.045em
}
.cr-page-content{padding:58px 0 76px;background:#fff}
.cr-content-wrap{max-width:920px}
.cr-wp-content{
  background:#fff;
  border:1px solid rgba(223,231,242,.86);
  border-radius:28px;
  box-shadow:var(--shadow-soft);
  padding:clamp(26px,4vw,48px)
}
.cr-wp-content h2,.cr-wp-content h3,.cr-wp-content h4{color:var(--navy);line-height:1.15;margin:1.4em 0 .55em}
.cr-wp-content h2:first-child,.cr-wp-content h3:first-child{margin-top:0}
.cr-wp-content p,.cr-wp-content li{color:#39485d;font-size:18px;line-height:1.75}
.cr-wp-content a{color:var(--blue);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.cr-wp-content ul,.cr-wp-content ol{padding-left:1.35em}
.cr-wp-content blockquote{margin:28px 0;padding:22px 26px;border-left:5px solid var(--blue);background:#f7fbff;border-radius:16px;color:#39485d}
.cr-wp-content .wp-block-button__link{background:var(--blue);border-radius:999px;font-weight:900;text-decoration:none;padding:14px 24px}
.cr-wp-content .wp-block-separator{border:0;border-top:1px solid rgba(223,231,242,.95);margin:34px 0}
@media (max-width:760px){
  .cr-page-hero{padding:58px 0 38px}
  .cr-wp-content{border-radius:22px}
}

.cr-checks i img{max-width:16px;max-height:16px;width:auto;height:auto;display:block;object-fit:contain}


/* CTA image ratio fix */
@media (max-width: 900px){
  .cr-cta-image{aspect-ratio:8/5;width:100%}
}
