/*
Theme Name: Redlinks by Ewald Mayer
Theme URI: https://redlinks.it
Author: Ewald Mayer
Description: Zweisprachiges, bearbeitbares Redlinks-Theme für Unternehmen, Projekte, Services, Empfehlungen und Engagement.
Version: 1.3.3
Text Domain: redlinks
*/
.link-card[hidden]{display:none!important}
html.modal-open{overflow:hidden;overscroll-behavior:none}
body.modal-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}
.link-card{color:var(--ink);-webkit-appearance:none;appearance:none}
.link-card h3,.link-card .card-foot{color:var(--ink);-webkit-text-fill-color:var(--ink)}
.modal{overscroll-behavior:contain;touch-action:none}
.modal-card{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
:root{--red:#e30613;--ink:#171717;--muted:#69645f;--paper:#f5f2ee;--soft:#ebe7e1;--white:#fff;--radius:26px;--max:1240px}*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--paper)}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-rendering:optimizeLegibility}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:40;border-bottom:1px solid #17171714;background:#f5f2eee8;backdrop-filter:blur(16px)}.header-row{height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:end;gap:8px;font-weight:900;letter-spacing:.2em}.brand small{margin-bottom:2px;color:#17171773;font-size:10px;font-weight:500;letter-spacing:.1em}.main-nav{display:flex;gap:24px}.main-nav button{border:0;background:none;color:#171717a0;cursor:pointer;font-size:14px}.main-nav button:hover{color:var(--ink)}.header-tools{display:flex;align-items:center;gap:8px}.lang-switch{display:flex;padding:4px;border:1px solid #17171718;border-radius:999px;background:#17171708}.lang-switch a{padding:7px 12px;border-radius:999px;color:#1717177a;font-size:12px;font-weight:700;text-transform:uppercase}.lang-switch a.active{background:var(--ink);color:#fff}.menu-toggle{display:none;width:42px;height:42px;border:1px solid #17171718;border-radius:50%;background:transparent}.hero{position:relative;overflow:hidden;padding:118px 0 110px;background:radial-gradient(circle at 78% 14%,#e3061318,transparent 34%),linear-gradient(135deg,#f8f5f1,#f5eeee)}.eyebrow{display:inline-flex;padding:9px 14px;border:1px solid #17171712;border-radius:999px;background:#ffffffb8;color:#17171780;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;box-shadow:0 5px 18px #3a21150c}.hero h1{max-width:980px;margin:24px 0 0;font-size:clamp(58px,9vw,124px);font-weight:950;letter-spacing:-.075em;line-height:.87}.hero h1 em{color:var(--red);font-style:normal}.hero .lead{max-width:780px;margin:34px 0 0;color:#1717179a;font-size:20px;line-height:1.7}.hero-tags{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:38px;color:#17171778;font-size:14px;font-weight:650}.links-section{padding:92px 0 110px;border-top:1px solid #17171712;background:var(--soft)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:48px}.kicker{margin:0 0 14px;color:var(--red);font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}.section-head h2{max-width:700px;margin:0;font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-.045em}.filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.filter{min-height:42px;padding:0 17px;border:1px solid #17171718;border-radius:999px;background:#ffffffa0;color:#1717178a;cursor:pointer}.filter.active,.filter:hover{background:var(--ink);color:#fff}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.link-card{display:flex;min-height:410px;flex-direction:column;padding:22px;border:1px solid #17171712;border-radius:var(--radius);background:#ffffffc9;text-align:left;box-shadow:0 14px 45px #2319140b;transition:.25s}.link-card:hover{transform:translateY(-4px);border-color:#17171730;background:#fff}.logo-panel{position:relative;display:grid;height:176px;place-items:center;margin-bottom:26px;padding:18px;border-radius:18px;background:#f7f7f5;box-shadow:inset 0 -5px 0 var(--accent)}.logo-panel img{display:block;max-width:88%;max-height:82%;object-fit:contain}.logo-panel.compact img{max-width:74%;max-height:64%}.logo-composite{position:relative;width:88%;height:82%}.logo-composite img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.logo-composite .black-copy{filter:brightness(0);clip-path:inset(54% 0 0 0)}.redsmile-group{display:flex;width:88%;height:82%;flex-direction:column;align-items:center;justify-content:center;gap:3px}.redsmile-group img{min-height:0;flex:1}.redsmile-group strong{font-size:13px;letter-spacing:.42em;color:#171717b5}.corner-arrow{position:absolute;top:12px;right:12px;display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#1717170b;color:#1717178a}.badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.badge{padding:6px 10px;border:1px solid #17171716;border-radius:999px;color:#17171770;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.badge.affiliate{border:0;background:#e3061312;color:#b6040e}.badge.building{border:0;background:#f2b40022;color:#805d00}.link-card h3{margin:0;font-size:25px;letter-spacing:-.035em}.link-card p{flex:1;margin:12px 0 0;color:var(--muted);font-size:15px;line-height:1.65}.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-top:18px;border-top:1px solid #17171712;font-size:14px;font-weight:700}.feature-strip{padding:48px 0;background:var(--red);color:#fff}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.feature{display:flex;align-items:center;gap:14px;font-weight:700}.site-footer{padding:52px 0;background:#080809;color:#fff}.footer-row{display:flex;align-items:end;justify-content:space-between;gap:34px}.footer-brand{font-size:21px;font-weight:950;letter-spacing:.2em;color:#fff}.footer-copy{max-width:560px;margin:12px 0 0;color:#ffffff70;font-size:14px;line-height:1.7}.footer-links{display:flex;flex-wrap:wrap;gap:12px 22px;color:#ffffff80;font-size:14px}.footer-links a:hover,.footer-links button:hover{color:#fff}.footer-links button{padding:0;border:0;background:none;color:inherit;cursor:pointer}.legal{padding:90px 0 120px;background:#f7f4f0}.legal article{max-width:820px}.legal h1{margin:0 0 38px;font-size:clamp(44px,7vw,76px);letter-spacing:-.055em}.legal h2{margin:38px 0 12px;font-size:25px;letter-spacing:-.025em}.legal p,.legal li{color:#4f4b47;line-height:1.75}.legal a{text-decoration:underline;text-underline-offset:3px}.modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px;background:#0005;backdrop-filter:blur(5px)}.modal.open{display:flex}.modal-card{position:relative;width:min(580px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:22px;background:#f8f6f2;box-shadow:0 30px 100px #0004}.modal-card .logo-panel{height:210px;margin:0;border-radius:22px 22px 0 0;background:#fff}.modal-body{padding:28px 30px}.modal-body h2{margin:8px 0 12px;font-size:36px;letter-spacing:-.04em}.modal-body p{color:#5f5a55;line-height:1.7}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 30px;border-top:1px solid #17171712;background:#ffffff80}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:0 20px;border:1px solid #17171720;border-radius:999px;background:#fff;color:var(--ink);font-weight:700}.button.primary{border-color:var(--ink);background:var(--ink);color:#fff}.button.primary:hover{border-color:var(--red);background:var(--red)}.modal-close-x{position:absolute;top:12px;right:12px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#171717;cursor:pointer;box-shadow:0 4px 15px #0002}.cookie-banner{position:fixed;right:20px;bottom:20px;z-index:200;width:min(480px,calc(100% - 40px));padding:24px;border:1px solid #1717171a;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #0003}.cookie-banner[hidden]{display:none}.cookie-banner h2{margin:0 0 9px;font-size:23px}.cookie-banner p{margin:0;color:#5f5a55;font-size:14px;line-height:1.6}.cookie-actions{display:flex;gap:9px;margin-top:18px}.cookie-actions .button{flex:1}.cookie-more{display:inline-block;margin-top:12px;color:#5f5a55;font-size:13px;text-decoration:underline}.socials{display:flex;gap:12px;margin-top:18px}.socials a{display:grid;width:38px;height:38px;place-items:center;border:1px solid #ffffff28;border-radius:50%;font-size:12px;font-weight:800}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:980px){.main-nav{display:none}.menu-toggle{display:grid;place-items:center}.main-nav.open{position:absolute;top:80px;left:0;right:0;display:flex;flex-direction:column;gap:0;padding:12px 20px 20px;border-bottom:1px solid #17171714;background:var(--paper)}.main-nav.open button{padding:13px 0;text-align:left;border-bottom:1px solid #17171710}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{align-items:start;flex-direction:column}.filters{justify-content:flex-start}.hero{padding:92px 0}.hero h1{font-size:clamp(56px,13vw,92px)}}
@media(max-width:650px){.wrap{width:min(100% - 28px,var(--max))}.header-row{height:70px}.brand{font-size:15px}.brand small{display:none}.hero{padding:74px 0 78px}.hero h1{font-size:clamp(50px,17vw,72px)}.hero .lead{font-size:17px;line-height:1.65}.links-section{padding:70px 0 84px}.section-head{margin-bottom:32px}.section-head h2{font-size:39px}.cards{grid-template-columns:1fr}.link-card{min-height:390px}.feature-grid{grid-template-columns:1fr}.footer-row{align-items:start;flex-direction:column}.footer-links{flex-direction:column}.cookie-actions,.modal-actions{flex-direction:column}.modal-actions .button{width:100%}.modal{align-items:end;padding:0}.modal-card{max-height:92vh;border-radius:22px 22px 0 0}.modal-card .logo-panel{height:180px}.modal-body{padding:24px}.filter{font-size:13px}}

/* Keep portrait and wide logos fully visible inside the opened detail card. */
.modal-card .logo-panel{overflow:hidden}
.modal-card .logo-panel>img{width:auto;height:140px;max-width:calc(100% - 48px);max-height:none;object-fit:contain}
.modal-card .logo-panel.compact>img{width:auto;height:120px;max-width:calc(100% - 90px);max-height:none}
.modal-card .logo-panel.song-logo>img{width:auto;height:128px;max-width:calc(100% - 80px);max-height:none}
@media(max-width:650px){.modal-card .logo-panel.song-logo>img{height:104px;max-width:calc(100% - 64px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Redlinks' own brand, including a white footer variant. */
.brand{flex-shrink:0;align-items:center;letter-spacing:normal}
.brand-logo{display:block;width:210px;max-width:100%;height:auto}
.footer-brand img{display:block;width:170px;max-width:100%;height:auto}
.hero h1{margin-top:0}
@media(max-width:650px){.header-row{gap:12px}.brand-logo{width:clamp(135px,42vw,170px)}.footer-brand img{width:150px}}
