:root{
  --header:#0b2033;
  --header-soft:#102a42;
  --bg-top:#2a3d50;
  --bg-bottom:#213244;
  --panel:#2b4054;
  --panel-strong:#31495f;
  --panel-soft:#354d63;
  --text:#f5f8fc;
  --muted:#c8d3df;
  --muted-2:#aebdcb;
  --accent:#7eb2df;
  --accent-strong:#9bc8ec;
  --accent-dark:#244b6a;
  --border:#4b657c;
  --border-soft:rgba(255,255,255,.09);
  --input:#f7f9fc;
  --input-alt:#edf3f8;
  --input-text:#142535;
  --ok:#a9e9c1;
  --danger:#ffc0c0;
  --warning:#f0d59f;
  --shadow:0 18px 48px rgba(5,17,29,.20);
  --shadow-soft:0 10px 28px rgba(5,17,29,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% -5%,rgba(139,184,222,.10),transparent 28rem),
    radial-gradient(circle at 92% 4%,rgba(180,199,218,.08),transparent 30rem),
    linear-gradient(180deg,var(--bg-top) 0%,var(--bg-bottom) 100%);
}
a{color:inherit}
.container{width:min(1240px,calc(100% - 44px));margin:0 auto}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(11,32,51,.97);
  border-bottom:1px solid rgba(160,195,224,.16);
  box-shadow:0 10px 32px rgba(4,15,25,.16);
}
.nav{
  min-height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}
.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
  line-height:0;
}
.brand-logo{
  display:block;
  width:340px;
  height:auto;
  max-width:100%;
  mix-blend-mode:normal;
}
.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.nav-links a,
.footer-links a{
  color:#cbd8e4;
  text-decoration:none;
  font-weight:650;
  font-size:.94rem;
  padding:10px 12px;
  border-radius:10px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.nav-links a:hover,
.nav-links a.active,
.footer-links a:hover{
  color:#fff;
  background:rgba(126,178,223,.14);
}
.nav-links a.active{box-shadow:inset 0 0 0 1px rgba(126,178,223,.26)}

.site-main{
  flex:1;
  padding:58px 0 78px;
}
.hero{padding:26px 0 30px}
.tool-hero{padding-bottom:26px}
.home-hero{max-width:none;width:100%;padding-top:22px}
.section-kicker{
  display:inline-block;
  margin-bottom:12px;
  color:#b9d4eb;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
h1,h2,h3,p{overflow-wrap:anywhere}
h1{
  margin:0 0 16px;
  font-size:clamp(2.7rem,5.2vw,4.8rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.home-title{
  white-space:nowrap;
  font-size:clamp(3.3rem,4.6vw,4.45rem);
}
h2{margin:0;font-size:clamp(1.75rem,2.6vw,2.35rem);line-height:1.15;letter-spacing:-.025em}
h3{margin:0 0 12px;font-size:1.42rem;line-height:1.2}
.lead{
  max-width:900px;
  margin:0;
  color:var(--muted);
  font-size:clamp(1.04rem,1.7vw,1.22rem);
  line-height:1.72;
}

.info{display:block}
 .home-notice{margin-top:28px; width:100%;}

.tools-section{margin-top:36px}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  padding-bottom:18px;
  border-bottom:1px solid var(--border-soft);
}
.section-heading .section-kicker{margin-bottom:8px}
.section-heading p{
  max-width:470px;
  margin:0;
  color:var(--muted-2);
  line-height:1.65;
  text-align:right;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:22px;
}
.card{
  min-height:248px;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  padding:24px;
  border:1px solid var(--border);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(53,77,99,.92),rgba(43,64,84,.94));
  box-shadow:var(--shadow-soft);
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-3px);
  border-color:#6d8ba5;
  background:linear-gradient(180deg,rgba(58,84,107,.98),rgba(47,70,91,.98));
  box-shadow:var(--shadow);
}
.tool-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  margin-bottom:20px;
  border-radius:13px;
  border:1px solid rgba(150,196,234,.28);
  background:linear-gradient(145deg,rgba(126,178,223,.23),rgba(126,178,223,.09));
  color:#dceeff;
  font-size:1.02rem;
  font-weight:900;
  letter-spacing:-.03em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.tool-icon.wide{font-size:.76rem;letter-spacing:.02em}
.card p{
  flex:1 1 auto;
  margin:0;
  color:var(--muted);
  line-height:1.62;
}
.badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  margin-top:20px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(169,233,193,.12);
  color:var(--ok);
  font-size:.75rem;
  font-weight:800;
}
.badge.warning{background:rgba(240,213,159,.12);color:var(--warning)}
.badge.secure{background:rgba(139,196,235,.14);color:#bfe3ff}

.tool,
.legal{
  border:1px solid var(--border);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(49,73,95,.96),rgba(42,63,83,.98));
  box-shadow:var(--shadow);
}
.tool{padding:30px}
.tool form{display:grid;gap:24px}
.tool-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:22px;
  align-items:stretch;
}
.field-panel{min-width:0}
.field-block{margin:0}
.password-block{max-width:760px}
label{
  display:block;
  margin:0 0 10px;
  font-size:.98rem;
  font-weight:800;
  color:#f7f9fb;
}
textarea,
input[type="text"],
input[type="password"]{
  width:100%;
  border:1px solid #73889c;
  border-radius:15px;
  background:var(--input);
  color:var(--input-text);
  padding:16px 18px;
  font:inherit;
  outline:none;
  box-shadow:inset 0 1px 2px rgba(17,35,50,.05);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
textarea{
  min-height:360px;
  resize:vertical;
  line-height:1.58;
}
#output{background:var(--input-alt)}
input[type="password"],input[type="text"]{min-height:56px}
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus{
  border-color:var(--accent-strong);
  box-shadow:0 0 0 4px rgba(126,178,223,.16);
  background:#fff;
}
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding-top:2px;
  margin-bottom:10px;
}
button,
.button{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:12px;
  padding:11px 17px;
  font:inherit;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
  color:#0b2033;
  background:linear-gradient(135deg,#8fc1e9,#76a9d5);
  box-shadow:0 7px 18px rgba(8,28,44,.13);
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 9px 22px rgba(8,28,44,.18)}
button.secondary{background:#46637d;color:#fff}
.button.ghost{background:transparent;color:#d9e5ef;border:1px solid #667e94;box-shadow:none}
.status{
  margin-top:-2px;
  padding:12px 14px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:var(--muted);
}
.status.error{color:var(--danger);border-color:rgba(255,160,160,.24);background:rgba(255,120,120,.055)}
.status.ok{color:var(--ok);border-color:rgba(169,233,193,.20);background:rgba(124,210,158,.05)}
.tool>.info{margin-top:34px}
.micro{margin:8px 0 0;color:var(--muted-2);font-size:.88rem;line-height:1.55}

.legal{
  max-width:940px;
  margin:0 auto;
  padding:34px 36px 38px;
}
.legal>.eyebrow,
.legal>.section-kicker{margin-bottom:14px}
.eyebrow{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border:1px solid rgba(154,189,219,.24);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#d6e4f0;
  font-size:.8rem;
  font-weight:750;
}
.legal h1{font-size:clamp(2.5rem,5vw,3.6rem);margin-bottom:18px}
.legal h2{
  margin:34px 0 10px;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:1.35rem;
  letter-spacing:-.01em;
}
.legal p,.legal li{color:#d7e1ea;line-height:1.75}
.legal p{margin:10px 0}
.placeholder{background:#4b4459;color:#f1e2ff;padding:2px 6px;border-radius:6px}
.protected-email a{color:#cfe9ff;text-decoration:none;font-weight:750}
.protected-email a:hover{color:#fff;text-decoration:none}
.email-noscript{color:var(--muted-2);font-size:.92rem}
code{background:#1d3042;padding:2px 6px;border-radius:6px;color:#dcecff}

.site-footer{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(11,32,51,.44);
  color:#c8d5e0;
}
.footer-row{
  min-height:86px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.copyright{font-size:.94rem}
.footer-links{display:flex;align-items:center;gap:6px}

@media(max-width:980px){
  .nav{gap:18px}
  .brand-logo{width:300px}
  .nav-links a{padding:9px 9px;font-size:.9rem}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .section-heading p{text-align:left}
  .home-title{font-size:clamp(2.5rem,5vw,3.5rem)}
}

@media(max-width:760px){
  .container{width:min(100%,calc(100% - 28px))}
  .site-header{position:static}
  .nav{min-height:auto;flex-direction:column;align-items:flex-start;padding:8px 0 13px;gap:5px}
  .brand-logo{width:290px}
  .nav-links{
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    justify-content:flex-start;
    padding:0 0 4px;
    scrollbar-width:thin;
  }
  .nav-links a{white-space:nowrap}
  .site-main{padding:40px 0 58px}
  .hero{padding-top:10px}
  .home-title{font-size:clamp(2rem,7vw,3rem);white-space:normal}
  .tool-grid{grid-template-columns:1fr}
  textarea{min-height:280px}
}

@media(max-width:560px){
  .grid{grid-template-columns:1fr}
  .card{min-height:220px}
  .tool{padding:20px}
  .legal{padding:24px 20px 28px}
  .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .actions button,.actions .button{width:100%}
  .actions .button.ghost{grid-column:1/-1}
  .footer-row{align-items:flex-start;flex-direction:column;gap:8px;padding:22px 0}
  .footer-links{margin-left:-10px}
}

.notice-panel{
  width:100%;
  max-width:none;
  margin-top:28px;
  padding:20px 24px 22px;
  border:1px solid rgba(155,200,236,.18);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.035));
  box-shadow:var(--shadow-soft);
}
.notice-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  margin-bottom:14px;
  padding:6px 12px;
  border:1px solid rgba(155,200,236,.18);
  border-radius:999px;
  background:rgba(126,178,223,.13);
  color:#e7f3ff;
  font-size:.79rem;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.notice-chip::before{
  content:"i";
  width:16px;
  height:16px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:.72rem;
  font-weight:900;
}
.notice-body,
.notice-body p,
.notice-panel>p{
  width:100%;
  max-width:none;
  margin:0;
  color:#e4edf6;
  font-size:1.01rem;
  line-height:1.72;
}
.notice-panel>p+p{margin-top:8px}
.notice-body strong,
.notice-panel strong{color:#fff}
.notice-body code{
  background:#1d3042;
  padding:2px 6px;
  border-radius:6px;
  color:#dcecff;
}
.home-notice{width:100%;margin-top:28px}
.tool-note{width:100%;margin-top:34px}
.legal .notice-panel{width:100%;max-width:none;margin-top:28px}

@media(max-width:760px){
  .notice-panel{padding:18px 18px 20px;border-radius:18px}
  .notice-body,
  .notice-body p,
  .notice-panel>p{font-size:.98rem;line-height:1.7}
}


/* v17: Zur-Startseite-Buttons auf allen Unterseiten */
.tool-hero-layout{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
}
.tool-hero-copy{
  min-width:0;
  flex:1 1 auto;
}
.back-home{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:10px 15px;
  border:1px solid rgba(155,200,236,.26);
  border-radius:12px;
  background:rgba(126,178,223,.08);
  color:#e6f1fb;
  text-decoration:none;
  font-size:.92rem;
  font-weight:800;
  line-height:1;
  box-shadow:0 7px 18px rgba(5,17,29,.08);
  transition:background .18s ease,border-color .18s ease,transform .18s ease,color .18s ease;
}
.back-home:hover{
  transform:translateY(-1px);
  background:rgba(126,178,223,.16);
  border-color:rgba(155,200,236,.42);
  color:#fff;
}
.back-home-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.08rem;
  line-height:1;
}
.tool-back{margin-bottom:4px}
.legal-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.legal-topbar .eyebrow{margin-bottom:0}
.legal-back{min-height:42px}

@media(max-width:760px){
  .tool-hero-layout{
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
  }
  .tool-back{margin-bottom:0}
  .legal-topbar{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
}

/* v19: Links in Rechtstexten ohne Browser-Unterstreichung */
.legal a:not(.button){
  color:#cfe9ff;
  text-decoration:none;
  text-decoration-line:none;
  font-weight:650;
  transition:color .18s ease;
}
.legal a:not(.button):hover,
.legal a:not(.button):focus-visible{
  color:#ffffff;
  text-decoration:none;
}
